// this function sets the width of the Proofs area to 975 if there is enough space, otherwise it keeps it at the default 780px
function sizeViewport(myObj,mySize) {
var x,y;
if (self.innerHeight) // all except Explorer 
{
	x = self.innerWidth;
	y = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode
{
	x = document.documentElement.clientWidth;
	y = document.documentElement.clientHeight;
} else if (document.body) // other Explorers
{
	x = document.body.clientWidth;
	y = document.body.clientHeight;
}
// THIS IS THE ACTUAL RESIZING OF THE VIEWPORT
	if(x>975) { document.getElementById("proofs").style.width = 975 + "px"; }
}


// swap Image function for client area
function swapImg(id,file) { 
	if(document.getElementById(id)) {
		document.getElementById(id).src="assets/images/gallery/"+file;
	}
}

function insertFlash() {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="280" height="187" id="laidlawyouthtrust" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="assets/flash/home.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="assets/flash/home.swf" quality="high" bgcolor="#000000" width="280" height="187" name="kensharp" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}