/* Setting the s_account */
function s_setAccount(){

var s_account="";

var curUrl = location.href;
	
		if(curUrl.indexOf("suncom-mirror.sfbay") != -1 ) {
				s_account = "oracledevall,devoraclecom";
		}
		else {
				s_account = "oracleglobal,oraclelabs";
		}
		
		return s_account;
		
	}
	
/*  Pre_plugins  */
function s_prePlugins(s){

    // page level static veriables mapping.
    if(typeof(s_prop12) != 'undefined' )
	   s.prop12=s_prop12;
	   
	if(typeof(s_channel) != 'undefined' )
	   s.channel = s_channel;

}


function navTrack(sitename,language,pagearea,linklabel)
{
var linkvalue ='';
linkvalue = (typeof(sitename) != 'undefined'  || sitename != '') ? (sitename)  : '';
linkvalue = (typeof(language) != 'undefined' || language != '') ? (linkvalue + ':' + language)  : linkvalue;
linkvalue = (typeof(pagearea) != 'undefined' || pagearea != '') ? (linkvalue + ':' + pagearea)  : linkvalue;
linkvalue = (typeof(linklabel) != 'undefined' || linklabel != '') ? (linkvalue + ':' + linklabel) : linkvalue;
linkvalue = linkvalue.toLowerCase();
  if (linkvalue != '') {   
  
	var s=s_gi(s_setAccount()); 
	s.prop22 = linkvalue;
	s.linkTrackVars="prop22";
	s.tl(this,'o',linkvalue); 
	// Set after previous image is sent to server.
	s_objectID = linkvalue;
    // unset s.prop22 and s.linkTrackVars
	s.prop22 = '';
	s.linkTrackVars='';	
  }
}

