// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå) 
function flashWrite(url,w,h,id,bg,vars,win){ 
// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ 
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='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+ 
"<param name='allowScriptAccess' value='always' />"+ 
"<param name='movie' value='"+url+"' />"+ 
"<param name='FlashVars' value='"+vars+"' />"+ 
"<param name='wmode' value='"+win+"' />"+ 
"<param name='menu' value='false' />"+ 
"<param name='quality' value='high' />"+ 
"<param name='bgcolor' value='"+bg+"' />"+ 
"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+ 
"</object>"; 
// ÇÃ·¡½Ã ÄÚµå Ãâ·Â 
document.write(flashStr); 
} 


// µû¶ó´Ù´Ï´Â Äü¸Þ´º
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;

<!-- STALKER CODE -->

function heartBeat() {
	if(IE) {
		  diffY = document.body.scrollTop;
		  diffX = 0;
	       }
    if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY) {
                percent = .1 * (diffY - lastScrollY);
                if(percent > 0) percent = Math.ceil(percent);
                else percent = Math.floor(percent);
		if(IE) document.all.quicker.style.pixelTop += percent;
		if(NS) document.quicker.top += percent;
                lastScrollY = lastScrollY + percent;
    }
	if(diffX != lastScrollX) {
		percent = .1 * (diffX - lastScrollX);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.quicker.style.pixelLeft += percent;
		if(NS) document.quicker.top += percent;
		lastScrollY = lastScrollY + percent;
	}
}
if(NS || IE) action = window.setInterval("heartBeat()",1);



/////////////////// ¸Þ´º ////////////////////
function menu(menucode){
	if(menucode == "101"){location.href("/company/company01.php");}
	if(menucode == "102"){location.href("/company/company02.php");}
	if(menucode == "103"){location.href("/company/company03.php");}
	if(menucode == "104"){location.href("/company/company04.php");}
	if(menucode == "105"){location.href("/company/company05.php");}
	if(menucode == "106"){location.href("/company/company06.php");}


	if(menucode == "201"){location.href("/product/product.php?main_position=1");}
	if(menucode == "202"){location.href("/product/product.php?main_position=2");}
	if(menucode == "203"){location.href("/product/product.php?part_idx=1153379341");}
	if(menucode == "204"){location.href("/product/product.php?part_idx=1153379354");}
	if(menucode == "205"){location.href("/product/product.php?part_idx=1153379392");}
	if(menucode == "206"){location.href("/product/product.php?part_idx=1153379403");}
	if(menucode == "207"){location.href("/product/product.php?part_idx=1153379412");}
	if(menucode == "208"){location.href("/product/product.php?part_idx=1156141039");}

	
	if(menucode == "301"){location.href("/shop/bbs_list.php?code=notice2");}
	if(menucode == "302"){location.href("/shop/bbs_list.php?code=notice3");}
	if(menucode == "303"){location.href("/information/information03.php");}
	if(menucode == "304"){location.href("/information/information04.php");}
	if(menucode == "305"){location.href("/information/information05.php");}
	if(menucode == "306"){location.href("/information/information06.php");}
	if(menucode == "307"){location.href("/information/information07.php");}


	if(menucode == "401"){location.href("/event/event01.php");}
	if(menucode == "402"){location.href("/event/event02.php");}
	if(menucode == "403"){location.href("/shop/bbs_list.php?code=event_01");}
	if(menucode == "404"){location.href("/shop/bbs_list.php?code=idea");}


	if(menucode == "501"){location.href("/customer/customer01.php");}
	if(menucode == "502"){location.href("/shop/bbs_list.php?code=board2");}

	if(menucode == "601"){location.href("/shop/bbs_list.php?code=board3");}

 
	if(menucode == "home"){location.href("/index/_main.php");}
	if(menucode == "sitemap"){location.href("/member/sitemap.php");}
	if(menucode == "login"){location.href("/member/login.php");}
	if(menucode == "logout"){location.href("/shop/login_ok.php?logout=1");}
	/*if(menucode == "admin"){
		window.open('http://seoul.hosting2003.co.kr/admin/','one','status=no,toolbar=no,resizable=no,scrollbars=yes, menubar=no,width=900,height=600,top=10,left=10');}*/
	/*if(menucode == "login"){
		window.open('/adm.php','one','status=no,toolbar=no,resizable=no,scrollbars=yes, menubar=no,width=800,height=600,top=10,left=10');}*/
	if(menucode == "contact"){location.href("mailto:master@seoul-food.co.kr");}
}
/////////////////////////////////////////////


