
document.title="MOTO V10"; // title

function pop(url,name,w,h) { window.open(url,name,'width='+w+',height='+h+',scrollbars=auto') } // Popup(½ºÅ©·Ñ¹Ù¾øÀ½)
function pops(url,name,w,h) { window.open(url,name,'width='+w+',height='+h+',scrollbars=yes') } // Popup(½ºÅ©·Ñ¹ÙÀÖÀ½)

function flashAM(URL,width,height,vars,bgColor,winmode) { //ÇÃ·¡½Ã Ãâ·Â

	var id=URL.split("/")[URL.split("/").length-1].split(".")[0];
	if(vars==null) vars='';
	if(bgColor==null) bgColor='#FFFFFF';
	if(winmode==null) winmode='opaque';

	document.write("	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' "); 
	document.write("		width='"+width+"' height='"+height+"' id='"+id+"' align='middle'> ");
	document.write("	<param name='allowScriptAccess' value='sameDomain' /> ");
	document.write("	<param name='movie'	value='"+URL+"' /> ");
	document.write("	<param name='FlashVars'		alue='"+vars+"' /> ");
	document.write("	<param name='wmode'	value='"+winmode+"' /> ");
	document.write("	<param name='menu'			value='false' /> ");
	document.write("	<param name='quality'		value='high' /> ");
	document.write("	<param name='bgcolor'	value='"+bgColor+"' /> ");
	document.write("	<embed src='"+URL+"' flashVars='"+vars+"' wmode='"+winmode+"' menu='false' quality='high' ");
	document.write("		bgcolor='"+bgColor+"' width='"+width+"' height='"+height+"' name='"+id+"' align='middle' ");
	document.write("		allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /> ");
	document.write("	</object> ");
}


function setPng24(obj) { //ie6Àü¿ë pngÀÌ¹ÌÁö Åõ¸íÃ³¸®
	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 ''; 
}



/* ie 6.0 background »ç¿ë½Ã flicker Çö»ó ¹æÁö */
try {
  document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}


/* ¸µÅ©½Ã Á¡¼± Á¦°Å */
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring;

/* ·¹ÀÌ¾îµå ÆË¾÷*/
function getposOffset(overlay, offsettype){
	var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
	var parentEl=overlay.offsetParent;
	while (parentEl!=null){
	totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
	parentEl=parentEl.offsetParent;
	}
	return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
	if (document.getElementById){
		var subobj=document.getElementById(subobjstr)
		subobj.style.display=(subobj.style.display!="block")? "block" : "none"
//		var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0)
//		var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
//		subobj.style.left=xpos+"px"
//		subobj.style.top=ypos+"px"

		WindowWidth = (window.innerWidth) ? window.innerWidth : (document.documentElement && document.documentElement.clientWidth) ? document.documentElement.clientWidth : document.body.clientWidth;
		WindowHeight = (window.innerHeight) ? window.innerHeight : (document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight : document.body.clientHeight;
		var divWidth = subobj.offsetWidth;
		var divHeight = subobj.offsetHeight;
		subobj.style.top = 50 +"%";
		subobj.style.left = 50 +"%";
		subobj.style.marginTop = -(divHeight/2 - document.body.scrollTop) +"px";
		subobj.style.marginLeft = -(divWidth/2) +"px";
		return false
	} else	return true
}

function overlayclose(subobj){
	document.getElementById(subobj).style.display="none"
}

/*layered*/
function ViewImg(aue)
	{	
		var w = 0;
		var imageLayeredPop_ListMax2 = 4; //¸®½ºÆ® ÃÖ´ë°ª
		for(w = 1; w<=imageLayeredPop_ListMax2; w++) 
			{
				obj = document.getElementById('imageLayeredPop_'+w); //¿ÀºêÁ§Æ® ¼±¾ð
					
					if (aue == w) 
						{
							if(obj.style.display == "block")
								{ obj.style.display = "none"; }
							else { obj.style.display = "block"; }
						} 
					else 
						{ obj.style.display = "none"; }
			}
	}
function CloseViewImg(aue)
	{	
		var w = 0;
		var imageLayeredPop_ListMax2 = 4; //¸®½ºÆ® ÃÖ´ë°ª
		for(w = 1; w<=imageLayeredPop_ListMax2; w++) 
			{
				obj = document.getElementById('imageLayeredPop_'+w); //¿ÀºêÁ§Æ® ¼±¾ð
					
					if (aue == w) 
						{
							if(obj.style.display == "none")
								{ obj.style.display = "block"; }
							else { obj.style.display = "none"; }
						} 
					else 
						{ obj.style.display = "none"; }
			}
	}




/*layered faq*/
function ViewImgFaq(aue)
	{	
		var w = 0;
		var LayeredPopfaq_ListMax2 = 8; //¸®½ºÆ® ÃÖ´ë°ª
		for(w = 1; w<=LayeredPopfaq_ListMax2; w++) 
			{
				obj = document.getElementById('LayeredPopfaq_'+w); //¿ÀºêÁ§Æ® ¼±¾ð
					
					if (aue == w) 
						{
							if(obj.style.display == "block")
								{ obj.style.display = "none"; }
							else { obj.style.display = "block"; }
						} 
					else 
						{ obj.style.display = "none"; }
			}
	}
function CloseViewImgFaq(aue)
	{	
		var w = 0;
		var LayeredPopfaq_ListMax2 = 8; //¸®½ºÆ® ÃÖ´ë°ª
		for(w = 1; w<=LayeredPopfaq_ListMax2; w++) 
			{
				obj = document.getElementById('LayeredPopfaq_'+w); //¿ÀºêÁ§Æ® ¼±¾ð
					
					if (aue == w) 
						{
							if(obj.style.display == "none")
								{ obj.style.display = "block"; }
							else { obj.style.display = "none"; }
						} 
					else 
						{ obj.style.display = "none"; }
			}
	}




