function insertMovie(altTitle, movie){
	document.write('<object type="application/x-shockwave-flash" data="flash/'+movie+'.swf" width="499" height="350"><param name="movie" value="flash/'+movie+'.swf" /><param name="wmode" value="transparent"><p>'+altTitle+'<br /><a href="http://www.adobe.com/go/getflashplayer"> Please download the latest Flash Player to view site correctly. </a></p></object>');
}
function center(){
	var bg = document.getElementById("bg");
	var viewportwidth = getWidth();
	var viewportheight = getHeight();

	if(viewportheight<600){
		bg.style.top = 0+'px';
	}
	else{
		bg.style.top = (viewportheight/2 - 300)+'px';
	}
	if(viewportwidth<780){
		bg.style.left = 0+'px';
	}
	else{
		bg.style.left = (viewportwidth/2 - 390) + 'px';
	}
	bg.style.visibility= "visible";
}


function getWidth()
{
	if (self.innerHeight)
	{
		return self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
	{
		return document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		return document.body.clientWidth;
	}
}

function getHeight()
{
	if (self.innerHeight)
	{
		return self.innerHeight;
	}
	if (document.documentElement && document.documentElement.clientHeight)
	{
		return document.documentElement.clientHeight;
	}
	if (document.body)
	{
		return document.body.clientHeight;
	}
}
