
function showFaqSection(sid, anchor) {
	hideFaqSections();
	anchor.parentNode.className = "active";
	document.getElementById("faq_" + sid).className = "active";
	anchor.blur();
}


function hideFaqSections()
{
  var ul = document.getElementById("faqSectionList");
  for (var q = 0; q < ul.childNodes.length; q++) 
  {
    if (ul.childNodes[q].nodeName == "LI") 
      ul.childNodes[q].className = "";
  }
  
  ul = document.getElementById("faqs");
  for (var q = 0; q < ul.childNodes.length; q++) 
  {
    if (ul.childNodes[q].nodeName == "LI") 
      ul.childNodes[q].className = "";
  }
  var str = navigator.appVersion;
  if (str.match("Safari") == "Safari") 
  {
/*    document.getElementById('gDisclaimer').style.top = "-200px";*/
     var e= document.getElementById('gDisclaimer');
     e.style.margin= "0";
     e.style.padding= "0";
     e.style.display= "block";
  }
}


function OnFaqClick(anchor) 
{  
  if (anchor.parentNode.className.indexOf("active") > -1) 
    anchor.parentNode.className = anchor.parentNode.className.split("active").join("");
  else 
    anchor.parentNode.className += " active";
  anchor.blur();
  var str = navigator.appVersion;
  var ccontenHeight = document.getElementById("ccontent").offsetHeight;
   
   if (str.match("Safari") == "Safari") 
   {
     /*This function fixed safari disclaimer depends of question content on FAQ
     document.getElementById('gDisclaimer').style.position = "absolute";
     var wdiference = (ccontenHeight - 568);
     if (wdiference > 0) 
     {
       var newSize = "-" + (200 - wdiference) + "px";
       newSize = newSize.replace(/--/, "+");
       document.getElementById('gDisclaimer').style.top = newSize;
     }
     else 
     {
       document.getElementById('gDisclaimer').style.top = "-200px";
     }
     document.getElementById('gDisclaimer').style.left = "165px"; */
       var e= document.getElementById('gDisclaimer');
       e.style.margin= "0";
       e.style.padding= "0";
       e.style.display= "block";
   }
	 return false;
}


function showContent(sid, anchor)
{
  var ul = anchor.parentNode.parentNode;
  for (var q = 0; q < ul.childNodes.length; q++) 
  {
    if (ul.childNodes[q].nodeName == "LI") 
      ul.childNodes[q].className = "";
  }
  document.getElementById("quicktools").style.display = "block";
  anchor.parentNode.className = "active";
  document.getElementById("content_" + sid).style.display = "block";
  setParam(anchor.id);
  anchor.blur();
  return false;
}


function cleanZIP(ZipField)
{
	ZipField.value= "";
}

function open_win() 
{
	window.open("http://www.gm.com")
}

function setParam(value)
/* Hides or shows the FAQ or the Contact Us section of the page */
{
  var faq= document.getElementById("content_faq");
  var cu= document.getElementById("content_contactus");  
  var glo= document.getElementById("content_glossary");  

  if ((faq != null) && (cu != null) && (glo != null))
  {
    faq.style.display= (value == "faq") ? "block" : "none";
    cu.style.display= (value == "contactus") ? "block" : "none";
    glo.style.display= (value == "glossary") ? "block" : "none";
    var str = navigator.appVersion;
    if (str.match("Safari") == "Safari") 
    {/*
      if (value == "glossary") 
      {
        document.getElementById('gDisclaimer').style.position = "absolute";
        document.getElementById('gDisclaimer').style.top = "5690px";
        document.getElementById('gDisclaimer').style.left = "165px";
      }
      else 
        if (value == "faq") 
        {
          document.getElementById('gDisclaimer').style.position = "absolute";
          document.getElementById('gDisclaimer').style.top = "-200px";
          document.getElementById('gDisclaimer').style.left = "165px";
        }
        else 
          if (value == "contactus") 
          {
            document.getElementById('gDisclaimer').style.position = "absolute";
            document.getElementById('gDisclaimer').style.top = "-200px";
            document.getElementById('gDisclaimer').style.left = "165px";
          }*/
       var e= document.getElementById('gDisclaimer');
       e.style.margin= "0";
       e.style.padding= "0";
       e.style.display= "block";          
    }
 }
}




