//Additional scripts for Crosso Cordura News template

function RunSWFLogo(template_dir){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/');
	document.writeln('flash/swflash.cab#version=6,0,29,0" width="240" height="97">');
	document.writeln('	<param name="movie" value="'+template_dir+'/images/logo.swf">');
	document.writeln('	<param name="quality" value="high">');
	document.writeln('	<param name="LOOP" value="false">');
	document.write('	<embed src="'+template_dir+'/images/logo.swf" width="240" ');
	document.write('height="97" loop="false" quality="high" pluginspage="http://www.macromedia.');
	document.writeln('com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
}

function getW(){
	var w;
	if(document.innerWidth){ w=document.innerWidth;
	} else if(document.documentElement.clientWidth){ w=document.documentElement.clientWidth;
	} else if(document.body){ w=document.body.clientWidth; }
	return w;
}
function getH(){
	var h;
	if(document.innerHeight){ h=document.innerHeight;
	} else if(document.documentElement.clientHeight){ h=document.documentElement.clientHeight;
	} else if(document.body){ h=document.body.clientHeight; }
	return h;
}

function setHeight(){
	var tb = document.getElementById("mainTable");
	var h = getH();
	tb.style.height = h + "px";
	//alert(h);
}
