/*Copyright 2000-2006 Clickability Inc. */
var partnerID=164126;

document.write('<script language="JavaScript"> \n');
document.write('window.onerror=function(){clickURL=document.location.href;return true;} \n');
document.write('if(!self.clickURL) clickURL=buildClickURL(); \n');
document.write('<\/script> \n');

var custom=1;
var popWin="width=510,height=480,resizable=1,scrollbars=1";
var commonLoc="&fb=Y&url="+escape(getClickURL())+"&title="+escape(getClickTitle())+"&random="+Math.random()+"&partnerID="+partnerID+"&expire="+escape(getClickExpire());

document.write('<script language="Javascript">var js=0.0;</script> \n');
document.write('<script language="Javascript1.0">js=1.0;</script> \n');
document.write('<script language="Javascript1.1">js=1.1;</script> \n');
document.write('<script language="Javascript1.2">js=1.2;</script> \n');
document.write('<script language="Javascript1.3">js=1.3;</script> \n');
document.write('<script language="Javascript1.4">js=1.4;</script> \n');
document.write('<script language="Javascript1.5">js=1.5;</script> \n');

var inpop = ( (document.domain.indexOf("printthis.clickability.com")>-1)?true:false);
var _a=new Image();
var _b=new Image();
var clickRan=Math.random();
var clickFac = 20;
if(clickFac==0)clickFac=1;
if(!inpop && clickRan>(1-(1/clickFac))){
var _ti=900;
var _q="";
var na=(navigator.appName=="Netscape");
ns=(navigator.appName.substring(0,9)=="Microsoft");
var _qDate=new Date();
var _q='http://stats.clickability.com/t?';
var r=document.referrer;
if(document.cookie.indexOf('cc')<0)document.cookie='cc='+new Date();
_q+="&5="+(parseInt(_qDate.getTimezoneOffset()/60));
_q+="&7="+partnerID;
_q+="&8="+escape(getClickURL());
_q+="&9="+escape(r);
_q+="&10="+escape(getClickTitle());
_q+="&11="+escape(navigator.userAgent);
_q+="&12="+(na?navigator.language:navigator.userLanguage);
_q+="&13="+((navigator.javaEnabled()?'1':'0'));
_q+="&14="+js;
_q+="&15="+((document.cookie=='')?"0":"1");
_q+="&16="+(screen.width+'x'+screen.height);
_q+="&17="+((ns)?screen.colorDepth:screen.pixelDepth);
_q+="&18="+Math.random();
_q+="&19="+_ti;
_q+="&21="+clickFac;
_a.src=_q;

var _qb='http://s.clickability.com/s?';
_qb+="&7="+partnerID;
_qb+="&8="+escape(getClickURL());
_qb+="&10="+escape(getClickTitle());
_qb+="&19="+_ti;
_qb+="&21="+clickFac;
_qb+="&18="+Math.random();
_b.src=_qb;

}

/** 
 * Construct the Player URL
 */
function buildClickURL () {
	var video = location.href;
	video = video.replace(parent.location.host, '');
	video = video.replace(/http:\/\//i, '');
	video = video.replace(/\/relateds.html/i, '');
	var rs = "http://" + parent.location.host + "/video/partners/clickability/index.html?url=" + video;
	return rs;
}


/****************Don't Change Below****************/
function ET () {
window.open('http://pgatour.emailthis.clickability.com/et/emailThis?clickMap=create'+commonLoc,'click',popWin);
return false;
}

function ETMouseOver () {
window.status='EMAIL THIS';
return true;
}

function ETMouseOut () {
window.status='';
return true;
}

function getClickURL() {
if (self.clickURL) return clickURL;
return document.location.href;
}
function getClickTitle() {
if (self.clickTitle) return clickTitle;
return document.title;
}
function getClickExpire() {
if (self.clickExpire) return clickExpire; 
return "";
}

window.onresize = function () {
for (var i=0; i<document.links.length; i++) {
document.links[i].onclick = document.links[i].onclick;
}
}
