<!-- 
//=============================================================================================//
// --> 	NAME			: 	Survey Configuration File (North America)
// --> 	AUTHOR			: 	Jonathan Brumley (jonathan.brumley@hp.com)
// --> 	COPYRIGHT		: 	© 2006 Hewlett-Packard Development Company, L.P. All rights reserved.
//=============================================================================================//
var _SPC_ = {

	modified: '01-28-2009',	// 
	version: '1.0',
	sFileRoot: 'http://www.hp.com/cma/metrics/survey/',
	sHttpsFileRoot: 'https://secure.hp-ww.com/cma/metrics/survey/',
	sTFileRoot: 'http://webmetrics1.americas.hpqcorp.net/survey/source/',
	aSurvey:[{ // In dual mode this secction is called when nDPratio = 0.00
	
				sId: '3BC1E4C106D22418', // modified
				aZone:[{index: 1},{ sName: 'default', nCode: '64', nClicks: 0, nPratio: .0 }], 
				sLogo: 'sv_logo.gif', 
				sSvName: '',
				sPrefix: 'num', 
				sCss: ['num_inv'], 
				nCookieLife: 180,
				sDLang: '9',
				bUseEmail: false,
				bUseInvite: true,
				bUseMyArgumentsOnly: false,
				aUriArguments: '',
				aWindow: { nHeight: 850 , nWidth: 665 , sScroll: 'yes', sResize: 'yes'}
			}],
	
	sSite: '64',
	sJScript: 'TSGEnterprise.js', 
	sMainClass: 'sup_class2',
	aModules: ['TSGEnterpriseLang','svDrag'], 
	bDualMod: false,
		nDPratio: 0.00, // This is for dual mode
	sCookieDomain: '.hp.com', //specify the cookie domain eg '.hp.com' if doesnt know use leave it as '' 
	bUseClicks: false,
		/*
		OTIONS for bUseNumClicks are: EXT | NEW
		For EXT always use the name of the EXTERNAL cookie sCookie: ['EXTERNAL COOKIE NAME'],
		For NEW always use a new cookie name, it has to be different than any external cookie name sCookie: ['NEW COOKIE NAME']
		NOTE: To use bUseNumClicks bUseClicks needs to be set to true;
		*/
		bUseNumClicks: 'EXT',  
		sCookie: ['HP_EBUS'], 
		nClicksCookieLife: 30,

	sJSDir: 'lib/',
	sIMGDir: 'img/',
	sCSSDir: 'css/',
	aRestrict: [],
	aRestrictExep: [],
	aHttpsAllow: [],
	//if sCondition: "true" triger survey | "false" wont show survey 
	sCondition: function(){
		return true;
	},
	sLauncher: 'L_SURVEY',
	sReportLauncher: 'L_REPORT',
	nzIndex: 1000,
	sTop: '120px',
	sLeft: Math.round((screen.width - 580) / 2)+'px',
	sRFolder: '',
	bUseMyMatchLangFunction: true,
	
		//To use your own match function bUseMyMatchLangFunction need to be set to 'true';
		matchLanguage:	function(l,c){
			return 9;
			/* match logic example
			var nL = '0';
			if (l.indexOf('en')>-1){
				nL = '9'; //English
			}
			*/
		}

}


if((location.href.indexOf('cceaacspro01')==-1) || (location.href.indexOf('cceaacspro01')==-1)) {

//LOAD MAIN MODULE//
onload(loadMod())
}

//FUNCTIONS//
function loadMod(){ 
	setFolder();
	var hd = document.getElementsByTagName('HEAD')[0]; 
	var el = document.createElement('script'); 
	el.setAttribute('type', 'text/javascript');	
	el.setAttribute('src', _SPC_.sRFolder+_SPC_.sJSDir+_SPC_.sMainClass+'.js'); 
	hd.appendChild(el);
}
function onload(f, a){ 
	var n = 0;
	var t = setInterval(
				function(){
					var c = true;
					n++;	
					if(typeof document.getElementsByTagName != 'undefined' && 
					    (document.getElementsByTagName('body')[0] != null || document.body != null)){
						c = false;
						if(typeof a == 'object'){ 
							for(var i in a){
								if ( (a[i] == 'id' && document.getElementById(i) == null) || 
									(a[i] == 'tag' && document.getElementsByTagName(i).length < 1) ){
									c = true;
									break;
								}
							}
						} 
						if(!c) {
							f;
							clearInterval(t);
						} 
					}
					if(n >= 60) {
						clearInterval(t);
					}
				}, 250);
}
function setFolder(){
	if(self.location.protocol == 'https:') {
		_SPC_.sRFolder = _SPC_.sHttpsFileRoot;
	} else if(location.href.indexOf('webmetrics1')!=-1) {
		_SPC_.sRFolder = _SPC_.sTFileRoot;
	}else{
		_SPC_.sRFolder = _SPC_.sFileRoot
	}
}
//-->

//=============================================================================================//
// 										END OF FILE
//=============================================================================================//