var setPosition = function() {
	Ext.get('container').setHeight(Ext.lib.Dom.getViewHeight(true) - Ext.get('foot').getHeight());
	Ext.get('leftnavi').position('absolute', 10000);
	Ext.EventManager.onWindowResize(setPosition);
};
runOnLoad(setPosition);
/*
document.write('<style type="text/css">body{visibility:hidden;}</style>');
runOnLoad(function() {
	Ext.getDom(document.body).style.visibility = 'visible';
});
*/
var fs = getCookie('fs');
if (fs == '') {
	fs = 1;
};
var fc = getCookie('cl');
if (fc == '') {
	fc = 1;
};
var setSize = function(sz) {
	setCookie('fs', sz, '', '/');
	document.location.reload();
};

var setContrast = function(cl) {
	setCookie('cl', cl, '', '/');
	document.location.reload();
};

function embedmovie(src, w, h) {
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="'+w+'" height="'+h+'"'
	+ 'data="/flash/'+src+'"'
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="/flash/'+src+'" />'
	+ '<param name="loop" value="false"/>'
	+ '<param name="menu" value="false" />'
	+ '<param name="quality" value="high" />'
	+ '<param name="wmode" value="transparent" />'
	+ '<param name="bgcolor" value="#FFFFFF" />'
	+ '<embed src="/flash/'+src+'" quality="high" bgcolor="#FFFFFF" wmode="transparent" width="'+w+'" height="'+h+'" name="trailer" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'
	+ '<\/object>';
	document.write(oeTags);
}