var root = "http://www.amazingshine.co.kr";

function oneDepth(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.asp?code=cate01";
			break;
		case "2" : 
			location.href="/product/list.asp?code=cate02";
			break;
		case "3" : 				
			location.href="/product/list.asp?code=cate03";
			break;
		case "4" : 
			location.href="/product/list.asp?code=cate04";
			break;
		case "5" : 
			location.href="/product/list.asp?code=cate05";
			break;
		case "6" : 				
			location.href="/product/list.asp?code=cate06";
			break;
		case "7" : 
			location.href="/product/list.asp?code=cate07";
			break;
	}
}
function twoDepth01(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.asp?code=cate01&middle_cate=01";
			break;
		case "2" : 
			location.href="/product/list.asp?code=cate01&middle_cate=02";
			break;
		case "3" : 				
			location.href="/product/list.asp?code=cate01&middle_cate=03";
			break;
		case "4" : 
			location.href="/product/list.asp?code=cate01&middle_cate=04";
			break;	
		case "5" : 
			location.href="/product/list.asp?code=cate01&middle_cate=05";
			break;	
		case "6" : 
			location.href="/product/list.asp?code=cate01&middle_cate=06";
			break;	
		case "7" : 
			location.href="/product/list.asp?code=cate01&middle_cate=07";
			break;
	}
}
function twoDepth02(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.asp?code=cate02&middle_cate=01";
			break;
		case "2" : 
			location.href="/product/list.asp?code=cate02&middle_cate=02";
			break;
		case "3" : 				
			location.href="/product/list.asp?code=cate02&middle_cate=03";
			break;
		case "4" : 
			location.href="/product/list.asp?code=cate02&middle_cate=04";
			break;
		case "5" : 
			location.href="/product/list.asp?code=cate02&middle_cate=05";
			break;
		case "6" : 				
			location.href="/product/list.asp?code=cate02&middle_cate=06";
			break;
		case "7" : 				
			location.href="/edu1/airline.html";
			break;
		case "8" : 
			location.href="/edu1/online.html";
			break;
	}
}
function twoDepth03(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.asp?code=cate03&middle_cate=01";
			break;
		case "2" : 
			location.href="/product/list.asp?code=cate03&middle_cate=02";
			break;
		case "3" : 				
			location.href="/product/list.asp?code=cate03&middle_cate=03";
			break;
		case "4" : 
			location.href="/product/list.asp?code=cate03&middle_cate=04";
			break;
		case "5" : 
			location.href="/product/list.asp?code=cate03&middle_cate=05";
			break;
		case "6" : 				
			location.href="/product/list.asp?code=cate03&middle_cate=06";
			break;
		case "7" : 				
			location.href="/edu1/airline.html";
			break;
		case "8" : 
			location.href="/edu1/online.html";
			break;
	}
}
function twoDepth04(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.asp?code=cate04&middle_cate=01";
			break;
		case "2" : 
			location.href="/product/list.asp?code=cate04&middle_cate=02";
			break;
		case "3" : 				
			location.href="/product/list.asp?code=cate04&middle_cate=03";
			break;
		case "4" : 
			location.href="/product/list.asp?code=cate04&middle_cate=04";
			break;
		case "5" : 
			location.href="/product/list.asp?code=cate04&middle_cate=05";
			break;
		case "6" : 				
			location.href="/product/list.asp?code=cate04&middle_cate=06";
			break;
		case "7" : 				
			location.href="/edu1/airline.html";
			break;
		case "8" : 
			location.href="/edu1/online.html";
			break;
	}
}
function twoDepth05(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.asp?code=cate05&middle_cate=01";
			break;
		case "2" : 
			location.href="/product/list.asp?code=cate05&middle_cate=02";
			break;
		case "3" : 				
			location.href="/product/list.asp?code=cate05&middle_cate=03";
			break;
		case "4" : 
			location.href="/product/list.asp?code=cate05&middle_cate=04";
			break;
		case "5" : 
			location.href="/product/list.asp?code=cate05&middle_cate=05";
			break;
		case "6" : 				
			location.href="/product/list.asp?code=cate05&middle_cate=06";
			break;
		case "7" : 				
			location.href="/edu1/airline.html";
			break;
		case "8" : 
			location.href="/edu1/online.html";
			break;
	}
}
function twoDepth06(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.asp?code=cate06&middle_cate=01";
			break;
		case "2" : 
			location.href="/product/list.asp?code=cate06&middle_cate=02";
			break;
		case "3" : 				
			location.href="/product/list.asp?code=cate06&middle_cate=03";
			break;
		case "4" : 
			location.href="/product/list.asp?code=cate06&middle_cate=04";
			break;
		case "5" : 
			location.href="/product/list.asp?code=cate06&middle_cate=05";
			break;
		case "6" : 				
			location.href="/product/list.asp?code=cate06&middle_cate=06";
			break;
		case "7" : 				
			location.href="/edu1/airline.html";
			break;
		case "8" : 
			location.href="/edu1/online.html";
			break;
	}
}
function twoDepth07(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.asp?code=cate07&middle_cate=01";
			break;
		case "2" : 
			location.href="/product/list.asp?code=cate07&middle_cate=02";
			break;
		case "3" : 				
			location.href="/product/list.asp?code=cate07&middle_cate=03";
			break;
		case "4" : 
			location.href="/product/list.asp?code=cate07&middle_cate=04";
			break;
		case "5" : 
			location.href="/product/list.asp?code=cate07&middle_cate=05";
			break;
		case "6" : 				
			location.href="/product/list.asp?code=cate07&middle_cate=06";
			break;
		case "7" : 				
			location.href="/edu1/airline.html";
			break;
		case "8" : 
			location.href="/edu1/online.html";
			break;
	}
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		Left3_02_over = newImage("../Main/image/Left3_02-over.gif");
		Left3_03_over = newImage("../Main/image/Left3_03-over.gif");
		Left3_04_over = newImage("../Main/image/Left3_04-over.gif");
		Left3_05_over = newImage("../Main/image/Left3_05-over.gif");
		Left3_06_over = newImage("../Main/image/Left3_06-over.gif");
		preloadFlag = true;
	}
}
preloadImages();

