﻿// GNB 링크
function goUrl1() {window.open("/cmnt_talk_06.asp", "_self");}
function goUrl2() {window.open("/cmnt_talk_02_list.asp", "_self");} 
function goUrl3() {window.open("/bon_now_list01.asp", "_self");} 
function goUrl4() {window.open("/cmnt_birthday_04.asp", "_self");} 

function goUrl11() {window.open("/cmnt_mileage_01.asp", "_self");} 
function goUrl12() {window.open("/cmnt_mania_02.asp", "_self");} 
function goUrl13() {window.open("/cmnt_mania_04_list.asp", "_self");} 
function goUrl14() {window.open("/cmnt_mania_05_list.asp", "_self");}
function goUrl15() {window.open("/cmnt_mania_06.asp", "_self");}

function goUrl21() {window.open("/cmnt_event_01_list.asp", "_self");} 
function goUrl22() {window.open("/cmnt_event_02.asp", "_self");} 
function goUrl23() {window.open("/cmnt_event_03_list.asp", "_self");} 
function goUrl24() {window.open("/cmnt_event_11_list.asp", "_self");} 
function goUrl25() {window.open("/cmnt_event_09_list.asp", "_self");} 
function goUrl26() {window.open("/cmnt_event_12_list.asp", "_self");} 
function goUrl27() {window.open("/cmnt_event_08.asp", "_self");} 

function goUrl31() {window.open("/cmnt_cs_05_list.asp", "_self");} 
function goUrl32() {window.open("/cmnt_cs_01_list.asp", "_self");} 
function goUrl33() {window.open("/cmnt_cs_02_01.asp", "_self");} 
function goUrl34() {window.open("/cmnt_cs_04_list.asp", "_self");} 


// QUICK 링크
function quick1() {window.open("http://www.bonjuk.co.kr/default.asp", "_blank");}     // 본죽
function quick2() {window.open("http://www.bonbab.co.kr", "_blank");}                 // 본비빔밥
function quick3() {window.open("http://www.bonguksu.co.kr", "_blank");}               // 본국수대청
function quick4() {window.open("http://changup.bonfamily.co.kr", "_blank");}          // 창업안내
function quick5() {window.open("http://fran.bonfamily.co.kr", "_blank");}             // 가맹점
function quick6() {window.open("http://community.bonfamily.co.kr", "_blank");}        // 커뮤니티
//function quick7() {window.open("http://www.bonenjoy.co.kr/", "_blank");}              // 본앤조이
function quick8() {window.open("http://www.bonmall.co.kr", "_blank");}                // 본몰
function quick9() {window.open("http://www.bonpointcard.co.kr/", "_blank");}          // 본포인트카드
function quick10() {window.open("http://campaign.bonfamily.co.kr", "_blank");}        // 캠페인



// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드, 스케일)
function flashWrite(url,w,h,id,bg,vars,win, scale){

	// 플래시 코드 정의
	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+"' />"+
	"<param name='scale' value="+scale+" />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' scale='"+scale+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	
	"</object>";

	// 플래시 코드 출력
	document.write(flashStr);

}

function fs() {
    if(document.getElementById("fs").style.display == "none") {
       document.getElementById("fs").style.display = "block";
       return false;
    }
    if(document.getElementById("fs").style.display == "block") {
       document.getElementById("fs").style.display = "none";
       return false;
    }
}





// 지정위치에서 스크롤바를 따라 다님.
var persistclose=0; //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 902; //set x offset of bar in pixels
var startY = 151; //set y offset of bar in pixels

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

var verticalpos="fromtop"

function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}

function staticbar()
{

	if (document.getElementById("topbar"))
	{

		var ns = (navigator.appName.indexOf("Netscape") != -1);
		var d = document;
		function ml(id){
			var el=d.getElementById(id);
			if (!persistclose || persistclose && get_cookie("remainclosed")=="")
			el.style.visibility="visible"
			if(d.layers)el.style=el;
			
			//el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
			el.sP=function(x,y){this.style.top=(y-165)+"px";};
			el.x = startX;
			if (verticalpos=="fromtop")
			el.y = startY;
			else{
			el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
			el.y -= startY;
			}
			return el;
		}
		window.stayTopLeft=function(){
			if (verticalpos=="fromtop"){
			var pY = ns ? pageYOffset : iecompattest().scrollTop;
			ftlObj.y += (pY + startY - ftlObj.y)/8;
			}
			else{
			var pY = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
			ftlObj.y += (pY - startY - ftlObj.y)/8;
			}
			ftlObj.sP(ftlObj.x, ftlObj.y);
			setTimeout("stayTopLeft()", 10);
		}
		ftlObj = ml("topbar");
		stayTopLeft();
	}
    
}


if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
