function resizeFrame(iframeObj){
var innerBody = iframeObj.contentWindow.document.body;
var innerHeight = 60+innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
iframeObj.style.height = innerHeight;

//  ٽü 
var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
iframeObj.style.width = innerWidth; 
this.scrollTo(1,1); //[]ƷƼ  
}

function flash_object (name,width,height,trans,v_LogId,v_mN,v_sN){

var flashStr=" <object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width="+width+" height="+height+" />"+
"<param name='movie' value='"+name+"?Login_Check="+v_LogId+"&mN="+v_mN+"&sN="+v_sN+"' />"+
"<param name='quality' value='high' />"+
"<param name='menu' value='false' />"+
"<param name='wmode' value='"+trans+"' />"+
"<embed src='"+name+"?Login_Check="+v_LogId+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' /></embed></object>";

document.write(flashStr);
}

function flash_object_low (name,width,height,trans,v_LogId){

var flashStr=" <object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width="+width+" height="+height+" />"+
"<param name='movie' value='"+name+"?Login_Check="+v_LogId+"' />"+
"<param name='quality' value='low' />"+
"<param name='menu' value='false' />"+
"<param name='wmode' value='"+trans+"' />"+
"<embed src='"+name+"?Login_Check="+v_LogId+"' quality='low' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' /></embed></object>";

document.write(flashStr);
}

function clickNode(folderId) { 
    var clickedFolder = 0;
	if (folderId == "11") {document.location.href = "01-1.htm";}
	if (folderId == "12") {document.location.href = "01-2.htm";}
	if (folderId == "13") {document.location.href = "01-3.htm";}
	if (folderId == "14") {document.location.href = "01-4.htm";}
	if (folderId == "15") {document.location.href = "01-1.htm";}
	if (folderId == "16") {document.location.href = "01-1.htm";}

	if (folderId == "21"||folderId == "1_1") {document.location.href = "02-1.htm";}
	if (folderId == "21"||folderId == "1_2") {document.location.href = "02-1.htm";}
	if (folderId == "1_3") {document.location.href = "pro.html?prodt=review&bcate=ARTERRE";}

	if (folderId == "22"||folderId == "2_1") {document.location.href = "02-2.htm";}
	if (folderId == "22"||folderId == "2_2") {document.location.href = "02-2.htm";}
	if (folderId == "22"||folderId == "2_3") {document.location.href = "02-2.htm";}
	if (folderId == "2_4") {document.location.href = "pro.html?prodt=review&bcate=BOTLUX";}

	if (folderId == "23"||folderId == "3_1") {document.location.href = "02-3.htm";}
	if (folderId == "23"||folderId == "3_2") {document.location.href = "02-3.htm";}
	if (folderId == "23"||folderId == "3_3") {document.location.href = "02-3.htm";}
	if (folderId == "3_4") {document.location.href = "pro.html?prodt=review&bcate=LACOLLINE";}

	if (folderId == "24"||folderId == "4_1") {document.location.href = "02-4.htm";}
	if (folderId == "24"||folderId == "4_2") {document.location.href = "02-4.htm";}
	if (folderId == "24"||folderId == "4_3") {document.location.href = "02-4.htm";}
	if (folderId == "4_4") {document.location.href = "pro.html?prodt=review&bcate=SLA";}
	if (folderId == "25") {document.location.href = "02-5.htm";}
	if (folderId == "26") {document.location.href = "02-6.htm";}
	if (folderId == "27") {document.location.href = "02-7.htm";}
	if (folderId == "31") {document.location.href = "03-1.htm";}
	if (folderId == "32") {document.location.href = "03-2.htm";}
	if (folderId == "33") {document.location.href = "pro.html?prodt=review&bcate=LACOLLINE";}
	if (folderId == "34") {document.location.href = "pro.html?prodt=review&bcate=SLA";}
	//if (folderId == "35") {document.location.href = "pro.html?prodt=review&bcate=SLA";}

	if (folderId == "41") {document.location.href = "04-1.htm";}
	if (folderId == "42") {document.location.href = "magazine.html";}
	if (folderId == "43") {document.location.href = "gallery.html";}

	if (folderId == "51") {document.location.href = "05-1.htm";}
	if (folderId == "52") {document.location.href = "faq.html";}
	if (folderId == "email") {document.location.href = "#";}
	if (folderId == "sitemap") {document.location.href = "#";}
	if (folderId == "home") {document.location.href = "/";}
}


function Agency(num)
{
	switch(num)
	{
		//
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case ('λ'): document.location.href="/market.html?mode=search&category=λ"; //λ
			break;
		case ('뱸'): document.location.href="/market.html?mode=search&category=뱸"; //뱸
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case ('õ'): document.location.href="/market.html?mode=search&category=õ"; //õ
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		
		//8
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case ('泲'): document.location.href="/market.html?mode=search&category=泲"; //泲
			break;
		case ('泲'): document.location.href="/market.html?mode=search&category=泲"; //泲
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
		case (''): document.location.href="/market.html?mode=search&category="; //
			break;
	}
}

function elepopup(){

window.open('/admin/product/elementlist.php','elepopup','width=645,height=660,resizable=yes,toolbars=no,scrollbars=yes')
}