/*PLS  HELPCENTER GLOSSARY CODE*/


//show and hide the questions of the selected category in the FAQ tab
function changeItem(domEl)
{
	//each elemet is composed for name + 'information'
	var itemFix = "Information";
	
	//get the element
	var itemInfo = domEl.id + itemFix;
	var itemTemp = "";
	
	for(var i=0; i < itemNames.length; i++)
	{
		if(domEl.id == itemNames[i])
		{
			document.getElementById(itemNames[i]).className = "itemSelected";
			manageSubTabsClickTrack("", "", "", domEl.id, "", "CategoriesFAQ");
		}
		else
		{
			document.getElementById(itemNames[i]).className = "itemNotSelected";
		}
		itemTemp = itemNames[i] + itemFix;
		if(itemInfo == itemTemp)
		{
			document.getElementById(itemTemp).className = "itemInformationSelected";
		}
		else
		{
			document.getElementById(itemTemp).className = "itemInformationNotSelected";
		}
	 }
}

//show and hide the questions  answer that the user select
function displayOptionInfo(domEl, category)
{
	var optionFix = "Info";
	manageSubTabsClickTrack("", "", domEl.id, category, "", "QuestionCategoriesFAQ");
	var itemOpt = domEl.id;
	var itemOptClass = document.getElementById(itemOpt).className;
	var option = domEl.id + optionFix;
	var optionClass = document.getElementById(option).className;
	if(optionClass == "optionTextVisible") 
	{
		document.getElementById(option).className = "optionTextHidden"
	}
	else 
	{
		document.getElementById(option).className = "optionTextVisible"
	}
	if(itemOptClass == "headerItemOption")
	{
		document.getElementById(itemOpt).className = "headerItemOptionNeg"
	}
	else
	{
		document.getElementById(itemOpt).className = "headerItemOption"
	}
}

//change the images and style for the currect selected tab
function changeTab(domEl)
{
	dir = document.getElementById(domEl).src;
	if(domEl=="FAQ")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="over")
		{
			document.getElementById("ContactUs").src="/images/helpcenter/buick_help_tab_Contac_off.gif";
			document.getElementById("Glossary").src="/images/helpcenter/buick_help_tab_Glossary_off.gif";
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_FAQ_on.gif";
			document.getElementById("DivFAQ").className="DivSelected";
			document.getElementById("DivGlossary").className="DivNoSelected";
			document.getElementById("DivContactUs").className="DivNoSelected";
			manageSubTabsClickTrack("", "", "", "", "", "VisitFAQ");
		}
	}
	else if (domEl=="ContactUs")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="over")
		{
			document.getElementById("FAQ").src="/images/helpcenter/buick_help_tab_FAQ_off.gif";
			document.getElementById("Glossary").src="/images/helpcenter/buick_help_tab_Glossary_off.gif";
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_Contac_on.gif";
			document.getElementById("DivContactUs").className="DivSelected";
			document.getElementById("DivGlossary").className="DivNoSelected";
			document.getElementById("DivFAQ").className="DivNoSelected";
			manageSubTabsClickTrack("", "", "", "", "", "VisitContactUs");
		}
	}
	else if(domEl=="Glossary")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="over")
		{
			document.getElementById("FAQ").src="/images/helpcenter/buick_help_tab_FAQ_off.gif";
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_Glossary_on.gif";
			document.getElementById("ContactUs").src="/images/helpcenter/buick_help_tab_Contac_off.gif";
			document.getElementById("DivContactUs").className="DivNoSelected";
			document.getElementById("DivGlossary").className="DivSelected";
			document.getElementById("DivFAQ").className="DivNoSelected";
			ViewNumber();
			manageSubTabsClickTrack("", "", "", "", "", "VisitGlossary");
		}
	}
}