///////////////////  Äü¸Þ´º  ////////////////////
function quick(menucode){
	if(menucode == "11"){window.open('http://www.sffd.co.kr');}
	if(menucode == "12"){window.open("http://suwon.dyndns.org");}
	if(menucode == "13"){location.href("/information/information06.php");}
	if(menucode == "14"){window.open("http://www.sf-fd.com/");}
}
/////////////////////////////////////////////


///////////////////  ¸ÞÀÎÁ¦Ç° ·Ñ¸µ  ////////////////////
function mainpro(menucode){
	if(menucode == "11"){location.href("/product/product01.php");}
	if(menucode == "12"){location.href("/product/product02.php");}
	if(menucode == "13"){location.href("/product/product03.php");}
}
/////////////////////////////////////////////


///////////////////  ¸ÞÀÎ Á¦Ç°¼Ò°³  ////////////////////
function product(menucode){
	if(menucode == "11"){location.href("/product/product.php?part_idx=1153379341");}
	if(menucode == "12"){location.href("/product/product.php?part_idx=1153379354");}
	if(menucode == "13"){location.href("/product/product.php?part_idx=1153379392");}
	if(menucode == "14"){location.href("/product/product.php?part_idx=1153379403");}
	if(menucode == "15"){location.href("/product/product.php?part_idx=1153379412");}
	if(menucode == "16"){location.href("/product/product.php?part_idx=1156141039");}
}
/////////////////////////////////////////////



/////////////////// È¸»ç¼Ò°³ ////////////////////
function L_company(menucode){
	if(menucode == "11"){location.href("/company/company01.php");}
	if(menucode == "12"){location.href("/company/company02.php");}
	if(menucode == "13"){location.href("/company/company03.php");}
	if(menucode == "14"){location.href("/company/company04.php");}
	if(menucode == "15"){location.href("/company/company05.php");}
	if(menucode == "16"){location.href("/company/company05.php");}
	if(menucode == "17"){location.href("/company/company05_2.php");}
	if(menucode == "18"){location.href("/company/company05_3.php");}
	if(menucode == "19"){location.href("/company/company05_4.php");}
	if(menucode == "20"){location.href("/company/company05_5.php");}
	if(menucode == "21"){location.href("/shop/bbs_list.php?code=notice1");}
	if(menucode == "22"){location.href("/company/company06.php");}
}
/////////////////////////////////////////////


///////////////////  Á¦Ç°¼Ò°³  ////////////////////
function L_product(menucode){
	if(menucode == "11"){location.href("/product/product.php?main_position=1");}
	if(menucode == "12"){location.href("/product/product.php?main_position=2");}
	if(menucode == "13"){location.href("/product/product.php?part_idx=1153379341");}
	if(menucode == "14"){location.href("/product/product.php?part_idx=1153379354");}
	if(menucode == "15"){location.href("/product/product.php?part_idx=1153379392");}
	if(menucode == "16"){location.href("/product/product.php?part_idx=1153379403");}
	if(menucode == "17"){location.href("/product/product.php?part_idx=1153379412");}
	if(menucode == "18"){location.href("/product/product.php?part_idx=1156141039");}
}
/////////////////////////////////////////////


///////////////////  »çÀÌ¹öÈ«º¸½Ç  ////////////////////
function L_information(menucode){
	if(menucode == "11"){location.href("/shop/bbs_list.php?code=notice2");}
	if(menucode == "12"){location.href("/shop/bbs_list.php?code=notice3");}
	if(menucode == "13"){location.href("/information/information03.php");}
	if(menucode == "14"){location.href("/information/information04.php");}
	if(menucode == "15"){location.href("/information/information05.php");}
	if(menucode == "16"){location.href("/information/information06.php");}
	if(menucode == "17"){location.href("/information/information07.php");}
}
/////////////////////////////////////////////


