
var sPath = window.location.pathname;
//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
function writeFlash(){

var str='';
str+='<table width=\"760\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">';
str+='	<tr>';
str+='		<td>';
str+='			<OBJECT codeBase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\"';
str+='				height=\"220\" width=\"760\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" VIEWASTEXT>';
str+='				<PARAM NAME=\"Movie\" VALUE=\"Belka.swf\">';

str+='				<PARAM NAME=\"Quality\" VALUE=\"high\">';
str+='				<embed src=\"Belka.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\"';
str+='					type=\"application\/x-shockwave-flash\" width=\"760\" height=\"220\"> <\/embed>';
str+='			<\/OBJECT>';
str+='		<\/td>';
str+='	<\/tr>';
str+='<\/table>';
str+='<table width=\"760\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">';
str+='	<tr>';
str+='		<td>';
str+='			<OBJECT title=\"menu_main\" codeBase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\"';
str+='				height=\"36\" width=\"760\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" VIEWASTEXT>';
str+='				<PARAM NAME=\"Movie\" VALUE=\"menu_main.swf\">';
		if (sPage == "company_info.aspx")
		{
				str+='				<PARAM NAME=\"flashvars\" VALUE=\"active=company_mc\">';
		}
		else if (sPage == "about_fotoware.aspx")
		{
				str+='				<PARAM NAME=\"flashvars\" VALUE=\"active=about_mc\">';
		}
		else if (sPage == "software_overview.aspx")
		{
				str+='				<PARAM NAME=\"flashvars\" VALUE=\"active=software_mc\">';
		}
		else if (sPage == "products_services.aspx")
		{
				str+='				<PARAM NAME=\"flashvars\" VALUE=\"active=products_mc\">';
		}
		else if (sPage == "help_support.aspx")
		{
			str+='				<PARAM NAME=\"flashvars\" VALUE=\"active=help_mc\">';
		}
str+='				<PARAM NAME=\"Quality\" VALUE=\"high\">';
str+='				<embed src=\"menu_main.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\"';
str+='					type=\"application\/x-shockwave-flash\" width=\"760\" height=\"36\"> <\/embed>';
str+='			<\/OBJECT>';
str+='		<\/td>';
str+='	<\/tr>';
str+='<\/table>';
document.write(str);

}