if(typeof PINT=="undefined"){var PINT={};}PINT.util={};PINT.connection={};PINT.widget={};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(oObject){for(var i=0;i<this.length;i++){if(this[i]==oObject){return i;}}return -1;}}if(!Array.prototype.push){Array.prototype.push=function(){for(var i=0;i<arguments.length;i++){this[this.length]=arguments[i];}}}
PINT.util={getQueryParamValue:function(sParam){var aTemp=document.location.search.split('&');for(var i=0;i<aTemp.length;i++){var aTemp2=aTemp[i].split('=');if(aTemp2[0]==sParam){return aTemp2[1];}}return "";},setWindowTitle:function(sTitle){document.title=sTitle;},setWindowStatus:function(sStatus){window.status=sStatus;},getRandomString:function(iLength,sChars){var iLength=iLength||8;var sChars=sChars||"abcdefghijklmnopqrstuvwxyz0123456789";var sRandomString="";for(var i=0;i<iLength;i++){sRandomString += sChars.charAt(parseInt(sChars.length*Math.random(),10));}return sRandomString;},getCurrentFileName:function(){var sUrl=unescape(window.location.pathname);var iStart=sUrl.lastIndexOf("/")+1;var iEnd=(sUrl.indexOf("?")>0)? sUrl.indexOf("?"):sUrl.length;return sUrl.substring(iStart,iEnd);},getCurrentFilePath:function(){var sUrl=unescape(window.location.pathname);var iStart=sUrl.lastIndexOf("/");return sUrl.substring(0,iStart);},getCurrentDirectory:function(){var sFilePath=this.getCurrentFilePath();var aDirectories=sFilePath.split("/");return aDirectories.length&&aDirectories[aDirectories.length-1]!="" ? aDirectories[aDirectories.length-1]:"";},encodeJSON:function(sData){sData=new String(sData);sData=sData.replace(/\[/gi,"\[");sData=sData.replace(/\]/gi,"\]");sData=sData.replace(/\{/gi,"\{");sData=sData.replace(/\}/gi,"\}");sData=sData.replace(/\'/gi,"0x27");sData=sData.replace(/\"/gi,"0x22");sData=sData.replace(/\\/gi,"\\\\");sData=sData.replace(/\t/gi,"0x09");sData=sData.replace(/\n/gi,"0x0A");sData=sData.replace(/\f/gi,"0x0C");sData=sData.replace(/\r/gi,"0x0D");return sData;},decodeJSON:function(sData){sData=new String(sData);sData=sData.replace(/\[/gi,"[");sData=sData.replace(/\]/gi,"]");sData=sData.replace(/\{/gi,"{");sData=sData.replace(/\}/gi,"}");sData=sData.replace(/0x27/gi,"'");sData=sData.replace(/0x28/gi,'"');sData=sData.replace(/\\\\/gi,"\\");sData=sData.replace(/0x09/gi,"\t");sData=sData.replace(/0x0A/gi,"\n");sData=sData.replace(/0x0C/gi,"\f");sData=sData.replace(/0x0D/gi,"\r");return sData;}};
var sUserAgent=navigator.userAgent.toLowerCase();PINT.env={};PINT.env.sUA=navigator.userAgent.toLowerCase();PINT.env.fVersion=navigator.appVersion;PINT.util.browser={bNetscape4:(typeof(document.layers)!="undefined")?true:false,bSafari:(PINT.env.sUA.indexOf("safari")!=-1),bKonqueror:(PINT.env.sUA.indexOf("konqueror")!=-1),bNetscape6:(PINT.env.sUA.indexOf("netscape")!=-1),bMozilla:((PINT.env.sUA.indexOf("mozilla")!=-1)&&(PINT.env.sUA.indexOf("gecko")!=-1)&&(PINT.env.sUA.indexOf("konqueror")==-1)),bFirefox:(PINT.env.sUA.indexOf("firefox")!=-1),bOpera:(PINT.env.sUA.indexOf("opera")!=-1),bIe:((PINT.env.sUA.indexOf("msie")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1)),bIe4:((PINT.env.sUA.indexOf("msie 4.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1)),bIe5:((PINT.env.sUA.indexOf("msie 5.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1)),bIe6:((PINT.env.sUA.indexOf("msie 6.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1)),bIe7:((PINT.env.sUA.indexOf("msie 7.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1)),bOmniWeb:(PINT.env.sUA.indexOf("omniweb")!=-1),bWebTv:(PINT.env.sUA.indexOf("webtv")!=-1),bICab:(PINT.env.sUA.indexOf("icab")!=-1),bMac:(PINT.env.sUA.indexOf("mac")!=-1),sUserAgent:PINT.env.sUA.userAgent,fVersion:parseFloat(PINT.env.fVersion),setCookie:function(sName,sValue,iExpYear,iExpMonth,iExpDay,sPath,sDomain,bSecure){var sCookie=sName+"="+escape(sValue);if(iExpYear&&iExpMonth&&iExpDay){var oExpireDate=new Date(iExpYear,iExpMonth,iExpDay);sCookie += "; expires="+oExpireDate.toGMTString();}if(sPath){sCookie += "; path="+escape(sPath);}if(sDomain){sCookie += "; domain="+escape(sDomain);}if(bSecure){sCookie += "; secure";}document.cookie=sCookie;},getCookie:function(sName){var iStart=document.cookie.indexOf(sName+"=");var iLen=iStart+sName.length+1;if(!iStart&&(sName!=document.cookie.substring(0,sName.length))){return null;}if(iStart==-1){return null;}var iEnd=document.cookie.indexOf(";",iLen);if(iEnd==-1){iEnd=document.cookie.length;}return unescape(document.cookie.substring(iLen,iEnd));},deleteCookie:function(sName){var oExpireDate=new Date();oExpireDate.setTime(oExpireDate.getTime()-1);document.cookie=sName += "=; expires="+oExpireDate.toGMTString();},getBrowserInfo:function(){var sOs="Others";if(PINT.env.sUA.indexOf("linux")!=-1){sOs="Linux";}else if(PINT.env.sUA.indexOf("x11")!=-1){sOs="Unix";}else if(PINT.env.sUA.indexOf("mac")!=-1){sOs="Mac";}else if(PINT.env.sUA.indexOf("win")!=-1){sOs="Windows";}var sBrowser="Others";if(PINT.util.browser.bIe){sBrowser="Internet Explorer";}else if(PINT.util.browser.bNetscape4||PINT.util.browser.bNetscape6){sBrowser="Netscape Navigator";}else if(PINT.util.browser.bOpera){sBrowser="Opera";}else if(PINT.util.browser.bSafari){sBrowser="Safari";}else if(PINT.util.browser.bKonqueror){sBrowser="Konqueror";}else if(PINT.util.browser.bMozilla&&!PINT.util.browser.bFirefox){sBrowser="Mozilla";}else if(PINT.util.browser.bFirefox){sBrowser="Firefox";}else if(PINT.util.browser.bOmniWeb){sBrowser="OmniWeb";}else if(PINT.util.browser.bWebTv){sBrowser="WebTv";}else if(PINT.util.browser.bICab){sBrowser="iCab";}return [sOs,sBrowser,PINT.util.browser.fVersion];},getResolution:function(){return [screen.width,screen.height];},getSize:function(){var iDocWidth=0;var iDocHeight=0;if(typeof(window.innerWidth)=="number"){iWinWidth=window.innerWidth;iWinHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){iWinWidth=document.documentElement.clientWidth;iWinHeight=document.documentElement.clientHeight;}else if(document.body&&document.body.clientWidth){iWinWidth=document.body.clientWidth;iWinHeight=document.body.clientHeight;}if(typeof(window.innerWidth)=="number"){if(window.innerWidth>0&&window.innerWidth>iDocWidth){iDocWidth=window.innerWidth;}if(window.innerHeight>0&&window.innerHeight>iDocHeight){iDocHeight=window.innerHeight;}}if(document.body&&typeof(document.body.clientWidth)=="number"){if(document.body.clientWidth>0&&document.body.clientWidth>iDocWidth){iDocWidth=document.body.clientWidth;}if(document.body.clientHeight>0&&document.body.clientHeight>iDocHeight){iDocHeight=document.body.clientHeight;}}if(document.documentElement&&typeof(document.documentElement.clientWidth)=="number"){if(document.documentElement.clientWidth>0&&document.documentElement.clientWidth>iDocWidth){iDocWidth=document.documentElement.clientWidth;}if(document.documentElement.clientHeight>0&&document.documentElement.clientHeight>iDocHeight){iDocHeight=document.documentElement.clientHeight;}}return [iWinWidth,iWinHeight,iDocWidth,iDocHeight];},getScroll:function(){var iScrollLeft=0;var iScrollTop=0;if(typeof(window.pageXOffset)=="number"){if(window.pageXOffset>0&&window.pageXOffset>iScrollLeft){iScrollLeft=window.pageXOffset;}if(window.pageYOffset>0&&window.pageYOffset>iScrollTop){iScrollTop=window.pageYOffset;}}if(document.body&&typeof(document.body.scrollLeft)=="number"){if(document.body.scrollLeft>0&&document.body.scrollLeft>iScrollLeft){iScrollLeft=document.body.scrollLeft;}if(document.body.scrollTop>0&&document.body.scrollTop>iScrollTop){iScrollTop=document.body.scrollTop;}}if(document.documentElement&&typeof(document.documentElement.scrollLeft)=="number"){if(document.documentElement.scrollLeft>0&&document.documentElement.scrollLeft>iScrollLeft){iScrollLeft=document.documentElement.scrollLeft;}if(document.documentElement.scrollTop>0&&document.documentElement.scrollTop>iScrollTop){iScrollTop=document.documentElement.scrollTop;}}return [iScrollLeft,iScrollTop];},redirectUnsupportedBrowser:function(sRedirectUrl){var sCurrentFileName=PINT.util.getCurrentFileName();if(!document.getElementById&&(browserUpgradeFile.indexOf(sCurrentFileName)=="-1"||sCurrentFileName==""))window.location.replace(sRedirectUrl);}}
PINT.util.dom={getElementById:function(sId){if(oNode=document.getElementById(sId)){return oNode;}else{return null;}},getElementsByTagName:function(sTagName,iOffset){if(iOffset==null||typeof(iOffset)=="undefined"){return document.getElementsByTagName(sTagName);}else{if(oNode=document.getElementsByTagName(sTagName)[iOffset]){return oNode;}else{return null;}}},getElementsByClassName:function(sClassName,sTagName,oStartElement){sTagName=sTagName||"*";oStartElement=oStartElement||document;var aTagNodes=(sTagName=="*"&&document.all)?document.all:oStartElement.getElementsByTagName(sTagName);var aNodes=new Array();for(var i=0;i<aTagNodes.length;i++){var aClasses=aTagNodes[i].className.split(" ");for(var j=0;j<aClasses.length;j++){if(aClasses[j]==sClassName){aNodes[aNodes.length]=aTagNodes[i];break;}}}return aNodes;},createElement:function(sTag,oParent,sText){var aAttributes=[];if(aMatches=sTag.match(/(.+)\[(.+)\]/)){sTag=aMatches[1];aAttributes=aMatches[2].split(",");}if(PINT.util.browser.bIe&&sTag=="INPUT"&&aAttributes.indexOf("type=radio")!=-1){var sName="";for(var i=0;i<aAttributes.length;i++){var aTemp=aAttributes[i].split("=");if(aTemp[0]=="name"){sName=aTemp[1];}}var oNode=document.createElement('<input type="radio" name="'+sName+'" />');}else{if(sTag=="TEXT"&&sText!=null&&typeof(sText)!="undefined"){var oNode=document.createTextNode(sText);}else{var oNode=document.createElement(sTag);}}for(var i=0;i<aAttributes.length;i++){var aTemp=aAttributes[i].split("=");try{oNode.setAttribute(aTemp[0],aTemp[1]);}catch(oError){}}if(oParent&&typeof(oParent)!="undefined"){oParent.appendChild(oNode);}return oNode;},removeElement:function(oNode){if(oNode&&oNode.parentNode){oNode.parentNode.removeChild(oNode);}},getFirstParentByTagName:function(oNode,sTagName){while(oNode.parentNode&&oNode.tagName!=sTagName){oNode=oNode.parentNode;}if(oNode.tagName){return oNode;}else{return null;}},getFirstParentById:function(oNode,sId){while(oNode.parentNode&&oNode.id!=sId){oNode=oNode.parentNode;}if(oNode.tagName){return oNode;}else{return null;}},getFirstParentByClassName:function(oNode,sClassName){var aClassNames=oNode.className.split(" ");while(oNode.parentNode&&aClassNames.indexOf(sClassName)==-1){oNode=oNode.parentNode;if(oNode.className){aClassNames=oNode.className.split(" ");}else{return null;}}if(oNode.tagName){return oNode;}else{return null;}},createXmlElement:function(sXml){if(window.ActiveXObject){var oXmlDom=new ActiveXObject("Microsoft.XMLDOM");oXmlDom.async="false";oXmlDom.loadXML(sXml);}else if(navigator.userAgent.toLowerCase().indexOf("konqueror")!=-1){sXml=sXml.replace(/<\?xml(.+)\?>/,"");var oXmlDom=document.implementation.createDocument("","",null);oXmlDom.loadXML(sXml);}else{var oXmlDom=document.createElement("xmldata");oXmlDom.innerHTML=sXml;}return oXmlDom;},getElementLeftOffset:function(oElement){var iOffsetLeft=parseInt(oElement.offsetLeft,10);var oOffsetParent=oElement.offsetParent;while(oOffsetParent){iOffsetLeft += parseInt(oOffsetParent.offsetLeft,10);oOffsetParent=oOffsetParent.offsetParent;}return iOffsetLeft;},getElementTopOffset:function(oElement){var iOffsetTop=parseInt(oElement.offsetTop,10);var oOffsetParent=oElement.offsetParent;while(oOffsetParent){iOffsetTop += parseInt(oOffsetParent.offsetTop,10);oOffsetParent=oOffsetParent.offsetParent;}return iOffsetTop;},getElementWidth:function(oElement){if(PINT.util.browser.bIe){return parseInt(oElement.offsetWidth,10);}else{return(parseInt(oElement.offsetWidth,10)>parseInt(oElement.clientWidth,10))?parseInt(oElement.offsetWidth,10):parseInt(oElement.clientWidth,10);}},getElementHeight:function(oElement){if(PINT.util.browser.bIe){return parseInt(oElement.offsetHeight,10);}else{return(parseInt(oElement.offsetHeight,10)>parseInt(oElement.clientHeight,10))?parseInt(oElement.offsetHeight,10):parseInt(oElement.clientHeight,10);}}}
PINT.util.event={aEvents:[],add:function(aInfo){PINT.util.event.aEvents.push(aInfo);},clear:function(){if(PINT.util.browser.bIe){for(var i=0;i<PINT.util.event.aEvents.length;i++){PINT.util.event.aEvents[i][0].detachEvent("on"+PINT.util.event.aEvents[i][1],PINT.util.event.aEvents[i][2]);}PINT.util.event.aEvents=[];}},addEvent:function(oElement,sEvent,oFunction){if(PINT.util.browser.bIe||PINT.util.browser.bOpera){oElement.attachEvent("on"+sEvent,oFunction);}else{oElement.addEventListener(sEvent,oFunction,true);}PINT.util.event.add([oElement,sEvent,oFunction]);return oFunction;},removeEvent:function(oElement,sEvent,oFunction){if(oFunction==null||typeof(oFunction)=="undefined"){for(var i=0;i<PINT.util.event.aEvents.length;i++){if(PINT.util.event.aEvents[i][0]==oElement&&PINT.util.event.aEvents[i][1]==sEvent){oFunction=PINT.util.event.aEvents[i][2];break;}}}if(oFunction!=null&&typeof(oFunction)!="undefined"){if(PINT.util.browser.bIe||PINT.util.browser.bOpera){oElement.detachEvent("on"+sEvent,oFunction);}else{oElement.removeEventListener(sEvent,oFunction,true);}}},getEvent:function(event){return event||window.event;},stopEvent:function(event){if(!event){event=PINT.util.event.getEvent(event);}if(PINT.util.browser.bIe){event.cancelBubble=true;event.returnValue=false;}else{event.preventDefault();event.stopPropagation();}},getSource:function(event){if(!event){event=PINT.util.event.getEvent(event);}return event.target||event.srcElement;},getKey:function(event){if(!event){event=PINT.util.event.getEvent(event);}return [event.keyCode,String.fromCharCode(event.keyCode)];},getMouseInfo:function(event){if(!event){event=PINT.util.event.getEvent(event);}return [parseInt(event.clientX,10),parseInt(event.clientY,10),(event.button==2?2:0)];},checkMouseOutTrigger:function(e,el){if(!e)e=window.event;var target=document.getElementById(el);var outtag=(e.relatedTarget)? e.relatedTarget:e.toElement;while(outtag!=target&&outtag!=null)outtag=outtag.parentNode;return(!(outtag==target));},checkMouseOverTrigger:function(e,el){if(!e)e=window.event;var target=document.getElementById(el);var outtag=(e.relatedTarget)? e.relatedTarget:e.fromElement;while(outtag!=target&&outtag!=null)outtag=outtag.parentNode;return(!(outtag==target));}}
PINT.util.datetime=function(){switch(arguments.length){case 0:this.oDateTime=new Date();break;case 1:this.oDateTime=new Date(arguments[0]);break;case 3:this.oDateTime=new Date(arguments[0],arguments[1],arguments[2]);break;case 4:this.oDateTime=new Date(arguments[0],arguments[1],arguments[2],arguments[3]);break;case 5:this.oDateTime=new Date(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);break;case 6:this.oDateTime=new Date(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);break;default:this.oDateTime=new Date();break;};this.aLongMonths=["January","February","March","April","May","June","July","August","September","October","November","December"];this.aShortMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];this.aLongDays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];this.aShortDays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];this.Day=function(){return this.oDateTime.getDate();};this.DayOfWeek=function(){return this.oDateTime.getDay();};this.DayOfYear=function(){var iDays=0;for(var i=1;i<this.Month();i++){if(i%2==1){iDays += 31;}else{if(i==2){if(this.IsLeapYear()){iDays += 29;}else{iDays += 28;}}else{iDays += 30;}}}iDays += this.Day();return iDays;};this.Time=function(){return this.oDateTime.getTime();};this.Hour=function(){return this.oDateTime.getHours();};this.Month=function(){return this.oDateTime.getMonth();};this.Millisecond=function(){return this.oDateTime.getMilliseconds();};this.Minute=function(){return this.oDateTime.getMinutes();};this.Second=function(){return this.oDateTime.getSeconds();};this.Year=function(){return this.oDateTime.getFullYear();};this.GetWeeks=function(){var aWeeks=[];var o1stJan=new PINT.util.datetime(this.Year(),0,1);var oDateRef=new PINT.util.datetime(this.Year(),0,1);var oFrom={"day":oDateRef.ToString("d"),"month":oDateRef.ToString("n")};oDateRef.AddDays(6-oDateRef.DayOfWeek());var oTo={"day":oDateRef.ToString("d"),"month":oDateRef.ToString("n")};while(oDateRef.Year()==o1stJan.Year()){aWeeks.push([oFrom,oTo]);oDateRef.AddDays(1);if(oDateRef.Year()!=o1stJan.Year()){break;}var oFrom={"day":oDateRef.ToString("d"),"month":oDateRef.ToString("n")};oDateRef.AddDays(6);var oTo={"day":oDateRef.ToString("d"),"month":oDateRef.ToString("n")};}if(oDateRef.Year()!=o1stJan.Year()){var o31stDec=new PINT.util.datetime(this.Year(),11,31);var oTo={"day":oDateRef.ToString("d"),"month":oDateRef.ToString("n")};aWeeks.push([oFrom,oTo]);}return aWeeks;};this.GetWeek=function(){var iWeek=0;var oNow=new PINT.util.datetime();var o1stJan=new PINT.util.datetime(this.Year(),0,1);var oDateRef=new PINT.util.datetime(this.Year(),0,1);oDateRef.AddDays(6-oDateRef.DayOfWeek());if(oNow.Time()<oDateRef.Time()){return iWeek;}while(oDateRef.Year()==o1stJan.Year()){iWeek++;oDateRef.AddDays(1);if(oDateRef.Year()!=o1stJan.Year()){break;}oDateRef.AddDays(6);if(oNow.Time()<oDateRef.Time()){return iWeek;}}return iWeek;};this.IsLeapYear=function(){var iYear=this.Year();if(iYear % 4!=0){return false;}if(iYear % 100!=0){return false;}return(iYear % 400==0);};this.Add=function(oDateTime){this.oDateTime.setTime(this.oDateTime.getTime()+oDateTime.oDateTime.getTime());return this;};this.AddMilliseconds=function(iMilliseconds){this.oDateTime.setTime(this.oDateTime.getTime()+iMilliseconds);return this;};this.AddSeconds=function(iSeconds){this.oDateTime.setTime(this.oDateTime.getTime()+iSeconds*1000);return this;};this.AddMinutes=function(iMinutes){this.oDateTime.setTime(this.oDateTime.getTime()+iMinutes*60*1000);return this;};this.AddHours=function(iHours){this.oDateTime.setTime(this.oDateTime.getTime()+iHours*60*60*1000);return this;};this.AddDays=function(iDays){this.oDateTime.setTime(this.oDateTime.getTime()+iDays*24*60*60*1000);return this;};this.AddWeeks=function(iWeeks){this.oDateTime.setTime(this.oDateTime.getTime()+iWeeks*7*24*60*60*1000);return this;};this.AddMonths=function(iMonths){this.oDateTime.setTime(this.oDateTime.getTime()+iMonths*30*24*60*60*1000);return this;};this.AddYears=function(iYears){this.oDateTime.setTime(this.oDateTime.getTime()+iYears*365*24*60*60*1000);return this;};this.Subtract=function(oDateTime){this.oDateTime.setTime(this.oDateTime.getTime()-oDateTime.oDateTime.getTime());return this;};this.SubtractMilliseconds=function(iMilliseconds){this.oDateTime.setTime(this.oDateTime.getTime()-iMilliseconds);return this;};this.SubtractSeconds=function(iSeconds){this.oDateTime.setTime(this.oDateTime.getTime()-iSeconds*1000);return this;};this.SubtractMinutes=function(iMinutes){this.oDateTime.setTime(this.oDateTime.getTime()-iMinutes*60*1000);return this;};this.SubtractHours=function(iHours){this.oDateTime.setTime(this.oDateTime.getTime()-iHours*60*60*1000);return this;};this.SubtractDays=function(iDays){this.oDateTime.setTime(this.oDateTime.getTime()-iDays*24*60*60*1000);return this;};this.SubtractWeeks=function(iWeeks){this.oDateTime.setTime(this.oDateTime.getTime()-iWeeks*7*24*60*60*1000);return this;};this.SubtractMonths=function(iMonths){this.oDateTime.setTime(this.oDateTime.getTime()-iMonths*30*24*60*60*1000);return this;};this.SubtractYears=function(iYears){this.oDateTime.setTime(this.oDateTime.getTime()-iYears*365*24*60*60*1000);};this.DateDiff=function(oDateTime){var iMilliseconds=Math.abs(this.oDateTime.getTime()-oDateTime.oDateTime.getTime());return{"milliseconds":iMilliseconds,"seconds":Math.round(iMilliseconds/1000),"minutes":Math.round(iMilliseconds/(1000*60)),"hours":Math.round(iMilliseconds/(1000*60*60)),"days":Math.round(iMilliseconds/(1000*60*60*24)),"weeks":Math.round(iMilliseconds/(1000*60*60*24*7)),"months":Math.round(iMilliseconds/(1000*60*60*24*30)),"years":Math.round(iMilliseconds/(1000*60*60*24*365))}};this.ToString=function(sFormat){var sFormatted="";var bEscaped=false;for(var i=0;i<sFormat.length;i++){if(sFormat.charAt(i)=="\\"&&!bEscaped){bEscaped=true;}else{if(bEscaped){sFormatted += sFormat.charAt(i);bEscaped=false;}else{switch(sFormat.charAt(i)){case 'd':var iDay=this.Day();if(iDay<10){sFormatted +=("0"+iDay);}else{sFormatted += iDay;}break;case 'j':sFormatted += this.Day();break;case 'D':sFormatted += this.aShortDays[this.DayOfWeek()];break;case 'm':var iMonth=(this.Month()+1);if(iMonth<10){sFormatted +=("0"+iMonth);}else{sFormatted += iMonth;}break;case 'n':sFormatted +=(this.Month()+1);break;case 'l':sFormatted += this.aLongDays[this.DayOfWeek()];break;case 'w':sFormatted += this.DayOfWeek();break;case 'z':sFormatted += this.DayOfYear();break;case 'F':sFormatted += this.aLongMonths[this.Month()];break;case 'M':sFormatted += this.aShortMonths[this.Month()];break;case 'Y':sFormatted += this.Year();break;case 'y':sFormatted += new String(this.Year()).substring(2);break;case 'H':var iHour=this.Hour();if(iHour<10){sFormatted +=("0"+iHour);}else{sFormatted += iHour;}break;case 'h':var iHour=this.Hour()% 12;if(iHour<10){sFormatted +=("0"+iHour);}else{sFormatted += iHour;}break;case 'G':sFormatted += this.Hour();break;case 'g':sFormatted += this.Hour()% 12;break;case 'i':var iMinute=this.Minute();if(iMinute<10){sFormatted +=("0"+iMinute);}else{sFormatted += iMinute;}break;case 's':var iSecond=this.Second();if(iSecond<10){sFormatted +=("0"+iSecond);}else{sFormatted += iSecond;}break;case 'S':sFormatted += this.Millisecond();break;case 'a':sFormatted +=(this.Hour()<13)?'am':'pm';break;case 'A':sFormatted +=(this.Hour()<13)?'AM':'PM';break;default:sFormatted += sFormat.charAt(i);break;}}}}return sFormatted;};}
PINT.util.form={disableSubmit:function(sForm){var oForm=PINT.util.form.getForm(sForm);if(!oForm||(oForm.tagName.toUpperCase()!="FORM")){oForm=document.forms[0];}if(oForm&&(oForm.tagName.toUpperCase()=="FORM")){for(var i=0;i<oForm.elements.length;i++){if(oForm.elements[i].type=="submit"){oForm.elements[i].disabled=true;}}}},selectFirst:function(sForm){var oForm=PINT.util.form.getForm(sForm);if(!oForm||oForm.tagName.toUpperCase()!="FORM"){oForm=document.forms[0];}if(oForm&&oForm.tagName.toUpperCase()=="FORM"){for(var i=0;oForm.elements.length;i++){if(oForm.elements[i].type=="text"||oForm.elements[i].type=="password"||oForm.elements[i].type=="textarea"){oForm.elements[i].focus();break;}}}},getForm:function(sForm){if((oForm=PINT.util.dom.getElementById(sForm))&&oForm.tagName.toUpperCase()=="FORM"){return oForm;}else{if(oForm=document.forms[sForm]){return oForm;}}return null;},getElement:function(sElement,sForm){if(sForm&&(oForm=PINT.util.form.getForm(sForm))){if(oElement=oForm.elements[sElement]){return oElement;}}else{for(var i=0;i<document.forms.length;i++){for(var j=0;j<document.forms[i].elements.length;j++){if(document.forms[i].elements[j].length>1){if(document.forms[i].elements[j][0].name==sElement){return document.forms[i].elements[j];}}else{if(document.forms[i].elements[j].name==sElement){return document.forms[i].elements[j];}}}}}return null;},getValue:function(oElement){if(oElement.type=="text"||oElement.type=="textarea"||oElement.type=="password"||oElement.type=="hidden"||oElement.type=="file"){return [oElement.value];}else if(oElement.type=="select-one"){if(oElement.options.length==0){return [""];}else{if(oElement.options[oElement.selectedIndex].getAttribute("value")!=null){return [oElement.options[oElement.selectedIndex].value];}else{return [oElement.options[oElement.selectedIndex].text];}}}else if(oElement.type=="select-multiple"){if(oElement.options.length==0){return [""];}else{var aValues=[];for(var i=0;i<oElement.options.length;i++){if(oElement.options[i].getAttribute("value")!=null){aValues.push(oElement.options[i].value);}else{aValues.push(oElement.options[i].text);}}return aValues;}}}};PINT.util.form.select=function(oSelect){this.oSelect=oSelect;this.getValue=function(){return this.oSelect.value;};this.getText=function(){return this.oSelect.text;};this.add=function(sValue,sText){var iLen=this.oSelect.options.length;this.oSelect.options[iLen]=new Option(sText,sValue);return this;};this.removeByValue=function(sValue){var iLen=this.oSelect.options.length;for(i=(iLen-1);i>=0;i--){if(this.oSelect.options[i].value==sValue){this.oSelect.options[i]=null;}}return this;};this.removeByText=function(sText){var iLen=this.oSelect.options.length;for(i=(iLen-1);i>=0;i--){if(this.oSelect.options[i].text==sText){this.oSelect.options[i]=null;}}return this;};this.selectByValue=function(sValue){var iLen=this.oSelect.options.length;for(i=(iLen-1);i>=0;i--){if(this.oSelect.options[i].value==sValue){this.oSelect.options[i].selected=true;}}return this;};this.selectByText=function(sText){var iLen=this.oSelect.options.length;for(i=(iLen-1);i>=0;i--){if(this.oSelect.options[i].text==sText){this.oSelect.options[i].selected=true;}}return this;};this.removeAll=function(){this.oSelect.options.length=0;return this;};this.selectAll=function(){var iLen=this.oSelect.options.length;for(i=0;i<iLen;i++){this.oSelect.options[i].selected=true;}return this;};};PINT.util.form.validator=function(){this.aParams=arguments[0]||[];this.sForm=this.aParams["form"]||"";this.aRules=[];this.aMessages=[];this.aElements=[];this.oDefaultErrorHandler=function(oElement){if(oElement.length&&oElement.length>0){for(var i=0;i<oElement.length;i++){oElement[i].style.backgroundColor="#ff0000";}}else{oElement.style.backgroundColor="#ff0000";}};this.oDefaultClearHandler=function(oElement){if(oElement.length&&oElement.length>0){for(var i=0;i<oElement.length;i++){oElement[i].style.backgroundColor="";}}else{oElement.style.backgroundColor="";}};this.oDefaultNotificationHandler=function(){var sMessage="One or more errors occured during the process\n\n";for(var i=0;i<this.aMessages.length;i++){sMessage += this.aMessages[i]+"\n";}alert(sMessage);};this.oErrorHandler=this.aParams["errorHandler"]||this.oDefaultErrorHandler;this.oClearHandler=this.aParams["clearHandler"]||this.oDefaultClearHandler;this.oNotificationHandler=this.aParams["notificationHandler"]||this.oDefaultNotificationHandler;this.addRule=function(oRule){oRule.oValidator=this;oRule.oElement=PINT.util.form.getElement(oRule.sTarget,this.sForm);this.aRules.push(oRule);};this.activate=function(){var self=this;PINT.util.dom.getElementById(this.sForm).onsubmit=function(){for(var i=0;i<self.aRules.length;i++){if(self.aRules[i].oElement.length&&self.aRules[i].oElement.length>0){if(self.aElements.indexOf(self.aRules[i].oElement[0])==-1){self.oClearHandler(self.aRules[i].oElement);if(""!=(sMessage=self.aRules[i].check())){self.aMessages.push(sMessage);self.aElements.push(self.aRules[i].oElement[0]);}}}else{if(self.aElements.indexOf(self.aRules[i].oElement)==-1){self.oClearHandler(self.aRules[i].oElement);if(""!=(sMessage=self.aRules[i].check())){self.aMessages.push(sMessage);self.aElements.push(self.aRules[i].oElement);}}}}if(self.aMessages.length>0){self.oNotificationHandler(self.aMessages);self.aMessages=[];self.aElements=[];return false;}else{self.aMessages=[];self.aElements=[];return true;}}};};PINT.util.form.rule=function(){var self=this;this.aParams=arguments[0]||[];this.sTarget=this.aParams["element"]||"";this.sRule=this.aParams["rule"]||"NOTNULL";this.oConditions=this.aParams["conditions"]||null;this.sMessage=this.aParams["message"]||"";this.oValidator=null;this.oElement=null;this.bChecked=false;this.check=function(){eval("this.check"+this.sRule)();if(!this.bChecked){this.oValidator.oErrorHandler(this.oElement);return this.sMessage;}else{return "";}};this.checkJS=function(){self.bChecked=eval(self.oConditions());};this.checkNOTNULL=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){self.bChecked=self.bChecked&&(aValues[i].replace(/(\s)*/g,"")!="");}};this.checkEMAIL=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].search(/^[a-zA-Z0-9]([a-zA-Z0-9\+\._-])*(@){1}([a-zA-Z0-9_-])+(\.){1}([a-zA-Z0-9\._-])+$/)!=-1);}}};this.checkDIGITS=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([0-9])*/g,"")=="");}}};this.checkNUMERIC=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([0-9\.])*/g,"")=="");}}};this.checkALPHA=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([a-zA-Z])*/g,"")=="");}}};this.checkUSZIP=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([0-9]{5}(\-*)[0-9]{0,5})*/g,"")=="");}}};this.checkUSPHONE=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([0-9]{3}\-[0-9]{3}\-[0-9]{4})*/g,"")=="");}}};this.checkMINCHARS=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].length>=parseInt(self.oConditions,10));}}};this.checkMAXCHARS=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].length<=parseInt(self.oConditions,10));}}};this.checkEQ=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){if(typeof(self.oConditions)=="object"){var sValue=PINT.util.form.getValue(self.oConditions)[0];self.bChecked=self.bChecked&&(aValues[i]==sValue);}else{self.bChecked=self.bChecked&&(aValues[i]==self.oConditions);}}}};this.checkEXTENSION=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;var aExtensions=self.oConditions.split(",");for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){var aTokens=aValues[i].split(".");var sExtension=aTokens[aTokens.length-1].toLowerCase();self.bChecked=self.bChecked&&(aExtensions.indexOf(sExtension)!=-1);}}};this.checkREGEXP=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;var oRegExp=new RegExp(this.oConditions);for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&oRegExp.test(aValues[i]);}}};this.checkCHECKED=function(){self.bChecked=self.oElement.checked;};this.checkSELECTED=function(){self.bChecked=false;for(var i=0;i<self.oElement.length;i++){self.bChecked=self.bChecked||self.oElement[i].checked;}};this.checkCC=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if((sValue=aValues[i].replace(/(\s)*/g,""))!=""){if(sValue.length>19){self.bChecked=false;return;}else{var iSum=0;var iMul=1;var iLen=sValue.length;for(var i=0;i<iLen;i++){iDigit=sValue.substring(iLen-i-1,iLen-i);iCode=parseInt(iDigit,10)*iMul;if(iCode>=10){iSum +=(iCode % 10)+1;}else{iSum += iCode;}if(iMul==1){iMul++;}else{iMul--;}}if((iSum % 10)==0){self.bChecked=self.bChecked&&true;}else{self.bChecked=false;return;}}}}};};
PINT.util.flash=function(){this.aParams=arguments[0]||[];this.sId=this.aParams["id"]||"";this.sSwf=this.aParams["swf"]||"";this.iWidth=this.aParams["width"]||0;this.iHeight=this.aParams["height"]||0;this.sAlign=this.aParams["align"]||"middle";this.iVersion=this.aParams["version"]||6;this.sImageMap=this.aParams["imagemap"]||"";this.sCodeBase=this.iVersion+",0,0,0";this.sDefaultImage=this.aParams["defaultimage"]||"";this.sNoScriptId=this.aParams["noscriptId"]||"";this.sAltText=this.aParams["alttext"]||"Please <a href='http://www.macromedia.com/go/getflashplayer'>upgrade your Flash Player</a>.";this.sBypassText=this.aParams["bypasstext"]||"";this.sRedirectUrl=this.aParams["redirecturl"]||"";this.sBgColor=this.aParams["bgcolor"]||"";this.aParams={};this.aVars={};this.addParam=function(sName,sValue){this.aParams[sName]=sValue;};this.getParams=function(sName){if(sName){return this.aParams[sName];}else{return this.aParams;}};this.addVariable=function(sName,sValue){this.aVars[sName]=sValue;};this.getVars=function(sName){if(sName){return this.aVars[sName];}else{return this.aVars;}};this.getParamTags=function(){var sParamTags="";for(var sParam in this.getParams()){sParamTags += '<param name="'+sParam+'" value="'+this.getParams(sParam)+'" />';}if(sParamTags==""){sParamTags=null;}return sParamTags;};this.getHTML=function(){var sFlashHTML="";if(window.ActiveXObject&&navigator.userAgent.indexOf('Mac')==-1){sFlashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.sCodeBase+'" width="'+this.iWidth+'" height="'+this.iHeight+'" id="'+this.sId+'" align="'+this.sAlign+'">';sFlashHTML += '<param name="movie" value="'+this.sSwf+'" />';if(this.getParamTags()!=null){sFlashHTML += this.getParamTags();}if(this.getVariablePairs()!=null){sFlashHTML += '<param name="flashVars" value="'+this.getVariablePairs()+'" />';}sFlashHTML += '</object>';}else{sFlashHTML += '<embed type="application/x-shockwave-flash" src="'+this.sSwf+'" width="'+this.iWidth+'" height="'+this.iHeight+'" id="'+this.sId+'" align="'+this.sAlign+'"';for(var sParam in this.getParams()){sFlashHTML += ' '+sParam+'="'+this.getParams(sParam)+'"';}if(this.getVariablePairs()!=null){sFlashHTML += ' flashVars="'+this.getVariablePairs()+'"';}sFlashHTML += '></embed>';}return sFlashHTML;};this.getVariablePairs=function(){var aVariablePairs=new Array();for(var sName in this.getVars()){aVariablePairs.push(sName+"="+escape(this.getVars(sName)));}if(aVariablePairs.length>0){return aVariablePairs.join("&");}else{return null;}};this.render=function(sIdContainer){this.addParam("quality","high");if(this.sBgColor){this.addParam("bgcolor",this.sBgColor);}this.sDetect=PINT.util.getQueryParamValue("detectflash");if(this.detectFlash(this.iVersion)||this.sDetect=="false"){if(sIdContainer){document.getElementById(sIdContainer).innerHTML=this.getHTML();}else{document.write(this.getHTML());}}else{if(this.sRedirectUrl!=""){document.location.replace(this.sRedirectUrl);}else if(this.sNoScriptId!=""){ var oElement = document.getElementById(this.sNoScriptId); oElement.style.display = oElement.parentNode.style.display; }else if(this.sDefaultImage!=""){sImageString="<img src=\""+this.sDefaultImage+"\" width=\""+this.iWidth+"\" height=\""+this.iHeight+"\" border=\"0\" alt=\"\"";if(typeof(this.sImageMap)!="undefined"&&this.sImageMap!=""){sImageString += " usemap=\"#"+this.sImageMap+"\" ";}sImageString += " class=\"inlineimage\" />";document.write(sImageString);}else{document.write(this.sAltText+""+this.sBypassText);}}};

this.getFlashVersion=function(){var iFlashVersion=0;if(navigator.plugins&&navigator.plugins.length){var swVer2=navigator.plugins["Shockwave Flash 2.0"] ? " 2.0":"";var oPlugin=navigator.plugins["Shockwave Flash"+swVer2];if(oPlugin){if(oPlugin.description){var sDescription=oPlugin.description;var aDescription=oPlugin.description.split(" ");var aMajorVersion=aDescription[2].split(".");iFlashVersion=aMajorVersion[0];}}}else{var axo;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.10");iFlashVersion=10;}catch(e){}if(!iFlashVersion){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.9");iFlashVersion=9;}catch(e1){}}if(!iFlashVersion){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.8");iFlashVersion=8;}catch(e2){}}if(!iFlashVersion){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");iFlashVersion=6;}catch(e3){}}if(!iFlashVersion){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");iFlashVersion=2;}catch(e4){}}}return iFlashVersion;};

this.detectFlash=function(iVersion){return(this.getFlashVersion()>=iVersion);};}
PINT.connection={iConnection:0,aConnections:[],createConnection:function(){var oXmlHttp=PINT.connection.createXmlHttpRequest();return{"iConnection":PINT.connection.iConnection++,"oRequest":oXmlHttp}},createXmlHttpRequest:function(){if(window.XMLHttpRequest){var oXmlHttp=new XMLHttpRequest();}else if(window.ActiveXObject){var aVersions=["Microsoft.XMLHttp","MSXML2.XMLHttp","MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0"];for(var i=0;i<aVersions.length;i++){try{var oXmlHttp=new ActiveXObject(aVersions[i]);}catch(oError){}}}else if(window.createRequest){var oXmlHttp=window.createRequest();}return oXmlHttp;},asyncRequest:function(sMethod,sUrl,oCallback,iTimeout,sPostData){if(!iTimeout||typeof(iTimeout)=="undefined"){iTimeout=30;}else{iTimeout=parseInt(iTimeout,10);}sPostData=sPostData||'';var oConnection=PINT.connection.createConnection();PINT.connection.aConnections[oConnection["iConnection"]]={"oConnection":oConnection,"iTimeout":iTimeout,"sPostData":sPostData};if(sUrl.indexOf('?')==-1){sUrl += '?';}sUrl += "&PINT_random="+Math.random();window.setTimeout(function(){PINT.connection.abort(oConnection,oCallback);},iTimeout*1000);var oInterval=window.setInterval(function(){PINT.connection.check(oConnection,oCallback);},300);PINT.connection.aConnections[oConnection.iConnection]["oInterval"]=oInterval;if(sMethod=='POST'){oConnection["oRequest"].open(sMethod,sUrl,true);oConnection["oRequest"].setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=UTF-8');oConnection["oRequest"].setRequestHeader('Content-length',sPostData.length);oConnection["oRequest"].setRequestHeader('Connection','close');oConnection["oRequest"].send(sPostData);if(PINT.util.browser.bKonqueror){}}else{oConnection["oRequest"].open(sMethod,sUrl+'&'+sPostData,true);oConnection["oRequest"].send(null);}},check:function(oConnection,oCallback){if(oConnection["oRequest"].readyState==4){window.clearInterval(PINT.connection.aConnections[oConnection.iConnection]["oInterval"]);delete PINT.connection.aConnections[oConnection.iConnection];if(typeof(oCallback)=="function"){if(oConnection["oRequest"].status>=200&&oConnection["oRequest"].status<300){oCallback(1,oConnection["oRequest"].responseText);}else{oCallback(0,oConnection["oRequest"].responseText);}}}},abort:function(oConnection,oCallback){if(PINT.connection.aConnections[oConnection.iConnection]&&PINT.connection.aConnections[oConnection.iConnection]["oTimeout"]){window.clearInterval(PINT.connection.aConnections[oConnection.iConnection]["oTimeout"]);if(typeof(oCallback)=="function"){oCallback(-1,"");}delete PINT.connection.aConnections[oConnection.iConnection];}}}
function $$(sId){return PINT.util.dom.getElementById(sId);}function N$(sTag,oParent,sText){return PINT.util.dom.createElement(sTag,oParent,sText);}function n$(oNode){PINT.util.dom.removeElement(oNode);}function E$(oElement,sEvent,oFunction){PINT.util.event.addEvent(oElement,sEvent,oFunction);}function e$(oElement,sEvent,oFunction){PINT.util.event.removeEvent(oElement,sEvent,oFunction);}function X$(oElement){return PINT.util.dom.getElementLeftOffset(oElement);}function Y$(oElement){return PINT.util.dom.getElementTopOffset(oElement);}function W$(oElement){return PINT.util.dom.getElementWidth(oElement);}function H$(oElement){return PINT.util.dom.getElementHeight(oElement);}function $$C(sClassName,sTagName,oStartElement){return PINT.util.dom.getElementsByClassName(sClassName,sTagName,oStartElement);}function L$(oElement){if(typeof(oElement)=='string'){return $$(oElement);}else{return oElement;}}function C$(oElement,sClassName){oElement=L$(oElement); if(oElement.className!=""){oElement.className += " "+sClassName;}else{oElement.className=sClassName;}}function c$(oElement,sClassName){oElement=L$(oElement); var aOldClass=oElement.className.split(" "); var aNewClass=[]; for(i in aOldClass){if(aOldClass[i]!=sClassName){aNewClass.push(aOldClass[i]);}}oElement.className=aNewClass.join(" ");}
PINT.tracker={sServerPath:"",bBeforeUnload:false,bScrollInit:false,iScroll:0,oMotionInfo:{'ts':0,'mousex':0,'mousey':0,'element':null},sTextBuffer:"",iEntryPage:0,iExitPage:0,sGenericRequest:"",aImgRequests:[],sUsageUID:"",aTagsMapping:{"TEXTAREA":"0","SELECT":"1","OPTION":"2","STRONG":"3","TABLE":"4","TBODY":"5","INPUT":"6","FORM":"7","SPAN":"8","DIV":"9","IMG":"~","TR":"@","TD":"$","AREA":"*","EMBED":"`","FONT":"!"},iStartTime:(new PINT.util.datetime()).Time(),convertTagsPath:function(sPath,sConversion){sConversion=sConversion||"short";if(sConversion=="full"){sPath=sPath.replace(/\^/g,"$;@;5;4");}var aTokens=sPath.split(";");var sNewPath="";for(var i=0;i<aTokens.length;i++){if(sConversion=="short"){if(PINT.tracker.aTagsMapping[aTokens[i]]){sNewPath += PINT.tracker.aTagsMapping[aTokens[i]]+";";}else{sNewPath += aTokens[i]+";";}}else if(sConversion=="full"){var sTag="";for(sKey in PINT.tracker.aTagsMapping){if(aTokens[i]==PINT.tracker.aTagsMapping[sKey]){sTag=sKey;break;}}if(sTag!=""){sNewPath += sTag+";";}else{sNewPath += aTokens[i]+";";}}}sNewPath=sNewPath.substring(0,sNewPath.length-1);if(sConversion=="short"){sNewPath=sNewPath.replace(/\$;@;5;4/g,"^");}return sNewPath;},getDomPath:function(oElement){var sPath="";var sTagsPath=";";while(oElement&&(oElement.tagName!="BODY")){if(oElement.parentNode){var iOffset=0;var iLen=oElement.parentNode.childNodes.length;for(var i=0;i<iLen;i++){if(oElement.parentNode.childNodes[i]==oElement){sPath += iOffset;sTagsPath += oElement.tagName;break;}if(oElement.parentNode.childNodes[i].nodeType==1){iOffset++;}}}oElement=oElement.parentNode;sPath += ";";sTagsPath += ";";}if(sPath!=""){sPath=sPath.substring(0,sPath.length-1);}return [sPath,sTagsPath];},repackDomPath:function(sDomPath){var sNewPath="";var aDomPath=sDomPath.split(";");for(var i=0;i<aDomPath.length;i++){var aTemp=aDomPath[i].split("x");if(aTemp.length==1){sNewPath += aDomPath[i]+";";}else{for(var j=0;j<aTemp[0];j++){sNewPath += aTemp[1]+";";}}}sNewPath=sNewPath.substring(0,sNewPath.length-1);return sNewPath;},findElement:function(oBaseElement,sDomPath,sTagsPath,sTagInfo){var aDomPath=sDomPath.split(";");if(sTagsPath.length>1){sTagsPath=sTagsPath.substring(1,sTagsPath.length-1);}sTagsPath=sTagsPath.toUpperCase();var aTagsPath=sTagsPath.split(";");oElement=oBaseElement;for(var i=aDomPath.length-1;i>=0;i--){var aChilds=[];var bFound=false;if(oElement){var iLen=oElement.childNodes.length;for(var j=0;j<iLen;j++){if(oElement.childNodes[j].nodeType==1){aChilds[aChilds.length]=oElement.childNodes[j];}}}for(var j=0;j<aChilds.length;j++){if(j==parseInt(aDomPath[i],10)&&aChilds[j].tagName==aTagsPath[i]){oElement=aChilds[j];bFound=true;break;}}if(!bFound){var iClosest=9999;var oClosest=null;var iOffset=-1;for(var j=0;j<aChilds.length;j++){if(aChilds[j].tagName==aTagsPath[i]){if(Math.abs(j-parseInt(aDomPath[i],10))<=iClosest){iClosest=Math.abs(j-parseInt(aDomPath[i],10));oClosest=aChilds[j];iOffset=j;}}}oElement=oClosest;}}function rs(s){return new String(s).replace(/ /gi,'%20');}if(oElement&&sTagInfo&&sTagInfo!=""){if(oElement.src&&(oElement.src!=sTagInfo&&rs(oElement.src)!=sTagInfo&&oElement.src!=rs(sTagInfo))){return null;}else if(oElement.href&&(oElement.href!=sTagInfo&&rs(oElement.href)!=sTagInfo&&oElement.href!=rs(sTagInfo))){return null;}}return oElement;},hideObstructingObjects:function(){var aObstructingObjects=PINT.util.dom.getElementsByTagName("EMBED");for(var i=0;i<aObstructingObjects.length;i++){var iWidth=PINT.util.dom.getElementWidth(aObstructingObjects[i]);var iHeight=PINT.util.dom.getElementHeight(aObstructingObjects[i]);var iLeft=PINT.util.dom.getElementLeftOffset(aObstructingObjects[i]);var iTop=PINT.util.dom.getElementTopOffset(aObstructingObjects[i]);aObstructingObjects[i].style.visibility="hidden";var oReplacement=PINT.util.dom.createElement("DIV",PINT.util.dom.getElementsByTagName("BODY",0));oReplacement.style.position="absolute";oReplacement.style.left=iLeft+"px";oReplacement.style.top=iTop+"px";oReplacement.style.width=iWidth+"px";oReplacement.style.height=iHeight+"px";oReplacement.style.backgroundColor="#cccccc";}},getPageUID:function(){var sPageUID=window.location.href.replace(/http(s*):\/\//g,"").replace(/(\.)|(\/)|(\?)|(\&)|(\#)|(\=)/g,"_").replace(/[^a-zA-Z0-9_\-]/g,"");return sPageUID;},getClientUID:function(){var sCookie=PINT.util.browser.getCookie("PINT_CT_CLIENT_ID");if(!sCookie||sCookie==""){PINT.tracker.iEntryPage=1;var oTs=new PINT.util.datetime();var sClientUID=oTs.ToString("ymdHis")+PINT.util.getRandomString(2,"0123456789");PINT.util.browser.setCookie("PINT_CT_CLIENT_ID",sClientUID);return sClientUID;}else{PINT.tracker.iEntryPage=0;return sCookie;}},init:function(){PINT_TRACKER_IGNORE_CLICKS=(typeof(PINT_TRACKER_IGNORE_CLICKS)=='undefined')?false:PINT_TRACKER_IGNORE_CLICKS;PINT_TRACKER_IGNORE_FORMS=(typeof(PINT_TRACKER_IGNORE_FORMS)=='undefined')?false:PINT_TRACKER_IGNORE_FORMS;PINT_TRACKER_IGNORE_SCROLL=(typeof(PINT_TRACKER_IGNORE_SCROLL)=='undefined')?false:PINT_TRACKER_IGNORE_SCROLL;PINT_TRACKER_IGNORE_LATENCY=(typeof(PINT_TRACKER_IGNORE_LATENCY)=='undefined')?false:PINT_TRACKER_IGNORE_LATENCY;var sCookie=PINT.util.browser.getCookie("PINT_CT_CLIENT_RND");if(!sCookie||sCookie==""){var fRandom=1*Math.random();PINT.util.browser.setCookie("PINT_CT_CLIENT_RND",fRandom);}else{var fRandom=parseFloat(sCookie);}if(fRandom>1){return;}var sUrl=document.location.pathname+"?"+document.location.search;if(window.PINT_TRACKER_URL_IGNORE_RULES&&window.PINT_TRACKER_URL_IGNORE_RULES.length>0){for(var i=0;i<window.PINT_TRACKER_URL_IGNORE_RULES.length;i++){var oRegExp=new RegExp(window.PINT_TRACKER_URL_IGNORE_RULES[i]);if(oRegExp.test(sUrl)){return;}}}var sSearch=document.location.search;if(window.PINT_TRACKER_URL_DELETE_RULES&&window.PINT_TRACKER_URL_DELETE_RULES.length>0){for(var i=0;i<window.PINT_TRACKER_URL_DELETE_RULES.length;i++){var oRegExp=new RegExp(window.PINT_TRACKER_URL_DELETE_RULES[i]);sSearch=sSearch.replace(oRegExp,'');}sSearch=sSearch.replace(/&$/,'');if(sSearch=='?'){sSearch='';}}if(typeof(window.PINT_TRACKER_SERVER_URL)=="undefined"){return;}else{PINT.tracker.sServerPath=window.PINT_TRACKER_SERVER_URL+"server.php?";}var aResolutionInfo=PINT.util.browser.getResolution();var aBrowserInfo=PINT.util.browser.getBrowserInfo();var aWinSizeInfo=PINT.util.browser.getSize();var iFlashVersion=(new PINT.util.flash()).getFlashVersion();PINT.tracker.sGenericRequest += "ua="+escape(navigator.userAgent.toLowerCase())+"&";PINT.tracker.sGenericRequest += "client_id="+escape(PINT.tracker.getClientUID())+"&";PINT.tracker.sGenericRequest += "hostname="+escape(document.location.hostname)+"&";PINT.tracker.sGenericRequest += "pathname="+escape(document.location.pathname)+"&";PINT.tracker.sGenericRequest += "search="+escape(sSearch)+"&";PINT.tracker.sGenericRequest += "secure="+escape(document.location.protocol=='https'?1:0)+"&";PINT.tracker.sGenericRequest += "port="+escape(document.location.port)+"&";PINT.tracker.sGenericRequest += "res_w="+escape(aResolutionInfo[0])+"&";PINT.tracker.sGenericRequest += "res_h="+escape(aResolutionInfo[1])+"&";PINT.tracker.sGenericRequest += "win_w="+escape(aWinSizeInfo[0])+"&";PINT.tracker.sGenericRequest += "win_h="+escape(aWinSizeInfo[1])+"&";PINT.tracker.sGenericRequest += "os="+escape(aBrowserInfo[0])+"&";PINT.tracker.sGenericRequest += "browser="+escape(aBrowserInfo[1])+"&";PINT.tracker.sGenericRequest += "version="+escape(aBrowserInfo[2])+"&";PINT.tracker.sGenericRequest += "flash="+escape(iFlashVersion)+"&";if(!PINT_TRACKER_IGNORE_CLICKS){var aIframeObjects=PINT.util.dom.getElementsByTagName("IFRAME");for(var i=0;i<aIframeObjects.length;i++){try{parent.frames[aIframeObjects[i].name].document.onclick=function(e){try{var e=e||this.parentWindow.event;var top=window.top||this.parentWindow.top;top.PINT.tracker.sendClickInfo(e,this);}catch(oErr){}};}catch(oErr){}}}if(!PINT_TRACKER_IGNORE_FORMS){var aInputs=PINT.util.dom.getElementsByTagName("INPUT");var aSelects=PINT.util.dom.getElementsByTagName("SELECT");var aTextareas=PINT.util.dom.getElementsByTagName("TEXTAREA");var aFormObjects=new Array();for(var i=0;i<aInputs.length;i++){aFormObjects.push(aInputs[i]);}for(var i=0;i<aSelects.length;i++){aFormObjects.push(aSelects[i]);}for(var i=0;i<aTextareas.length;i++){aFormObjects.push(aTextareas[i]);}for(var i=0;i<aFormObjects.length;i++){E$(aFormObjects[i],"blur",function(e){var oSource=PINT.util.event.getSource(e);var sElementId=oSource.id||oSource.name;var sElementValue=oSource.value;if(oSource.form){var sFormId=oSource.form.id||oSource.form.name;var iKey=((oSource.tagName=="INPUT"&&oSource.type=="text")||oSource.tagName=="TEXTAREA")?1:0;var aInfo={"act":"form","element_id":sElementId,"form_id":sFormId,"submit":0,"key":iKey,"mouse":0,"text":sElementValue,"usageid":PINT.tracker.sUsageUID};PINT.tracker.sendFormInfo(aInfo);}});E$(aFormObjects[i],"keydown",function(e){var oSource=PINT.util.event.getSource(e);var sElementId=oSource.id||oSource.name;if(oSource.form){var sFormId=oSource.form.id||oSource.form.name;var iSubmit=(oSource.type=="submit"||oSource.type=="image")?1:0;var aInfo={"act":"form","element_id":sElementId,"form_id":sFormId,"submit":iSubmit,"key":1,"mouse":0,"text":"","usageid":PINT.tracker.sUsageUID};PINT.tracker.sendFormInfo(aInfo);if(iSubmit==1){PINT.tracker.sUsageUID=PINT.util.getRandomString(4,"0123456789");}}});}}if(!PINT_TRACKER_IGNORE_SCROLL){window.setInterval(function(){var aScrollInfo=PINT.util.browser.getScroll();if(aScrollInfo[1]==0&&!PINT.tracker.bScrollInit){PINT.tracker.bScrollInit=true;}else{if(aScrollInfo[1]>0&&aScrollInfo[1]!=PINT.tracker.iScroll){PINT.tracker.iScroll=aScrollInfo[1];var aInfo={"act":"scroll","scroll":aScrollInfo[1]};PINT.tracker.sendScrollInfo(aInfo);}}},100);}if(!PINT_TRACKER_IGNORE_LATENCY){E$(document,"mousemove",function(e){var aMouseInfo=PINT.util.event.getMouseInfo(e);var aScrollInfo=PINT.util.browser.getScroll();var oElement=PINT.util.event.getSource(e);var aPaths=PINT.tracker.getDomPath(oElement);if(aPaths[1].replace(/;/g,"")!="HTML"&&aPaths[1].replace(/;/g,"")!="BODY"){var iTs=(new PINT.util.datetime()).Time();if(PINT.tracker.oMotionInfo['ts']==0){var iDiff=0;}else{var iDiff=iTs-PINT.tracker.oMotionInfo['ts'];}if((Math.abs(PINT.tracker.oMotionInfo['mousex']-aMouseInfo[0])>40||Math.abs(PINT.tracker.oMotionInfo['mousey']-aMouseInfo[1])>40)||(oElement!=PINT.tracker.oMotionInfo['element'])){if(iDiff>5000){iDiff=5000;}if(PINT.tracker.oMotionInfo['element']&&iDiff>200){var oElement_=PINT.tracker.oMotionInfo['element'];var sElementTagName=oElement_.tagName;var sExtraPath=sExtraTagsPath=sExtraTagInfo=sExtraId="";if(oElement_.tagName=="AREA"||oElement_.tagName=="MAP"){if(oElement_.tagName=="AREA"){var aPaths=PINT.tracker.getDomPath(oElement_);var sExtraPath='!!'+aPaths[0];var sExtraTagsPath='!!'+aPaths[1];var sExtraId='!!'+oElement.id;var sExtraTagInfo='!!'+oElement.href;}while(oElement_.tagName!="MAP"&&oElement_.tagName){oElement_=oElement_.parentNode;}for(var i=0;i<document.images.length;i++){if(document.images[i].useMap&&document.images[i].useMap.indexOf("#"+oElement_.id)>-1){oElement_=document.images[i];break;}}}var sTagInfo="";if(oElement_.src&&oElement_.src!=""){sTagInfo=oElement_.src;}else if(oElement_.href&&oElement_.href!=""){sTagInfo=oElement_.href;}var iElementX=X$(oElement_);var iElementY=Y$(oElement_);var iElementWidth=W$(oElement_);var iElementHeight=H$(oElement_);var aPaths=PINT.tracker.getDomPath(oElement_);var sId=oElement_.id;var sPath=aPaths[0];var sTagsPath=aPaths[1];sId += sExtraId;sTagInfo += sExtraTagInfo;sPath += sExtraPath;sTagsPath += sExtraTagsPath;var aInfo={"act":"motion","click":0,"text":""};aInfo['x']=escape(PINT.tracker.oMotionInfo['mousex']);aInfo['y']=escape(PINT.tracker.oMotionInfo['mousey']);aInfo['msec']=escape(iDiff);aInfo['dom_path']=escape(sPath);aInfo['tags_path']=escape(PINT.tracker.convertTagsPath(sTagsPath));aInfo['dom_id']=escape(sId);aInfo['el_x']=escape(iElementX);aInfo['el_y']=escape(iElementY);aInfo['el_w']=escape(iElementWidth);aInfo['el_h']=escape(iElementHeight);aInfo['sx']=escape(aScrollInfo[0]);aInfo['sy']=escape(aScrollInfo[1]);aInfo['tag_info']=escape(sTagInfo);aInfo['tag']=escape(sElementTagName);PINT.tracker.sendMotionInfo(aInfo);}PINT.tracker.oMotionInfo={'ts':iTs,'mousex':aMouseInfo[0],'mousey':aMouseInfo[1],'element':oElement};}}});}if(!PINT_TRACKER_IGNORE_CLICKS){E$(document,"mousedown",function(e){PINT.tracker.sendClickInfo(e);var oSource=PINT.util.event.getSource(e);if(oSource.form&&(oSource.tagName=="INPUT"||oSource.tagName=="TEXTAREA"||oSource.tagName=="SELECT")){var sElementId=oSource.id||oSource.name;var sFormId=oSource.form.id||oSource.form.name;var iSubmit=(oSource.type=="submit"||oSource.type=="image")?1:0;var aInfo={"act":"form","element_id":sElementId,"form_id":sFormId,"submit":iSubmit,"key":0,"mouse":1,"text":"","usageid":PINT.tracker.sUsageUID};PINT.tracker.sendFormInfo(aInfo);if(iSubmit==1){PINT.tracker.sUsageUID=PINT.util.getRandomString(4,"0123456789");}}});}E$(window,"beforeprint",function(e){var aInfo={"act":"print"};PINT.tracker.sendPageInfo(aInfo);});E$(window,"load",function(e){var iLoadTime=(new PINT.util.datetime()).Time();var sCookie=PINT.util.browser.getCookie("PINT_CT_EXIT_TS");PINT.tracker.sUsageUID=PINT.util.getRandomString(4,"0123456789");if(sCookie&&sCookie!=""){var iRequestTime=iLoadTime-parseInt(sCookie,10);}else{var iRequestTime=10*(iLoadTime-PINT.tracker.iStartTime);}iRequestSize=PINT.util.dom.getElementsByTagName("BODY",0).innerHTML.length;for(var i=0;i<document.images.length;i++){iRequestSize += parseInt(document.images[i].width*document.images[i].height*0.5,10);}var aInfo={"act":"load","time":(iLoadTime-PINT.tracker.iStartTime),"request_time":iRequestTime,"request_size":iRequestSize,"referrer":document.referrer};PINT.tracker.sendPageInfo(aInfo);});if(PINT.util.browser.bIe||PINT.util.browser.bMozilla){E$(window,"beforeunload",function(e){PINT.tracker.bBeforeUnload=true;var iExitTime=(new PINT.util.datetime()).Time();PINT.util.browser.setCookie("PINT_CT_EXIT_TS",iExitTime,0,0,0,"/");var aInfo={"act":"exit","time":(iExitTime-PINT.tracker.iStartTime)};PINT.tracker.sendPageInfo(aInfo);});}else{E$(window,"unload",function(e){if(!PINT.tracker.bBeforeUnload){var iExitTime=(new PINT.util.datetime()).Time();PINT.util.browser.setCookie("PINT_CT_EXIT_TS",iExitTime,0,0,0,"/");var aInfo={"act":"exit","time":(iExitTime-PINT.tracker.iStartTime)};PINT.tracker.sendPageInfo(aInfo);}});}},makeRequest:function(sRequest){var iRequests=PINT.tracker.aImgRequests.length;PINT.tracker.aImgRequests.push(new Image());PINT.tracker.aImgRequests[iRequests].src=PINT.tracker.sServerPath+sRequest+PINT.tracker.sGenericRequest+"random="+PINT.util.getRandomString(8);},sendMotionInfo:function(aInfo){sRequest="";for(sKey in aInfo){sRequest += sKey+"="+aInfo[sKey]+"&";}PINT.tracker.makeRequest(sRequest);},sendPageInfo:function(aInfo){sRequest="";for(sKey in aInfo){sRequest += sKey+"="+aInfo[sKey]+"&";}sRequest += "entry_page="+escape(PINT.tracker.iEntryPage)+"&";sRequest += "exit_page="+escape(PINT.tracker.iExitPage)+"&";sRequest += "title="+escape(window.document.title)+"&";PINT.tracker.makeRequest(sRequest);},sendFormInfo:function(aInfo){sRequest="";for(sKey in aInfo){sRequest += sKey+"="+aInfo[sKey]+"&";}PINT.tracker.makeRequest(sRequest);},sendScrollInfo:function(aInfo){var aSizeInfo=PINT.util.browser.getSize();sRequest="";for(sKey in aInfo){sRequest += sKey+"="+aInfo[sKey]+"&";}sRequest += "w="+escape(aSizeInfo[0])+"&";sRequest += "h="+escape(aSizeInfo[1])+"&";PINT.tracker.makeRequest(sRequest);},sendClickInfo:function(e,oIframe){if(!oIframe){var e=PINT.util.event.getEvent(e);var oElement=PINT.util.event.getSource(e);var sElementTagName=oElement.tagName;if(sElementTagName=="HTML"){return;}}else{var aIframeObjects=PINT.util.dom.getElementsByTagName("IFRAME");for(var i=0;i<aIframeObjects.length;i++){try{if(parent.frames[aIframeObjects[i].name].document==oIframe){var oElement=aIframeObjects[i];}}catch(oErr){}}var sElementTagName="IFRAME";}var sPath=sTagsPath=sId="";var iType=0;var sExtraPath=sExtraTagsPath=sExtraTagInfo=sExtraId="";if(oElement.tagName=="AREA"||oElement.tagName=="MAP"){iType=1;if(oElement.tagName=="AREA"){var aPaths=PINT.tracker.getDomPath(oElement);var sExtraPath='!!'+aPaths[0];var sExtraTagsPath='!!'+aPaths[1];var sExtraId='!!'+oElement.id;var sExtraTagInfo='!!'+oElement.href;}while(oElement.tagName!="MAP"&&oElement.tagName){oElement=oElement.parentNode;}for(var i=0;i<document.images.length;i++){if(document.images[i].useMap&&document.images[i].useMap.indexOf("#"+oElement.id)>-1){oElement=document.images[i];break;}}}var iElementX=X$(oElement);var iElementY=Y$(oElement);var iElementWidth=W$(oElement);var iElementHeight=H$(oElement);var aPaths=PINT.tracker.getDomPath(oElement);var sId=oElement.id;var sPath=aPaths[0];var sTagsPath=aPaths[1];var sTagInfo="";if(oElement.src&&oElement.src!=""){sTagInfo=oElement.src;}else if(oElement.href&&oElement.href!=""){sTagInfo=oElement.href;}sId += sExtraId;sTagInfo += sExtraTagInfo;sPath += sExtraPath;sTagsPath += sExtraTagsPath;if(sTagsPath.indexOf(";A;")>-1||(sElementTagName=="INPUT"&&(oElement.type=="submit"||oElement.type=="image"))||typeof(oElement.onclick)=="function"||typeof(oElement.onmousedown)=="function"||typeof(oElement.onmouseup)=="function"){iType=1;}var aScrollInfo=PINT.util.browser.getScroll();var aMouseInfo=PINT.util.event.getMouseInfo(e);var iMouseX=aMouseInfo[0];var iMouseY=aMouseInfo[1];var iMouseButton=aMouseInfo[2];var iScrollX=aScrollInfo[0];var iScrollY=aScrollInfo[1];if(oIframe){iMouseX += iElementX-iScrollX;iMouseY += iElementY-iScrollY;}sRequest="";sRequest += "act=click&";sRequest += "x="+escape(iMouseX)+"&";sRequest += "y="+escape(iMouseY)+"&";sRequest += "sx="+escape(iScrollX)+"&";sRequest += "sy="+escape(iScrollY)+"&";sRequest += "dom_path="+escape(sPath)+"&";sRequest += "dom_id="+escape(sId)+"&";sRequest += "el_x="+escape(iElementX)+"&";sRequest += "el_y="+escape(iElementY)+"&";sRequest += "el_w="+escape(iElementWidth)+"&";sRequest += "el_h="+escape(iElementHeight)+"&";sRequest += "tag="+escape(sElementTagName)+"&";sRequest += "tags_path="+escape(PINT.tracker.convertTagsPath(sTagsPath))+"&";sRequest += "mouse_info="+escape(iType+iMouseButton)+"&";sRequest += "tag_info="+escape(sTagInfo)+"&";PINT.tracker.makeRequest(sRequest);}}
if(self.parent!=self){if(self.location.href.indexOf("load.php")==-1){if(self.parent.frames.length==1){self.parent.parent.frames["frmoverlay"].location.href=PINT_TRACKER_SERVER_URL+"load.php?url="+escape(self.location.href);}else{self.parent.frames["frmoverlay"].location.href=PINT_TRACKER_SERVER_URL+"load.php?url="+escape(self.location.href);}}}else{PINT.tracker.init();}

