
function setVariables() {
	imgwidth=21;   //ÀÌ¹ÌÁö °¡·Î»çÀÌÁî
	imgheight=13;   //ÀÌ¹ÌÁö ¼¼·Î»çÀÌÁî
	if (navigator.appName == "Netscape") {
		horz=".left";
		vert=".top";
		docStyle="document.";
		styleDoc="";
		innerW="window.innerWidth";
		innerH="window.innerHeight";
		offsetX="window.pageXOffset";
		offsetY="window.pageYOffset";
	}else{
		horz=".pixelLeft";
		vert=".pixelTop";
		docStyle="";
		styleDoc=".style";
		innerW="document.body.clientWidth";
		innerH="document.body.clientHeight";
		offsetX="document.body.scrollLeft";
		offsetY="document.body.scrollTop";
	}
}

function checkLocation() {
	objectXY="branding";
	var availableX=eval(innerW);
	var availableY=eval(innerH);
	var currentX=eval(offsetX);
	var currentY=eval(offsetY);
	x=854;//availableX-(imgwidth+30);		// ºê¶ó¿ìÀú ¿ÞÂÊÀ¸·ÎºÎÅÍ 854		// °¡´ÉÇÑ°¡·Î»çÀÌÁî - (ÀÌ¹ÌÁö»çÀÌÁî + 10);
	y=availableY-(imgheight+170)+currentY;	
	evalMove();
	setTimeout("checkLocation()",10);
}

function evalMove() {
	eval(docStyle + objectXY + styleDoc + horz + "=" + x);
	eval(docStyle + objectXY + styleDoc + vert + "=" + y);
}

/*
function setVariables() {
imgwidth=21;   //ÀÌ¹ÌÁö °¡·Î»çÀÌÁî
imgheight=13;   //ÀÌ¹ÌÁö ¼¼·Î»çÀÌÁî
if (navigator.appName == "Netscape") {
horz=".left";
vert=".top";
docStyle="document.";
styleDoc="";
innerW="window.innerWidth";
innerH="window.innerHeight";
offsetX="window.pageXOffset";
offsetY="window.pageYOffset";
}
else {
horz=".pixelLeft";
vert=".pixelTop";
docStyle="";
styleDoc=".style";
innerW="document.body.clientWidth";
innerH="document.body.clientHeight";
offsetX="document.body.scrollLeft";
offsetY="document.body.scrollTop";
 }
}
function checkLocation() {
objectXY="branding";
var availableX=eval(innerW);
var availableY=eval(innerH);
var currentX=eval(offsetX);
var currentY=eval(offsetY);
x=854;//availableX-(imgwidth+30);		// ºê¶ó¿ìÀú ¿ÞÂÊÀ¸·ÎºÎÅÍ 854		// °¡´ÉÇÑ°¡·Î»çÀÌÁî - (ÀÌ¹ÌÁö»çÀÌÁî + 10);
y=availableY-(imgheight+115)+currentY;	*/
/*
alert(window.document.body.offsetHeight+"=="+y)
if(y>window.document.body.offsetHeight-145){
	y=window.document.body.offsetHeight-145
	}
	*/
/*evalMove();
setTimeout("checkLocation()",2500);
}
function evalMove() {
eval(docStyle + objectXY + styleDoc + horz + "=" + x);
eval(docStyle + objectXY + styleDoc + vert + "=" + y);
}
*/
function openWin(n,dir){
if(!n){
	n=0;
}
dir="/flash/"
var url=dir+"BofC/main.jsp?sel="+n+"&dir="+dir
cw=950
ch=490
    var sw=screen.availWidth;
    var sh=screen.availHeight;
    var px=(sw-cw)/2;
   var py=(sh-ch)/2;
  window.open(''+url+'','win','left='+px+',top='+py+',width='+cw+',height='+ch+',toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no');
}

function chgingjoFamily(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
function openChangjoin(){
chgingjoFamily('win', '/changjoin/login.jsp', 0, 0, screen.availWidth, screen.availHeight-10, 1, 0, 0, 'scrollbar', 1)
}
