window.resizeTo(1014,830);

function resize(){

var pagewidth = document.documentElement.clientWidth;
var pageheight = document.documentElement.clientHeight;

var picvar = document.getElementById('me');
var btmcol = document.getElementById('bottom_column');

var picratio = picvar.height/picvar.width;
var picratio2 = picvar.width/picvar.height;

if(pageheight < 700){
	btmcol.style.top = "446px";
}
else{
	btmcol.style.top = "";
};


if(pagewidth < 1014 && pageheight < 716){
	picvar.width = 1014;
	picvar.height = 716;
}
else{

if(picvar.width != pagewidth){
		picvar.width = pagewidth;
		picvar.height = picratio * pagewidth;
	};

pageheight = document.documentElement.clientHeight;

if(picvar.height < pageheight){
		picvar.height = pageheight;
		picvar.width = picratio2 * pageheight;
	};

};
}





bgimage = new Image();
bgimage.src = "images/bg2.jpg";

labelimage = new Image();
labelimage.src = "images/label_index.png";

setTimeout ( "bgpic()", 4500 );

function bgpic(){
	if(document.images){
		document.getElementById('me').src = bgimage.src;
		document.getElementById('load').style.display = 'none';
		
		document.getElementById('labelpic').src = labelimage.src;
		
	};
}
