function flash(value, width, height){	//메인플래쉬
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">');
	document.writeln('<param name="movie" value="'+value+'">');
	document.writeln('<param name="quality" value="high">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<param name="menu" value="false">');
	document.writeln('<embed src="'+value+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>');
	document.writeln('</object>');
}


function movie(value, width, height) {
	document.writeln('<object id="WMP" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" standby="Loading Microsoft Windows Media Player..." width="'+width+'" height="'+height+'">');
	document.writeln('<param name="FileName" value="'+value+'">');
	document.writeln('<param name="AutoStart" value="true">');
	document.writeln('<param name="AutoSize" value="false">');
	document.writeln('<param name="transparentAtStart" value="True">');
	document.writeln('<param name="transparentAtStop" value="True">');
	document.writeln('<param name="ShowControls" value="false">');
	document.writeln('<param name="ShowStatusBar" value="false">');
	document.writeln('<param name="loop" value="-1">');
	document.writeln('<param name="Volume" value="-600">');
	document.writeln('<param name="PLUGINSPAGE" value="http://www.microsoft.com/korea/windows/windowsmedia/">');
	document.writeln('<embed src="'+value+'" width="'+width+'" height="'+height+'" autostart="False" loop="-1" filename="'+value+'" autosize="false" showcontrols="false" showstatusbar="false" volume="-600" pluginspage="http://www.microsoft.com/korea/windows/windowsmedia/"></embed>');
	document.writeln('</object>');
}


/*========================== vod 컨트롤 ===============================*/

function play(){
	document.WMP.play();
}

function stop(){
	document.WMP.stop();
}

function pause(){
	document.WMP.pause();
}

var MustState = true; 
function setMute() {

	if(MustState)
	{
		player_mute.src="/images/player3/vol2.gif";
		document.WMP.mute = 1;
	}
	else
	{
		player_mute.src="/images/player3/vol.gif";
		document.WMP.mute = 0;
	}
	MustState = MustState ? false : true;
}

function f_size() {
	document.WMP.displaysize = 3;
	}       //full size
//]]>

/*========================== vod 컨트롤 ===============================*/

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function submenu(menuName) {

	/*******본청*******/
	/*문화관광*/
	if(menuName=="m11"){
		location.href="/index/IndexAction.do?cmd=Index_Culture";


	/*청사안내 오시는길*/
   	} else if(menuName=="m12"){
  		location.href="/cms/CmsAction.do?cmd=CmsView&menu_key=11&menu_id=410&HOME_SEQ=2&next=/01/02/11/55/409/01.jsp";

	/*담당업무*/
   	} else if(menuName=="m122"){  		location.href="/cms/CmsAction.do?cmd=CmsView&menu_key=11&menu_id=412&HOME_SEQ=2&next=/addr/AddrBookAction.do?cmd=OutAddrBookMgr";

	/*부서안내*/
   	} else if(menuName=="m123"){  		location.href="/cms/CmsAction.do?cmd=CmsView&menu_key=11&menu_id=93&HOME_SEQ=2&next=/01/02/11/55/92/01.jsp";


	/*사상신문*/
   	} else if(menuName=="m13"){
  		location.href="/newspaper/newspaper.do?cmd=main";


	/*사상웹메일*/
   	} else if(menuName=="m14"){
  		/*window.open("http://mail.ssg21.net/","_blank");*/
		location.href="http://mail.ssg21.net";


	/*의회*/
   	} else if(menuName=="m141"){
  		window.open("http://www.sasang.go.kr/index/IndexAction.do?cmd=Index_Assembly","_blank");


	/*예식장이용안내*/
   	} else if(menuName=="m15"){
  		location.href=("/cms/CmsAction.do?cmd=CmsView&menu_key=8&menu_id=387&HOME_SEQ=2&next=/01/02/08/32/01.jsp");


	/*사상구인터넷수능방송*/
   	} else if(menuName=="m16"){
  		window.open("http://edu.sasang.go.kr/","_blank");


	/*자동차종합정보서비스*/
   	} else if(menuName=="m17"){
  		window.open("http://ecar.sasang.go.kr/","_blank");

	/*정보화교육*/
	} else if(menuName=="m18"){
		location.href=("/cms/CmsAction.do?cmd=CmsView&menu_key=8&menu_id=356&HOME_SEQ=2&next=/01/02/08/29/355/356/06.jsp");

	/*구민주간행사*/
	} else if(menuName=="m19"){
		location.href=("/cms/CmsAction.do?cmd=CmsView&menu_key=6&menu_id=1061&HOME_SEQ=2&next=/weekevent/WeekeventAction.do?cmd=WeekeventL");




	/*******문화관광*******/
	/*사상의축제*/
   	} else if(menuName=="m20"){
  		location.href="/cms/CmsAction.do?cmd=CmsView&next=/01/233/234/242/01.jsp&menu_key=242&menu_id=268&HOME_SEQ=234";


	/*******보건소*******/
	/*보건상담*/
   	} else if(menuName=="m30"){
  		location.href="/cms/CmsAction.do?cmd=CmsView&menu_key=622&menu_id=709&HOME_SEQ=197&next=/bbs/BbsAction.do?cmd=BbsKList&CT_ID=P05_02_CONSULT";

	/*찾아오시는길*/
   	} else if(menuName=="m31"){
  		location.href="/cms/CmsAction.do?cmd=CmsView&menu_key=617&menu_id=629&HOME_SEQ=197&next=/01/151/197/617/06.jsp";
	/*전화번호안내*/
   	} else if(menuName=="m32"){
  		location.href="/cms/CmsAction.do?cmd=CmsView&menu_key=617&menu_id=628&HOME_SEQ=197&next=/01/151/197/617/05.jsp";
	/*조직도*/
   	} else if(menuName=="m33"){
  		location.href="/cms/CmsAction.do?cmd=CmsView&menu_key=617&menu_id=626&HOME_SEQ=197&next=/01/151/197/617/03.jsp";
	/*보건소에서 하는일*/
   	} else if(menuName=="m34"){
  		location.href="/cms/CmsAction.do?cmd=CmsView&next=/01/151/197/620/638/01.jsp&menu_key=620&menu_id=642&HOME_SEQ=197";
	/*건강IN*/
   	} else if(menuName=="m35"){
   		window.open("http://hi.nhic.or.kr/","_blank");



	/*******경제*******/
	/*기업자금지원안내*/
   	} else if(menuName=="m40"){
  		window.open("http://www.busan.go.kr/03_biz/01_support/02_01.jsp","_blank");

	/*중소기업찾기*/
   	} else if(menuName=="m41"){
  		window.open("http://www.busan.go.kr/03_biz/02_company/02.jsp","_blank");



	/*******여성*******/
	/*이주여성긴급지원센터*/
   	} else if(menuName=="m50"){
  		window.open("http://www.wm1366.org/","_blank");

	/*사상여성인력개발센터*/
   	} else if(menuName=="m51"){
  		window.open("http://www.bbwoman.or.kr/","_blank");

	/*여성새로일하기센터*/
   	} else if(menuName=="m52"){
  		window.open("http://family.busan.go.kr/01_women/04_07_0102.jsp","_blank");

	/*부산여성가족개발원*/
   	} else if(menuName=="m53"){
  		window.open("http://www.bwf.re.kr/","_blank");



	/*******장애인*******/
	/*장애인고용포털*/
   	} else if(menuName=="m60"){
  		window.open("https://www.worktogether.or.kr/","_blank");

	/*시설단체안내*/
   	} else if(menuName=="m61"){
  		window.open("http://www.e-welfare.go.kr/wp/user/dis/disIndex.laf?recent=Y","_blank");



	/*******대표영문*******/
	/*BusanMap*/
   	} else if(menuName=="m70"){
  		window.open("http://ebstour.visitkorea.or.kr/Scripts/EngMap.aspx","_blank");

	/*Subway lines Map*/
   	} else if(menuName=="m71"){
  		window.open("http://english.busan.go.kr/04_transportation/map9.jsp","_blank");

	/*******대표중문*******/
	/*BusanMap*/
   	} else if(menuName=="m80"){
  		window.open("http://www.busanlife.or.kr/chi/image/main/busan_map.jpg","_blank");

	/*Subway lines Map*/
   	} else if(menuName=="m81"){
  		window.open("http://www.subway.busan.kr/cyber/img/route_chi.jpg","_blank");

	/*******대표일문*******/
	/*BusanMap*/
   	} else if(menuName=="m90"){
  		window.open("http://www.busanlife.or.kr/jap/image/main/busan_map.jpg","_blank");

	/*Subway lines Map*/
   	} else if(menuName=="m91"){
  		window.open("http://www.subway.busan.kr/cyber/img/route_jap.jpg","_blank");


	/*******의회홈페이지*******/
	/*가 선거구*/
	/*김부민의원*/
   	} else if(menuName=="m201"){
  		window.open("/assembly.do?cmd=main&assembly_seq=1","_blank");

	/*심재환의원*/
   	} else if(menuName=="m202"){
  		window.open("/assembly.do?cmd=main&assembly_seq=4","_blank");


	/*나 선거구*/
	/*조흥래의원*/
   	} else if(menuName=="m211"){
  		window.open("/assembly.do?cmd=main&assembly_seq=8","_blank");


	/*다 선거구*/
	/*김덕영의원*/
   	} else if(menuName=="m221"){
  		window.open("/assembly.do?cmd=main&assembly_seq=2","_blank");

	/*이학곤의원*/
   	} else if(menuName=="m222"){
  		window.open("/assembly.do?cmd=main&assembly_seq=3","_blank");


	/*라 선거구*/
	/*서복현의원*/
   	} else if(menuName=="m231"){
  		window.open("/assembly.do?cmd=main&assembly_seq=11","_blank");



	/*마 선거구*/
	/*김판중의원*/
   	} else if(menuName=="m241"){
  		window.open("/assembly.do?cmd=main&assembly_seq=5","_blank");

	/*장인수의원*/
   	} else if(menuName=="m242"){
  		window.open("/assembly.do?cmd=main&assembly_seq=7","_blank");

	


	
	/*비례대표*/
	/*조송은의원*/
   	} else if(menuName=="m251"){
  		window.open("/assembly.do?cmd=main&assembly_seq=6","_blank");

	/*이재우 의원*/
   	} else if(menuName=="m252"){
  		window.open("/assembly.do?cmd=main&assembly_seq=12","_blank");

	}
}