//change the style on mouse over of the tabs
function mouseoverchange(domEl)
{
	dir = document.getElementById(domEl).src;
	if(domEl=="FAQ")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="off")
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_FAQ_over.gif";
	}
	else if (domEl=="ContactUs")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="off")
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_Contac_over.gif";
	}
	else if(domEl=="Glossary")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="off")
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_Glossary_over.gif";
	}
}

//change the style on mouse out of the tabs
function mouseoutchange(domEl)
{
	dir = document.getElementById(domEl).src;
	if(domEl=="FAQ")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="over")
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_FAQ_off.gif";
	}
	else if (domEl=="ContactUs")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="over")
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_Contac_off.gif";
	}
	else if(domEl=="Glossary")
	{
		var condition = dir.substring(dir.lastIndexOf("_")+1, dir.lastIndexOf("."));		
		if(condition=="over")
			document.getElementById(domEl).src="/images/helpcenter/buick_help_tab_Glossary_off.gif";
	}
	
	return false;
}


//show every number that has some term in the glossary
function ViewNumber()
{
	var number = 0;
	var boolean = false;
	while (number <= 9)
	{
		var int = 1;
		
		//go for all numbers and see if there is some term available for that number
		while(int <= 29)
		{
			//get the element
			var letters = document.getElementById("Block_"+int).innerHTML;
			
			//if it is equal to the current number, show t otherwise hide it
			if(number == letters)
			{
				boolean = true;
				break;
			}
			int++;
		}
		//Show or hidde the number 
		if(boolean == true)
			document.getElementById("letters_" + number).className= "Exist";
		else
			document.getElementById("letters_" + number).className= "NoExist";
		number++;
		boolean = false;
	}
}

//remove the blank spaces
String.prototype.trim = function(){ 
	return this.replace(/^\s+|\s+$/g,'') 
}

//search for a term in the glossary
//param word == 
function WordSearch(word, int)
{
	word= word.trim();
	if(word != " ")
	{		
		word= word.toLowerCase();
		var bool= false;
		
		manageSubTabsClickTrack("", "word", "", "", "", "TermSearchGlossary");
		
		//62 is the number of the elements in the glossary
		//if a element is add it or delete it, this number must be changed
		while(int <= 62)
		{
			selectedElement  = document.getElementById("Title"+ int);
			var strings = selectedElement.innerHTML;
			strings = strings.toLowerCase();
			var Text = strings.search(word);
			
			//if the term is found
			if(Text != -1)
			{
				document.getElementById('int').value = int;
				wordSearch = word.toUpperCase();
				selectedElement.innerHTML =  selectedElement.innerHTML + " " + "<label onClick='return nextMatch()' class='LabelLink' >Next Match</label>";
				clickTrack({s_pageName:'GMC | DIVISIONAL  | HELP CENTER | GLOSSARY', s_lnk:false, s_prop1:'DIVISIONAL', s_prop2:'HELP CENTER',s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11:'GLOSSARY',s_prop12:'HELP CENTER | GLOSSARY',s_prop13:'DIVISIONAL | HELP CENTER | GLOSSARY',s_prop14: 'SEARCH', s_prop15:'GLOSSARY | SEARCH' , s_prop16:'HELP CENTER | GLOSSARY | SEARCH' ,s_prop17:'DIVISIONAL | HELP CENTER | GLOSSARY | SEARCH', s_prop21: 'GLOSSARY | ' + wordSearch, s_prop24:'EN', s_prop25:'GMC'});
				location.href = "#" + document.getElementById("Title"+ int).id;
				bool = true;
				break;
			}
			Text ="";
			int++;
		}
		
		//if the term is not found a msg error is displayed
		if(bool == false)
		{
			alert("Your search returned no results.  Please modify your request and search again");
		}
	}
	return false;
}

