
initNav = function() {
	var navRoot = document.getElementById("quicklinks");
	if (navRoot) {
	var lis = navRoot.getElementsByTagName("li");
	for (var i=0; i<lis.length; i++)
	{
		var drops = lis[i].getElementsByTagName("ul");
		if (drops.length)
		{
			lis[i].onmouseover = function()
			{
				this.className += " hover";
			}
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace("hover", "");
			}
		}
	}
	}
}


if (window.addEventListener){
	window.addEventListener("load", initNav, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initNav);
}

function On(tname) {
   tpname = tname + "1";
   var navRoot = document.getElementById("news1");
   navRoot.className="";
   var navRoot = document.getElementById("events1");
   navRoot.className="";	 
   var navRoot = document.getElementById("resources1");
   navRoot.className="";	
  var navRoot = document.getElementById(tpname);
   navRoot.className="active";	
   
   var navRoot = document.getElementById("news");
   navRoot.style.visibility="hidden";
   var navRoot = document.getElementById("events");
   navRoot.style.visibility="hidden";		 
   var navRoot = document.getElementById("resources");
   navRoot.style.visibility="hidden";		
   var navRoot = document.getElementById(tname);
   navRoot.style.visibility="visible";		

}    

function Show(tname) {   
   var navRoot = document.getElementById("promo1");
   navRoot.style.visibility="hidden";		 
   var navRoot = document.getElementById("promo2");
   navRoot.style.visibility="hidden";		
   var navRoot = document.getElementById(tname);
   navRoot.style.visibility="visible";		

}    

function show_product()
{

var prod = new Array();
prod[0]='<ul class="actions"><li><a href="/cn/products/ws/" name="&lid=homepage_products_ws_learnmore">????</a></li><li><a href="/cn/vmwarestore/buyworkstation.html" name="&lid=homepage_products_ws_buy">??</a></li></ul><a href="/cn/products/ws/" name="&lid=homepage_products_ws_badge" class="image"><img src="/files/images/home/badge_hp_wstation.gif" alt="VMware Workstation" /></a><p>?????????/????? IT ????????????????<br /><br /></p>';
prod[5]='<ul class="actions" ><li><a href="/cn/products/ws/" name="&lid=homepage_products_ws_learnmore">????</a></li><li><a href="/cn/vmwarestore/buyworkstation.html" name="&lid=homepage_products_ws_buy">??</a></li></ul><a href="/cn/products/ws/" name="&lid=homepage_products_ws_badge" class="image"><img src="/files/images/home/badge_hp_wstation.gif" alt="VMware Workstation" /></a><p>?????????/????? IT ????????????????<br /><br /></p>';
prod[1]='<ul class="actions" style="width:160px;"><li><a href="/products/vdi/" target="new" name="&lid=homepage_products_vdi_learnmore">Per maggiori informazioni</a></li><li><a href="http://www.vmware.com/fr/vmwarestore/home.html" target="new" name="&lid=homepage_products_vdi_buy">Acquistare online</a></li></ul><a href="/it/products/desktop/" name="&lid=homepage_products_vdi_badge" class="image"><img src="/files/it/images/home/badge_hp_vdi.gif" alt="VMware VDI" /></a><p>Migliora il controlla degli assets aziendali e semplifica la gestione dei desktop con VMware Virtual Desktop Infrastructure (VDI)<br /><br /></p>';
prod[2]='<ul class="actions" style="width:102px;"><li><a href="/products/vi/overview.html" name="&lid=homepage_products_vi_learnmore">Per informazioni</a></li><li><a href="/fr/vmwarestore/"  name="&lid=homepage_products_vi_buy">Per acquistare</a></li></ul><a href="/products/vi/" name="&lid=homepage_products_vi_badge" class="image"><img src="/files/it/images/home/badge_hp_vi3.gif" alt="VMware Infrastructure 3" /></a><p><br />VMware® Infrastructure è la suite software più diffusa per la gestione e l’ottimizzazione di ambienti IT basati su standard di settore tramite la virtualizzazione: dal desktop al data center<br /><br /></p>';
prod[6]='<ul class="actions"><li><a href="/cn/products/vi/overview.html" name="&lid=homepage_products_vi_learnmore">????</a></li><li><a href="/cn/vmwarestore/"  name="&lid=homepage_products_vi_buy">??</a></li></ul><a href="/cn/products/vi/" name="&lid=homepage_products_vi_badge" class="image"><img src="/files/images/home/badge_hp_vi3.gif" alt="VMware Infrastructure 3" /></a><p>???????????????????????????????<br /><br /></p>';
prod[7]='<ul class="actions"><li><a href="/cn/products/vi/overview.html" name="&lid=homepage_products_vi_learnmore">????</a></li><li><a href="/cn/vmwarestore/"  name="&lid=homepage_products_vi_buy">??</a></li></ul><a href="/cn/products/vi/" name="&lid=homepage_products_vi_badge" class="image"><img src="/files/images/home/badge_hp_vi3.gif" alt="VMware Infrastructure 3" /></a><p>???????????????????????????????<br /><br /></p>';
prod[3]='<ul class="actions"><li><a href="/cn/products/server/overview.html" name="&lid=homepage_products_server_learnmore">????</a></li><li><a href="/cn/vmwarestore/" name="&lid=homepage_products_server_buy">??</a></li></ul><a href="/cn/products/server/" name="&lid=homepage_products_server_badge" class="image"><img src="/files/images/home/badge_hp_server.gif" alt="VMware Server" /></a><p>???????????????? Windows ?? Linux ??????????<br /><br /></p>';
prod[4]='<ul class="actions"><li><a href="/cn/products/labmanager/overview.html" name="&lid=homepage_products_labmanager_learnmore">????</a></li><li><a href="/cn/vmwarestore/" name="&lid=homepage_products_labmanager_buy">??</a></li></ul><a href="/cn/products/labmanager/" name="&lid=homepage_products_labmanager_badge" class="image"><img src="/files/images/home/badge_hp_labmanager.gif" alt="VMware Lab Manager" /></a><p>???????????????????.<br /><br /></p>';


var rand = Math.round(Math.random()*(prod.length-1));

rand = 2;
document.write (prod[rand]);

}
