var flashvars = {};
flashvars.url_ = "xml_menu_gen.php";
flashvars.systemUseCodePage = "false";
flashvars.targetDefault = "_blank";
if (focus_menu == "0"){
	flashvars.focusMenu = "0";
}else{
	flashvars.focusMenu = focus_menu;
}

if ((browserDetect[0] == 'msie') && (browserDetect[1] == '6.0')){
	flashvars.stageHeight_ = '500';
}
var params = {};
params.play = "true";
params.loop = "true";
params.menu = "false";
params.quality = "high";
params.salign = "tl";
params.scale = "noscale";
params.wmode = "transparent";
params.bgcolor = "#ffffff";
params.devicefont = "false";
params.allowfullscreen = "false";
params.allowscriptaccess = "sameDomain";
var attributes = {};
attributes.id = "menu";
attributes.name = "menu";
attributes.align = "top";
var x = "";
if ((browserDetect[0] == 'msie') && (browserDetect[1] == '6.0')){
	x = "500";
}else{
	x = "100%";
}
swfobject.embedSWF("flash/menu.swf", "MenuContent", "960px", x, "10.0.0", "flash/expressInstall.swf", flashvars, params, attributes);




if (typeof(browserDetect) == 'undefined') {
	var browserDetect = detectBrowser('', '');
}

if (typeof(myVersionInfo) == 'undefined') {
	var myVersionInfo = detectDoctype();
}

var flashMenuWidth = 960;
var flashMenu = document.getElementById('FlashMenu');
function menuMouseOver() {
	var documentAreaShowSize = getDocumentAreaShowSize();
	var height_ =  documentAreaShowSize[1];
	
	if ((browserDetect[0] == 'msie') && (browserDetect[1] == '6.0')){
		flashMenu.style.height = "500px";
	}else{
		flashMenu.style.height = (height_ - parseInt(flashMenu.style.top)) + 'px';
	}
	

	if ((browserDetect[0] != 'msie') && (myVersionInfo != null)) {
		var width_ = documentAreaShowSize[0];
		documentAreaShowSize = getDocumentAreaShowSize();
		var width2 = documentAreaShowSize[0];
		if (width_ != width2) {
			// Horizontal Scroll
			
			height_ -= 17;
			flashMenu.style.height = (height_ - parseInt(flashMenu.style.top)) + 'px';
		}
	}

	return true;
}

function menuMouseOut() {
	flashMenu.style.height = '29px';
}

function menuStageResize() {
	var documentAreaShowSize = getDocumentAreaShowSize();
	var width_ = documentAreaShowSize[0];
	// var height_ =  documentAreaShowSize[1];

	if (width_ < flashMenuWidth) {
		flashMenu.style.width = flashMenuWidth + 'px';
	}
	else {
		flashMenu.style.width = '100%';
	}
}

if (window.attachEvent) {
	window.attachEvent('onresize', menuStageResize);
}
else {
	window.addEventListener('resize', menuStageResize, false);
}
