<!--//
var objW = 955;
var objH = 600;

var shpW = 560;
var shpH = 480;

function winSizeChg(){
	scrnW = screen.availWidth;
	scrnH = screen.availHeight;
	if(getBrowserName() == "Opera"){
		window.moveTo(0,0);
		window.resizeTo(objW+50,objH+50);
		setObj();
	}else{
		window.moveTo(0,0);
		window.resizeTo(scrnW,scrnH);
		setObj();
	}
}

function opnWindow(url,nam){
	if(getBrowserName() == "Opera"){
		winW = objW;
		winH = objH;
	}else if(getBrowserName() == "Explorer" && getOSType() == "MacOS"){
		winW = objW;
		winH = objH;
	}else{
		winW = screen.availWidth;
		winH = screen.availHeight;
	}
	if(nam == "shopList"){
		if(getBrowserName() == "Explorer" && getOSType() == "MacOS"){
			winW = 560;
			winH = 480;
		}else{
			winW = 640;
			winH = 480;
		}
	}
	window.open(url,nam,"toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width="+winW+",height="+winH+",top=0,left=0");
}


function setObj(){
	scrnW = screen.availWidth;
	scrnH = screen.availHeight;
	if(getBrowserName() == "Explorer"){
		winW = document.body.clientWidth;
		winH = document.body.clientHeight;
		centerX = (winW-objW)*0.5;
		centerY = (winH-objH)*0.5;
		fla_area.style.top = centerY+"px";
		fla_area.style.left = centerX+"px";

	}else if(getBrowserName() == "Netscape"){
		winW = window.innerWidth;
		winH = window.innerHeight;
		centerX = (winW-objW)*0.5;
		centerY = (winH-objH)*0.5;
		document.getElementById("fla_area").style.top = centerY+"px";
		document.getElementById("fla_area").style.left = centerX+"px";
	}else{
		winW = window.innerWidth;
		winH = window.innerHeight;
		centerX = (winW-objW)*0.5;
		centerY = (winH-objH)*0.5;
		fla_area.style.top = centerY+"px";
		fla_area.style.left = centerX+"px";
	}
}

function setShop(){
	if(getBrowserName() == "Explorer"){
		winW = document.body.clientWidth;
		winH = document.body.clientHeight;
		centerX = (winW-shpW)*0.5;
		centerY = (winH-shpH)*0.5;
		shop_area.style.top = centerY+"px";
		shop_area.style.left = centerX+"px";

	}else if(getBrowserName() == "Netscape"){
		winW = window.innerWidth;
		winH = window.innerHeight;
		centerX = (winW-shpW)*0.5;
		centerY = (winH-shpH)*0.5;
		document.getElementById("shop_area").style.top = centerY+"px";
		document.getElementById("shop_area").style.left = centerX+"px";
	}else{
		winW = window.innerWidth;
		winH = window.innerHeight;
		centerX = (winW-shpW)*0.5;
		centerY = (winH-shpH)*0.5;
		shop_area.style.top = centerY+"px";
		shop_area.style.left = centerX+"px";
	}
}


//-->


