// Developed by MEGA DESIGN-STUDIO

function flash (version, filename, name, width, height, wmode, bgcolor, menu, flashvars) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>");
	document.write("<param name='FlashVars' value='"+flashvars+"' />");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='wmode' value='"+wmode+"' />");
	document.write("<!-- Flash FIX v0.1 | www.mega.by -->");
	document.write("<param name='bgcolor' value='"+bgcolor+"' />");
	document.write("<param name='salign' value='lt' />");
	document.write("<param name='movie' value='"+filename+"' /><param name='menu' value='"+menu+"' /><param name='quality' value='high' /><embed src='"+filename+"' wmode='"+wmode+"' menu='"+menu+"' quality='high' FLashVars='"+flashvars+"' salign='lt' width='"+width+"' height='"+height+"' bgcolor='"+bgcolor+"' name='"+name+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function chcolor1(i) {
		document.getElementById("td" + i).style.backgroundColor = "#EAEAEA";
		if(document.all) {
			document.getElementById("td" + i).filters.alpha.opacity="50";
		} else {
			document.getElementById("td" + i).style.opacity="0.5";
		}
}

function chcolor2(i) {
		document.getElementById("td" + i).style.backgroundColor = "";
		if(document.all) {
			document.getElementById("td" + i).filters.alpha.opacity="100";
		} else {
			document.getElementById("td" + i).style.opacity="1";
		}
}

var menuImages = new Array();

if(document.images) {
	function preloadedImage(imgURI) {
		var newImage = new Image();
		newImage.src = imgURI;
		return newImage;
	}
	menuImages['home'] = [preloadedImage('/_img/home.gif'), preloadedImage('/_img/home-a.gif')];
	menuImages['map'] = [preloadedImage('/_img/map.gif'), preloadedImage('/_img/map-a.gif')];
	menuImages['mail'] = [preloadedImage('/_img/mail.gif'), preloadedImage('/_img/mail-a.gif')];
}

function overItem(itemName) {
	if(menuImages[itemName] && document.images[itemName + 'Img']) {
		document.images[itemName + 'Img'].src = menuImages[itemName][1].src;
	}
}

function outItem(itemName, imagePtr) {
	if(menuImages[itemName] && document.images[itemName + 'Img']) {
		document.images[itemName + 'Img'].src = menuImages[itemName][0].src;
	}
}
