
var NN3 = false;

 		imm0 = new Image(89,50);
        imm0.src = "/images/main.gif";
        imm0on = new Image(89,50);
        imm0on.src = "/images/main_on.gif"; 

		imm1 = new Image(88,42);
        imm1.src = "/images/company.gif";
        imm1on = new Image(88,42);
        imm1on.src = "/images/company_on.gif";

		imm2 = new Image(89,43);
        imm2.src = "/images/shop.gif";
        imm2on = new Image(89,43);
        imm2on.src = "/images/shop_on.gif";

		imm3 = new Image(89,43);
        imm3.src = "/images/services.gif";
        imm3on = new Image(89,43);
        imm3on.src = "/images/services_on.gif";
        		
		imm4 = new Image(89,50);
        imm4.src = "/images/products.gif";
        imm4on = new Image(89,50);
        imm4on.src = "/images/products_on.gif";
				
		imm5 = new Image(89,50);
        imm5.src = "/images/downloads.gif";
        imm5on = new Image(89,50);
        imm5on.src = "/images/downloads_on.gif";
        
		imm6 = new Image(89,50);
        imm6.src = "/images/newsgrups.gif";
        imm6on = new Image(89,50);
        imm6on.src = "/images/newsgrups_on.gif";
 
 		imm7 = new Image(89,50);
        imm7.src = "/images/training.gif";
        imm7on = new Image(89,50);
        imm7on.src = "/images/training_on.gif";
 
 		imm8 = new Image(89,50);
        imm8.src = "/images/support.gif";
        imm8on = new Image(89,50);
        imm8on.src = "/images/support_on.gif";                      

 		imm9 = new Image(89,50);
        imm9.src = "/images/contact.gif";
        imm9on = new Image(89,50);
        imm9on.src = "/images/contact_on.gif";  
        
 		imm10 = new Image(89,50);
        imm10.src = "/images/map.gif";
        imm10on = new Image(89,50);
        imm10on.src = "/images/map_on.gif";          
			
	function on3(name)   {
        document[name].src = eval(name + "on.src");
}
function off3(name)  {
        document[name].src = eval(name + ".src");
}
NN3 = true;

function on(name)  {
        if (NN3) on3(name);
}
function off(name)  {
        if (NN3) off3(name);
}

function doSubmit()
{
  document.forms[0].submit();
}

function openseal(id) {
  window.open(""+id+"","seal"," height=420 ,width=560, top=10, left=10 menubar=0,resizable=0,scrollbars=1,status=0");
}  

function openWebstat() {
  window.open("http://wstat.voitek.net/livestats","webstat"," height=746 ,width=1024, top=10, left=10 menubar=0,resizable=0,scrollbars=1,status=0");
}

function openFlashIntro() {
  window.open("http://www.voitek.net/intro.htm","introflash"," height=440 ,width=600, top=20, left=20 menubar=0,resizable=0,scrollbars=0,status=0");
}

function openSMS(id,id1,id2,id3) {
  window.open("https://www.voitek.net/scripts/isapivnt.dll/smsform"+id+"", ""+id3+"", "width="+id1+", height="+id2+",menubar=0,resizable=0,scrollbars=0,status=1");
}


	//var rootUrl = '/menu/';
	var rootUrl = '/menu/en/root.xml';
	function go(where)
	{
	
		if (where == "pc") {
			myRef = window.open('http://rsstv.voitek.net/pc/menu.html?rooturl=' + escape(rootUrl),'myRef',
				'left=20,top=20,width=890,height=600,toolbar=0,resizable=0');
			try {
				myRef.focus();
			} catch (err) {
				alert('If you have installed a popup-blocker, turn it off, or hold down the Ctrl-key, and try again.');
			}
		} 
		else {
			document.location.href = where + '/menu.html?rooturl=' + escape(rootUrl) + '&rnd=' + Math.random();
		}
	}
	
	function init()
	{
		if (navigator.appVersion.indexOf("MSNTV") != -1) {
			go('msntv');
			return;
		}
	
		if (navigator.appVersion.indexOf("Media Center") != -1) {
			go('mce');
			return;
		}
	
		var thomson = document.getElementById("thomson");
		try {
			var id = thomson.getId();
			go('thomson');
		} 
		catch(e) {
		}
	}


