/** ********************************************* **
 ** Type File: 	JavaScript                        **
 ** Objetive:	Document of Omniture or Tracking  **
 ** Created: 	Randall Colomer in avVenta        **
 ** Date: 		01/11/2007                        ** 
 ** ********************************************* **/
 
/* ************************************************** *
 * Functiones obligatorias para el OMNITURE TRACKING. *
 * ************************************************** */
function clearProps() {
	s_prop1 = "";
	s_prop2 = "";
	s_prop3 = "";
	s_prop4 = "";
	s_prop5 = "";
	s_prop6 = "";
	s_prop7 = "";
	s_prop8 = "";
	s_prop9 = "";
	s_prop10 = "";
	s_prop11 = "";
	s_prop12 = "";
	s_prop13 = "";
	s_prop14 = "";
	s_prop15 = "";
	s_prop16 = "";
	s_prop17 = "";
	s_prop18 = "";
	s_prop19 = "";
	s_prop20 = "";
	s_prop21 = "";
	s_prop22 = "";
	s_prop23 = "";
	s_prop24 = "";
	s_prop25 = "SATURN";
	s_prop26 = settingTime();
	s_prop27 = upperCase();
	s_prop28 = "";
	s_events = "";
	s_pageName = "";
}

function storeParameters() {
	var storeData = s_prop1+" "+s_prop2;
	return storeData;
}

function concatParameters() {
	var concatParameter = s_prop1+" | "+s_prop2;
	return concatParameter;
}

function trackingLines() {
	//s_lnk=false;
	s_linkType="o";	
	s_lnk = s_co(this);	
	s_gs( s_account );
}

/* ******************************************************* *
 * Omniture Tracking Guidelines for the EXPERIENCE ONSTAR. *
 * ******************************************************* */
function experienceOnStar() {
	s_LinkName = "SATURN | "+ storeParameters() +" | TOP NAV | ONSTAR ";
	clearProps();
	s_prop5 = s_LinkName;
	s_prop14 = "ONSTAR ";
	s_prop28 = "ONSTAR EXTERNAL ";
	trackingLines();
	sendLinkEvent('', s_LinkName);
	window.location.reload();
}

/* *************************************************** *
 * Omniture Tracking Guidelines for the BASEBALL CARD. *
 * *************************************************** */
function baseballCard(sectionValue) {
	s_LinkName = "SATURN | "+ concatParameters() +" | BASEBALL CARD | "+ sectionValue;
	clearProps();
	s_prop5 = s_LinkName;
	trackingLines();
	sendLinkEvent('', s_LinkName);
}
 
/* ******************************************************* *
 * Omniture Tracking Guidelines for the VEHICLES DROPDOWN. *
 * ******************************************************* */
function vehiclesDropDown(sectionValue) {	
	s_LinkName = "SATURN | "+ concatParameters() +" | VEHICLES DROPDOWN | "+ sectionValue;
	clearProps();	
	s_prop5 = s_LinkName;
	trackingLines();	
	sendLinkEvent('', s_LinkName);
}

/* *************************************************** *
 * Omniture Tracking Guidelines for the SHOP DROPDOWN. *
 * *************************************************** */
function shopDropDown(sectionValue) {	
	s_LinkName = "SATURN | "+ concatParameters() +" | SHOP DROPDOWN | "+ sectionValue;
	clearProps();
	s_prop5 = s_LinkName;
	trackingLines();	
	sendLinkEvent('', s_LinkName);
}
 
/* *********************************************** *
 * Omniture Tracking Guidelines for the LIVE CHAT. *
 * *********************************************** */
function liveChat() {
	s_LinkName = "SATURN | "+ concatParameters() +" | TOP NAV | LIVE CHAT ";
	clearProps();	
	s_prop5 = s_LinkName;
	trackingLines();	
	sendLinkEvent('', s_LinkName);
	window.location.reload();
}
