
// png ÀÌ¹ÌÁö

function setPng24(obj) { 

    obj.width=obj.height=1; 

	obj.style.width = obj.width + "px"; 

    obj.style.height = obj.height + "px"; 

    obj.className=obj.className.replace(/\bpng24\b/i,''); 

    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 

    obj.src='';  

    return ''; 

} 


function div_box(n) {
	div_name = document.getElementById("div_box");

	if(n == "on"){
		div_name.style.display ="block";
	}else{
		div_name.style.display ="none";
	}
}

function flashObj(src,w,h,id){
	
		 html = '';
		 html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="'+id+'" width="'+w+'" height="'+h+'">';
		 html += '<param name="movie" value="'+src+'">';
		 html += '<param name="quality" value="high">';
		 html += '<param name="wmode" value="transparent">';
		 html += '<param name="bgcolor" value="#ffffff">';
		 html += '<param name="menu" value="false">';
		 html += '<embed src="'+src+'" autostart="false" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="'+id+'" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
		 html += '<\/object>';
		 document.write(html);

}

function resizeSmall() {
	gnb_div= document.getElementById("gnb");
	gnb_div.style.height="88px";
}
function resizeBig(){
	gnb_div = document.getElementById("gnb");
	gnb_div.style.height="175px";
}


function imgOver(imgName) {
imgName.src = imgName.src.replace(".gif", "_on.gif");
imgName.src = imgName.src.replace(".jpg", "_on.jpg");
}
function imgOut(imgName) {
	imgName.src = imgName.src.replace("_on.gif", ".gif");
	imgName.src = imgName.src.replace("_on.jpg", ".jpg");
}

//ÇÃ·¡½Ã
function flashObj(src,w,h,id){
 
   html = '';
   html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="'+id+'" width="'+w+'" height="'+h+'">';
   html += '<param name="movie" value="'+src+'">';
   html += '<param name="quality" value="high">';
   html += '<param name="wmode" value="transparent">';   
   html += '<param name="menu" value="false">';
   html += '<embed src="'+src+'" wmode=\"transparent\" autostart="false" wmomde="transparent" quality=high menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="'+id+'" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
   html += '<\/object>';
   document.write(html);
}

//ÇÃ·¡½Ã ¸Þ´º
function menu(tab){
	if(tab=="0101"){
		location.href="http://www.3trakgolf.com/html/about/3trak_about.html";
	}else if(tab=="0102"){
		location.href="http://www.3trakgolf.com/html/about/3trak_headOffice.html";
	}else if(tab=="0103"){
		location.href="http://www.3trakgolf.com/html/board/list.php?code=news";
	}else if(tab=="0104"){
		location.href="http://www.3trakgolf.com/html/about/3trak_office.html";
	}else if(tab=="0105"){
		location.href="http://www.3trakgolf.com/html/about/3trak_map.html";
	}else if(tab=="0201"){
		location.href="http://www.3trakgolf.com/html/product/product_productInfo.html";
	}else if(tab=="0202"){
		location.href="http://www.3trakgolf.com/html/product/product_formation.html";
	}else if(tab=="0203"){
		location.href="http://www.3trakgolf.com/html/product/product_sensorInfo.html";
	}else if(tab=="0204"){
		location.href="http://www.3trakgolf.com/html/product/product_screenInfo.html";
	}else if(tab=="0205"){
		location.href="http://www.3trakgolf.com/html/product/product_softwareInfo.html";
	}else if(tab=="0206"){
		location.href="http://www.3trakgolf.com/html/product/product_vedioSwing.html";
	}else if(tab=="0301"){
		location.href="http://www.3trakgolf.com/html/guide/guide_courseInfo.html";
	}else if(tab=="0302"){
		location.href="http://www.3trakgolf.com/html/guide/guide_courseFlyby.html";
	}else if(tab=="0401"){
		location.href="http://www.3trakgolf.com/html/board/list.php?code=photo";
	}else if(tab=="0402"){
		location.href="http://www.3trakgolf.com/html/board/list.php?code=store";
	}else if(tab=="0501"){
		location.href="http://www.3trakgolf.com/html/board/postform.php?code=buy";
	}else if(tab=="0502"){
		location.href="http://www.3trakgolf.com/html/board/list.php?code=notice";
	}else if(tab=="0503"){
		location.href="http://www.3trakgolf.com/html/board/list.php?code=qna";
	}else if(tab=="0504"){
		location.href="http://www.3trakgolf.com/html/board/list.php?code=faq";
	}else if(tab=="0505"){
		location.href="http://www.3trakgolf.com/html/board/list.php?code=free";
	}
}

function start(){
	location.href="http://www.naver.com";
}
function start_1(){
	location.href="http://www.naver.com";
}
function start_2(){
	location.href="http://www.naver.com";
}