// JavaScript Document
window.onload=init;

function ge(id){
	return document.getElementById(id);	
}
var screenWidth, screenHeight;
function init(){
	fixWidth();
	ge('main').style.visibility="visible";
	ge('unlike').onclick=function(){
		this.blur();
	}
	ge('flash').onclick=function(){
		this.blur();
		screenWidth=window.screen.width;
		screenHeight=window.screen.height;
		if(window.screen.width<=1305)
			var winWidth=screenWidth;
		else
			var winWidth=1305;
		if(window.screen.height<=956)
			var winHeight=screenHeight;
		else
			var winHeight=956;
		var galWin=window.open('/flash.html','','height='+winHeight+', width='+winWidth+', scrollbars=yes');	
		return false;
	}
	ge('html').onclick=function(){
		this.blur();
		screenWidth=window.screen.width;
		screenHeight=window.screen.height;
		if(window.screen.width<=1305)
			var winWidth=screenWidth;
		else
			var winWidth=1305;
		if(window.screen.height<=956)
			var winHeight=screenHeight;
		else
			var winHeight=956;
		var galWin=window.open('/company/','','height='+winHeight+', width='+winWidth+', scrollbars=yes');	
		return false;
	}
}

function fixWidth(){
	if(ge('main').offsetWidth<1100){
		ge('main').style.background="url(/images/enterBg.jpg) no-repeat -100px 0";
		ge('logoEnterBox').style.paddingLeft="325px";
	}else{
		ge('main').style.background="url(/images/enterBg.jpg) no-repeat 0 0";
		ge('logoEnterBox').style.paddingLeft="425px";
	}
}