//Remove the label "Next Match"
function DeleteLabel(int)
{
	var text = document.getElementById("Title"+ int).innerHTML.toLowerCase();;
	text = text.split("<label");
	document.getElementById("Title"+ int).innerHTML = text[0];
}

//each time the user click Glossary search, this function removes the "next match" word if exist
function FirstSearch(word, int)
{
	DeleteLabel(int);
	//set the word of the item
	document.getElementById('int').value = 1;
	WordSearch(word, 1);
	return false;
}

//when the user clicks on the "next match", the next match word is removed and the next word is selected
function nextMatch()
{
	var int = document.getElementById('int').value;
	DeleteLabel(int);
	int++;
	WordSearch(document.getElementById('TextSearch').value, int);
	return false;
}

//take the infoemation of the selected and change the style to be printed
function getInnerHtml(width,height,name)
{
	content = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><link rel="stylesheet" href="/css/pHelpCenterPrinter.css" /></head><body><div id="headerPrint"><a href="javascript:window.print();" id="print-button-1" class="clvPrint">print</a> <a href="javascript:window.close();" class="clvClose">close</a></div>';
	
	//if the user want to print the contact us
	if(document.getElementById("DivContactUs").className=="DivSelected")
		contentbody = document.getElementById("DivContactUs").innerHTML;
	//if the user want to print the FAQ's
	else if (document.getElementById("DivFAQ").className=="DivSelected")	
	{
		//Search the category selected
		for(i=1;i<=6;i++)
		{
			if(document.getElementById("item"+i+"Information").className == "itemInformationSelected")
			{
				contentbody = '';
				contentbody = document.getElementById("item"+i+"Information").innerHTML;
				i=6;
			}
		}
	}
	//if the user want to print the Glossary
	else if(document.getElementById("DivGlossary").className=="DivSelected")
	{
		contentbody = document.getElementById("DivGlossary").innerHTML;
	}
	content = content+contentbody+"</body></html>";
	PositionedWin(width,height,name,content);
	return false;
}


function PositionedWin(width,height,name,content) 
{
	// DEFAULTS //
	var winW = 800, winH = 600;
	var winO = ',scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=1,resizable=0';
	
	//for vertical positioning detect for IE or NN
	if ((navigator.appName == "Microsoft Internet Explorer"))
	{
		var parOffsetX = 140, parOffsetY = 90;
	}
	else
	{
		var parOffsetX = 140, parOffsetY = 215;
	}
	
	var debug = 0; // 0 = off, 1 = on
	
	// PARENT WINDOW INFO //
	//If browser is IE
	if (document.all) 
	{
		var x = window.screenLeft;
		var y = window.screenTop;
		var w = window.document.body.offsetWidth;
		var h = window.document.body.offsetHeight;
	} 
	else //if browser isn't IE
	{
		var x = window.screenX;
		var y = window.screenY;
		var w = window.outerWidth;
		var h = window.outerHeight;
	}
	
	// CHILD WINDOW INFO //
	if (width) { winW = width; }
	if (height){ winH = height; }
	
	// some browsers don't have access to the parent's x and y coordinants
	// so default to centering the child in the center of the screen
	if ((!x && x != 0) || (!y && y != 0)) 
	{ // if x | y are NaN, default to centering in screen
		if (debug) 
		{ 
			alert("WARNING! defaulting to centering in the screen!"); 
		}
		var lPos = Math.round((screen.availWidth - winW) / 2);
		var tPos = Math.round((screen.availHeight - winH) / 2);
	} 
	else 
	{
		// if the child window will be off the screen, attempt to fix x and y so that
		// we don't run off the edge of the screen (I got varying results on this one
		// depending on what options I had turned on for the child)
		x += parOffsetX; y += parOffsetY;
		if ( (x + winW) > screen.availWidth ) { if (debug) { alert("fixing x"); } x = screen.availWidth - winW - 25; }
		if ( (y + winH) > screen.availHeight ) { if (debug) { alert("fixing y"); } y = screen.availHeight - winH - 25; }
		var lPos = x;
		var tPos = y;
	}
	
	winO = ',width='+winW+',height='+winH+winO;
	// for overriding automatic positioning
	if (winO.indexOf("left=") == -1) 
	{
		winO = ',left='+lPos+winO;
	}
	if (winO.indexOf("top=") == -1) 
	{
		winO = ',top='+tPos+winO;
	}
	// sorry for the confusion, just trying to make it fool-proof
	// after all is said and done, if our winO starts with a comma, chop it off
	if (winO.indexOf(',') == 0) { winO = winO.substring(1); }
	
	var winName;
	if (!name) 
	{
		var i = getRandom();
		winName = 'popup_'+i;
	} 
	else 
	{
		winName = name;
	}
	var newPosWindow = window.open("", winName, winO);
	newPosWindow.document.write(content);
	newPosWindow.document.close();
	newPosWindow.focus();
}

