function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 




/****************************************************
 ÇÃ·¡½Ã Ãâ·Â ÇÔ¼ö 
 ¾ÆÀÌµð, URL, Æø, ³ôÀÌ¸¸ ÀÔ·Â¹Þ¾Æ¼­ Ãâ·Â
*****************************************************/
function FlashCommon( id, ObjUri, vWidth, vHeight ) {

	var str = "";
	str  = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + vWidth + '" height="' + vHeight + ' id="' + id + '" align="middle">';
	str += '<param name="movie" value="' + ObjUri + '">';
	str += '<param name="quality" value="high">';
	str += '<param name="wmode" value="transparent">';
	str += '<param name="bgcolor" value="#ffffff">';
	str += '<embed src="' + ObjUri + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + vWidth + '" height="' + vHeight + '" id="' + id + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
	str += '</object>';

	document.writeln(str);
}



/****************************************************
¸µÅ©½Ã ÀÌ¹ÌÁö Å×µÎ¸® »èÁ¦
*****************************************************/
 function bluring(){ 
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
 } 
 document.onfocusin=bluring; 



/****************************************************
ÀÌ¹ÌÁö ¸¶¿ì½º¿À¹ö
*****************************************************/


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.0
  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 && document.getElementById) x=document.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 menu(tm,sm) { 

//--------------------------------------------------------[È¸»ç¼Ò°³]

	if(tm == "1") {
		if(sm == "1")
			location.href = "/html/company.html";   
	}



//--------------------------------------------------------[»ç¾÷Á¦Ç°¼Ò°³]

	else if(tm == "2") {

		if(sm == "1")
			location.href = "/html/lju.html";   
		else if(sm == "2")
			location.href = "/html/himmel.html";   
		else if(sm == "3")
			location.href = "/html/grenzebach.html";   


	}


//--------------------------------------------------------[ÀÚ·á½Ç]

	else if(tm == "3") {

		if(sm == "1")
			location.href = "/html/data.html";   
	}



//--------------------------------------------------------[°í°´¼¾ÅÍ]

	else if(tm == "4") {

		if(sm == "1")
			location.href = "/html/agecny.html";   
		else if(sm == "2")
			location.href = "/html/as.html";   
		else if(sm == "3")
			location.href = "/tt/site/ttboard.cgi?act=write&db=contact";   
		else if(sm == "4")
			location.href = "/tt/site/ttboard.cgi?db=notice";   

		
	}


}



/****************************************************
 ¸ÞÀÎ °Ô½ÃÆÇ ¸ñ·Ï
*****************************************************/

	function showZone01() {
		document.all['Zone01'].style.display = 'inline';
		document.all['Zone02'].style.display = 'none';
		document.all['Zone03'].style.display = 'none';
		document.all['Zone04'].style.display = 'none';
		document.all['Zone05'].style.display = 'none';
	}
	function showZone02() {
		document.all['Zone01'].style.display = 'none';
		document.all['Zone02'].style.display = 'inline';
		document.all['Zone03'].style.display = 'none';
		document.all['Zone04'].style.display = 'none';
		document.all['Zone05'].style.display = 'none';
	}
	function showZone03() {
		document.all['Zone01'].style.display = 'none';
		document.all['Zone02'].style.display = 'none';
		document.all['Zone03'].style.display = 'inline';
		document.all['Zone04'].style.display = 'none';
		document.all['Zone05'].style.display = 'none';
	}
	function showZone04() {
		document.all['Zone01'].style.display = 'none';
		document.all['Zone02'].style.display = 'none';
		document.all['Zone03'].style.display = 'none';
		document.all['Zone04'].style.display = 'inline';
		document.all['Zone05'].style.display = 'none';
	}
	function showZone05() {
		document.all['Zone01'].style.display = 'none';
		document.all['Zone02'].style.display = 'none';
		document.all['Zone03'].style.display = 'none';
		document.all['Zone04'].style.display = 'none';
		document.all['Zone05'].style.display = 'inline';
	}
/****************************************************
 ¸ÞÀÎ °Ô½ÃÆÇ ¸ñ·Ï
*****************************************************/

	function DshowZone01() {
		document.all['DZone01'].style.display = 'inline';
		document.all['DZone02'].style.display = 'none';
		document.all['DZone03'].style.display = 'none';
	}
	function DshowZone02() {
		document.all['DZone01'].style.display = 'none';
		document.all['DZone02'].style.display = 'inline';
		document.all['DZone03'].style.display = 'none';
	}
	function DshowZone03() {
		document.all['DZone01'].style.display = 'none';
		document.all['DZone02'].style.display = 'none';
		document.all['DZone03'].style.display = 'inline';
	}



function fNewwin()  {
 cw=screen.availWidth; // È­¸é ³Êºñ
 ch=screen.availHeight; // È­¸é ³ôÀÌ

 sw=700;// ¶ç¿ï Ã¢ÀÇ ³Êºñ
 sh=500;// ¶ç¿ï Ã¢ÀÇ ³ôÀÌ

 ml=(cw-sw)/2;// °¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ xÀ§Ä¡
 mt=(ch-sh)/2;// °¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ yÀ§Ä¡

  NewWindow=window.open('/html/privacy.html','privacy','width='+sw+',height='+sh+',top='+mt+',left='+ml+',toobar=no,scrollbars=yes,menubar=no,status=no ,directories=no,');
}

function poll_pop()  {
 cw=screen.availWidth; // È­¸é ³Êºñ
 ch=screen.availHeight; // È­¸é ³ôÀÌ

 sw=770;// ¶ç¿ï Ã¢ÀÇ ³Êºñ
 sh=570;// ¶ç¿ï Ã¢ÀÇ ³ôÀÌ

 ml=(cw-sw)/2;// °¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ xÀ§Ä¡
 mt=(ch-sh)/2;// °¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ yÀ§Ä¡

  NewWindow=window.open('/html/popup/popup100402.html','model','width='+sw+',height='+sh+',top='+mt+',left='+ml+',toobar=no,scrollbars=yes,menubar=no,status=no ,directories=no,');
}
