function hiconversion_url_get(D){var E=null;var C=document.URL.indexOf(D+"=");if(C>=0){var F=document.URL.indexOf(";",C);var A=document.URL.indexOf("&",C);var B=document.URL.indexOf("#",C);if(F>0){E=document.URL.substring(C+D.length+1,F);}else{if(A>0){E=document.URL.substring(C+D.length+1,A);}else{if(B>0){E=document.URL.substring(C+D.length+1,B);}else{E=document.URL.substring(C+D.length+1);}}}}return E;}function hiconversion_priority(A){if(A=="all"){return 0;}if(A=="trace"){return 1;}if(A=="debug"){return 2;}if(A=="info"){return 3;}if(A=="warn"){return 4;}if(A=="error"){return 5;}if(A=="fatal"){return 6;}if(A=="none"){return 7;}return -1;}function hiconversion_alert(E,I){var F=false;var H="hiconversion_priority";var B=hiconversion_url_get(H);if(B&&B!=null){var D=hiconversion_priority(E.toLowerCase());var G=hiconversion_priority(B.toLowerCase());if(G>=0&&D>=G){F=true;}}var A=hiconversion_cookie_get(H);if(A&&A!=null){var D=hiconversion_priority(E.toLowerCase());var C=hiconversion_priority(A.toLowerCase());if(C>=0&&D>=C){F=true;}}if(F){alert(hiconversion_format(I));}}function hiconversion_debug(A){hiconversion_alert("debug",A);}function hiconversion_error(A){hiconversion_alert("error",A);}function hiconversion_fatal(A){hiconversion_alert("fatal",A);}function hiconversion_info(A){hiconversion_alert("info",A);}function hiconversion_warn(A){hiconversion_alert("warn",A);}function hiconversion_trace(A){hiconversion_alert("trace",A);}function hiconversion_format(M){var E="";var H=0;var I=M.split("\n");for(var F=0;F80){var G=L[D].indexOf("?");if(G>=0){K[K.length]=L[D].substring(0,G+1);var A=L[D].substring(G+1);if(A.length>80){var J=A.split("&");for(var C=0;C=0){var I="hiconversion_url=";var F=N.indexOf(I);if(F>=0){N=N.substring(F+I.length);var L=N.indexOf("&");if(L>=0){N=N.substring(0,L);}N=decodeURIComponent(N);}}if(C=="action"){var B=N.indexOf("?");if(B>=0){N=N.substring(0,B);}}}if(C=="height"||C=="width"){var H=N;H=H.replace("px","");H=hiconversion_trim(H);var A=true;if(H.length==0){A=false;}else{for(var G=0;GE.length){H=E.length;}if(H<=0){var J=new Array();return J;}else{if(H==1){var J=new Array();for(var F=0;FC){return 1;}return 0;}function hiconversion_cookie_clear(B){var A=new Date();A.setTime(A.getTime()-1);document.cookie=B+"=; path=/; expires="+A.toGMTString();}function hiconversion_cookie_get(A){var B=document.cookie.match("(^|;) ?"+A+"=([^;]*)(;|$)");if(B){return unescape(B[2]);}else{return null;}}function hiconversion_cookie_set(B,D){var C=null;var A=location.hostname.split(".");if(A.length>=2){C="."+A[A.length-2]+"."+A[A.length-1];document.cookie=B+"="+escape(D)+"; path=/; max-age=28800; domain="+C;}else{document.cookie=B+"="+escape(D)+"; path=/; max-age=28800";}}function hiconversion_criteria(P,Y,E,R,C){try{Y.nodeType;}catch(L){var f=new Object();f.kind="permission";return f;}if(Y.nodeType!=1){var f=new Object();f.kind="nodeType";return f;}if(!Y.tagName||Y.tagName==null||Y.tagName=="null"||Y.tagName=="!"||Y.tagName.indexOf("/")==0){var f=new Object();f.kind="tagName";f.elements=new Array();f.extra=Y.tagName;return f;}var A=Y.tagName.toLowerCase();if(A=="script"||A=="noscript"){var f=new Object();f.kind="ok";f.elements=new Array();return f;}if(E==0&&(A=="input"||A=="img"||A=="param"||A=="option")){var f=new Object();f.kind="ok";f.elements=new Array();return f;}var f=hiconversion_frame_path(P);if(f.kind!="ok"){return f;}var b=f.framePath;if(R){var W=R[Y.hiconversion_id];if(W!=null){var Q=new Array();for(var c=0;c0){var J=Y.parentNode;if(J!=null){var D=null;var U=null;var H=-1;var F=0;for(var c=0;c=0){if(U==null){U=V;}}else{if(Y==V){H=F;}else{D=V;}}if(V.tagName==Y.tagName){F++;}}if(D!=null){var f=hiconversion_criteria(P,D,0,R,C);if(f.kind!="ok"){return f;}if(f.elements.length>0){var I=new Object();I.kind="previous";I.framePath=b;I.nodeType=Y.tagName;f.elements[f.elements.length]=I;if(R){R[Y.hiconversion_id]=f.elements;}return f;}}if(U!=null){var f=hiconversion_criteria(P,U,0,R,C);if(f.kind!="ok"){return f;}if(f.elements.length>0){var I=new Object();I.kind="next";I.framePath=b;I.nodeType=Y.tagName;f.elements[f.elements.length]=I;if(R){R[Y.hiconversion_id]=f.elements;}return f;}}}for(var c=0;c0){var I=new Object();I.kind="child";I.framePath=b;I.nodeType=Y.tagName;f.elements[f.elements.length]=I;if(R){R[Y.hiconversion_id]=f.elements;}return f;}}var f=hiconversion_criteria(P,J,E,R,C);if(f.kind!="ok"){return f;}if(f.elements.length>0){var I=new Object();I.kind="parent";I.framePath=b;I.nodeType=Y.tagName;I.index=H;I.length=F;f.elements[f.elements.length]=I;if(R){R[Y.hiconversion_id]=f.elements;}return f;}}var f=new Object();f.kind="ok";f.elements=new Array();return f;}function hiconversion_criteria_attribute(A){A=A.toLowerCase();if(A=="border"||A=="cellpadding"||A=="cellspacing"||A=="class"||A=="codebase"||A=="cols"||A=="defer"||A=="enctype"||A=="frameborder"||A=="headers"||A=="height"||A=="href"||A=="hreflang"||A=="hspace"||A=="id"||A=="label"||A=="lang"||A=="language"||A=="marginheight"||A=="marginwidth"||A=="method"||A=="name"||A=="rows"||A=="scrolling"||A=="size"||A=="span"||A=="src"||A=="type"||A=="vspace"||A=="width"){return true;}return false;}function hiconversion_display_attributes(D){var C="";if(D&&D!=null){var A=hiconversion_attributes(D);for(var B=0;B0){C=C+"\n";}C=C+"Criteria: "+B;if(E.kind){C=C+" kind: "+E.kind;}if(E.framePath){C=C+" framePath: "+E.framePath;}if(E.id){C=C+" id: "+E.id;}if(E.nodeId){C=C+" nodeId: "+E.nodeId;}if(E.nodeClass){C=C+" nodeClass: "+E.nodeClass;}if(E.nodeType){C=C+" nodeType: "+E.nodeType;}if(E.index>=0){C=C+" index: "+E.index;}if(E.length>=0){C=C+" length: "+E.length;}if(E.start>=0){C=C+" start: "+E.start;}if(E.end>=0){C=C+"end: "+E.end;}if(E.properties){C=C+" properties["+E.properties.length+"]";for(var A=0;A0){C=C+",";}C=C+" properties["+A+"]: "+E.properties[A].name+" "+E.properties[A].value;}}}}alert(C);}function hiconversion_display_duplicates(F){var E="";if(F){if(F.length==0){E="no duplicates";}else{for(var C=0;C0){var K=A[0];if(K.framePath&&K.framePath!=null&&K.framePath!=""){var N=K.framePath.split(".");for(var H=0;H1){var G=new Object();G.kind="frame";G.id=K.id;G.node=null;G.frame=null;G.extra=N[H];return G;}else{F=I[0];}}}}}for(var H=0;H50){var B=K.id;if(!B||B==null){B=-1;}hiconversion_trace(J+" hiconversion_find[id: "+B+"] took: "+M+" ms");}if(G){L=G.node;if(L){continue;}else{return G;}}else{var G=new Object();G.kind="invalid";G.id=K.id;G.node=null;G.frame=null;G.extra="";return G;}}var G=new Object();if(L){G.kind="ok";G.node=L;G.frame=F;}else{G.kind="none";G.node=null;G.frame=null;G.extra="";}return G;}function hiconversion_find_helper(O,A,I){if(I.kind=="id"){var B=new Array();var C="";var P=O.document.getElementsByTagName(I.nodeType);for(var V=0;V1){Z.kind="many";Z.node=null;Z.frame=null;Z.extra=C;}else{Z.kind="ok";Z.frame=O;Z.node=B[0];}}return Z;}if(I.kind=="type"){var P=O.document.getElementsByTagName(I.nodeType);var Z=new Object();Z.id=I.id;if(P.length==0){Z.kind="none";Z.node=null;Z.frame=null;Z.extra="";}else{if(P.length>1){Z.kind="many";Z.node=null;Z.frame=null;Z.extra="";}else{Z.kind="ok";Z.node=P[0];Z.frame=O;}}return Z;}if(I.kind=="attributes"){var P=O.document.getElementsByTagName(I.nodeType);if(P.length==0){var Z=new Object();Z.id=I.id;Z.kind="none";Z.node=null;Z.frame=null;Z.extra="";return Z;}else{if(P.length==1){var Z=new Object();Z.id=I.id;Z.kind="ok";Z.node=P[0];Z.frame=O;return Z;}else{if(!I.properties||I.properties==null||I.properties.length==0){var Z=new Object();Z.id=I.id;Z.kind="invalid";Z.node=null;Z.frame=null;Z.extra="";return Z;}var W=new Array();for(var V=0;V=0&&I.index=P.length){H-=P.length;}}else{H=I.index+((V/2)*-1);if(H<0){H+=P.length;}}}}var Q=P[H];var F=hiconversion_attributes(Q);var K=0;for(var U=0;U=0){N=N.replace("&","&");}}for(var T=0;T=0){L=L.replace("&","&");}}if(N!=L){continue;}K++;break;}}if(K==I.properties.length){W[W.length]=Q;break;}}if(W.length==0){var Z=new Object();Z.id=I.id;Z.kind="none";Z.node=null;Z.frame=null;Z.extra="";return Z;}else{if(W.length>1){var Z=new Object();Z.id=I.id;Z.kind="many";Z.node=null;Z.frame=null;Z.extra="";return Z;}else{if(W.length==1){if(I.length==null){var Z=new Object();Z.id=I.id;Z.kind="invalid";Z.node=null;Z.frame=null;Z.extra="";return Z;}var F=hiconversion_attributes(W[0]);if(F.length!=I.length){var C="length: "+F.length;for(var S=0;S0){C=C+",";}C=C+F[S].name+"="+F[S].value;}var Z=new Object();Z.id=I.id;Z.kind="mismatch";Z.node=null;Z.frame=null;Z.extra=C;return Z;}var Z=new Object();Z.id=I.id;Z.kind="ok";Z.node=W[0];Z.frame=O;return Z;}}}var Z=new Object();Z.id=I.id;Z.kind="none";Z.node=null;Z.frame=null;Z.extra="";return Z;}}}if(I.kind=="previous"){var J=A.parentNode;var M=0;for(var V=0;V0&&E!=I.length){var Z=new Object();Z.id=I.id;Z.kind="mismatch";Z.node=null;Z.frame=null;Z.extra="length: "+E;return Z;}else{if(R==null){var Z=new Object();Z.id=I.id;Z.kind="none";Z.node=null;Z.frame=null;Z.extra="";return Z;}else{var Z=new Object();Z.id=I.id;Z.kind="ok";Z.node=R;Z.frame=O;return Z;}}}var Z=new Object();Z.id=I.id;Z.kind="invalid";Z.node=null;Z.frame=null;Z.extra=I.kind;return Z;}function hiconversion_frame_path(F){if(!F||F==null){return"";}var D="";var A=F;while(A!=A.parent){var B=A.name;if(!B||B==null||B==""||B=="null"){var E=new Object();E.kind="name";E.frame=A;E.extra=D;return E;}if(A.parent==window){break;}if(B=="hiconversion_frame"){break;}for(var C=0;C"+I+"";}else{if(A.indexOf(""+I+"";}else{if(A.indexOf(""+I+"";}else{if(A.indexOf(""+I+"";}else{if(A.indexOf(""+I+"";}else{if(A.indexOf(""+I+"";}else{if(A.indexOf(""+I+"";}else{J.depth=0;J.value=I;}}}}}}}var L=C.ownerDocument.createElement("DIV");L.innerHTML=J.value;for(var G=0;G1){var F=new Object();F.kind="many";F.extra="length: "+H;return F;}else{var E=B.tagName.toLowerCase();if(K!=E){var F=new Object();F.kind="mismatch";F.extra=E;return F;}}}}var F=new Object();F.kind="ok";F.elements=new Array();for(var G=0;G")>=0||D.indexOf("")>=0){var C=new Object();C.kind="xml";return C;}var C=new Object();C.kind="ok";return C;}function hiconversion_trim(A){return(A||"").replace(/^\s+|\s+$/g,"");}function hiconversion_wrap(C,B){if(!C||C==null){return ;}if(!C.document||C.document==null){return ;}var A=C.document.getElementsByTagName("body");if(A.length>0){var G=A[0];for(var I=0;I=0){documentUrl=documentUrl.substring(0,documentUrlHashIndex);}var nohashUrl=url;var nohashUrlIndex=nohashUrl.indexOf("#");if(nohashUrlIndex>=0){nohashUrl=nohashUrl.substring(0,nohashUrlIndex);}if(documentUrl!=nohashUrl){var data=new Object();data.frame=window;data.base=base;data.pass=-1;data.session=session;data.responder=responder;data.kind="cached";data.message="page mismatch detected for url: "+url;return data;}var priorityUrlValue=hiconversion_url_get(priorityKey);var responderUrlValue=hiconversion_url_get(responderKey);var sessionUrlValue=hiconversion_url_get(sessionKey);var priorityCookieValue=hiconversion_cookie_get(priorityKey);var responderCookieValue=hiconversion_cookie_get(responderKey);var sessionCookieValue=hiconversion_cookie_get(sessionKey);var priorityValue=(priorityUrlValue&&priorityUrlValue!=null&&priorityUrlValue!="")?priorityUrlValue:priorityCookieValue;var responderValue=(responderUrlValue&&responderUrlValue!=null&&responderUrlValue!="")?responderUrlValue:responderCookieValue;var sessionValue=(sessionUrlValue&&sessionUrlValue!=null&&sessionUrlValue!="")?sessionUrlValue:sessionCookieValue;if(typeof created=="boolean"&&created==false&&responder&&responder!=null&&responder!=""){if(responderValue&&responderValue!=null&&responderValue!=""){var found=false;var responderValueArray=responderValue.split(".");for(var i=0;i0){try{hiconversion_wrap(window,true);}catch(exception){hiconversion_exception("hiconversion_wrap",exception);}}for(var i=0;i50){hiconversion_trace(stopChanges+" hiconversion_find[change: "+i+"] took: "+elapsed+" ms");}}for(var i=0;i50){hiconversion_trace(stopGoals+" hiconversion_find[goal: "+i+"] took: "+elapsed+" ms");}}}for(var i=0;icriteria.start&&counter0){goals[k].node=data.elements[0];goals[k].frame=frame;}else{var message="no elements for kind: "+data.kind+" alternate: "+update.id;hiconversion_send_error(window,base,pass,session,responder,"content",message);}break;}}}}}}var sent=false;for(var i=0;i0)?responderValueArray[0]:null;}hiconversion_send_goal(window,base,pass,sessionValue,goalResponder,kind,external,false);sent=true;}}else{if(goal.kind=="script"){try{eval(goal.text);if(typeof hiconversion_goal_user_defined=="function"){var array=hiconversion_goal_user_defined(window,base,pass,session,responder,kind,external);if(array instanceof Array){for(var j=0;j0)?responderValueArray[0]:null;}}if(!session||session==null){session=sessionValue;}var stop=new Date();var elapsed=stop-start;var message="elapsed: "+elapsed+" ms";hiconversion_send_log(window,base,pass,session,responder,message);hiconversion_send_ack(window,base,pass,session,responder);hiconversion_info(stop+" hiconversion_body_update [page: "+page+" combination: "+combination+" base: "+base+" priority: "+priority+" responder: "+responder+" session: "+session+" created: "+created+" baseline: "+baseline+" crossdomain: "+crossdomain+" bridge: "+bridge+"] took: "+elapsed+" ms pass: "+pass);var data=new Object();data.kind="ok";return data;}catch(exception){hiconversion_exception("hiconversion_body_update_helper",exception);var message=hiconversion_exception_to_string(exception);hiconversion_send_error(window,base,pass,session,responder,"hiconversion_body_update_helper",message);}}function hiconversion_goal_click(B,A,J,H,E,D,I,C,F){var G=C.onclick;C.onclick=function(K){hiconversion_goal(K,B,A,J,H,E,D,I,G,C,F);};}function hiconversion_goal_submit(B,A,J,H,E,D,I,C,F){var G=C.onsubmit;C.onsubmit=function(K){hiconversion_goal(K,B,A,J,H,E,D,I,G,C,F);};}function hiconversion_domain(C){var B=0;for(var A=C.length-1;A>=0;A--){if(C.charAt(A)=="."){B++;if(B==2){return C.substring(A+1);}}}return C;}function hiconversion_host(A){if(!A||A==null){return null;}A=hiconversion_trim(A);var G=A.toLowerCase();if(G.length<4){return null;}if(G.charAt(0)!="h"||G.charAt(1)!="t"||G.charAt(2)!="t"||G.charAt(3)!="p"){return null;}var F="http://";var H=G.indexOf(F);if(H>=0){var D=G.indexOf(":",F.length);if(D>=0){var B=null;var C=G.indexOf("/",F.length);if(C>=0){B=G.substring(D+1,C);}else{B=G.substring(D+1);}if(hiconversion_trim(B)==""){B="80";}return hiconversion_domain(G.substring(F.length,D))+":"+B;}else{var C=G.indexOf("/",F.length);if(C>=0){return hiconversion_domain(G.substring(F.length,C))+":80";}else{return hiconversion_domain(G.substring(F.length))+":80";}}}else{var I="https://";var E=G.indexOf(I);if(E>=0){var D=G.indexOf(":",I.length);if(D>=0){var B=null;var C=G.indexOf("/",I.length);if(C>=0){B=G.substring(D+1,C);}else{B=G.substring(D+1);}if(hiconversion_trim(B)==""){B="443";}return hiconversion_domain(G.substring(I.length,D))+":"+B;}else{var C=G.indexOf("/",I.length);if(C>=0){return hiconversion_domain(G.substring(I.length,C))+":443";}else{return hiconversion_domain(G.substring(I.length))+":443";}}}}return null;}function hiconversion_crossdomain(G,E,T){var A=hiconversion_domain(G.location.hostname.toLowerCase());var H=G.location.port+"";if(hiconversion_trim(H)==""){if(G.location.protocol=="http:"){H="80";}else{if(G.location.protocol=="https:"){H="443";}}}var N=A+":"+H;var J=G.document.getElementsByTagName("a");for(var R=0;R=0){var F=C.indexOf("?");if(F>=0){C=C.substring(0,D)+"&"+B+"="+E+C.substring(D);}else{C=C.substring(0,D)+"?"+B+"="+E+C.substring(D);}}else{var F=C.indexOf("?");if(F>=0){C=C+"&"+B+"="+E;}else{C=C+"?"+B+"="+E;}}return C;}function hiconversion_crossdomain_action(E,A,C,H,F){if(E.indexOf("javascript:")==0){return E;}var B=F&&F!=null&&F.indexOf("ie")==0;var I=A&&A!=null&&A.toLowerCase()=="post";if(B&&!I){var G=E.indexOf("?");if(G>=0){E=E.substring(0,G)+";"+C+"="+H+E.substring(G);}else{var D=E.indexOf("#");if(D>=0){E=E.substring(0,D)+";"+C+"="+H+E.substring(D);}else{E=E+";"+C+"="+H;}}}else{var D=E.indexOf("#");if(D>=0){E=E+"&"+C+"="+H;}else{E=E+"#"+C+"="+H;}}return E;}function hiconversion_remove_by_id(B){var A=document.getElementById(B);if(A&&A!=null){A.parentNode.removeChild(A);}}function hiconversion_document_visible(){hiconversion_remove_by_id("hiconversion_body_visibility_hidden");hiconversion_remove_by_id("hiconversion_frameset_visibility_hidden");var A=false;var B=document.getElementsByTagName("body");if(B.length>0){if(B[0].style.visibility!="visible"){B[0].style.visibility="visible";A=true;}}else{B=document.getElementsByTagName("frameset");if(B.length>0){if(B[0].style.visibility!="visible"){B[0].style.visibility="visible";A=true;}}}return A;}function hiconversion_document_visible_timeout(){var A=hiconversion_document_visible();hiconversion_trace("hiconversion_document_visible_timeout visible: "+A);}function hiconversion_find_handle_error(D,C,I,G,K,B,F){var H=hiconversion_find(D,K);var J=new Date();var L=J-B;if(H.kind=="ok"){if(L>1000){var A=(K.length>0)?K[0].id:-1;var E=new Object();E.frame=D;E.base=C;E.session=I;E.responder=G;E.kind="timeout";E.message="type: "+F+" elapsed: "+L+" ms id: "+A;return E;}return H;}var E=new Object();E.frame=D;E.base=C;E.session=I;E.responder=G;E.kind="find";E.message="type: "+F+" data.kind: "+H.kind+" elapsed: "+L+" extra: "+H.extra+" id: "+H.id;return E;}function hiconversion_goal(I,B,A,L,J,F,E,K,M,D,H){I=(I)?I:B.event;if(I&&I!=null&&H&&H!=null&&H.indexOf("safari")>=0){I.stopPropagation();I.preventDefault();try{hiconversion_send_goal(B,A,L,J,F,E,K,false);}catch(C){hiconversion_exception("hiconversion_goal",C);}D.onclick=M;var G=B.document.createEvent("MouseEvents");G.initMouseEvent("click",true,true,B,I.detail,I.screenX,I.screenY,I.clientX,I.clientY,I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,null);setTimeout(function(){D.dispatchEvent(G);},500);}else{try{hiconversion_send_goal(B,A,L,J,F,E,K,true);}catch(C){hiconversion_exception("hiconversion_goal",C);}if(typeof M=="function"){try{M(I);}catch(C){hiconversion_exception("hiconversion_goal",C);}}}}function hiconversion_head_update(){var f="hiconversion_priority";var B="hiconversion_responder";var F="hiconversion_session";var L=new Date();var P="";var K=false;var c=null;var d=null;var I=null;var C=null;var M=null;var E=false;var Z=false;var N="";var O="";var G=false;P="http://www.hiconversion.com";C="1144669EF5A7B544C70A1046DEB39DCB.worker2";E=true;try{if(document.URL.indexOf("https://")==0&&P.indexOf("http://")==0){P="https://"+P.substring("http://".length,P.length);}if(typeof K=="boolean"&&K==true){var A=0;var L=new Date();var R=window.onload;window.onload=function(j){hiconversion_onload(j,window,A,L,R);};}if(typeof E=="boolean"&&E==true){return ;}var H=document.URL;var Y=H.indexOf("#");if(Y>=0){H=H.substring(0,Y);}var g=M;var i=g.indexOf("#");if(i>=0){g=g.substring(0,i);}if(H!=g){return ;}var V=hiconversion_url_get(f);var U=hiconversion_url_get(B);var Q=hiconversion_url_get(F);var a=hiconversion_cookie_get(f);var e=hiconversion_cookie_get(B);var b=hiconversion_cookie_get(F);var W=(V&&V!=null)?V:a;var h=(U&&U!=null)?U:e;var J=(Q&&Q!=null)?Q:b;if(V&&V!=null){hiconversion_cookie_set(f,V);}if(c!=null){hiconversion_layout(P,c);}else{if(typeof Z=="boolean"&&Z==true){setTimeout(hiconversion_document_visible_timeout,5000);document.write("");document.write("");}}if(!d||d==null){d=W;}if(!I||I==null){I=h;}if(!C||C==null){C=J;}var X=new Date();var D=X-L;hiconversion_info(X+" hiconversion_head_update [page: "+N+" combination: "+O+" base: "+P+" priority: "+d+" responder: "+I+" session: "+C+" content: "+Z+" bridge: "+G+"] took: "+D+" ms");}catch(S){hiconversion_exception("hiconversion_head_update",S);var T=hiconversion_exception_to_string(S);hiconversion_send_error(window,P,A,C,I,"hiconversion_head_update",T);}}function hiconverson_layout(B,A){document.write("");}function hiconversion_onload(E,F,D,H,G){E=(E)?E:F.event;try{var C=true;var A=null;hiconversion_body_update_timed(D,H,C,A);}catch(B){hiconversion_exception("hiconversion_onload",B);}if(typeof G=="function"){try{G(E);}catch(B){hiconversion_exception("hiconversion_onload",B);}}}function hiconversion_send_ack(H,E,D,G,A){if(!G||G==null){G="";}if(!A||A==null){A="";}var C=H.document.referrer;if(!C||C==null){C="";}var F=H.document.URL;var B=E+"/ack.do?session="+escape(G)+"&responder="+A+"&url="+escape(F)+"&referer="+escape(C);hiconversion_send_helper(H,D,B,false);}function hiconversion_send_error(C,B,I,G,F,E,J){if(!G||G==null){G="";}if(!F||F==null){F="";}var H=C.document.referrer;if(!H||H==null){H="";}if(!J||J==null||J==""){J="";}var D=C.document.URL;var A=B+"/error.do?session="+escape(G)+"&responder="+F+"&url="+escape(D)+"&referer="+escape(H)+"&kind="+E+"&message="+escape(J);hiconversion_send_helper(C,I,A,false);}function hiconversion_send_goal(C,B,K,H,F,E,J,G){if(!H||H==null){H="";}if(!F||F==null){F="";}var I=C.document.referrer;if(!I||I==null){I="";}if(!E||E==null){E="";}if(!J||J==null){J="";}var D=C.document.URL;var A=B+"/goal.do?session="+escape(H)+"&responder="+F+"&url="+escape(D)+"&referer="+escape(I)+"&kind="+E+"&goal="+J;hiconversion_send_helper(C,K,A,G);}function hiconversion_send_log(C,B,H,F,E,I){if(!F||F==null){F="";}if(!E||E==null){E="";}var G=C.document.referrer;if(!G||G==null){G="";}var D=C.document.URL;var A=B+"/log.do?session="+escape(F)+"&responder="+E+"&url="+escape(D)+"&referer="+escape(G)+"&message="+escape(I);hiconversion_send_helper(C,H,A,false);}function hiconversion_send_helper(H,F,E,G){var D=false;var B=H.document.getElementsByTagName("head");if(B.length>0){var A=H.document.createElement("script");A.setAttribute("src",E);A.setAttribute("type","text/javascript");B[0].appendChild(A);if(typeof G=="boolean"&&G==true){var C=new Date();while(new Date().getTime()-C.getTime()<500){}}D=true;}hiconversion_debug("hiconversion_send_helper: url: "+E+" pass: "+F+" sent: "+D);}