function scroll_h(){ 
    var current_h = document.body.scrollTop; 
   	document.all.quick.style.top = current_h + document.body.clientHeight-110 ;
}

function surfto(form) { 
  if(form.div.value==""){
    return false;
  }
	var myindex=form.div.selectedIndex 
	location.href = form.div.options[myindex].value;					//ÀÚ½Å
	//window.open(form.div.options[myindex].value, "", "");				//»õÃ¢
	form.div.selectedIndex=0;
  //if (0) this.selectedIndex=0;   ///ÀÌºÎºÐÀÌ Ç×»ó Ã¹¹øÂ° ¸Þ´º»óÅÂ·Î ¸¸µç´Ù.
}

	function startscroll()
	{ // ½ºÅ©·Ñ ½ÃÀÛ
		i=0;
		for (i in scroll_content)
			n_panel++;
			
		n_panel = n_panel -1 ;
		startPanel = Math.round(Math.random()*n_panel);
		if(startPanel == 0)
		{
			i=0;
			for (i in scroll_content) 
				insert_area(total_area, total_area++); // area »ðÀÔ
		}
		else if(startPanel == n_panel)
		{
			insert_area(startPanel, total_area);
			total_area++;
			for (i=0; i<startPanel; i++) 
			{
				insert_area(i, total_area); // area »ðÀÔ
				total_area++;
			}
		}
		else if((startPanel > 0) || (startPanel < n_panel))
		{
			insert_area(startPanel, total_area);
			total_area++;
			for (i=startPanel+1; i<=n_panel; i++) 
			{
				insert_area(i, total_area); // area »ðÀÔ
				total_area++;
			}
			for (i=0; i<startPanel; i++) 
			{
				insert_area(i, total_area); // area »ðÀÔ
				total_area++;
			}
		}
		window.setTimeout("scrolling()",waitingtime);
	}
	function scrolling(){ // ½ÇÁ¦·Î ½ºÅ©·Ñ ÇÏ´Â ºÎºÐ
		if (bMouseOver && wait_flag)
		{
			for (i=0;i<total_area;i++){
				tmp = document.getElementById('scroll_area'+i).style;
				tmp.top = parseInt(tmp.top)-scrollspeed;
				if (parseInt(tmp.top) <= -scrollerheight){
					tmp.top = scrollerheight*(total_area-1);
				}
				if (s_tmp++ > (s_amount-1)*scroll_content.length){
					wait_flag=false;
					window.setTimeout("wait_flag=true;s_tmp=0;",waitingtime);
				}
			}
		}
		window.setTimeout("scrolling()",1);
	}
	function insert_area(idx, n){ // area »ðÀÔ
		html='<div style="left: 0px; width: 100%; position: absolute; top: '+(scrollerheight*n)+'px" id="scroll_area'+n+'">\n';
		html+=scroll_content[idx]+'\n';
		html+='</div>\n';
		document.write(html);
	}
	
	
	
	
	//½ºÅ©·Ñ ¹è³Ê½ÃÀÛ
	
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

