//// hbxamd.js - 7-31-07, updated 5-13-08: hbxamd_hbxjspath, hbx.vpc values /////

//// HBX SECTION

var u='undefined';
if(typeof(hbxamd_dynpg)==u)var hbxamd_dynpg='y';
if(typeof(hbxamd_hbxjspath)==u)var hbxamd_hbxjspath='http://www.amd.com/Style%20Library/hbx.js';
if(typeof(_hbEC)==u)var _hbEC=0;
if(typeof(_hbE)==u)var _hbE=new Array;
function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
if(typeof(hbx)==u)var hbx=_hbEvent("pv");
hbx.vpc="HBX0250u";
hbx.gn="a.amd.com";
//CONFIGURATION VARIABLES
if(hbxamd_dynpg=='y'){
  hbx.pn=unescape(location.pathname.substring(location.pathname.lastIndexOf('/')+1, location.pathname.length)+location.search);//PAGE NAME - DYNAMIC, UNESCAPED
}else{
  hbx.pn=unescape(location.pathname.substring(location.pathname.lastIndexOf('/')+1,location.pathname.length));//PAGE NAME - UNESCAPED
}
var hn=unescape(location.hostname).toLowerCase();
if(hn.substring(hn.indexOf('.')+1,hn.length)=='getspringbox.com')hn='getspringbox.com';
var dn='';
if(location.pathname.lastIndexOf('/')>2)dn='/'+unescape(location.pathname.substring(0,location.pathname.lastIndexOf('/')-1));
var mlc=hn+dn.toLowerCase();
for(var i=0,found=-1;i<hbx_accts.length&&found==-1;i++){
  for(var j=1;j<hbx_accts[i].length&&found==-1;j++){
    if(hbx_accts[i][j]==mlc.substring(0,hbx_accts[i][j].length)){
      found=i;
      hn=hbx_accts[i][1];
      if(hn.indexOf('/')>0)hn=hn.substring(0,hn.indexOf('/'));
      if(typeof(hbx.mlc)==u)hbx.mlc='/'+hn+dn;
    }
  }
}
if(typeof(hbx.mlc)==u)hbx.mlc='/'+hn+dn;
if(typeof(hbx.acct)==u){
  if(found>=0){
    if(hbx_accts[found][0]==acct_test){
      hbx.acct=hbx_accts[found][0];
    }else{
      hbx.acct=hbx_accts[found][0]+';'+acct_global;
    }
  }else{
    hbx.acct=acct_otherms+';'+acct_global;
  }
}
if(typeof(hbx.pndef)==u)hbx.pndef="default.aspx";//DEFAULT PAGE NAME
if(typeof(hbx.ctdef)==u)hbx.ctdef="full";//DEFAULT CONTENT CATEGORY
//OPTIONAL PAGE VARIABLES
//ACTION SETTINGS
if(typeof(hbx.lc)==u)hbx.lc="y";//FORCE LOWER CASE
if(typeof(hbx.fv)==u)hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
if(typeof(hbx.lt)==u)hbx.lt="auto";//LINK TRACKING
if(typeof(hbx.dlf)==u)hbx.dlf="n";//DOWNLOAD FILTER
if(typeof(hbx.dft)==u)hbx.dft="n";//DOWNLOAD FILE NAMING
if(typeof(hbx.elf)==u)hbx.elf="n";//EXIT LINK FILTER
//SEGMENTS AND FUNNELS
if(typeof(hbx.seg)==u)hbx.seg="";//VISITOR SEGMENTATION
if(typeof(hbx.fnl)==u)hbx.fnl="";//FUNNELS
//CAMPAIGNS
if(typeof(hbx.cmp)==u)hbx.cmp="";//CAMPAIGN ID
if(typeof(hbx.cmpn)==u)hbx.cmpn="";//CAMPAIGN ID IN QUERY
if(typeof(hbx.dcmp)==u)hbx.dcmp="";//DYNAMIC CAMPAIGN ID
if(typeof(hbx.dcmpn)==u)hbx.dcmpn="";//DYNAMIC CAMPAIGN ID IN QUERY
if(typeof(hbx.dcmpe)==u)hbx.dcmpe="";//DYNAMIC CAMPAIGN EXPIRATION
if(typeof(hbx.dcmpre)==u)hbx.dcmpre="";//DYNAMIC CAMPAIGN RESPONSE EXPIRATION
if(typeof(hbx.hra)==u)hbx.hra="";//RESPONSE ATTRIBUTE
if(typeof(hbx.hqsr)==u)hbx.hqsr="";//RESPONSE ATTRIBUTE IN REFERRAL QUERY
if(typeof(hbx.hqsp)==u)hbx.hqsp="";//RESPONSE ATTRIBUTE IN QUERY
if(typeof(hbx.hlt)==u)hbx.hlt="";//LEAD TRACKING
if(typeof(hbx.hla)==u)hbx.hla="";//LEAD ATTRIBUTE
if(typeof(hbx.gp)==u)hbx.gp="";//CAMPAIGN GOAL
if(typeof(hbx.gpn)==u)hbx.gpn="";//CAMPAIGN GOAL IN QUERY
if(typeof(hbx.hcn)==u)hbx.hcn="";//CONVERSION ATTRIBUTE
if(typeof(hbx.hcv)==u)hbx.hcv="";//CONVERSION VALUE
if(typeof(hbx.cp)==u)hbx.cp="null";//LEGACY CAMPAIGN
if(typeof(hbx.cpd)==u)hbx.cpd="";//CAMPAIGN DOMAIN
//CUSTOM VARIABLES
if(typeof(hbx.ci)==u)hbx.ci="";//CUSTOMER ID
if(typeof(hbx.hcl)==u)hbx.hc1="";//CUSTOM 1
if(typeof(hbx.hc2)==u)hbx.hc2="";//CUSTOM 2
if(typeof(hbx.hc3)==u)hbx.hc3="";//CUSTOM 3
if(typeof(hbx.hc4)==u)hbx.hc4="";//CUSTOM 4
if(typeof(hbx.hrf)==u)hbx.hrf="";//CUSTOM REFERRER
if(typeof(hbx.pec)==u)hbx.pec="";//ERROR CODES
// SURFAID TO HBX FLASH MAPPING CODE
function sa_flash(id){_hbPageView((hbx.pn+'?flashpage='+escape(unescape(id.replace(/ /g,'_')))).toLowerCase(),hbx.mlc);}
function sa_flash_msg(id){sa_flash(id);}
// HBX MEDIA EVENT LOGGING FUNCTIONS
function hbxMediaPlay(hbxFileName, hbxCurrentPos, hbxEndPos, hbxFlashVersion){
_hbSet('m.f',hbxFileName);
_hbSet('m.cp',hbxCurrentPos);
_hbSet('m.ep',hbxEndPos);
_hbSet('m.s','play');
_hbSet('m.cl','Flash Player');
_hbSet('m.cv',hbxFlashVersion);
_hbSet('m.tt','e');
_hbSend();
}
function hbxMediaPause(hbxFileName, hbxCurrentPos, hbxEndPos, hbxFlashVersion){
_hbSet('m.f',hbxFileName);
_hbSet('m.cp',hbxCurrentPos);
_hbSet('m.ep',hbxEndPos);
_hbSet('m.s','pause');
_hbSet('m.cl','Flash Player');
_hbSet('m.cv',hbxFlashVersion);
_hbSet('m.tt','e');
_hbSend();
}
function hbxMediaStop(hbxFileName, hbxCurrentPos, hbxEndPos, hbxFlashVersion){
_hbSet('m.f',hbxFileName);
_hbSet('m.cp',hbxCurrentPos);
_hbSet('m.ep',hbxEndPos);
_hbSet('m.s','stop');
_hbSet('m.cl','Flash Player');
_hbSet('m.cv',hbxFlashVersion);
_hbSet('m.tt','e');
_hbSend();
}
function hbxMediaPlayProgress(hbxFileName, hbxCurrentPos, hbxEndPos, hbxFlashVersion){
_hbSet('m.f',hbxFileName);
_hbSet('m.cp',hbxCurrentPos);
_hbSet('m.ep',hbxEndPos);
_hbSet('m.s','playp');
_hbSet('m.cl','Flash Player');
_hbSet('m.cv',hbxFlashVersion);
_hbSet('m.tt','e');
_hbSend();
}
document.writeln('<scr'+'ipt language="javascript1.1" src="'+hbxamd_hbxjspath+'"></sc'+'ript>');

//// hbxamd.js end /////