//Open the page in a pop up
function popUpWindow(url,winName,attributes) {

	if (attributes.indexOf("directories") == -1) { attributes += ",directories=0"; }

	if (attributes.indexOf("location") == -1) {	attributes += ",location=0"; }

	if (attributes.indexOf("menubar") == -1) { attributes += ",menubar=0"; }

	if (attributes.indexOf("resizable") == -1) { attributes += ",resizable=0"; }

	if (attributes.indexOf("scrollbars") == -1) { attributes += ",scrollbars=1"; }

	if (attributes.indexOf("status") == -1) { attributes += ",status=0"; }

	if (attributes.indexOf("toolbar") == -1) { attributes += ",toolbar=0"; }

	if (attributes.indexOf("top") == -1) { attributes += ",top=80";	}

	if (attributes.indexOf("left") == -1) { attributes += ",left=50"; }

	

	var newWindow = window.open(url,winName,attributes);

	if (window.focus) { newWindow.focus() }
	
	return false;
}


//send the imformation to the omniture tag
function manageSubTabsClickTrack(letter, term, QuestionId, categoryId, brandId, Event)
{
	if (Event == "load" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | INDEX',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'INDEX', s_prop12: 'HELP CENTER | INDEX', s_prop13: 'DIVISIONAL | HELP CENTER | INDEX', s_prop25: brandId  });
	}	
	else if (Event == "VisitFAQ" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | FAQS',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'FAQ', s_prop12: 'HELP CENTER | FAQ', s_prop13: 'DIVISIONAL | HELP CENTER | FAQ', s_prop14: 'INDEX' , s_prop15: 'FAQ | INDEX ' , s_prop16: 'HELP CENTER | FAQ | INDEX ', s_prop17: 'DIVISIONAL | HELP CENTER | FAQ | INDEX ' , s_prop25: brandId  });
	}	
	else if (Event == "CategoriesFAQ" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | FAQS',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'FAQ', s_prop12: 'HELP CENTER | FAQ', s_prop13: 'DIVISIONAL | HELP CENTER | FAQ', s_prop14: categoryId , s_prop15: 'FAQ |' + categoryId, s_prop16: 'HELP CENTER | FAQ |' + categoryId, s_prop17: 'DIVISIONAL | HELP CENTER | FAQ |' + categoryId , s_prop25: brandId  });
	}	
	else if (Event == "QuestionCategoriesFAQ" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | FAQS',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'FAQ', s_prop12: 'HELP CENTER | FAQ', s_prop13: 'DIVISIONAL | HELP CENTER | FAQ', s_prop14: categoryId + "|" + QuestionId, s_prop15: 'FAQ |' + categoryId + "|" + QuestionId , s_prop16: 'HELP CENTER | FAQ | ' + categoryId + "|" + QuestionId, s_prop17: 'DIVISIONAL | HELP CENTER | FAQ |' + categoryId + "|" + QuestionId, s_prop25: brandId  });
	}
	else if (Event == "VisitGlossary" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | GLOSSARY',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'GLOSSARY', s_prop12: 'HELP CENTER | GLOSSARY', s_prop13: 'DIVISIONAL | HELP CENTER | GLOSSARY', s_prop14: 'INDEX' , s_prop15: 'GLOSSARY | INDEX ' , s_prop16: 'HELP CENTER | GLOSSARY | INDEX ', s_prop17: 'DIVISIONAL | HELP CENTER | GLOSSARY | INDEX ' , s_prop25: brandId  });
	}
	else if (Event == "TermSearchGlossary" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | GLOSSARY',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'GLOSSARY', s_prop12: 'HELP CENTER | GLOSSARY', s_prop13: 'DIVISIONAL | HELP CENTER | GLOSSARY', s_prop14: 'SEARCH' , s_prop15: 'GLOSSARY | SEARCH ' , s_prop16: 'HELP CENTER | GLOSSARY | SEARCH ', s_prop17: 'DIVISIONAL | HELP CENTER | GLOSSARY | SEARCH ' ,s_prop21: 'GLOSSARY |' + term, s_prop25: brandId });
	}
	else if (Event == "TermGlossary" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | GLOSSARY',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'GLOSSARY', s_prop12: 'HELP CENTER | GLOSSARY', s_prop13: 'DIVISIONAL | HELP CENTER | GLOSSARY', s_prop14: term , s_prop15: 'GLOSSARY | ' + term , s_prop16: 'HELP CENTER | GLOSSARY | ' + term, s_prop17: 'DIVISIONAL | HELP CENTER | GLOSSARY | ' + term , s_prop25: brandId });
	}
	else if (Event == "LetterGlossary" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | GLOSSARY',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'GLOSSARY', s_prop12: 'HELP CENTER | GLOSSARY', s_prop13: 'DIVISIONAL | HELP CENTER | GLOSSARY', s_prop14: letter , s_prop15: 'GLOSSARY | ' + letter , s_prop16: 'HELP CENTER | GLOSSARY | ' + letter, s_prop17: 'DIVISIONAL | HELP CENTER | GLOSSARY | ' + letter , s_prop25: brandId });
	}
	else if (Event == "VisitContactUs" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | CONTACT US',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'CONTACT US', s_prop12: 'HELP CENTER | CONTACT US', s_prop13: 'DIVISIONAL | HELP CENTER | CONTACT US', s_prop25: brandId  });
	}
	else if (Event == "VisitContactUsEmail" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | CONTACT US EMAIL',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'CONTACT US EMAIL', s_prop12: 'HELP CENTER | CONTACT US EMAIL', s_prop13: 'DIVISIONAL | HELP CENTER | CONTACT US EMAIL', s_prop25: brandId  });
	}
	else if (Event == "SubmitContactUsEmail" )
	{
		clickTrack({s_pageName: brandId + ' | DIVISIONAL | HELP CENTER | CONTACT US EMAIL THANKS',s_prop1: 'DIVISIONAL', s_prop2: 'HELP CENTER', s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11: 'CONTACT US EMAIL THANKS', s_prop12: 'HELP CENTER | CONTACT US EMAIL THANKS', s_prop13: 'DIVISIONAL | HELP CENTER | CONTACT US EMAIL THANKS', s_prop25: brandId  });
	}
	else if (Event == "SubmitZipCodeQT" )
	{
		clickTrack({s_pageName: brandId + ' | HELP CENTER | QUICK TOOLS | DEALOC', s_prop5: brandId + ' | HELP CENTER | QUICK TOOLS | DEALOC'});
	}
	else if (Event == "AdvanceSearch" )
	{
		clickTrack({s_pageName: brandId + ' | HELP CENTER | QUICK TOOLS | DEALOC ADVANCED', s_prop5: brandId + ' | HELP CENTER | QUICK TOOLS | DEALOC ADVANCED'});
	}
	else if (Event == "ContactPreferences" )
	{
		clickTrack({s_pageName: brandId + ' | HELP CENTER | QUICK TOOLS | CONTACT PREFERENCES', s_prop5: brandId + ' | HELP CENTER | QUICK TOOLS | CONTACT PREFERENCES'});
	}
	else if (Event == "UpdateOwner" )
	{
		clickTrack({s_pageName: brandId + ' | HELP CENTER | QUICK TOOLS | UPDATE OWNER INFO', s_prop5: brandId + ' | HELP CENTER | QUICK TOOLS | UPDATE OWNER INFO'});
	}
	else if (Event == "RequestInfo" )
	{
		clickTrack({s_pageName: brandId + ' | HELP CENTER | QUICK TOOLS | REQUEST INFO', s_prop5: brandId + ' | HELP CENTER | QUICK TOOLS | REQUEST INFO'});
	}
	else if (Event == "EmailUpdate" )
	{
		clickTrack({s_pageName: brandId + ' | HELP CENTER | QUICK TOOLS | EMAIL UPDATES', s_prop5: brandId + ' | HELP CENTER | QUICK TOOLS | EMAIL UPDATES'});
	}
}