function CheckUIElements(){}

function OnLoad()
{
        var y;

        // ÇÁ·¹ÀÓ ¿¡¼­ ¹þ¾î³ª°Ô ÇÏ´Â ÇÔ¼öÀÔ´Ï´Ù. ÇÁ·¹ÀÓ¿¡ ³ÖÀ¸·Á¸é »èÁ¦ÇÏ¼¼¿ä
        //if ( top.frames.length )
         //       top.location.href = self.location.href;

        // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç
        if ( bNetscape4plus ) {
                document["divMenu"].top = top.pageYOffset + 0;
                document["divMenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                divMenu.style.top = document.body.scrollTop + 0;
                divMenu.style.visibility = "visible";
        }
        CheckUIElements();
        return true;
} 
//½ºÅ©·Ñ¹è³Ê³¡

// Title
document.title="::::: Amazing Shine ::::::::::::::::::::::::::::::";

// Focus
function allblur() {
 for (i = 0; i < document.links.length; i++)
	document.links[i].onfocus = document.links[i].blur;
}

function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
//document.onfocusin=bluring;


// Window_Close
function CloseWindow() {
	window.close();
}

function goLogin(){
//	window.location = "/member/loginInput.do?referer="+location.href;
	var urlStr = location.href;
	var index1 = urlStr.lastIndexOf("coleman.co.kr");
	var tempUrlStr = urlStr.substring(index1 + 13, urlStr.length);
	
	var arrStr = tempUrlStr.split("&");
	var str = "";
	for(var i = 0; i < arrStr.length; i++) {
		str = str + arrStr[i];
		if(i < arrStr.length - 1) {
			str = str + ":";
		}
	}

	window.location = "/member/loginInput.do?referer="+ str;
}
// Window_Open ½ºÅ©·ÑÀÌ ¾øÀ» ¶§
function OpenWindow(url,intWidth,intHeight) {
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=0") ;
}

// Window_Open ½ºÅ©·ÑÀÌ ÀÖÀ» ¶§
function OpenWindow_s(url,intWidth,intHeight) {
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=1") ;
}


// SwapImg
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];}
}


//ÆäÀÌÁö º¯¼ö ÂüÁ¶
var depth1 = "";
var depth2 = "";
var depth3 = "";
var logchk = "";

function setDepthVar(firvar, secvar, thrvar, logvar) {
	depth1 = firvar;
	depth2 = secvar;
	depth3 = thrvar;
	logchk = logvar;
}



<!--
function down(){
url = "/data/rezume.hwp";
}
//-->
<!--
function rezume(){
url = "/company/write.html";
window.open(url,'','toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=0,width=638,height=405,top=300,left=250'); 
}
//-->
<!--
function ebro(){
url = "/ebro/ebro.html";
window.open(url,'','toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=0,width=950,height=670,top=20,left=20'); 
}
//-->

<!-- 
function addbookmark() { 
bookmarkurl = "http://www.amazingshine.co.kr"; 
bookmarktitle="::::: Amazing Shine ::::::::::::::::::::::::::::::"; 
if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle); 
} 
// --> 

// »óÅÂ¹ÙÀÇ ¸µÅ©ÁÖ¼Ò ³ªÅ¸³ª´Â°Í ¼û±â±â //
function hidestatus()
{
	window.status=''
	return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
// »óÅÂ¹ÙÀÇ ¸µÅ©ÁÖ¼Ò ³ªÅ¸³ª´Â°Í ¼û±â±â //



<!--
    function SwfObject_Call(a,b,c,d)
     {
		var idName="";
		if (! isNaN(d)) idName=" id='" +d+ "'";

		document.write ("<object" + idName + " classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='" + b + "' height='" + c + "' VIEWASTEXT>");
		document.write ("<param name=movie value='" + a + "'>");
		document.write ("<param name=quality value=high>");
		document.write ("<param name=menu value=false>");
		document.write ("<param name='wmode' value='transparent'>");
		document.write ("<embed" + idName + "  src='" + a + "' quality=high pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + b + "' height='" + c + "'></embed> ");
		document.write ("</object>");
	}

-->


