/* core.js, menu.js, modalDialog.js, ga_header.js */
function oCenter(Wth,Hgt)
{return[(screen.width-Wth)/2,(((screen.height-Hgt)/2)-20)];}
function oWindow(Uri,Wth,Hgt,Resize,Scroll,Name,Left,Top,Params)
{Uri=Uri||"/";Name=Name||"buttons";if(!Params){Wth=(Wth==parseInt(Wth))?Wth:500;Hgt=(Hgt==parseInt(Hgt))?Hgt:500;var Center=oCenter(Wth,Hgt);Resize=(Resize==parseInt(Resize))?Resize:0;Scroll=(Scroll==parseInt(Scroll))?Scroll:1;Left=(Left=="center")?Center[0]:(Left==parseInt(Left))?Left:50;Top=(Top=="center")?Center[1]:(Top==parseInt(Top))?Top:50;Params="toolbar=0,location=0,directories=0,status=0,menubar=0"+",resizable="+Resize+",scrollbars="+Scroll+",width="+Wth+",height="+Hgt+",left="+Left+",top="+Top;}
var Win=window.open(Uri,Name,Params);Win.focus();}
function openWin(Uri,Wth,Hgt,Resize,Scroll){oWindow(Uri,Wth,Hgt,Resize,Scroll);}
function openWin2(Uri,Wth,Hgt,Resize,Scroll){oWindow(Uri,Wth,Hgt,Resize,Scroll);}
function openWin3(Uri,Wth,Hgt,Resize,Scroll,Name){oWindow(Uri,Wth,Hgt,Resize,Scroll,Name);}
function popMS(Uri)
{var Wth=500,Hgt=500,pct=0.85;if(parseInt(navigator.appVersion)>3){Wth=parseInt(screen.availWidth*pct);Hgt=parseInt(screen.availHeight*pct);}
oWindow(Uri,Wth,Hgt,1,1,"Genuine");return true;}
function testPassword(lbl,val)
{var result='';if(val.length<1){result="Please enter "+lbl+".\n";}
if(val.length<6||val.length>10){result+=lbl+" must be 6-10 characters and contain at least"+" one number and one letter.\nPasswords are case-sensitive.";}
else if(val.match('^[a-zA-Z]+$')){result=lbl+" must also have at least one number.";}
else if(/^\d+$/.test(val)){result=lbl+" must also have at least one letter, upper or lower cased.";}
if(result.length>0){alert(result);return false;}
return true;}
function matchPassword(lbl1,lbl2,val1,val2)
{if(val1!=val2){alert(lbl1+" and "+lbl2+" fields must match. Please try again.");return false;}
return true;}
function tableStripe(id,start,stop,cssclass)
{var i,obj=document.getElementById(id);start=(start)?Math.abs(parseInt(start)):0;stop=(stop)?Math.abs(parseInt(stop)):0;cssclass=(cssclass)?cssclass:"odd";if(!obj){return;}
var row=obj.getElementsByTagName("tr");for(i=start;i<row.length-stop;i+=2){row[i].className+=" "+cssclass;}}
var rotatingList={timer:[],delay:[],current:[],running:[],show:function(objId,menu,timer,idx)
{var newlist=$(objId),staticRandom=false;if(idx=="rand"){idx=Math.floor(Math.random()*newlist.length);staticRandom=true;}
else{idx=(idx=="run")?rotatingList.current[timer]:((idx==parseInt(idx))?parseInt(idx):0);idx=(idx>=newlist.length)?0:((idx<0)?newlist.length-1:idx);}
if(menu&&menu.length>0){$(menu+" .itemsel").attr({className:"item"});$($(menu+" .item")[idx]).attr({className:"itemsel"});}
rotatingList.current[timer]=idx;newlist.css({display:"none"});$(newlist[idx]).fadeIn();if(rotatingList.running[timer]&&!staticRandom){rotatingList.timer[timer]=setTimeout("rotatingList.show('"+objId+"', '"+
menu+"', "+timer+", "+(idx+1)+");",rotatingList.delay[timer]);}},control:function(self,objId,menu,listId,idx)
{if(!self||!objId|!menu||!listId||(idx!==0&&!idx)){return;}
var halt=false;if(idx=="play"){if(rotatingList.running[listId]===true){$(menu+" .playsel").attr({className:"play"});rotatingList.running[listId]=false;clearTimeout(rotatingList.timer[listId]);}
else{$(menu+" .play").attr({className:"playsel"});rotatingList.running[listId]=true;rotatingList.show(objId,menu,listId,rotatingList.current[listId]);}}
else if(idx=="next"){rotatingList.current[listId]=rotatingList.current[listId]+1;halt=true;}
else if(idx=="prev"){rotatingList.current[listId]=rotatingList.current[listId]-1;halt=true;}
else if(idx==parseInt(idx)){rotatingList.current[listId]=idx;halt=true;}
if(halt===true){$(menu+" .playsel").attr({className:"play"});rotatingList.running[listId]=false;clearTimeout(rotatingList.timer[listId]);rotatingList.show(objId,menu,listId,rotatingList.current[listId]);}},menu:function(objId,menu,listId,pause)
{var obj=$(objId),item="",i,sel,playmode=(pause)?"play":"playsel";var ctls="<div class=\"media_controls\"><\/div>";var play="<a class=\""+playmode+"\" href=\"javascript:rotatingList.control(this,'"+
objId+"','"+menu+"','"+listId+"','play')\" title=\"pause/play\">&nbsp;</a>";for(i=0;i<obj.length;i++){item+="<a class=\"item\" href=\"javascript:rotatingList.control(this,'"+objId+"','"+menu+"','"+listId+"',"+i+")\" title=\"#"+(i+1)+"\">&nbsp;<\/a>";}
var prev="<a class=\"prev\" href=\"javascript:rotatingList.control(this,'"+objId+"','"+menu+"','"+listId+"','prev')\" title=\"previous\">&nbsp;<\/a>";var next="<a class=\"next\" href=\"javascript:rotatingList.control(this,'"+objId+"','"+menu+"','"+listId+"','next')\" title=\"next\">&nbsp;</a>";$(menu).wrapInner("<div style=\"position:relative\"><\/div>");$(menu+">div").append(ctls);$(menu+" .media_controls").append(play+item+prev+next);},init:function(objId,delay,options)
{if($(objId).length===0){return;}
var len=rotatingList.timer.length,menu="",item=0;rotatingList.timer[len]=null;delay=parseInt(delay);rotatingList.delay[len]=(delay>500)?delay:500;rotatingList.current[len]=0;rotatingList.running[len]=true;if(options){if(options.index){item=(options.index=="rand")?"rand":parseInt(options.index);}
if(options.menu){menu=options.menu;rotatingList.menu(objId,menu,len,(options.index&&options.index=="rand")?true:false);}}
rotatingList.show(objId,menu,len,item);}};function cssToggle(lnk,oId,set)
{if(lnk&&lnk.tagName&&lnk.tagName.toLowerCase()=="a"){lnk.blur();}
var obj=$("#"+oId);if(set&&(set=="show"||set=="hide")){obj.css({display:(set=="show")?"block":"none"});}
if(set&&(set=="on"||set=="off")){obj.css({display:(set=="on")?"":"none"});}
else if(obj.css("display")!="none"||obj.css("display")==""){obj.css({display:"none"});}
else{obj.css({display:(set&&set=="block")?"block":""});}
return false;}
var backdropImg=[],backdropTimer=[];function backdrop(oID,imgID,delay,callback,flag)
{var obj=$("#"+oID);if(obj.length!=1||!backdropImg[imgID]||!backdropImg[imgID].list||backdropImg[imgID].list.length<1){return;}
delay=(delay&&delay===parseInt(delay)&&delay>1000)?delay:10000;var bgcolor=backdropImg[imgID].list[backdropImg[imgID].idx][0];if(!bgcolor){bgcolor=backdropImg[imgID].list[backdropImg[imgID].idx];}
if(!bgcolor){bgcolor="#fff";}
var txcolor=backdropImg[imgID].list[backdropImg[imgID].idx][1];if(!txcolor){txcolor="#000";}
if(flag){obj.css({background:bgcolor,color:txcolor});}
if(backdropImg[imgID].list.length<2){return;}
if(flag&&typeof(callback)=="string"&&callback.length>0){setTimeout(callback+"("+backdropImg[imgID].idx+");",10);}
backdropImg[imgID].idx=(backdropImg[imgID].idx>=backdropImg[imgID].list.length-1)?0:backdropImg[imgID].idx+1;backdropTimer[backdropImg[imgID].idx]=setTimeout("backdrop('"+oID+"', "+imgID+", "+delay+
((typeof(callback)=="string"&&callback.length>0)?", '"+callback+"'":"")+", true);",delay);}
function findPos(obj)
{var objx,objy,x=0,y=0,d=document,t=true;obj=(obj.jquery)?obj:((typeof(obj)=="object")?$(obj):$("#"+obj));if(obj.length!=1||!obj.attr("offsetParent")){return{x:0,y:0};}
objx=obj[0];while(t){x+=objx.offsetLeft;if(!objx.offsetParent){t=false;}
objx=objx.offsetParent;}
t=true;objy=obj[0];while(t){y+=objy.offsetTop;if(!objy.offsetParent){t=false;}
objy=objy.offsetParent;}
return{x:x,y:y};}
if(typeof(trim)=="undefined"){function trim(str)
{return str.replace(/^\s+|\s+$/g,"");}}
function flyMenu()
{var i,shift,idshift,obj,props,flydown=$("a.flydown"),flyup=$("a.flyup");for(i=0;i<flydown.length;i++){idshift=null;shift=null;props=flydown[i].id.split("_");if(props&&props.length>1&&(props[1]=="fly"||(props[1]&&props[2]&&props[1]==parseInt(props[1])&&props[2]==parseInt(props[2])))){obj=$(flydown[i]).parent();if(props[3]&&props[3]==parseInt(props[3])){shift=parseInt(props[3]);}
else if(props[1]=="fly"&&props[2]&&props[2]==parseInt(props[2])){shift=parseInt(props[2]);}
if(shift!==null&&shift===Number(shift)){shift=((shift&&parseInt(shift)>obj.attr("offsetWidth")&&parseInt($("#"+props[0]).css("width"))>obj.attr("offsetWidth"))?(obj.attr("offsetWidth")-parseInt($("#"+props[0]).css("width"))):((shift==parseInt(shift))?shift:0));idshift=(shift!==0)?"-"+Math.abs(shift)+"px":"";shift=(idshift)?" margin-left:"+idshift:"";}
else{shift="";}
if(props[1]&&props[1]==parseInt(props[1])&&props[2]&&props[2]==parseInt(props[2])){$(flydown[i]).after("<span id=\""+props[0]+"\" class=\"flybox flydown\" style=\"top:"+
obj.attr("offsetHeight")+"px; width:"+props[1]+"px; height:"+
props[2]+"px;"+shift+"\">"+"<div class=\"flyload\" style=\"text-align:center; margin-top:50px\">"+"<img src=\"/media/page_loading.gif\" width=\"187\""+" height=\"105\" alt=\"Loading\" /><br />Please Wait&hellip;<\/div><\/span>");}
else{$("#"+props[0]).css({top:obj.attr("offsetHeight")+"px"});if(idshift){$("#"+props[0]).css({marginLeft:idshift});}}
$(flydown[i].parentNode).hover(function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"hidden"});$("#site_header select").css({visibility:"visible"});}
props=$(this).find("a:first-child").attr("id").split("_");obj=$("#"+props[0]);if($("#"+props[0]+" div").hasClass("flyload")){obj.load(this.href,null,function(){$("#"+props[0]).css({width:props[1]+"px",whiteSpace:"normal"});});}
obj.css({display:"block"});$(this).addClass("goFocus").removeClass("goBlur");},function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"visible"});}
props=$($(this).children("a")[0]).attr("id").split("_");if(props){$("#"+props[0]).css({display:"none"});}
$(this).addClass("goBlur").removeClass("goFocus");});}}
for(i=0;i<flyup.length;i++){idshift=null;shift=null;props=flyup[i].id.split("_");if(props&&props.length>1&&(props[1]=="fly"||(props[1]==parseInt(props[1])&&props[2]==parseInt(props[2])))){obj=$(flyup[i]).parent();if(props[3]&&props[3]==parseInt(props[3])){shift=parseInt(props[3]);}
else if(props[1]=="fly"&&props[2]&&props[2]==parseInt(props[2])){shift=parseInt(props[2]);}
if(shift!==null&&shift===Number(shift)){shift=((shift&&parseInt(shift)>obj.attr("offsetWidth")&&parseInt($("#"+props[0]).css("width"))>obj.attr("offsetWidth"))?(obj.attr("offsetWidth")-parseInt($("#"+props[0]).css("width"))):((shift==parseInt(shift))?shift:0));idshift=(shift!==0)?"-"+Math.abs(shift)+"px":"";shift=(idshift)?" margin-left:"+idshift:"";}
if(props[1]&&props[1]==parseInt(props[1])&&props[2]&&props[2]==parseInt(props[2])){$(flyup[i]).after("<div id=\""+props[0]+"\" class=\"flybox flyup\" style=\"bottom:"+
obj.attr("offsetHeight")+"px; width:"+props[1]+"px; height:"+
props[2]+"px;"+shift+"\">"+"<div class=\"flyload\" style=\"text-align:center; margin-top:50px\">"+"<img src=\"/media/page_loading.gif\" width=\"187\""+" height=\"105\" alt=\"Loading\" /><br />Please Wait&hellip;<\/div><\/div>");}
else{var ie=(document.all&&!window.XMLHttpRequest)?-1:0;$("#"+props[0]).css({bottom:(obj.attr("offsetHeight")+ie)+"px"});if(idshift){$("#"+props[0]).css({marginLeft:idshift});}}
$(flyup[i].parentNode).hover(function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"hidden"});$("#site_header select").css({visibility:"visible"});}
props=$(this).find("a:first-child").attr("id").split("_");obj=$("#"+props[0]);if($("#"+props[0]+" div").hasClass("flyload")){obj.load(this.href,null,function(){$("#"+props[0]).css({width:props[1]+"px",whiteSpace:"normal"});});}
obj.css({display:"block"});$(this).addClass("goFocus").removeClass("goBlur");},function(){if(document.all&&!window.XMLHttpRequest){$("select").css({visibility:"visible"});}
props=$($(this).children("a")[0]).attr("id").split("_");if(props){$("#"+props[0]).css({display:"none"});}
$(this).addClass("goBlur").removeClass("goFocus");});}}}
$(document).ready(function(){$("img").attr("title",function(){return this.alt;});$("form.search").bind("submit",function(){if(this.text){this.text.value=this.text.value.replace(/\s*$/,"").replace(/^\s*/,"");if(this.text.value.match(/\w+/)&&this.text.value.toLowerCase()!="search"){this.attr1.value=this.text.value;return true;}
else{alert("You must enter a search term.");}}
return false;});$("form.search input#searchtxt").click(function(){if(this.value.toLowerCase()=="search"){this.value="";}
this.className="searchFocus";}).focus(function(){if(this.value.toLowerCase()=="search"){this.value="";}
this.className="searchFocus";}).blur(function(){if(this.value===""){this.value="Search";}
this.className="searchBlur";});flyMenu();});var Dialog={hide:function(d)
{d=d||"dialog";$("#mask, #"+d).css("display","none");},close:function(d)
{d=d||"dialog";$("#mask, #"+d).css("display","none");$("#"+d+" .doc").html(" ");},create:function(d)
{if($("#mask").length==0){$(document.body).append("<div id=\"mask\">&nbsp;<\/div>");}
if($("#"+d).length==0){$(document.body).append("<div id=\""+d+"\"><div class=\"top\"><\/div><div class=\"lft\"><\/div>"+"<div class=\"rht\"><\/div><div class=\"btm\"><\/div><div class=\"doc\"><\/div>"+"<div class=\"close\"><a href=\"#\" title=\"Close\">X<\/a><\/div><\/div>");}
$("#"+d+" .close a").click(function(){Dialog.close();return false;});Dialog.set();},createReview:function()
{if($("#mask").length==0){$(document.body).append("<div id=\"mask\">&nbsp;<\/div>");}
if($("#reviewdialog").length==0){$(document.body).append("<div id=\"reviewdialog\"><div class=\"top\"><\/div>"+"<div class=\"lft\"><\/div><div class=\"rht\"><\/div><div class=\"btm\"><\/div>"+"<div class=\"doc\"><\/div><div class=\"close\"><a href=\"#\" title=\"Close\">X<\/a>"+"<\/div><div id=\"aside\"><div class=\"top\"><\/div><div class=\"lft\"><\/div>"+"<div class=\"btm\"><\/div><div class=\"doc\"><\/div><div class=\"terms\">"+"<a href=\"/dw/productreview/terms_of_use.php\" target=\"_blank\" onclick=\"this.target='';"+"oWindow(this.href,675,560,1,1,'ratings','center','center');return false;\">Terms &amp; Conditions"+"</a> &nbsp; | &nbsp; <a href=\"/dw/productreview/guidelines.php\" target=\"_blank\" "+"onclick=\"this.target='';oWindow(this.href,675,560,1,1,'ratings','center','center');"+"return false;\">Guidelines</a><\/div><div class=\"adj\"><\/div><\/div><\/div>");}
$("#reviewdialog .close a").click(function(){Dialog.close("reviewdialog");return false;});Dialog.set("reviewdialog");},set:function(d)
{var top,lft;d=d||"dialog";if($("#mask").length>0&&$("#mask").css("display")!="none"){$("#mask").width((($(window).width()>$("#wrapper").width())?$(window).width():$("#wrapper").width())+"px").height((($(window).height()>$(document).height())?$(window).height():$(document).height())+"px");}
if($("#"+d).length>0&&$("#"+d).css("display")!="none"){top=parseInt(($(window).height()-$("#"+d).height())/2)+$(window).scrollTop();top=(d=="reviewdialog")?160:((top<0)?0:top);lft=parseInt(($(window).width()-$("#"+d).width())/2);lft=(lft<0)?0:lft;$("#"+d).css({top:top+"px",left:lft+"px"});}},get:function(obj,wth,hgt,tgt,typ,lcl,nam)
{var addr=obj?((typeof(obj)=="object")?$(obj).attr("href"):obj):"",d=(typ&&typ=="ratings")?"reviewdialog":(nam||"dialog");var pad,getStr,top=0,lft=0,rht=0,btm=0,ahgt=0,atop=0,alft=0,abtm=0,adoc=0,adj=0;if(typeof(obj)!="object"&&addr.length<1&&(!lcl||lcl.length<1)){return;}
else if(addr.length<1&&(!lcl||lcl.length<1)){if($(obj).parents("a").length>0){addr=$(obj).parents("a").attr("href");}
else if($(obj).parents("form").length>0&&$(obj).parents("form").attr("method").toLowerCase()=="get"){getStr=$(obj).parents("form").serialize();addr=$(obj).parents("form").attr("action")+"?"+getStr;if($(obj).attr("name").length>0&&getStr.indexOf($(obj).attr("name")+"=")==-1){addr+="&"+$(obj).attr("name")+"="+$(obj).attr("value");}}
else{return;}}
var d=(typ&&typ=="ratings")?"reviewdialog":"dialog";if($("#"+d).length<1){if(d=="reviewdialog"){Dialog.createReview();}else{Dialog.create(d);}}
if(typ&&typ=="ratings"){addr+=((addr.indexOf("?")!=-1)?"&":"?")+"view="+typ;}
$("#mask, #"+d).css("display","block");wth=parseInt(wth||600);hgt=parseInt(hgt||500);wth=(((!typ||typ!="ratings")&&wth>800)?800:wth)+$("#"+d+" .lft:first").width()+
$("#"+d+" .rht:first").width();hgt=((hgt>800)?800:hgt)+$("#"+d+" .top:first").height()+
$("#"+d+" .btm:first").height();$("#"+d).css({width:wth+"px",height:hgt+"px"});var top=0,lft=0,rht=0,btm=0,ahgt=0,atop=0,alft=0,abtm=0,adoc=0,adj=0;if(typ&&typ=="ratings"){ahgt=hgt-$("#aside .top").height()-$("#aside .btm").height();atop=$("#aside").width()-$("#aside .lft").width();alft=ahgt-$("#aside .btm").height();abtm=$("#aside").width();adoc=ahgt-$("#aside .top").height()-$("#aside .btm").height()-20;adj=$("#aside .adj").width();top=wth-$("#aside").width();btm=wth-$("#aside").width();wth=wth-$("#aside").width()+adj;$("#aside").css({left:"0px",top:$("#"+d+" .top:first").height()+"px",height:ahgt+"px"});$("#aside .top").css({right:"0px",top:"0px",width:atop+"px"});$("#aside .lft").css({left:"0px",top:"0px",height:alft+"px"});$("#aside .btm").css({right:"0px",bottom:"0px",width:abtm+"px"});$("#aside .doc").css({width:(atop-20)+"px",height:(adoc-$("#aside .terms").height())+"px"});$("#aside .terms").css({width:(atop-20)+"px"});$("#"+d+" .lft:first").css("left",($("#aside").width()-adj)+"px");$("#"+d+" .btm:first").css("left",($("#aside").width()-adj)+"px");}
top=wth-$("#"+d+" .lft:first").width();lft=hgt-$("#"+d+" .btm:first").height();rht=hgt-$("#"+d+" .top:first").height();btm=wth-$("#"+d+" .rht:first").width();$("#"+d+" .top:first").css("width",top+"px");$("#"+d+" .lft:first").css("height",lft+"px");$("#"+d+" .rht:first").css("height",rht+"px");$("#"+d+" .btm:first").css("width",btm+"px");pad=(!typ||typ!="ratings")?3*2:0;wth=wth-$("#"+d+" .lft:first").width()-$("#"+d+" .rht:first").width()-pad;hgt=hgt-$("#"+d+" .top:first").height()-$("#"+d+" .btm:first").height()-pad;$("#"+d+" .doc:first").css({width:wth+"px",height:hgt+"px"});if(typ&&typ=="ratings"){$("#reviewdialog .doc:first").css({left:($("#aside").width()+$("#"+d+" .lft:first").width()-adj)+"px",padding:"0px",border:"none"}).html("<iframe src=\""+addr+"\" frameborder=\"0\" marginwidth=\"0\" style=\"border:none; width:"+
wth+"px; height:"+hgt+"px;\"><\/iframe>");Dialog.set("reviewdialog");self.scrollTo(0,100);}
else{if(lcl){$("#"+d+" .doc").html(lcl);}
else if(typ&&typ=="iframe"){$("#"+d+" .doc").html("<iframe src=\""+
addr+"\" frameborder=\"0\" marginwidth=\"0\" style=\"border:none; width:"+
wth+"px; height:"+hgt+"px;\"><\/iframe>");}
else{tgt=(!tgt||tgt.length<1)?"":" "+tgt;$("#"+d+" .doc").load(addr+tgt);}
Dialog.set();}}};$(window).resize(function(){Dialog.set("reviewdialog");Dialog.set();});function openDialog(obj,wth,hgt,typ,oData,nam)
{obj=$((typeof(obj)!="undefined")?obj:this);var html=(typ&&typ=="iframe")?null:oData;Dialog.get(obj,parseInt(wth)+6,parseInt(hgt)+6,null,null,html);}
try{var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");document.write(unescape("%3Cscript src=\""+gaJsHost+"google-analytics.com/ga.js\" type=\"text/javascript\"%3E%3C/script%3E"));}catch(err){}
function startListening(obj,evnt,func){if(obj.addEventListener){obj.addEventListener(evnt,func,false);}else if(obj.attachEvent){obj.attachEvent("on"+evnt,func);}}
function trackMailto(evnt){var href=(evnt.srcElement)?evnt.srcElement.href:this.href;var mailto="/mailto/"+href.substring(7);if(typeof(pageTracker)=="object")pageTracker._trackPageview(mailto);}
function trkInternalDownloadlLinks(evnt){var e=(evnt.srcElement)?evnt.srcElement:this;while(e.tagName!="A"){e=e.parentNode;}
var lnk=(e.pathname.charAt(0)=="/")?e.pathname:"/"+e.pathname;if(e.search&&e.pathname.indexOf(e.search)==-1)lnk+=e.search;if(typeof(pageTracker)=="object"){pageTracker._trackEvent("Downloads",e.hostname+lnk,"Downloads|"+e.hostname+lnk+"|FromPage:"+document.location);pageTracker._trackPageview("/Downloads/"+e.hostname+lnk+"|FromPage:"+document.location);}}
function trkExternalLinks(evnt){var e=(evnt.srcElement)?evnt.srcElement:this;while(e.tagName!="A"){e=e.parentNode;}
var lnk=(e.pathname.charAt(0)=="/")?e.pathname:"/"+e.pathname;if(e.search&&e.pathname.indexOf(e.search)==-1)lnk+=e.search;if(typeof(pageTracker)=="object"){pageTracker._trackEvent("ExitLinks",e.hostname,"ExitLinks|"+e.hostname+lnk+"|FromPage:"+document.location);pageTracker._trackPageview("/ExitLinks/"+e.hostname+lnk+"|FromPage:"+document.location);}}
function trackGACustomEvent(ga_evntName,ga_evntTargetURL){if(!ga_evntName)ga_evntName="Other";if(!ga_evntTargetURL)ga_evntTargetURL="Target URL missing";if(typeof(pageTracker)=="object"){pageTracker._trackEvent("Custom: "+ga_evntName,ga_evntTargetURL,"Custom: "+ga_evntName+"|"+ga_evntTargetURL+"|FromPage:"+document.location);}}
function trkInternalLinks(evnt){var e=(evnt.srcElement)?evnt.srcElement:this;while(e.tagName!="A"){e=e.parentNode;}
var lnk=(e.pathname.charAt(0)=="/")?e.pathname:"/"+e.pathname;if(e.search&&e.pathname.indexOf(e.search)==-1)lnk+=e.search;if(typeof(pageTracker)=="object"){pageTracker._trackEvent("NextPages",e.hostname+lnk,"NextPages|"+e.hostname+lnk+"|FromPage:"+document.location+"|@"+e.onclick);var cmpName=lnk.toString().toLowerCase();var posn=cmpName.indexOf("cmpid=");if(posn>0){cmpName=cmpName.substring(posn+6);var posn2=cmpName.indexOf("&");if(posn2>0){cmpName=cmpName.substring(0,posn2)}
pageTracker._trackEvent("Internal Campaign Clicks",document.title+" - "+cmpName.toUpperCase(),"Internal Campaign clicks|"+e.hostname+lnk+"|FromPage:"+document.location);}
cmpName=lnk.toString().toLowerCase();if(cmpName.indexOf("tab=")>0){posn=cmpName.indexOf("tab=");cmpName=cmpName.substring(posn+4);var posn2=cmpName.indexOf("&");if(posn2>0){cmpName=cmpName.substring(0,posn2)}
pageTracker._trackEvent("Internal Tab Clicks",document.title+" - "+cmpName.toUpperCase(),"Internal Tab clicks|"+e.hostname+lnk+"|OnPage:"+document.location);}}}