/*function clickTrack(oArg)
{
	var aux = oArg;
}
*/

function doLetterTracking(letter) /*Glossary Tracking*/
{
var letter;
clickTrack({s_pageName:'GMC | DIVISIONAL  | HELP CENTER | GLOSSARY', s_lnk:false, s_prop1:'DIVISIONAL', s_prop2:'HELP CENTER',s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11:'GLOSSARY',s_prop12:'HELP CENTER | GLOSSARY',s_prop13:'DIVISIONAL | HELP CENTER | GLOSSARY',s_prop14: letter, s_prop15:'GLOSSARY | ' + letter, s_prop16:'HELP CENTER | GLOSSARY | ' +  letter , s_prop17:'DIVISIONAL | HELP CENTER | GLOSSARY | ' + letter, s_prop24:'EN', s_prop25:'GMC'});
}

function doTermTracking(term)
{
var term = term.toUpperCase();
clickTrack({s_pageName:'GMC | DIVISIONAL  | HELP CENTER | GLOSSARY', s_lnk:false, s_prop1:'DIVISIONAL', s_prop2:'HELP CENTER',s_prop3: 'DIVISIONAL | HELP CENTER', s_prop11:'GLOSSARY',s_prop12:'HELP CENTER | GLOSSARY',s_prop13:'DIVISIONAL | HELP CENTER | GLOSSARY',s_prop14: term, s_prop15:'GLOSSARY | ' + term, s_prop16:'HELP CENTER | GLOSSARY | ' +  term , s_prop17:'DIVISIONAL | HELP CENTER | GLOSSARY | ' + term, s_prop24:'EN', s_prop25:'GMC'});
}


function doQuestionsTracking(category,question) /*FAQS Tracking*/

{
var question = question.toUpperCase();
var category = category.toUpperCase();
clickTrack({s_pageName:'GMC | DIVISIONAL  | HELP CENTER | FAQ', s_lnk:false, s_prop1:'DIVISIONAL', s_prop2:'HELP CENTER',s_prop3: 'DIVISIONAL | HELP CENTER',s_prop11:'FAQ',s_prop12:'HELP CENTER | FAQ',s_prop13:'DIVISIONAL | HELP CENTER | FAQ',s_prop14: category +' | '+ question , s_prop15:'FAQ | '+ category +' | '+ question ,s_prop16:'HELP CENTER | FAQ | ' + category +' | '+ question , s_prop17:'DIVISIONAL | HELP CENTER | FAQ | ' + category +' | '+ question , s_prop25:'GMC'});
	}