///////////////////  ÀÌº¥Æ®  ////////////////////
function L_event(menucode){
	if(menucode == "11"){location.href("/event/event01.php");}
	if(menucode == "12"){location.href("/event/event02.php");}
	if(menucode == "13"){location.href("/shop/bbs_list.php?code=event_01");}
	if(menucode == "14"){location.href("/shop/bbs_list.php?code=idea");}
}
/////////////////////////////////////////////


///////////////////  °í°´Áö¿ø  ////////////////////
function L_customer(menucode){
	if(menucode == "11"){location.href("/customer/customer01.php");}
	if(menucode == "12"){location.href("/shop/bbs_list.php?code=board2");}
}
/////////////////////////////////////////////


///////////////////  °í°´¼¾ÅÍ ////////////////////
function L_member(menucode){
	if(menucode == "11"){location.href("/member/login.php");}
	if(menucode == "12"){location.href("/member/member.php");}
	if(menucode == "13"){location.href("/member/sitemap.php");}
	if(menucode == "14"){location.href("/member/policy.php");}
}
/////////////////////////////////////////////


///////////////////  °í°´¼¾ÅÍ ÀÏ¹ÝÈ¸¿ø ·Î±×ÀÎ  ////////////////////
function L_member2(menucode){
	if(menucode == "11"){location.href("/shop/login_ok.php?logout=1");}
	if(menucode == "12"){location.href("/member/member3.php");}
	if(menucode == "13"){location.href("/member/sitemap.php");}
	if(menucode == "14"){location.href("/member/policy.php");}
	if(menucode == "15"){location.href("/member/seceder.php");}
}
/////////////////////////////////////////////


///////////////////  °í°´¼¾ÅÍ »ç¿ø ·Î±×ÀÎ  ////////////////////
function L_member3(menucode){
	if(menucode == "11"){location.href("/shop/login_ok.php?logout=1");}
	if(menucode == "12"){location.href("/member/member3.php");}
	if(menucode == "13"){location.href("/shop/bbs_list.php?code=board3");}
	if(menucode == "14"){location.href("/member/sitemap.php");}
	if(menucode == "15"){location.href("/member/policy.php");}
	if(menucode == "16"){location.href("/member/seceder.php");}
}
/////////////////////////////////////////////


///////////////////  ÄÚ¾Ë¶ó ÅÇ  ////////////////////
function product_bar1(menucode){
	if(menucode == "101"){location.href("/product/product.php?part_idx=1153379341");}
	if(menucode == "102"){location.href("/product/product.php?part_idx=1153379341&idx=6");}
	if(menucode == "103"){location.href("/product/product.php?part_idx=1153379341&idx=7");}
	if(menucode == "104"){location.href("/product/product.php?part_idx=1153379341&idx=8");}
	if(menucode == "105"){location.href("/product/product.php?part_idx=1153379341&idx=9");}
	if(menucode == "106"){location.href("/product/product.php?part_idx=1153379341&idx=10");}
	if(menucode == "107"){location.href("/product/product.php?part_idx=1153379341&idx=11");}
	if(menucode == "108"){location.href("/product/product.php?part_idx=1153379341&idx=12");}
	if(menucode == "109"){location.href("/product/product.php?part_idx=1153379341&idx=13");}
}
/////////////////////////////////////////////


///////////////////  ¸àÄ¡Æ® ÅÇ  ////////////////////
function product_bar2(menucode){
	if(menucode == "101"){location.href("/product/product.php?part_idx=1153379354");}
	if(menucode == "102"){location.href("/product/product.php?part_idx=1153379354&idx=17");}
	if(menucode == "103"){location.href("/product/product.php?part_idx=1153379354&idx=18");}
	if(menucode == "104"){location.href("/product/product.php?part_idx=1153379354&idx=19");}
	if(menucode == "105"){location.href("/product/product.php?part_idx=1153379354&idx=20");}
	if(menucode == "106"){location.href("/product/product.php?part_idx=1153379354&idx=21");}
	if(menucode == "107"){location.href("/product/product.php?part_idx=1153379354&idx=22");}
	if(menucode == "108"){location.href("/product/product.php?part_idx=1153379354&idx=23");}
	if(menucode == "109"){location.href("/product/product.php?part_idx=1153379354&idx=24");}
}
/////////////////////////////////////////////


