
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"><li><a href="/cn/products/ace/overview.html" name="&lid=homepage_products_ace_learnmore">了解更多</a></li><li><a href="/cn/vmwarestore/" name="&lid=homepage_products_ace_buy">购买</a></li></ul><a href="/cn/products/ace/" name="&lid=homepage_products_ace_badge" class="image"><img src="/files/images/home/badge_hp_ace.gif" alt="VMware ACE" /></a><p>在企业中控制虚拟台式机。了解虚拟化如何帮助你向用户提供安全、易管理的虚拟台式机。<br /><br /></p>';
prod[2]='<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[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[4]='<ul class="actions" style="width:90px;"><li><a href="/fr/products/srm/index.html" name="&lid=homepage_products_srm_learnmore">En savoir plus</a></li><li><a href="/vmwarestore/buysiterecoverymanager.html" name="&lid=homepage_products_srm_buy">Acheter</a></li></ul><a href="/fr/products/srm/" name="&lid=homepage_products_srm_badge" class="image"><img src="/files/fr/images/product_badges/srm.gif" alt="VMware Site Recovery Manager" /></a><p>Une solution innovante qui automatise et simplifie la gestion et l\'exécution de votre plan de reprise d\'activité.<br /><br /><a href="https://www.vmware.com/tryvmware/login.php?eval=srm">Essai gratuit\! Site Recovery Manager</a><br /><br /></p>';


var rand = Math.round(Math.random()*(prod.length-1));


rand = 4;
document.write (prod[rand]);

}
