//menu.js

var filename="/flash/menu.swf";
var query="";
query += "?homepage=" + ((isHomePage)?"true":"false");
query += "&category=" + category;
query += "&" + Math.random(100);
var width = 756;
var height = 600;
var smallHeight = (isHomePage)?56:135;

s = '\
	<object onmouseout="makeSmall();" id="menu" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" style="width:'+width+'px;height:'+smallHeight+'px;" align="middle">\
	<param name="allowScriptAccess" value="sameDomain" />\
	<param name="movie" value="'+filename+query+'" />\
	<param name="quality" value="high" />\
	<param name="scale" value="noscale" />\
	<param name="bgcolor" value="#DDDDDD" />\
	<param name="wmode" value="transparent"/>\
	<param name="salign" value="lt" />\
	<embed onmouseout="makeSmall()" id="menuEmbed" src="'+filename+query+'" quality="high" wmode="transparent" bgcolor="#000000" style="width:'+width+'px;height:'+smallHeight+'px;" align="middle" scale="noscale" salign="lt" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\
	</object>\
';
document.write(s)
window.status = category

function getE(el) { return document.getElementById(el) }

function makeLarge() { resizeFlashObject(height)}
function makeSmall() { resizeFlashObject(smallHeight) }

function resizeFlashObject(h) {
	var m = getE('menu');
	var mE = getE('menuEmbed');
	m.style.height = h + "px"
	if (mE) mE.style.height = h + "px"
}