/ * utils */
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	} else {
		var expires = "";
	}
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

/* Client-side access to querystring name=value pairs
	Version 1.3
	28 May 2008
	
	License (Simplified BSD):
	http://adamv.com/dev/javascript/qslicense.txt
*/
function Querystring(qs) {
	this.params = {};
	if (qs == null) qs = location.search.substring(1, location.search.length);
	if (qs.length == 0) return;
	qs = qs.replace(/\+/g, ' ');
	var args = qs.split('&');
	for (var i = 0; i < args.length; i++) {
		var pair = args[i].split('=');
		var name = decodeURIComponent(pair[0]);
		var value = (pair.length==2)
			? decodeURIComponent(pair[1])
			: name;
		this.params[name] = value;
	}
}

Querystring.prototype.get = function(key, default_) {var value = this.params[key];return (value != null) ? value : default_;}

Querystring.prototype.contains = function(key) {var value = this.params[key];return (value != null);}

function jtracer( msg )	{
	$('controlpanel-ouput').innerHTML = msg + "\n" + $('controlpanel-ouput').innerHTML;
}



/* localizer */

// Need to be declared outside of function for scope reasons
var locStr = new Array();
var locStrD = new Array();
var locLink = new Array();

function localize(lang)
{

    //var locID = new Array('nav-main-text','nav-briefcase-text','nav-contact-text','map-title-text','map-enlarge-button-text','map-enlarge-title-text','search-results-title-text','virtual-briefcase-title-text','footer-privacy-text','footer-terms-text','footer-copy-text','select-language-text');
//var locID = new Array('nav-main-text','nav-briefcase-text','nav-contact-text','map-title-text','map-enlarge-button-text','map-enlarge-title-text','search-results-title-text','virtual-briefcase-title-text','footer-privacy-text','footer-terms-text','footer-copy-text');

	var locID = new Array('nav-main-text','nav-briefcase-text','nav-contact-text','map-title-text','map-enlarge-button-text','map-enlarge-title-text','search-results-title-text','virtual-briefcase-title-text','footer-privacy-text','footer-terms-text','footer-copy-text','select-language-text','main-title','loading-title','sysreq-title','sysreq1','sysreq2','sysreq3');

    locStr['en_US'] = [];
	locStr['uk_UK'] = [];
    locStr['fr_FR'] = [];
    locStr['es_ES'] = [];
    locStr['de_DE'] = [];

    locStr["en_US"]["nav-main-text"] 					= "Main";
    locStr["en_US"]["nav-briefcase-text"] 			= "Virtual Briefcase";
    locStr["en_US"]["nav-contact-text"] 				= "Contact HP";
    locStr["en_US"]["map-title-text"] 				= "Explore Rooms";
    locStr["en_US"]["map-enlarge-button-text"] 		= "&#187; Enlarge";
    locStr["en_US"]["map-enlarge-title-text"] 		= "Explore Rooms";
    locStr["en_US"]["search-results-title-text"] 		= "Search Results";
    locStr["en_US"]["virtual-briefcase-title-text"] 	= "Virtual Briefcase";
    locStr["en_US"]["footer-privacy-text"] 			= "Privacy statement";
    locStr["en_US"]["footer-terms-text"] 				= "Using this site means you accept its terms";
    locStr["en_US"]["footer-copy-text"] 				= "&copy; 2009 Hewlett-Packard Development Company, L.P.";
    locStr["en_US"]["select-language-text"] 			= "Select a Language";
    locStr["en_US"]["main-title"] 						= "To navigate this site, use the Explore Rooms map by clicking on a highlighted room.";
    locStr["en_US"]["loading-title"] 					= "Loading";
    locStr["en_US"]["sysreq-title"] 					= "System Requirements";
    locStr["en_US"]["sysreq1"] 							= "<li>Monitor Resolution: 1024x768</li><li>Bandwidth target: 256K DSL</li><li>Browser target: Internet Explorer 6.0+, Firefox</li>";
    locStr["en_US"]["sysreq2"] 							="<li>Plug-in target: Flash 9+</li><li>Javascript enabled</li><li>Operating System: Windows XP and Vista</li>";
    locStr["en_US"]["sysreq3"] 							= "<li>Recommended hardware for standard and high–definition (HD) video playback: 852x480 (480p), 24 fps</li>";

    locStr["uk_UK"]["nav-main-text"] 					= "Main";
    locStr["uk_UK"]["nav-briefcase-text"] 			= "Virtual Briefcase";
    locStr["uk_UK"]["nav-contact-text"] 				= "Contact HP";
    locStr["uk_UK"]["map-title-text"] 				= "Explore Rooms";
    locStr["uk_UK"]["map-enlarge-button-text"] 		= "&#187; Enlarge";
    locStr["uk_UK"]["map-enlarge-title-text"] 		= "Explore Rooms";
    locStr["uk_UK"]["search-results-title-text"] 		= "Search Results";
    locStr["uk_UK"]["virtual-briefcase-title-text"] 	= "Virtual Briefcase";
    locStr["uk_UK"]["footer-privacy-text"] 			= "Privacy statement";
    locStr["uk_UK"]["footer-terms-text"] 				= "Using this site means you accept its terms";
    locStr["uk_UK"]["footer-copy-text"] 				= "&copy; 2009 Hewlett-Packard Development Company, L.P.";
    locStr["uk_UK"]["select-language-text"] 			= "Select a Language";
    locStr["uk_UK"]["main-title"] 						= "To navigate this site, use the Explore Rooms map by clicking on a highlighted room.";
    locStr["uk_UK"]["loading-title"] 					= "Loading";
    locStr["uk_UK"]["sysreq-title"] 					= "System Requirements";
    locStr["uk_UK"]["sysreq1"] 							= "<li>Monitor Resolution: 1024x768</li><li>Bandwidth target: 256K DSL</li><li>Browser target: Internet Explorer 6.0+, Firefox</li>";
    locStr["uk_UK"]["sysreq2"] 							="<li>Plug-in target: Flash 9+</li><li>Javascript enabled</li><li>Operating System: Windows XP and Vista</li>";
    locStr["uk_UK"]["sysreq3"] 							= "<li>Recommended hardware for standard and high–definition (HD) video playback: 852x480 (480p), 24 fps</li>";

	locStr["fr_FR"]["nav-main-text"] 					= "Principal";
    locStr["fr_FR"]["nav-briefcase-text"] 			= "Dossier virtuel";
    locStr["fr_FR"]["nav-contact-text"] 				= "Contacter HP";
    locStr["fr_FR"]["map-title-text"] 				= "Explorer les salles";
    locStr["fr_FR"]["map-enlarge-button-text"] 		= "&#187; Agrandir";
    locStr["fr_FR"]["map-enlarge-title-text"] 		= "Découvrir les salles";
    locStr["fr_FR"]["search-results-title-text"] 		= "Résultats"; //"Résultats de la recherche";
    locStr["fr_FR"]["virtual-briefcase-title-text"]	= "Porte-document virtuel";
    locStr["fr_FR"]["footer-privacy-text"] 			= "Respect de la vie privée";
    locStr["fr_FR"]["footer-terms-text"] 				= "L\'utilisation de ce site implique que vous en acceptiez les conditions";
    locStr["fr_FR"]["footer-copy-text"] 				= "&copy; 2009 Hewlett-Packard Development Company, L.P.";
    locStr["fr_FR"]["select-language-text"] 			= "Sélectionnez une langue";
    locStr["fr_FR"]["main-title"] 						= "";
    locStr["fr_FR"]["loading-title"] 					= "Chargement";
    locStr["fr_FR"]["sysreq-title"] 					= "Configuration nécessaire";
    locStr["fr_FR"]["sysreq1"] 							= "<li>Résolution de l'écran : 1024x768</li><li>Largeur de bande : 256K DSL</li><li>Navigateur : Internet Explorer 6.0+, Firefox</li>";
    locStr["fr_FR"]["sysreq2"] 							= "<li>Plug-in : Flash 9+</li><li>Javascript autorisé</li><li>Système d'exploitation : Window XP et Vista</li>";
    locStr["fr_FR"]["sysreq3"] 							= "<li>Matériel recommandé pour la lecture vidéo standard et haute définition (HD) : 852x480 (480p), 24 fps</li>";
    
    locStr["de_DE"]["nav-main-text"] 					= "Startseite";
    locStr["de_DE"]["nav-briefcase-text"] 			= "Virtuelle Aktentasche";
    locStr["de_DE"]["nav-contact-text"] 				= "HP kontaktieren";
    locStr["de_DE"]["map-title-text"] 				= "Räume durchsuchen";
    locStr["de_DE"]["map-enlarge-button-text"] 		= "&#187; Vergrößern";
    locStr["de_DE"]["map-enlarge-title-text"] 		= "Räume durchsuchen";
    locStr["de_DE"]["search-results-title-text"] 		= "Suchergebnisse";
    locStr["de_DE"]["virtual-briefcase-title-text"] 	= "Virtuelle Aktentasche";
    locStr["de_DE"]["footer-privacy-text"] 			= "Impressum";
    locStr["de_DE"]["footer-terms-text"] 				= "Nutzungsbedingungen";
    locStr["de_DE"]["footer-copy-text"] 				= "&copy; 2009 Hewlett-Packard Development Company, L.P.";
    locStr["de_DE"]["select-language-text"] 			= "Wählen Sie eine Sprache";
    locStr["de_DE"]["main-title"] 						= "";
    locStr["de_DE"]["loading-title"] 					= "Laden";
    locStr["de_DE"]["sysreq-title"] 					= "Systemanforderungen";
    locStr["de_DE"]["sysreq1"] 							= "<li>Bildschirmauflösung: 1024x768</li><li>Empfohlene Bandbreite: 256K DSL</li><li>Empfohlener Browser: Internet Explorer 6.0+, Firefox</li>";
    locStr["de_DE"]["sysreq2"] 							= "<li>Empfohlenes Plug-in: Flash 9+</li><li>JavaScript aktiviert</li><li>Betriebssystem: Windows XP und Vista</li>";
    locStr["de_DE"]["sysreq3"] 							= "<li>Empfohlene Hardware für standardmäßige und hochauflösende (HD) Videowiedergabe: 852x480 (480p), 24 fps (Bilder pro Sekunde)</li>";
    
    locStr["es_ES"]["nav-main-text"] 					= "Principal";
    locStr["es_ES"]["nav-briefcase-text"] 			= "Portafolio virtual";
    locStr["es_ES"]["nav-contact-text"] 				= "Contacto HP";
    locStr["es_ES"]["map-title-text"] 				= "Explorar salas";
    locStr["es_ES"]["map-enlarge-button-text"] 		= "&#187; Expandir";
    locStr["es_ES"]["map-enlarge-title-text"] 		= "Explorar salas";
    locStr["es_ES"]["search-results-title-text"] 		= "Resultados"; //"Resultados de la búsqueda";
    locStr["es_ES"]["virtual-briefcase-title-text"] 	= "Portafolio virtual";
    locStr["es_ES"]["footer-privacy-text"] 			= "Declaración de privacidad";
    locStr["es_ES"]["footer-terms-text"] 				= "El uso de este sitio implica la aceptación de sus términos de uso";
    locStr["es_ES"]["footer-copy-text"] 				= "&copy; 2009 Hewlett-Packard Development Company, L.P.";
    locStr["es_ES"]["select-language-text"] 			= "Seleccionar un idioma";
    locStr["es_ES"]["main-title"] 						= "";
    locStr["es_ES"]["loading-title"] 					= "Cargando";
    locStr["es_ES"]["sysreq-title"] 					= "Requisitos del sistema";
    locStr["es_ES"]["sysreq1"] 							= "<li>Resolución del monitor: 1024x768</li><li>Ancho de banda: 256K DSL</li><li>Explorador: Internet Explorer 6.0+, Firefox</li>";
    locStr["es_ES"]["sysreq2"] 							= "<li>Plug-in: Flash 9+</li><li>Habilitado con JavaScript</li><li>Sistema operativo: Windows XP y Vista</li>";
    locStr["es_ES"]["sysreq3"] 							= "<li>Hardware recomendado para la reproducción de vídeo estándar y de alta definición: 852x480 (480p), 24 fps</li>";
    
    for (var i = 0; i < locID.length; i++)
    {
    	$(locID[i]).innerHTML = locStr[lang][locID[i]];
    }

	
	
    locStrD['en_US'] = [];
	locStrD['uk_UK'] = [];
    locStrD['fr_FR'] = [];
    locStrD['es_ES'] = [];
    locStrD['de_DE'] = [];
	
    locStrD["en_US"]["button-close-text"] = "Close X";
    locStrD["en_US"]["webinar-title-text"] = "Webinar";
    locStrD["en_US"]["demo-title-text"] = "Demo";
    locStrD["en_US"]["game-title-text"] = "Game";
    locStrD["en_US"]["help-title-text"] = "Help";
    locStrD["en_US"]["send-title-text"] = "Send to a Colleague";
    locStrD["en_US"]["search-default-text"] = "Enter keywords to search";
    locStrD["en_US"]["search-error-text"] = "Please enter a search term.";
    locStrD["en_US"]["search-searching-text"] = "Searching...";
    locStrD["en_US"]["main-tooltip-text"] = "This will take you to the main hall."; 
    locStrD["en_US"]["briefcase-tooltip-text"] = "This will open up your virtual briefcase.";
    locStrD["en_US"]["contact-tooltip-text"] = "This will open up a new window to HP's contact information.";
    locStrD["en_US"]["search-number-found-text"] = "xxx Items found";
	
	locStrD["uk_UK"]["button-close-text"] = "Close X";
    locStrD["uk_UK"]["webinar-title-text"] = "Webinar";
    locStrD["uk_UK"]["demo-title-text"] = "Demo";
    locStrD["uk_UK"]["game-title-text"] = "Game";
    locStrD["uk_UK"]["help-title-text"] = "Help";
    locStrD["uk_UK"]["send-title-text"] = "Send to a Colleague";
    locStrD["uk_UK"]["search-default-text"] = "Enter keywords to search";
    locStrD["uk_UK"]["search-error-text"] = "Please enter a search term.";
    locStrD["uk_UK"]["search-searching-text"] = "Searching...";
    locStrD["uk_UK"]["main-tooltip-text"] = "This will take you to the main hall."; 
    locStrD["uk_UK"]["briefcase-tooltip-text"] = "This will open up your virtual briefcase.";
    locStrD["uk_UK"]["contact-tooltip-text"] = "This will open up a new window to HP's contact information.";
    locStrD["uk_UK"]["search-number-found-text"] = "xxx Items found";

    locStrD["fr_FR"]["button-close-text"] = "Fermer X";
    locStrD["fr_FR"]["webinar-title-text"] = "Séminaire en ligne";
    locStrD["fr_FR"]["demo-title-text"] = "Démo";
    locStrD["fr_FR"]["game-title-text"] = "Jeux";
    locStrD["fr_FR"]["help-title-text"] = "Aide";
    locStrD["fr_FR"]["send-title-text"] = "Envoyer à un collègue";
    locStrD["fr_FR"]["search-default-text"] = "Entrez les mots-clés à rechercher";
    locStrD["fr_FR"]["search-error-text"] = "Veuillez entrer un terme de recherche.";
    locStrD["fr_FR"]["search-searching-text"] = "Recherche...";
    locStrD["fr_FR"]["main-tooltip-text"] = "Cela vous conduira au hall principal."; 
    locStrD["fr_FR"]["briefcase-tooltip-text"] = "Cela ouvrira votre dossier virtuel.";
    locStrD["fr_FR"]["contact-tooltip-text"] = "Cela ouvrira une nouvelle fenêtre avec les coordonnées de HP.";
    locStrD["fr_FR"]["search-number-found-text"] = "xxx éléments trouvés";

    locStrD["es_ES"]["button-close-text"] = "Cerrar X";
    locStrD["es_ES"]["webinar-title-text"] = "Seminario de Internet";
    locStrD["es_ES"]["demo-title-text"] = "Demo";
    locStrD["es_ES"]["game-title-text"] = "Juego";
    locStrD["es_ES"]["help-title-text"] = "Ayuda";
    locStrD["es_ES"]["send-title-text"] = "Enviar a un colega";
    locStrD["es_ES"]["search-default-text"] = "Palabras claves de búsqueda";
    locStrD["es_ES"]["search-error-text"] = "Ingrese un término de búsqueda.";
    locStrD["es_ES"]["search-searching-text"] = "Buscando...";
    locStrD["es_ES"]["main-tooltip-text"] = "Esto le llevará al vestíbulo."; 
    locStrD["es_ES"]["briefcase-tooltip-text"] = "Esto abrirá su portafolio virtual.";
    locStrD["es_ES"]["contact-tooltip-text"] = "Esto abrirá una nueva ventana con información de contactos de HP.";
    locStrD["es_ES"]["search-number-found-text"] = "Artículos encontrados: xxx";

    locStrD["de_DE"]["button-close-text"] = "Schließen X";
    locStrD["de_DE"]["webinar-title-text"] = "Webinar";
    locStrD["de_DE"]["demo-title-text"] = "Demo";
    locStrD["de_DE"]["game-title-text"] = "Spiel";
    locStrD["de_DE"]["help-title-text"] = "Hilfe";
    locStrD["de_DE"]["send-title-text"] = "An einen Kollegen senden";
    locStrD["de_DE"]["search-default-text"] = "Suchbegriff eingeben";
    locStrD["de_DE"]["search-error-text"] = "Bitte geben Sie einen Suchbegriff ein.";
    locStrD["de_DE"]["search-searching-text"] = "Suche läuft...";
    locStrD["de_DE"]["main-tooltip-text"] = "Dies bringt Sie zur Startseite."; 
    locStrD["de_DE"]["briefcase-tooltip-text"] = "Dies öffnet Ihre virtuelle Aktentasche.";
    locStrD["de_DE"]["contact-tooltip-text"] = "Dies öffnet ein neues Fenster mit HPs Kontaktinformationen.";
    locStrD["de_DE"]["search-number-found-text"] = "xxx Elemente gefunden";

	// Translate Close Buttons
	var closeElements = new Array();
	closeElements = document.getElementsByClassName('button-close-text');
    for (var j = 0; j < closeElements.length; j++)
    {
    	$(closeElements[j]).innerHTML = locStrD[lang]["button-close-text"];
    }


	var locLnkID = new Array('button_contact','footer-privacy-link','footer-terms-link');

    locLink['en_US'] = [];
	locLink['uk_UK'] = [];
    locLink['fr_FR'] = [];
    locLink['es_ES'] = [];
    locLink['de_DE'] = [];
	
    locLink["en_US"]["button_contact"] = "http://h18004.www1.hp.com/products/servers/vitc-contact.html";
    locLink["en_US"]["footer-privacy-link"] = "http://welcome.hp.com/country/us/en/privacy.html";
    locLink["en_US"]["footer-terms-link"] = "http://welcome.hp.com/country/us/en/termsofuse.html";
    
	locLink["uk_UK"]["button_contact"] = "http://h18004.www1.hp.com/products/servers/vitc-contact.html";
    locLink["uk_UK"]["footer-privacy-link"] = "http://welcome.hp.com/country/us/en/privacy.html";
    locLink["uk_UK"]["footer-terms-link"] = "http://welcome.hp.com/country/us/en/termsofuse.html";
	
    locLink["fr_FR"]["button_contact"] = "https://h41268.www4.hp.com/live/index.aspx?qid=6510";
    locLink["fr_FR"]["footer-privacy-link"] = "http://welcome.hp.com/gms/fr/fr/sz6/privacy.html";
    locLink["fr_FR"]["footer-terms-link"] = "http://welcome.hp.com/gms/fr/fr/sz6/termsofuse.html";

    locLink["es_ES"]["button_contact"] = "https://h41268.www4.hp.com/live/index.aspx?qid=6509";
    locLink["es_ES"]["footer-privacy-link"] = "http://welcome.hp.com/country/es/es/privacy.html";
    locLink["es_ES"]["footer-terms-link"] = "https://h41268.www4.hp.com/live/index.aspx?qid=6509";

    locLink["de_DE"]["button_contact"] = "https://h41268.www4.hp.com/live/index.aspx?qid=6346";
    locLink["de_DE"]["footer-privacy-link"] = "http://welcome.hp.com/country/at/de/privacy.html";
    locLink["de_DE"]["footer-terms-link"] = "http://welcome.hp.com/country/at/de/termsofuse.html";

    for (var k = 0; k < locLnkID.length; k++)
    {
    	$(locLnkID[k]).href = locLink[lang][locLnkID[k]];
    }

}
var Banners = Class.create({

	initialize: function()	{
		this.writeSWF();
	},
	
	writeSWF: function()	{

		jtracer("Write Banners SWF");
		
		var xml_path = "http://h30424.www3.hp.com/xml/promos.xml";
		var content_path = "http://media.hpvitc.veplatform.com/";
		
		if (langR != "en_US" && langR != "uk_UK")	{
			xml_path = xml_path.replace(".xml", "-" + langR + ".xml");
			content_path = content_path.replace("hpvitc", "hpvitc-" + langR);
			content_path = content_path.replace("_", "-");
		}

		var flashvars = {
			xml_path: xml_path,
			content_path: content_path
		};
		var params = {
			wmode: "transparent",
			allowScriptAccess: "always"
		};
		var attributes = {
			id: "promoObject"
		};
		
		if (langR == "en_US" || langR == "uk_UK")	{
			swfobject.embedSWF("swf/banners_campaign.swf", "promoObject", "948", "160", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
		}
		else
		{
			swfobject.embedSWF("swf/banners.swf", "promoObject", "948", "160", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
		}
		
	
	},
	
	urlRequest: function (id,param)	{

		if (param.substr(0,4) == "http")	{
			var myRef = window.open(param,'newwin');
		} else	{
			window.location.href = param;
		}
		
		tk.promoTrack(id);

	},

	deepLink: function (id,param)	{
	
		tk.promoTrack(id);
	},

	openWindow: function (id,param)	{
		
		closePops();
		
		switch(param)	{
			case "#BRIEFCASE":
				vb.open();
				break;
			case "#PREFERENCES":
				vp.openPrefs();
				break;
			default:
		}
		
		tk.promoTrack(id);
	}

});
﻿// Tooltip Class

var Tooltip = Class.create({

	initialize: function( ttype )	{
		this.title = "";
		this.desc = "";
		this.settype(ttype);	
		//this.hidetip();
	},
	
	settype: function(ttype)	{
		$('tooltip').className = ttype;
	},
	
	showtip: function(id, x, y)	{
				
		switch(id)
		{
			case "button_main":
				this.title = locStr[langR]["nav-main-text"];
				this.desc = locStrD[langR]["main-tooltip-text"];
				break;    
			case "button_briefcase":
				this.title = locStr[langR]["nav-briefcase-text"];
				this.desc = locStrD[langR]["briefcase-tooltip-text"];
				break;
			case "button_contact":
				this.title = locStr[langR]["nav-contact-text"];
				this.desc = locStrD[langR]["contact-tooltip-text"];
				break;
			default:
				break;
		}

		$('tt_title').innerHTML = this.title;
		$('tt_desc').innerHTML = this.desc;		

		$('tooltip').style.top = y + 'px';
		$('tooltip').style.left = x + 'px';

		$('tooltip').style.display = 'block';

	},
	
	
	
	hidetip: function()	{
			$('tooltip').style.display = 'none';
	}

});
	

﻿var Menu = Class.create({

	initialize: function()	{
	
		$('button_main').style.display = 'block';
		$('button_briefcase').style.display = 'block';
		$('button_contact').style.display = 'block';
		
		Event.observe('button_main', 'mouseover', this.respondToOver);
		Event.observe('button_main', 'mouseout', this.respondToOut.bind(this));
		
		Event.observe('button_briefcase', 'mouseover', this.respondToOver);
		Event.observe('button_briefcase', 'mouseout', this.respondToOut.bind(this));
		
		Event.observe('button_contact', 'mouseover', this.respondToOver);
		Event.observe('button_contact', 'mouseout', this.respondToOut.bind(this));
		
		$('nav').style.display = "block";
	},
		
	respondToOver: function(event) {

		//alert(event.class);

		var element = event.element();
		
		switch(element.id)	{
			case "nav-main-text":
			element = element.ancestors()[0];
			break;
			case "nav-briefcase-text":
			element = element.ancestors()[0];
			break;
			case "nav-contact-text":
			element = element.ancestors()[0];
			break;
		}
		
		var xpos = 235;
  		var ypos = element.offsetTop + 65;
  
 		 tt.showtip(element.id, xpos, ypos);
  		 element.className = 'on';
	},

	respondToOut: function(event) {
		var element = event.element();
		if (element.id == "")	{
			element = element.ancestors()[0];
		}
		//element.className = 'off';
		this.allOff();
		tt.hidetip();
	},
	
	allOff: function()	{
		$('button_main').className = 'off';
		$('button_briefcase').className = 'off';
		$('button_contact').className = 'off';
	}

});

	var KeywordSearch = Class.create({

	initialize: function()	{
	
		$('search').style.display = 'block';
	
		Event.observe('field_search', 'focus', this.focus);
		//Event.observe('button_search', 'click', this.search);
		Event.observe('search-results-button-close', 'click', this.close);
		 
		this.defaultSearchText = locStrD[langR]["search-default-text"];
		 
		$('field_search').value = this.defaultSearchText;
		
	},
	
	search: function()	{
	
		var search_path = "search/do.php";
		
		if (langR != "en_US" && langR != "uk_UK")	{
			search_path = search_path.replace("search", "search-" + langR);
		}
	
		$('search').className = 'on';
		$('search-results').style.display = 'block';
		
		$('search-results-title-text').innerHTML = locStr[langR]["search-results-title-text"];

		
		if($('field_search').value == "")	{
			$('search-results-window').innerHTML = "<p>" + locStrD[langR]["search-error-text"] + "</p>";	
		} else	{
			$('search-results-window').innerHTML = "<p>" + locStrD[langR]["search-searching-text"] + "</p>";
			
			new Ajax.Updater('search-results-window', search_path, {
				method: 'get',
				
				parameters: {keywords: $('field_search').value},
				
  				onComplete: function(transport) {
	  				if ($("results-list"))	{
	  					ks.updateResultsNum($("results-list").childElements().length);
	  				} else	{
	  					ks.updateResultsNum(0);
	  				}
  				}
  				
			});
			
			$("search-results-window").scrollTop = 0;
			
		}

		tk.searchTrack("submit",$('field_search').value);
		
	},
	
	resultClick: function(rm,sc,sp,it)	{
		deepLink(rm,sc,sp,it);
		tk.searchTrack("click",it);
	},
	
	focus: function()	{
		$('field_search').value = "";
	},
	
	updateResultsNum: function( num )	{
		$('search-results-title-text').innerHTML = locStrD[langR]["search-number-found-text"].replace("xxx",num);
	},
	
	close: function()	{
		$('search').className = 'off';
		$('search-results').style.display = 'none';
	}
	
});
﻿function doCloseMenuWindow(obj, e) {

if (e.currentTarget) {
if (e.relatedTarget != obj) {
if (obj != e.relatedTarget.parentNode) {
$('map_menu').style.display = 'none';
}
}
} else {
if (e.toElement != obj) {
if (obj != e.toElement.parentNode) {
$('map_menu').style.display = 'none';
}
}
}
}

function doStayMenWindow() {
	$('map_menu').style.display = 'block';
}

var Map = Class.create({

	initialize: function()	{
	
		var _intervalID;
	
		$('map-button-enlarge').style.display = 'block';
		$('map-header').style.display = 'block';

		Event.observe('map-button-enlarge', 'click', this.enlargeMap.bind(this));
		Event.observe('map-enlarge-button-close', 'click', this.enlargeMapClose);

		//Event.observe('map_menu', 'mouseover', this.memutimer.bind(this));


		$('map-enlarge-button-close').setStyle({
			background: 'transparent',
		    border: 'none'
		});

		
		this.writeSWF();
		
	},
	
	writeSWF: function()	{
	
		jtracer("Write Map SWF");
	
		var xml_path = "http://h30424.www3.hp.com/xml/booths.xml";
		var xml_path_campaign = "http://h30424.www3.hp.com/xml/contents.xml";
		
		if (langR != "en_US")	{
			xml_path = xml_path.replace(".xml", "-" + langR + ".xml");
			xml_path_campaign = xml_path_campaign.replace(".xml", "-" + langR + ".xml");
		}
		
		//jtracer("Map XML - " + xmlpath);
		
		var flashvars = {
			xml_path: xml_path,
			xml_path_campaign: xml_path_campaign
		};
		var params = {
			wmode: "transparent",
			allowScriptAccess: "always"
		};
		var attributes = {
			id: "mapObject"
		};
		
		if (langR == "en_US" || langR == "uk_UK")	{
			swfobject.embedSWF("swf/map_center.swf", "mapObject", "225", "150", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
		}
		else
		{
			swfobject.embedSWF("swf/map.swf", "mapObject", "225", "150", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
		}
		
	},
	
	updateSweep: function(id)	{
		$('mapObject').updateSweep(id);
	},
	
	enlargeMap: function()	{

		var xmlpath = "http://h30424.www3.hp.com/xml/booths.xml";	
		if (langR != "en_US")	{
			xmlpath = xmlpath.replace(".xml", "-" + langR + ".xml");
		}
		
		//jtracer("enlargeMap XML - " + xmlpath);
		
		var flashvars = {
			xml_path: xmlpath
		};
		
		var params = {
			wmode: "transparent",
			allowScriptAccess: "always"
		};
		var attributes = {
			id: "mapEnlargedObject"
		};
		swfobject.embedSWF("swf/map_enlarged.swf", "mapEnlargedObject", "720", "250", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
		$('map_enlarge').style.display = 'block';


	},
	
	enlargeMapClose: function()	{
		$('map_enlarge').style.display = 'none';
	},
	
	openMapMenu: function( title, htmlcode, x, y )	{

		$('map_menu_title').innerHTML = title;
		$('map_menu_list').innerHTML = htmlcode + "<br>";
		

		x += 4;
		y += 189;
				
		//jtracer("x:" + x + " :y" + y);

		if (x > 80)	{
	
			if (y > 230)	{
				// q3
				x += 55;	
				y += 65;
			}else	{
				// q2
				x += 55;
				y -= $('map_menu').getHeight() - 40;
			}

		}else	{

			if (y > 230)	{
				// q4
				x = 0;
				y = 335;
			}else	{
				// q1
				x = 0;
				y = 235 - $('map_menu').getHeight();
			}

		}

		if(y<0)	{
			y = 0;
		}
/*
		$('map_menu').setStyle({
			display: 'block',
			top: y + 'px',
		    left: x + 'px'
		});
		*/
		
		$('map_menu').style.display = 'block';
		$('map_menu').style.top = y + 'px';
		$('map_menu').style.left = x + 'px';
			
		//this.memutimer();
	},
	
	openMapCampaignMenu: function( title, htmlcode, x, y )	{

		$('map_menu_title').innerHTML = title;
		$('map_menu_list').innerHTML = htmlcode + "<br>";
		

		x += 4;
		y += 189;
				
		//jtracer("x:" + x + " :y" + y);

		if (x > 80)	{
	
			if (y > 230)	{
				// q3
				x += 50;	
				y += 70;
			}else	{
				// q2
				x += 50;
				y -= $('map_menu').getHeight() - 45;
			}

		}else	{

			if (y > 230)	{
				// q3
				x -= 30;	
				y += 70;
			}else	{
				// q2
				x -= 30;
				y -= $('map_menu').getHeight() - 45;
			}

		}

		if(y<0)	{
			y = 0;
		}
/*
		$('map_menu').setStyle({
			display: 'block',
			top: y + 'px',
		    left: x + 'px'
		});
		*/
		
		$('map_menu').style.display = 'block';
		$('map_menu').style.top = y + 'px';
		$('map_menu').style.left = x + 'px';
			
		//this.memutimer();
	},
	
	openMapMenu2: function( title, htmlcode, x, y )	{

		$('map_menu_title').innerHTML = title;
		$('map_menu_list').innerHTML = htmlcode + "<br>";
		

		x += 250;
		y += 90;
				
		//jtracer("x:" + x + " :y" + y);

		if (x > 600)	{
	
			if (y > 220)	{
				// q3
				x += 55;	
				y += 40;
			}else	{
				// q2
				x += 55;
				y -= $('map_menu').getHeight() + 30;
			}

		}else	{

			if (y > 220)	{
				// q4
				x -= $('map_menu').getWidth() + 30;
				y += 20;
			}else	{
				// q1
				x -= $('map_menu').getWidth() + 20;
				y -= $('map_menu').getHeight() + 20;
			}

		}

		if(y<0)	{
			y = 0;
		}

		$('map_menu').setStyle({
			display: 'block',
			top: y + 'px',
		    left: x + 'px'
		});
		//this.memutimer();
	},	


	memutimer: function()	{
		clearTimeout(this._intervalID);
		this._intervalID = setTimeout ( this.closeMapMenu, 2000 );
	},
	
	closeMapMenu: function()	{
		$('map_menu').style.display = 'none';
	}

	

});
﻿var Briefcase = Class.create({

	initialize: function()	{

		Event.observe('button_briefcase', 'click', this.open.bind(this));
		Event.observe('virtual-briefcase-button-close', 'click', this.close);

		//this.writeSWF();

	},
	
	writeSWF: function()	{
		var flashvars = {
			lang: langR,
			config: "http://h30424.www3.hp.com/xml/config.xml"
		};
		var params = {
			wmode: "transparent",
			allowScriptAccess: "always"
		};
		var attributes = {
			id: "ebagObject"
		};
	
		swfobject.embedSWF("swf/EBag.swf", "ebagObject", "686", "436", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
	},
	
	open: function()	{
		closePops();
		$('virtual-briefcase').style.display = 'block';
		this.writeSWF();
	},
	
	close: function()	{
		$('virtual-briefcase').style.display = 'none';
	}

});
﻿var Chat = Class.create({

	initialize: function()	{
		this.disableChat();
	},
	
	initializeChat: function( id )	{
		$('chat-button').style.display = 'block';
		window.frames['chat-iframe'].location = "chat/" + id + ".html";
	},
	
	enableChat: function()	{
		$('chat-button').style.display = 'block';
	},
	
	disableChat: function()	{
		window.frames['chat-iframe'].location = "chat/blank.html";
		$('chat-button').style.display = 'none';
	},
	
	checkChatRoom: function(rmid)	{
	
		cc.disableChat();
	
		var chatID = "";
	
		if ((langR == "en_US") && (rmid == "598"))	{
			chatID = "bladesystem";
		}
		if ((langR == "en_US") && (rmid == "512"))	{
			chatID = "proliant";
		}
		if ((langR == "es_ES") && (rmid == "1235"))	{
			chatID = "bladesystem";
		}
		if ((langR == "es_ES") && (rmid == "1206"))	{
			chatID = "proliant";
		}	
		if ((langR == "fr_FR") && (rmid == "1251"))	{
			chatID = "proliant";
		}
		if ((langR == "fr_FR") && (rmid == "1207"))	{
			chatID = "proliant";
		}	
		if ((langR == "de_DE") && (rmid == "1254"))	{
			chatID = "proliant";
		}
		if ((langR == "de_DE") && (rmid == "1207"))	{
			chatID = "proliant";
		}	

		if (chatID != "")	{
			cc.initializeChat(chatID);
		}
	}
	
});
﻿var Metrics = Class.create({

	initialize: function()	{

	},
		
	pageTrack: function( type, itemType ) {
		
		var qs = new Querystring(SWFAddress.getPath());
		var rm = qs.get("rm");
		var sc = qs.get("sc");
		var sp = qs.get("sp");
		var it = qs.get("it");

		if (rm == undefined)	{
			rm = "hub";
		}

		if (itemType == undefined)	{
			itemType = "";
		}

		var trackString = "";

		switch(type)	{
			case "room":
				trackString = "/room:" + rm;
				break;
			case "menu":
				trackString = "/room:" + rm + "/screen:" + sc + "/split:" + sp;
				break;
			case "item_click":
				trackString = "/room:" + rm + "/screen:" + sc + "/split:" + sp + "/item:" + it + "/click";
				break;	
			case "item_view":
				trackString = "/room:" + rm + "/screen:" + sc + "/split:" + sp + "/item:" + it + "/view";
				break;
			case "item_briefcase":
				trackString = "/room:" + rm + "/screen:" + sc + "/split:" + sp + "/item:" + it + "/add+to+briefcase";
				break;
			case "item_send":
				trackString = "/room:" + rm + "/screen:" + sc + "/split:" + sp + "/item:" + it + "/send+to+friend";
				break;
			case "item_sent":
				trackString = "/room:" + rm + "/screen:" + sc + "/split:" + sp + "/item:" + it + "/send+to+friend/submit";
				break;
			case "item_contact":
				trackString = "/room:" + rm + "/screen:" + sc + "/split:" + sp + "/item:" + it + "/contact";
				break;
		}

		this.sendTrackingCalls(trackString, itemType);
		
	},
	
	briefcaseTrack: function( type, idStr )	{
		
		var trackString = "";
		var dnldArr = idStr.split(",");
		
		dnldArr.each(function(item) {
			trackString = "/briefcase/item:" + item + "/" + type;
			//jtracer("k:" + item);
			tk.sendTrackingCalls(trackString,"");
		});

	},
	
	searchTrack: function(type, param)	{
	
		var trackString = "";

		switch(type)	{
			case "submit":
				trackString = "/search/keywords/" + param.replace(/ /gi,'_');
				break;
			case "click":
				trackString = "/search/results/item:" + param + "/click";
				break;
		}

		this.sendTrackingCalls(trackString,"");
		
	},
	
	promoTrack: function( id )	{
		var trackString = "";
		trackString = "/promos/promo:" + id + "/click";
		this.sendTrackingCalls(trackString,"");
	},
	
	sendTrackingCalls: function(trkstr,itype)	{
		if (trkstr != "")	{
			s_sendAnalyticsEvent("",trkstr);
			var dr_metrics_url = "/imetrics.php?b=" + trkstr + "&a=PageView&ln=" + langR;
			
			if (itype != "")	{
				dr_metrics_url += "&ac=" + itype;
			}
			
			new Ajax.Request(dr_metrics_url);
			jtracer("track:" + trkstr + " type:" + itype);
		}
	}

});
﻿var Viewport = Class.create({

	initialize: function()	{
		this.writeSWF();
	},
	
	writeSWF: function()	{
	
		jtracer("Write Viewport SWF");
	
		var flashvars = {
			lang: langR,
			config: "http://h30424.www3.hp.com/xml/config.xml"
		};
		var params = {
			wmode: "transparent",
			menu: "false",
			allowScriptAccess: "always"
		};
		var attributes = {
			id: "viewportObject"
		};
	
		swfobject.embedSWF("G6_viewport_campaign.swf", "viewportObject", "720", "510", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
	
	},
	
	showPromos: function()	{
		$('viewport').style.height = '330px';
		$('social-networking').style.display = 'none';
	},
	
	hidePromos: function()	{
		$('viewport').style.height = '510px';
		$('social-networking').style.display = 'block';
	},
	
	openPrefs: function()	{
		$('viewportObject').openPrefs();
	}

});
﻿var EWin = Class.create({

	initialize: function()	{
		Event.observe('embedded-window-button-close', 'click', this.close);
	},
	
	open: function( url, title, width, height, top, left)	{
		
		var tmpw = width + 4;
		var tmph = height + 4;
		$('embedded-window').style.display = "block";
		$('embedded-window').style.top = top + "px";
		$('embedded-window').style.left =  left + "px";
		$('embedded-window').style.width = tmpw + "px";
		$('embedded-window').style.height = tmph + "px";
		
		$('embedded-window-header').style.width = width + "px";
		$('embedded-window-title').innerHTML = title;

		var tmpw = width;
		var tmph = height - 26;
		$('embedded-window-iframe').style.width = tmpw + "px";
		$('embedded-window-iframe').style.height = tmph + "px";
		
		//window.frames['embedded-window-iframe'].location = url;
		//alert($('embedded-window-iframe').src.toString());
		$('embedded-window-iframe').src = url;
		
		switch(title)
		{
			case "Sent to a Friend":
  				$('embedded-window').className = "staf";
  				break;
			default:
  				$('embedded-window').className = "";
		}
		
	},
	
	close: function()	{
		$('embedded-window-iframe').src = "chat/blank.html";
		//window.frames['embedded-window-iframe'].location = "chat/blank.html";
		$('embedded-window').style.display = 'none';
	}
	

});
﻿var VideoPlayer = Class.create({

	initialize: function()	{
		Event.observe('video-player-button-close', 'click', this.close);
		//this.writeSWF();
	},
	
	writeSWF: function(flv,img,vol)	{
	
		var flashvars = {
			flv: flv,
			img: img,
			volume: vol,
			auto: "1",
			close: "0",
			lang: langR
		};
		var params = {
			wmode: "transparent",
			allowFullScreen: "true",
			allowScriptAccess: "always"
		};
		var attributes = {
			id: "videoPlayerObject"
		};
	
		swfobject.embedSWF("swf/VideoPlayer.swf", "videoPlayerObject", "720", "300", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
	
	},
	
	play: function (flv,img,vol)	{
		var objDiv = document.createElement('DIV');
		objDiv.setAttribute("id","videoPlayerObject");
		$('video-player').appendChild(objDiv);

		this.writeSWF(flv,img,vol);
		$('video-player').style.display = 'block';
	},
	
	close: function()	{
		if ($('videoPlayerObject'))	{
	    	$('video-player').removeChild($('videoPlayerObject'));
	    }
		$('video-player').style.display = 'none';
	}

});
﻿var langR;
	
var tt;
var mm;
var bb;
var ks;
var mp;
var vb;
var cc;
var tk;
var vp;
var ew;
var vv;

Event.observe(window, 'load', function() {

	var qs = new Querystring();
	langR = qs.get("langR");	
	
	if ((langR == undefined) || (langR == ""))	{
		langR = readCookie("langR");
	}

	switch(langR)	{
		case "fr_FR":
			s_pageName = "TSG:ISS:fr/fr|Virtual IT center Main";
			$('header').show();
			$('header_uk').hide();
			$('country_list').options[3].selected=true;
			break;
		case "es_ES":
			s_pageName = "TSG:ISS:es/es|Virtual IT center Main";
			$('header').show();
			$('header_uk').hide();
			$('country_list').options[5].selected=true;
			break;
		case "de_DE":
			s_pageName = "TSG:ISS:de/de|Virtual IT center Main";
			$('header').show();
			$('header_uk').hide();
			$('country_list').options[4].selected=true;
			break;
		case "uk_UK":
			s_pageName = "TSG:ISS:uk/uk|Virtual IT center Main";
			$('header').hide();
			$('header_uk').show();
			$('country_list').options[1].selected=true;
			document.title = "HP Virtual IT Centre";
			break;
		default:
			langR = "en_US";			
			$('header').show();
			$('header_uk').hide();
			$('country_list').options[2].selected=true;
			break;
	}

	//$('controlpanel-lang').innerHTML = langR;
	createCookie("langR",langR,30);
	
	localize(langR);
	
	vp = new Viewport();
	tk = new Metrics();	
	
	$('loader-progress-bar').style.width = '100px';

	
});


function initialize()	{
	jtracer( 'initialize() start' );
	
	tt = new Tooltip('menutip');
	mm = new Menu();
	bb = new Banners();
	ks = new KeywordSearch();
	mp = new Map();
	vb = new Briefcase();
	cc = new Chat();
	ew = new EWin();
	vv = new VideoPlayer();
	
	$('loader-progress-bar').style.width = '400px';
	jtracer( 'initialize() complete' );

}




/ * viewport functions */
function openRoom( id, name )	{
	
	vp.showPromos();

	setSEOInfo(id,name);	
	
	cc.checkChatRoom(id);

	closePops();

	tk.pageTrack("room","");
	//jtracer( 'openRoom(' + id + ',' + name + ')' );


}

function openMenu( id, name )	{

	
	vp.hidePromos();
//	setSEOInfo(name,name + " Content Menu");

	cc.disableChat();

	closePops();
	
	tk.pageTrack("menu","");
	//jtracer( 'openMenu(' + id + ',' + name + ')' );	

}

function deepLink( room, screen, split, item )	{


	if ((room == "null") || (room == undefined))	{
		room = "hub";
	}

	if ((screen == "null") || (screen == undefined))	{
		screen = "";
	}

	if ((split == "null") || (split == undefined))	{
		split = "";
	}

	if ((item == "null") || (item == undefined))	{
		item = "";
	}

	//window.location.href = "#rm=" + room + "&sc=" + screen + "&sp=" + split + "&it=" + item;


	jtracer( 'deepLink(' + room + ',' + screen + ',' + split + ',' + item + ')' );

	SWFAddress.setValue('rm=' + room + '&sc=' + screen + '&sp=' + split + '&it=' + item );


	closePops();
}

function deepLinkCampagin( campaign,list )	{


	//jtracer( 'deepLink(' campaign + ',' + room + ',' + screen + ',' + split + ',' + item + ')' );

	SWFAddress.setValue('cp=' + campaign + '&cl=' + list);


	closePops();
}

function closePops()	{

	mp.enlargeMapClose();
	mp.closeMapMenu();
	vv.close();
	vb.close();
	ks.close();
	ew.close();
	tt.hidetip();
	hideBlastShield();
}

function hideBlastShield()	{
	if ($('sweepObject'))	{
		$('sweepObjectHolder').removeChild($('sweepObject'));
	}
	$('blast-shield').style.display = 'none';
}



// SEO and ADA Data

var descArr = new Array();

descArr['en_US'] = [];
descArr['fr_FR'] = [];
descArr['es_ES'] = [];
descArr['de_DE'] = [];
descArr['uk_UK'] = [];

descArr['en_US']['598'] = 'Welcome to the Blade Answer Center of the HP Virtual IT Center. A BladeSystem is an infrastructure in a box proven to save time, power and money in data centers large and small. Here you’ll find the latest information—that you can view, download and forward—on HP BladeSystem products that support vital business applications with less cost and resources. The information you’ll find represents years of IT hardware, software and service innovation and expertise.';
descArr['en_US']['476'] = 'Welcome to AMD Solutions in Action Room.  Here you can access and download information on the latest solutions like the new Quad-Core AMD Opteron Processor. With Direct Connect Architecture, the AMD Opteron processor provides virtualization efficiencies and continues to enhance true performance-per-watt advantages. We regularly update this room with new information so please come back often.';
descArr['en_US']['566'] = 'Welcome to the Virtualization room.  This room features one of the most important changes to IT now and in the future. Virtualization technology is not only helping IT managers consolidate under-utilized servers and optimize workloads, it’s helping companies of all sizes with business continuity and desktop consolidation.  This section features the latest solutions designed to help your company benefit from this powerful and innovative technology.';
descArr['en_US']['549'] = 'Welcome to the Start with Storage room of the HP Virtual IT Center. Learn about Storage Business Applications, Storage Consolidation, Data Protection and StorageWorks.';
descArr['en_US']['467'] = 'Welcome to the Intel room of the HP Virtual IT Center. Feel free to look around and download information on innovative solutions like the Intel Xeon 5500. This new processor series delivers up to two and a half times the performance of previous platforms. With the ability to adapt to your software, the Intel Xeon 5500 is the intelligent choice to lower cost and increase performance. We’re always updating this area with new information so come back often.';
descArr['en_US']['539'] = 'Welcome to the Service and Support room of the HP Virtual IT Center.  Learn about IT services that deliver the flexibility you need, at the price you want, on your journey to success. Our HP Proactive Select is a new approach that buy the services you need without paying for the ones you don’t. We offer Insight Remote Support, planning and design, integration and deployment.';
descArr['en_US']['504'] = 'Welcome to the Broadcom interactive area. Here, you’ll find jointly developed, innovative network products that provide efficient ways to implement and maintain your network infrastructure. Feel free to take a look around and download any items you find interesting. And come back often because we’re always updating this area with new information.';
descArr['en_US']['557'] = 'Welcome to the Guy in the Server Room of the HP Virtual IT Center.  Are you trapped by your work with no escape? Are you looking for the ray of light at the end of your tunnel? Check out The Guy Who Lives in the Server Room. Is your day worse than his? His system collapses? Well of course. Did you see his server room? If the boss is no help who can he turn to? Will he ever find freedom? Don’t be the guy who lives in the server room.';
descArr['en_US']['486'] = 'Welcome to the HP Qualified Options & Operating Systems room. Here, we’ll discuss ways to amplify your ProLiant, Integrity and StorageWorks environment. Now that you’ve carefully chosen your HP hardware, perfect your solution with the right operating system and options. These products are designed to meet a wide variety of business needs, including energy efficiency, performance, and cost savings so you can be confident in your entire IT environment.';
descArr['en_US']['495'] = 'Welcome to the HP Power and Cooling room of the HP Virtual IT Center.  In this room you will find information and learn about computer room and power, data center and power distribution, green data center cost square feet, containerized computer room, green IT and cloud computing, data center power distribution, data center power monitoring, green computing, building a data center, water cooled rack, computer room air conditioning, computer room cooling, cooling data centers, energy efficient computers, network racks, data center disaster recovery plan, data center standards, data center architecture, data center design and green computers.';
descArr['en_US']['512'] = 'Welcome to the ProLiant Reliability Room.  Run with confidence. With a broad portfolio and the renowned ProLiant reliability <a href="http://h18004.www1.hp.com/products/servers/proliant-advantage/awards.html">http://h18004.www1.hp.com/products/servers/proliant-advantage/awards.html</a>, the HP ProLiant Advantage <a href="http://h18004.www1.hp.com/products/servers/proliant-advantage/index.html">http://h18004.www1.hp.com/products/servers/proliant-advantage/index.html</a> provides innovative solutions. Learn more now about ProLiant choices: Servers, ProLiant blade systems, ISS, ProLiant storage, server management software and options delivering greater reliability and new computer technology to your business. Also see our HP ProLiant Server Family Guide <a href="http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA0-6401ENW.pdf">http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA0-6401ENW.pdf</a>.';
descArr['en_US']['529'] = 'Welcome to the Infrastructure Management room. As IT infrastructures become more complex with an increasing number of tools and separate systems, you need a solution that saves you time and simplifies server management. Here, you’ll find information about HP’s unified infrastructure management tools that enable you to spend less time integrating management tools, less time managing, and more time driving real business results for your company.';
descArr['en_US']['521'] = 'Welcome to the New ProLiant G6 Room.  Make every server purchase count while demanding performance and durability. These servers are based on new Intel Xeon 5500 processors. Includes racks, towers, blades that are re-architected for ROI. The new ProLiant G6 solves problems like running out of power, space and helps do more with virtualization, basically how to do more with less. G6 has focus areas: First, minimize power consumption. We’ve doubled the power efficiency from G5 to G6 with Thermal Logic technology. Second, maximize virtualization with the new onboard administrator. Third, making every server purchase count by delivering more for less with G6.';

descArr['de_DE']['1254'] = 'Welcome to the Blade Answer Center of the HP Virtual IT Center. A BladeSystem is an infrastructure in a box proven to save time, power and money in data centers large and small. Here you’ll find the latest information—that you can view, download and forward—on HP BladeSystem products that support vital business applications with less cost and resources. The information you’ll find represents years of IT hardware, software and service innovation and expertise.';
descArr['de_DE']['1312'] = 'Welcome to AMD Solutions in Action Room.  Here you can access and download information on the latest solutions like the new Quad-Core AMD Opteron Processor. With Direct Connect Architecture, the AMD Opteron processor provides virtualization efficiencies and continues to enhance true performance-per-watt advantages. We regularly update this room with new information so please come back often.';
descArr['de_DE']['1262'] = 'Welcome to the Virtualization room.  This room features one of the most important changes to IT now and in the future. Virtualization technology is not only helping IT managers consolidate under-utilized servers and optimize workloads, it’s helping companies of all sizes with business continuity and desktop consolidation.  This section features the latest solutions designed to help your company benefit from this powerful and innovative technology.';
descArr['de_DE']['1414'] = 'Welcome to the Start with Storage room of the HP Virtual IT Center. Learn about Storage Business Applications, Storage Consolidation, Data Protection and StorageWorks.';
descArr['de_DE']['1381'] = 'Welcome to the Intel room of the HP Virtual IT Center. Feel free to look around and download information on innovative solutions like the Intel Xeon 5500. This new processor series delivers up to two and a half times the performance of previous platforms. With the ability to adapt to your software, the Intel Xeon 5500 is the intelligent choice to lower cost and increase performance. We’re always updating this area with new information so come back often.';
descArr['de_DE']['1403'] = 'Welcome to the Service and Support room of the HP Virtual IT Center.  Learn about IT services that deliver the flexibility you need, at the price you want, on your journey to success. Our HP Proactive Select is a new approach that buy the services you need without paying for the ones you don’t. We offer Insight Remote Support, planning and design, integration and deployment.';
descArr['de_DE']['1392'] = 'Welcome to the Broadcom interactive area. Here, you’ll find jointly developed, innovative network products that provide efficient ways to implement and maintain your network infrastructure. Feel free to take a look around and download any items you find interesting. And come back often because we’re always updating this area with new information.';
descArr['de_DE']['1437'] = 'Welcome to the Guy in the Server Room of the HP Virtual IT Center.  Are you trapped by your work with no escape? Are you looking for the ray of light at the end of your tunnel? Check out The Guy Who Lives in the Server Room. Is your day worse than his? His system collapses? Well of course. Did you see his server room? If the boss is no help who can he turn to? Will he ever find freedom? Don’t be the guy who lives in the server room.';
descArr['de_DE']['1370'] = 'Welcome to the HP Qualified Options & Operating Systems room. Here, we’ll discuss ways to amplify your ProLiant, Integrity and StorageWorks environment. Now that you’ve carefully chosen your HP hardware, perfect your solution with the right operating system and options. These products are designed to meet a wide variety of business needs, including energy efficiency, performance, and cost savings so you can be confident in your entire IT environment.';
descArr['de_DE']['1215'] = 'Welcome to the HP Power and Cooling room of the HP Virtual IT Center.  In this room you will find information and learn about computer room and power, data center and power distribution, green data center cost square feet, containerized computer room, green IT and cloud computing, data center power distribution, data center power monitoring, green computing, building a data center, water cooled rack, computer room air conditioning, computer room cooling, cooling data centers, energy efficient computers, network racks, data center disaster recovery plan, data center standards, data center architecture, data center design and green computers.';
descArr['de_DE']['1207'] = 'Welcome to the ProLiant Reliability Room.  Run with confidence. With a broad portfolio and the renowned ProLiant reliability <a href="http://h18004.www1.hp.com/products/servers/proliant-advantage/awards.html">http://h18004.www1.hp.com/products/servers/proliant-advantage/awards.html</a>, the HP ProLiant Advantage <a href="http://h18004.www1.hp.com/products/servers/proliant-advantage/index.html">http://h18004.www1.hp.com/products/servers/proliant-advantage/index.html</a> provides innovative solutions. Learn more now about ProLiant choices: Servers, ProLiant blade systems, ISS, ProLiant storage, server management software and options delivering greater reliability and new computer technology to your business. Also see our HP ProLiant Server Family Guide <a href="http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA0-6401ENW.pdf">http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA0-6401ENW.pdf</a>.';
descArr['de_DE']['1239'] = 'Welcome to the Infrastructure Management room. As IT infrastructures become more complex with an increasing number of tools and separate systems, you need a solution that saves you time and simplifies server management. Here, you’ll find information about HP’s unified infrastructure management tools that enable you to spend less time integrating management tools, less time managing, and more time driving real business results for your company.';
descArr['de_DE']['1426'] = 'Welcome to the New ProLiant G6 Room.  Make every server purchase count while demanding performance and durability. These servers are based on new Intel Xeon 5500 processors. Includes racks, towers, blades that are re-architected for ROI. The new ProLiant G6 solves problems like running out of power, space and helps do more with virtualization, basically how to do more with less. G6 has focus areas: First, minimize power consumption. We’ve doubled the power efficiency from G5 to G6 with Thermal Logic technology. Second, maximize virtualization with the new onboard administrator. Third, making every server purchase count by delivering more for less with G6.';

descArr['fr_FR']['1251'] = 'Welcome to the Blade Answer Center of the HP Virtual IT Center. A BladeSystem is an infrastructure in a box proven to save time, power and money in data centers large and small. Here you’ll find the latest information—that you can view, download and forward—on HP BladeSystem products that support vital business applications with less cost and resources. The information you’ll find represents years of IT hardware, software and service innovation and expertise.';
descArr['fr_FR']['1262'] = 'Welcome to AMD Solutions in Action Room.  Here you can access and download information on the latest solutions like the new Quad-Core AMD Opteron Processor. With Direct Connect Architecture, the AMD Opteron processor provides virtualization efficiencies and continues to enhance true performance-per-watt advantages. We regularly update this room with new information so please come back often.';
descArr['fr_FR']['1240'] = 'Welcome to the Virtualization room.  This room features one of the most important changes to IT now and in the future. Virtualization technology is not only helping IT managers consolidate under-utilized servers and optimize workloads, it’s helping companies of all sizes with business continuity and desktop consolidation.  This section features the latest solutions designed to help your company benefit from this powerful and innovative technology.';
descArr['fr_FR']['1400'] = 'Welcome to the Start with Storage room of the HP Virtual IT Center. Learn about Storage Business Applications, Storage Consolidation, Data Protection and StorageWorks.';
descArr['fr_FR']['1353'] = 'Welcome to the Intel room of the HP Virtual IT Center. Feel free to look around and download information on innovative solutions like the Intel Xeon 5500. This new processor series delivers up to two and a half times the performance of previous platforms. With the ability to adapt to your software, the Intel Xeon 5500 is the intelligent choice to lower cost and increase performance. We’re always updating this area with new information so come back often.';
descArr['fr_FR']['1388'] = 'Welcome to the Service and Support room of the HP Virtual IT Center.  Learn about IT services that deliver the flexibility you need, at the price you want, on your journey to success. Our HP Proactive Select is a new approach that buy the services you need without paying for the ones you don’t. We offer Insight Remote Support, planning and design, integration and deployment.';
descArr['fr_FR']['1341'] = 'Welcome to the Broadcom interactive area. Here, you’ll find jointly developed, innovative network products that provide efficient ways to implement and maintain your network infrastructure. Feel free to take a look around and download any items you find interesting. And come back often because we’re always updating this area with new information.';
descArr['fr_FR']['1411'] = 'Welcome to the Guy in the Server Room of the HP Virtual IT Center.  Are you trapped by your work with no escape? Are you looking for the ray of light at the end of your tunnel? Check out The Guy Who Lives in the Server Room. Is your day worse than his? His system collapses? Well of course. Did you see his server room? If the boss is no help who can he turn to? Will he ever find freedom? Don’t be the guy who lives in the server room.';
descArr['fr_FR']['1364'] = 'Welcome to the HP Qualified Options & Operating Systems room. Here, we’ll discuss ways to amplify your ProLiant, Integrity and StorageWorks environment. Now that you’ve carefully chosen your HP hardware, perfect your solution with the right operating system and options. These products are designed to meet a wide variety of business needs, including energy efficiency, performance, and cost savings so you can be confident in your entire IT environment.';
descArr['fr_FR']['1218'] = 'Welcome to the HP Power and Cooling room of the HP Virtual IT Center.  In this room you will find information and learn about computer room and power, data center and power distribution, green data center cost square feet, containerized computer room, green IT and cloud computing, data center power distribution, data center power monitoring, green computing, building a data center, water cooled rack, computer room air conditioning, computer room cooling, cooling data centers, energy efficient computers, network racks, data center disaster recovery plan, data center standards, data center architecture, data center design and green computers.';
descArr['fr_FR']['1207'] = 'Welcome to the ProLiant Reliability Room.  Run with confidence. With a broad portfolio and the renowned ProLiant reliability <a href="http://h18004.www1.hp.com/products/servers/proliant-advantage/awards.html">http://h18004.www1.hp.com/products/servers/proliant-advantage/awards.html</a>, the HP ProLiant Advantage <a href="http://h18004.www1.hp.com/products/servers/proliant-advantage/index.html">http://h18004.www1.hp.com/products/servers/proliant-advantage/index.html</a> provides innovative solutions. Learn more now about ProLiant choices: Servers, ProLiant blade systems, ISS, ProLiant storage, server management software and options delivering greater reliability and new computer technology to your business. Also see our HP ProLiant Server Family Guide <a href="http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA0-6401ENW.pdf">http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA0-6401ENW.pdf</a>.';
descArr['fr_FR']['1229'] = 'Welcome to the Infrastructure Management room. As IT infrastructures become more complex with an increasing number of tools and separate systems, you need a solution that saves you time and simplifies server management. Here, you’ll find information about HP’s unified infrastructure management tools that enable you to spend less time integrating management tools, less time managing, and more time driving real business results for your company.';
descArr['fr_FR']['1376'] = 'Welcome to the New ProLiant G6 Room.  Make every server purchase count while demanding performance and durability. These servers are based on new Intel Xeon 5500 processors. Includes racks, towers, blades that are re-architected for ROI. The new ProLiant G6 solves problems like running out of power, space and helps do more with virtualization, basically how to do more with less. G6 has focus areas: First, minimize power consumption. We’ve doubled the power efficiency from G5 to G6 with Thermal Logic technology. Second, maximize virtualization with the new onboard administrator. Third, making every server purchase count by delivering more for less with G6.';

descArr['es_ES']['1253'] = 'Welcome to the Blade Answer Center of the HP Virtual IT Center. A BladeSystem is an infrastructure in a box proven to save time, power and money in data centers large and small. Here you’ll find the latest information—that you can view, download and forward—on HP BladeSystem products that support vital business applications with less cost and resources. The information you’ll find represents years of IT hardware, software and service innovation and expertise.';
descArr['es_ES']['1264'] = 'Welcome to AMD Solutions in Action Room.  Here you can access and download information on the latest solutions like the new Quad-Core AMD Opteron Processor. With Direct Connect Architecture, the AMD Opteron processor provides virtualization efficiencies and continues to enhance true performance-per-watt advantages. We regularly update this room with new information so please come back often.';
descArr['es_ES']['1239'] = 'Welcome to the Virtualization room.  This room features one of the most important changes to IT now and in the future. Virtualization technology is not only helping IT managers consolidate under-utilized servers and optimize workloads, it’s helping companies of all sizes with business continuity and desktop consolidation.  This section features the latest solutions designed to help your company benefit from this powerful and innovative technology.';
descArr['es_ES']['1420'] = 'Welcome to the Start with Storage room of the HP Virtual IT Center. Learn about Storage Business Applications, Storage Consolidation, Data Protection and StorageWorks.';
descArr['es_ES']['1376'] = 'Welcome to the Intel room of the HP Virtual IT Center. Feel free to look around and download information on innovative solutions like the Intel Xeon 5500. This new processor series delivers up to two and a half times the performance of previous platforms. With the ability to adapt to your software, the Intel Xeon 5500 is the intelligent choice to lower cost and increase performance. We’re always updating this area with new information so come back often.';
descArr['es_ES']['1409'] = 'Welcome to the Service and Support room of the HP Virtual IT Center.  Learn about IT services that deliver the flexibility you need, at the price you want, on your journey to success. Our HP Proactive Select is a new approach that buy the services you need without paying for the ones you don’t. We offer Insight Remote Support, planning and design, integration and deployment.';
descArr['es_ES']['1364'] = 'Welcome to the Broadcom interactive area. Here, you’ll find jointly developed, innovative network products that provide efficient ways to implement and maintain your network infrastructure. Feel free to take a look around and download any items you find interesting. And come back often because we’re always updating this area with new information.';
descArr['es_ES']['1432'] = 'Welcome to the Guy in the Server Room of the HP Virtual IT Center.  Are you trapped by your work with no escape? Are you looking for the ray of light at the end of your tunnel? Check out The Guy Who Lives in the Server Room. Is your day worse than his? His system collapses? Well of course. Did you see his server room? If the boss is no help who can he turn to? Will he ever find freedom? Don’t be the guy who lives in the server room.';
descArr['es_ES']['1387'] = 'Welcome to the HP Qualified Options & Operating Systems room. Here, we’ll discuss ways to amplify your ProLiant, Integrity and StorageWorks environment. Now that you’ve carefully chosen your HP hardware, perfect your solution with the right operating system and options. These products are designed to meet a wide variety of business needs, including energy efficiency, performance, and cost savings so you can be confident in your entire IT environment.';
descArr['es_ES']['1217'] = 'Welcome to the HP Power and Cooling room of the HP Virtual IT Center.  In this room you will find information and learn about computer room and power, data center and power distribution, green data center cost square feet, containerized computer room, green IT and cloud computing, data center power distribution, data center power monitoring, green computing, building a data center, water cooled rack, computer room air conditioning, computer room cooling, cooling data centers, energy efficient computers, network racks, data center disaster recovery plan, data center standards, data center architecture, data center design and green computers.';
descArr['es_ES']['1206'] = 'Welcome to the ProLiant Reliability Room.  Run with confidence. With a broad portfolio and the renowned ProLiant reliability <a href="http://h18004.www1.hp.com/products/servers/proliant-advantage/awards.html">http://h18004.www1.hp.com/products/servers/proliant-advantage/awards.html</a>, the HP ProLiant Advantage <a href="http://h18004.www1.hp.com/products/servers/proliant-advantage/index.html">http://h18004.www1.hp.com/products/servers/proliant-advantage/index.html</a> provides innovative solutions. Learn more now about ProLiant choices: Servers, ProLiant blade systems, ISS, ProLiant storage, server management software and options delivering greater reliability and new computer technology to your business. Also see our HP ProLiant Server Family Guide <a href="http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA0-6401ENW.pdf">http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA0-6401ENW.pdf</a>.';
descArr['es_ES']['1228'] = 'Welcome to the Infrastructure Management room. As IT infrastructures become more complex with an increasing number of tools and separate systems, you need a solution that saves you time and simplifies server management. Here, you’ll find information about HP’s unified infrastructure management tools that enable you to spend less time integrating management tools, less time managing, and more time driving real business results for your company.';
descArr['es_ES']['1398'] = 'Welcome to the New ProLiant G6 Room.  Make every server purchase count while demanding performance and durability. These servers are based on new Intel Xeon 5500 processors. Includes racks, towers, blades that are re-architected for ROI. The new ProLiant G6 solves problems like running out of power, space and helps do more with virtualization, basically how to do more with less. G6 has focus areas: First, minimize power consumption. We’ve doubled the power efficiency from G5 to G6 with Thermal Logic technology. Second, maximize virtualization with the new onboard administrator. Third, making every server purchase count by delivering more for less with G6.';


function setSEOInfo(id, title)	{
	$('seo-title').innerHTML = title;
	$('seo-desc').innerHTML = descArr[langR][id];
}


function launchWebinar( url, w, h )	{
	var l = ($('container').getWidth() - w)/2;
	ew.open( url, locStrD[langR]['webinar-title-text'], w, h, 45, l);
}

function launchDemo( url, w, h )	{
	var t = ($('container').getHeight() - h)/2;
	var l = ($('container').getWidth() - w)/2;
	ew.open( url, locStrD[langR]['demo-title-text'], w, h, t, l);
}

function launchGame( url, w, h )	{
	var t = ($('container').getHeight() - h)/2;
	var l = ($('container').getWidth() - w)/2;
	ew.open( url, locStrD[langR]['game-title-text'], w, h, t, l);
}

function launchVideo(flv,img,vol)	{
	vv.play(flv,img,vol);
}

function launchHelp()	{
	var w = 470;
	var h = 265;
	var t = ($('container').getHeight() - h)/2;
	var l = ($('container').getWidth() - w)/2;
	ew.open( 'help/index.html?langR=' + langR, locStrD[langR]['help-title-text'], w, h, t, l);
}

function launchSendToFriend(itemType)	{
	var w = 450;
	var h = 240;
	var t = ($('container').getHeight() - h)/2;
	var l = ($('container').getWidth() - w)/2;
	var url = escape(location.href);
	ew.open( 'sendtofriend/form.php?langR=' + langR + "&url=" + url + "&type=" + itemType, locStrD[langR]['send-title-text'], w, h, t, l);
}


function launchSocial()	{
	$('social-networking').style.display = 'block';
}

