if(bt_d==null) { var _btadv = 9; var _btsite = 1; if( (new String( document.location).substr(0,5))=="http:" ) var _btpath="http://citi.bridgetrack.com"; else var _btpath="https://citi.bridgetrack.com"; var bt_d=document; var b2=false; var b3=false; var b4=false; var b5=false; var b6=false; var b7=false; var b8=false; var b9=false; var fv=0; var n=navigator; var isIE=(n.appVersion.indexOf("MSIE")!=-1)?true:false; var isWin=(n.appVersion.toLowerCase().indexOf("win")!=-1)?true:false; var e=escape; var z=String.fromCharCode(0xFE); var bc = ""; var rdom=Math.random()*1000000000; var _can_read_cookies=false;//can_read_cookies(); var bt_track_links=true; var bt_track_divs_onmouseover=false; if(isIE&&isWin) { bt_d.write(' \n'); bt_d.write('on error resume next \n'); bt_d.write('b2=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2")))\n'); bt_d.write('b3=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n'); bt_d.write('b4=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n'); bt_d.write('b5=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n'); bt_d.write('b6=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n'); bt_d.write('b7=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n'); bt_d.write('b8=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))\n'); bt_d.write('b9=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9")))\n'); bt_d.write('<\/SCR'+'IPT\> \n'); } var l=bt_d.location; var r=bt_d.referrer; var gc_str=gc(navigator,'n.',citem); bc+=("sh="+screen.height+z+"sw="+screen.width+z+"ah="+screen.availHeight+z+"aw="+screen.availWidth); if(gc_str!="") { bc+=z+gc_str; } hook_event_bsa( window, "onload", onload_functions ); } //----------------------------------------------------------------------------------------------------// function onload_functions() { site_onload_img(); site_pcas_img(); if(bt_track_links) { embed_track_events_links(); } if(bt_track_divs_onmouseover) { embed_track_events_divs(); } } //----------------------------------------------------------------------------------------------------// function onunload_functions() { } //----------------------------------------------------------------------------------------------------// function site_pcas_img() { if(document.body.getAttribute("BTParams")!=null) { var bt_pixels = null; var btb_params = document.body.getAttribute("BTParams"); var pixel_pos = new String(btb_params).indexOf("PIX="); if( pixel_pos == 0 ) { if( btb_params.indexOf(",ADV=")>0) { bt_pixels = btb_params.substring(4,btb_params.indexOf(",ADV=")) } else { bt_pixels = btb_params.substring(4,btb_params.length); } } else if(pixel_pos > 0) { if( btb_params.indexOf("PIX=")== 0) { bt_pixels = btb_params.substring( pixel_pos+4,btb_params.length) } } bt_pixels = bt_pixels.split(","); for(pcount=0;pcount -1 ) { eventName = "on" + eventName; } element.attachEvent( eventName, event_hook ); } else { // otherwise remove the "on" prefix if it is missing // in the event name, ie: click, mousemove var pattern = /^([Oo][Nn])(.*)/; eventName = eventName.replace( pattern, "$2" ); element.addEventListener( eventName, event_hook, false ); } } //----------------------------------------------------------------------------------------------------// function FV(){ if (n.plugins) { if (n.plugins["Shockwave Flash 2.0"] || n.plugins["Shockwave Flash"]) { var is2 = n.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var d = n.plugins["Shockwave Flash" + is2].description; var v = parseInt(d.substring(16)); b2=v==2;b3=v==3;b4=v==4;b5=v==5;b6=v==6;b7=v==7;b8=v==8;b9=v>=9; } } for (var i=2;i<=9;i++){ if (eval("b" + i )==true)fv=i; } if(n.userAgent.indexOf("WebTV")!=-1)fv=4; return fv; } //----------------------------------------------------------------------------------------------------// function gc(c, cn, ci) { var s=""; for (i in c) { if (typeof(c[i])!="function" && typeof(c[i])!="object") { s += cn+i+"="+ci(c,i)+z; } } return s; } //----------------------------------------------------------------------------------------------------// function citem(c,i) { return c[i]; } //----------------------------------------------------------------------------------------------------// function citemn(c,i) { return c[i].name; } //----------------------------------------------------------------------------------------------------// function btsa_1() { var bt_btsa_str='?p='+escape(l)+'&ref='+escape(r)+'&r='+rdom try { if(bt_d.body.getAttribute("BTParams")!=null) { var _btbadv = bt_getPageAdvertiser(bt_d.body.getAttribute("BTParams")) if( _btbadv != null) { _btadv = _btbadv; } } //bt_btsa_str+='&adv='+ _btadv+"&cko="+_can_read_cookies+"&sguid="+bt_sessionGUID+"&uguid="+bt_userGUID+"&snew="+bt_newSession+"&unew="+bt_newUser+"&umnew="+bt_newUser_Month+"&udnew="+bt_newUser_Day; bt_btsa_str+='&adv='+ _btadv; bt_btsa_str+='&site='+ _btsite; if(bt_d.title!=null) { bt_btsa_str+="&t="+escape(bt_d.title) } } catch(e) { } return bt_btsa_str; } //----------------------------------------------------------------------------------------------------// function btsa_2() { var bt_btsa_str='&bc=' + escape(bc)+'&FV='+FV(); try { if(bt_extra_data!=null) { bt_btsa_str+="&extra="+bt_extra_data; } } catch(e) { } return bt_btsa_str; } //----------------------------------------------------------------------------------------------------// function _btVoid(){return;} //----------------------------------------------------------------------------------------------------// function site_img() { if(bt_d.body.getAttribute("BTParams")!=null) { var _btbadv = bt_getPageAdvertiser(bt_d.body.getAttribute("BTParams")) if( _btbadv != null) { _btadv = _btbadv; } } var bt_extra_data=(bt_extra_data!=null?bt_extra_data:null); var _bti=new Image(1,1); _bti.src=_btpath+"/site/"+ btsa_1()+btsa_2(); _bti.onload=function(){_btVoid();} } //----------------------------------------------------------------------------------------------------// function site_onload_img() { site_img(); } //----------------------------------------------------------------------------------------------------// function site_unload_img() { } //----------------------------------------------------------------------------------------------------// function bt_findCookie(cookieName,cookieField,cookieLength) { var bt_cookies=document.cookie; var bt_pos=bt_cookies.indexOf(cookieName); var bt_foundCookie=null; if(bt_pos>=0) { var bt_start=bt_pos+cookieName.length; var bt_end=bt_cookies.indexOf(";",bt_start) bt_foundCookie=bt_cookies.substring(bt_start,bt_end); bt_foundCookie=unescape(bt_foundCookie); bt_start=bt_foundCookie.indexOf(cookieField+"="); if(bt_start>=0) { bt_start=bt_start+cookieField.length+1; bt_end=bt_start+cookieLength; bt_foundCookie=bt_foundCookie.substring(bt_start,bt_end); bt_foundCookie=unescape(bt_foundCookie); } else { bt_foundCookie=null; } } return bt_foundCookie; } //----------------------------------------------------------------------------------------------------// function bt_getPageAdvertiser(bt_params) { var bt_advertiser = null; var eq_pos = bt_params.indexOf("ADV="); if( eq_pos == 0 ) { if( bt_params.indexOf("PIX=")>0) { bt_advertiser = bt_params.substring(4,bt_params.indexOf(",PIX=")) } else { bt_advertiser = bt_params.substring(4,bt_params.length); } } else if(eq_pos > 0) { if( bt_params.indexOf("PIX=")== 0) { bt_advertiser = bt_params.substring( bt_params.indexOf("ADV=")+4,bt_params.length) } } return bt_advertiser; } //----------------------------------------------------------------------------------------------------// function can_read_cookies() { var flag=false; document.cookie = "BT_SA_CanRead=CANREAD"; if(document.cookie!="") { flag=true; } return flag; } //----------------------------------------------------------------------------------------------------// /***************************** LINK HANDLING **********************************/ /* struct */ function anchor_context() { this.init = function () { this.mousedown_event_object = null; this.click_event_object = null; this.mousedown_event = null; this.click_event = null; this.href = "#"; this.text = ""; this.is_embed_active = false; this.active_target = null; } this.copyTo = function( rhs ) { rhs.mousedown_event_object = this.mousedown_event_object; rhs.click_event_object = this.click_event_object; rhs.mousedown_event = this.mousedown_event; rhs.click_event = this.click_event; rhs.href = this.href; rhs.text = this.text; rhs.is_embed_active = this.is_embed_active; rhs.active_target = this.active_target; } this.clearEventObjects = function() { this.mousedown_event_object = null; this.click_event_object = null; } this.init(); } var mouse_context = new anchor_context(); var focus_context = new anchor_context(); var current_context = null; //----------------------------------------------------------------------------------------------------// function isUndefined( obj ) { return "undefined" == typeof( obj ); } //----------------------------------------------------------------------------------------------------// function isValid( obj ) { return !isUndefined( obj ) && ( obj != null ); } //----------------------------------------------------------------------------------------------------// function getLinkObject ( obj ) { // check if the isLink property exists // if it doesn't, check to see if the parent // node is the link object if( !isValid( obj.isLinkObject ) ) { var flag = true; var temp = obj; while( flag ) { temp = isValid( temp.parentNode ) ? temp.parentNode : null; if( temp == null || temp.isLinkObject == true ) { flag = false; } } return temp; } // else, this is already a link object return obj; } //----------------------------------------------------------------------------------------------------// // // Internet explorer requires that we use fireEvents // function fire_onmousedown( theTarget, evt ) { if( isIE ) { // detatch the embedded mousedown event //theTarget.detachEvent( "onmousedown", on_embedded_mousedown ); // fire the event with the event object passed in theTarget.fireEvent( "onmousedown", evt ); // re-attach our embedded mousedown //theTarget.attachEvent( "onmousedown", on_embedded_mousedown ); } else { //theTarget.removeEventListener( "mousedown", on_embedded_mousedown ); theTarget.dispatchEvent( evt ); //theTarget.addEventListener( "mousedown", on_embedded_mousedown ); } } //----------------------------------------------------------------------------------------------------// // // Internet explorer requires that we use fireEvents // function fire_onclick( theTarget, evt ) { if( isIE ) { //theTarget.detachEvent( "onclick", on_embedded_click ); theTarget.fireEvent( "onclick", evt ); //theTarget.attachEvent( "onclick", on_embedded_click ); } else { //theTarget.removeEventListener( "click", on_embedded_click, false ); theTarget.dispatchEvent( evt ); //theTarget.addEventListener( "click", on_embedded_click, false ); } } //----------------------------------------------------------------------------------------------------// // // Copy a javascript event - this is different from using // the = operator which just assigns a reference. // function copyMouseEvent( source ) { if( isIE ) { var evt = document.createEventObject( source ); // for( x in source ) { evt[i] = source[i]; } // crash! /* evt.altKey = source.altKey; evt.button = source.button; evt.cancelBubble = source.cancelButton; evt.clientX = source.clientX; evt.clientY = source.clientY; evt.ctrlKey = source.ctrlKey; evt.keyCode = source.keyCode; evt.layerX = source.layerX; evt.layerY = source.layerY; evt.modifiers = source.modifiers; evt.offsetX = source.offsetX; evt.offsetY = source.offsetY; evt.pageX = source.pageX; evt.pageY = source.pageY; evt.reason = source.reason; evt.returnValue = source.returnValue; evt.screenX = source.screenX; evt.screenY = source.screenY; evt.shiftKey = source.shitKey; evt.type = source.type; evt.which = source.which; evt.x = source.x; evt.y = source.y; evt.data = source.data; evt.fromElement = source.fromElement; evt.srcElement = source.srcElement; evt.srcFilter = source.srcFilter; evt.target = source.target; evt.toElement = source.toElement; */ return evt; } else { var e = source; var evt = document.createEvent( "MouseEvents" ); evt.initMouseEvent( e.type, e.bubbles, e.cancelable, e.view, e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget); return evt; } } //----------------------------------------------------------------------------------------------------// // // Portable function to get event // function getEvent( e ) { if( isIE ) { e = window.event; } return e; } //----------------------------------------------------------------------------------------------------// // // Portable function to get the javascript object // that triggered the event // function getEventTarget( e ) { if( isIE ) { return e.srcElement; } // else return e.target; } //----------------------------------------------------------------------------------------------------// // // Portable code to check for Internet Explorer // function _isIE() { return navigator.appName.indexOf( "Microsoft" ) != -1; } //----------------------------------------------------------------------------------------------------// // // Embed additional functions onto the onload event. // function embed_track_events_divs() { var count = 0; var bt_div=document.getElementsByTagName("DIV"); for( count = 0; count < bt_div.length; count++ ) { hook_event_bsa( bt_div[count], "onmouseover", embed_track_events_links ); } } //----------------------------------------------------------------------------------------------------// function embed_track_events_links() { var count = 0; for( count = 0; count < document.links.length; count++ ) { if( isExternal(document.links[count].href) || isDownload(document.links[count].href) ) { if( document.links[count].target=="_blank") { if(new String(document.links[count].bt_isTracked)=="undefined") { hook_event_bsa( document.links[count], "onclick", on_embedded_link_clicked_solo ); document.links[count].bt_isTracked = true; } } else { hook_event_bsa( document.links[count], "onfocus", hook_onfocus ); hook_event_bsa( document.links[count], "onblur", hook_onfocusout ); hook_event_bsa( document.links[count], "onmouseover", hook_onmouseover ); hook_event_bsa( document.links[count], "onmouseout", hook_onmouseout ); } document.links[count].isLinkObject = true; } } } //----------------------------------------------------------------------------------------------------// function isInternal(bt_link) { var bt_internal=true; if(bt_link!=null) { bt_link=new String(bt_link); if( !((bt_link=="")|| (bt_link=="#")|| (bt_link.indexOf("/")==0)|| (getDomain(bt_link)==getDomain(document.URL))) ) { bt_internal=false; } } return bt_internal; } //----------------------------------------------------------------------------------------------------// function isExternal(bt_link) { var bt_external=false; if(bt_link!=null) { bt_link=new String(bt_link); if( (bt_link!="")&& (bt_link!="#")&& (bt_link.indexOf("/")!=0)&& (getDomain(bt_link)!=getDomain(document.URL)) ) { bt_external=true; } } return bt_external; } //----------------------------------------------------------------------------------------------------// function isDownload(bt_link) { var bt_dwn=false; if(bt_link!=null) { var bt_link_simple_url=new String(bt_link); var bt_link_simple_url_end=bt_link_simple_url.indexOf("?"); if(bt_link_simple_url_end>0) { bt_link_simple_url=bt_link_simple_url.substring(0,bt_link_simple_url_end); } if( (bt_link_simple_url.indexOf(".doc")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".exe")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".pdf")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".xls")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".zip")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".wav")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".wmv")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".mp3")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".mpg")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".avi")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".ppt")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".csv")==bt_link_simple_url.length-4)|| (bt_link_simple_url.indexOf(".gz") ==bt_link_simple_url.length-3)|| (bt_link_simple_url.indexOf(".mov")==bt_link_simple_url.length-4) ) { bt_dwn=true; } } return bt_dwn; } //----------------------------------------------------------------------------- function getDomain(pag) { var str="" pag=new String( pag ); pag=pag.toLowerCase(); str=pag; if(pag.indexOf("http://")>=0) { str=new String(pag.substring(pag.indexOf("http://")+7,pag.length)); if(str.indexOf("/")>=0) { str=str.substring(0,str.indexOf("/")); } } else if(pag.indexOf("https://")>=0) { str=new String(pag.substring(pag.indexOf("https://")+8,pag.length)); if(str.indexOf("/")>=0) { str=str.substring(0,str.indexOf("/")); } } var substr=str; var pos=0; var count=0; while(pos>=0&&count<=2) { pos=substr.lastIndexOf("."); if(pos>=0) { substr=substr.substring(0,pos); } count++; } if(pos>=0) { str=str.substring(pos+1,str.length); } return str; } //----------------------------------------------------------------------------------------------------// // // Helper function that determines whether focus has changed from one link // to another either via mousemovement or focus. If the link has changed // then we reimplement the events of the last active target. // function hasTargetChanged( theTarget, theContext ) { // the target has not changed if( theTarget == theContext.active_target ) { return false; } if( theContext.active_target == null ) { return true; } // else, the Target has changed, put back the original event handlers // of the previous active target theContext.active_target.onclick = theContext.click_event; theContext.active_target.onmousedown = theContext.mousedown_event; theContext.active_target.href = theContext.href; if( isIE && theContext.active_target.text != "" ) { theContext.active_target.innerText = theContext.text; } return true; } //----------------------------------------------------------------------------------------------------// // // When the mouse is over a link, this function will be called // to prepare the system for a possible click. // function hook_onfocus( e ) { e = getEvent( e ); theTarget = getEventTarget( e ); theTarget = getLinkObject( theTarget ); var theContext = focus_context; // if this flag is true, abort if( theContext.is_embed_active == true ) { return; } // The Target has not changed if( theTarget == theContext.active_target ) { return false; } // if the Target has changed, put back the original event handlers // of the previous active target if( theContext.active_target != null && !isValid( theContext.active_target.mouse_events ) ) { theContext.active_target.onclick = theContext.click_event; theContext.active_target.onmousedown = theContext.mousedown_event; theContext.active_target.href = theContext.href; theContext.active_target.focus_context = null; } else if( theContext.active_target != null ) { theContext.active_target.focus_context = null; } // the new target may have the focus context, therefore, we cannot grab // the handlers directly from the target, but must instead // copy the focus context theContext.init(); if( !isValid( theTarget.mouse_context ) ) { theContext.active_target = theTarget; theContext.mousedown_event = theTarget.onmousedown; theContext.click_event = theTarget.onclick; theContext.href = theTarget.href; } else { theTarget.mouse_context.copyTo( theContext ); } theContext.clearEventObjects(); // hand off the context to the new target theTarget.focus_context = theContext; if( isIE ) { // IE bug that if there is a url in the inner text // of the link object, then the href property // becomes volatile focus_context.text = theTarget.innerText; } if( theTarget.onmousedown != null ) { theTarget.onmousedown = on_embedded_mousedown; } if( theTarget.onclick != null ) { theTarget.onclick = on_embedded_click; } if( theTarget.onmousedown == null && theTarget.onclick == null ) { theTarget.onclick = on_embedded_click; } theTarget.href = "#"; window.status = theContext.href; return true; } //----------------------------------------------------------------------------------------------------// // // When the mouse is over a link, this function will be called // to prepare the system for a possible click. // function hook_onmouseover( e ) { e = getEvent( e ); theTarget = getEventTarget( e ); theTarget = getLinkObject( theTarget ); var theContext = mouse_context; // if this flag is true, abort if( theContext.is_embed_active == true ) { return; } // The Target has not changed if( theTarget == theContext.active_target ) { return false; } if( theContext.active_target != null && !isValid( theContext.active_target.focus_context ) ) { // else, the Target has changed, put back the original event handlers // of the previous active target theContext.active_target.onclick = theContext.click_event; theContext.active_target.onmousedown = theContext.mousedown_event; theContext.active_target.href = theContext.href; theContext.active_target.mouse_context = null; } else if( theContext.active_target != null ) { theContext.active_target.mouse_context = null; } // the new target may have the focus context, therefore, we cannot grab // the handlers directly from the target, but must instead // copy the focus context theContext.init(); // doesn't matter if they are undefined I think if( !isValid( theTarget.focus_context ) ) { theContext.active_target = theTarget; theContext.mousedown_event = theTarget.onmousedown; theContext.click_event = theTarget.onclick; theContext.href = theTarget.href; } else { theTarget.focus_context.copyTo( theContext ); } theTarget.mouse_context = theContext; if( isIE ) { // IE bug that if there is a url in the inner text // of the link object, then the href property // becomes volatile mouse_context.text = theTarget.innerText; } if( theTarget.onmousedown != null ) { theTarget.onmousedown = on_embedded_mousedown; } if( theTarget.onclick != null ) { theTarget.onclick = on_embedded_click; } if( theTarget.onmousedown == null && theTarget.onclick == null ) { theTarget.onclick = on_embedded_click; } theTarget.href = "#"; window.status = theContext.href; return true; } //----------------------------------------------------------------------------------------------------// // // Item loses focus? // function hook_onfocusout( e ) { /* e = getEvent( e ); theTarget = getEventTarget( e ); theTarget = getLinkObject( theTarget ); // should be in embedded mode if( __context.is_embed_active == true || ( theTarget.onmousedown != on_embedded_mousedown && theTarget.onclick != on_embedded_click )) { return; } // replace them theTarget.onclick = __context.click_event; theTarget.onmousedown = __context.mousedown_event; theTarget.href = __context.href; if( isIE && __context.text != "" ) { theTarget.innerText = __context.text; } */ } //----------------------------------------------------------------------------------------------------// // // The mouse went over a link, but it was not clicked, // therefore remove refresh the tracking variables. // function hook_onmouseout( e ) { /* e = getEvent( e ); theTarget = getEventTarget( e ); theTarget = getLinkObject( theTarget ); // should be in embedded mode if( __context.is_embed_active == true || ( theTarget.onmousedown != on_embedded_mousedown && theTarget.onclick != on_embedded_click )) { return; } // replace them theTarget.onclick = __context.click_event; theTarget.onmousedown = __context.mousedown_event; theTarget.href = __context.href; if( isIE && __context.text != "" ) { theTarget.innerText = __context.text; } */ } //----------------------------------------------------------------------------------------------------// function get_context( theTarget ) { if( isValid( theTarget.focus_context ) ) { current_context = theTarget.focus_context; } if( isValid( theTarget.mouse_context ) ) { current_context = theTarget.mouse_context; } if( isValid( current_context ) ) { return current_context; } return null; } //----------------------------------------------------------------------------------------------------// // // set the is_embed_active flags for the context's acquired by // the target // function enable_embed( theTarget ) { if( isValid( theTarget.mouse_context ) ) { theTarget.mouse_context.is_embed_active = true; } if( isValid( theTarget.focus_context ) ) { theTarget.focus_context.is_embed_active = true; } } //----------------------------------------------------------------------------------------------------// // // disable the is_embed_active flags for the context's acquired by // the target // function disable_embed( theTarget ) { if( isValid( theTarget.mouse_context ) ) { theTarget.mouse_context.is_embed_active = false; } if( isValid( theTarget.focus_context ) ) { theTarget.focus_context.is_embed_active = false; } } //----------------------------------------------------------------------------------------------------// // // When a link has been clicked, this function will be called. // // function on_embedded_click( e ) { e = getEvent( e ); theTarget = getEventTarget( e ); theTarget = getLinkObject( theTarget ); var theContext = get_context( theTarget ); enable_embed( theTarget ); theContext.click_event_object = copyMouseEvent( e ); on_embedded_link_clicked( theTarget, theContext.href ); // setTimeout( on_embedded_timeout, 200 ); // very important to return false ! return false; } //----------------------------------------------------------------------------------------------------// // // The mouse went over a link, but it was not clicked, // therefore remove refresh the tracking variables. // However, this one takes precedence over onclick // function on_embedded_mousedown( e ) { e = getEvent( e ); theTarget = getEventTarget( e ); theTarget = getLinkObject( theTarget ); var theContext = get_context( theTarget ); enable_embed( theTarget ); theContext.mousedown_event_object = copyMouseEvent( e ); if( isIE ) { on_embedded_link_clicked( theTarget, theContext.href ); } else { if( theTarget.onclick == null ) { on_embedded_link_clicked( theTarget, theContext.href ); } } // setTimeout( on_embedded_timeout, 200 ); } //----------------------------------------------------------------------------------------------------// function on_embedded_timeout_ie() { var theContext = current_context; var theTarget = theContext.active_target.cloneNode( true ); // put back the original mouse and click handlers // along with the original href theTarget.onclick = theContext.click_event; theTarget.onmousedown = theContext.mousedown_event; theTarget.href = theContext.href; var isMouseDown = isValid( theContext.mousedown_event_object ); if( theTarget.onmousedown != null && isMouseDown ) { fire_onmousedown( theTarget, theContext.mousedown_event_object ); theContext.mousedown_event_object = null; } if( theTarget.onclick != null ) { fire_onclick( theTarget, theContext.click_event_object ); } disable_embed( theContext.active_target ); if( !isMouseDown && theTarget.target!="_blank") { window.location = theContext.href; } else if( !isMouseDown ) { window.open(theContext.href); } theTarget = null; } //----------------------------------------------------------------------------------------------------// function on_embedded_timeout_firefox() { var theContext = current_context; var theTarget = theContext.active_target.cloneNode( true ); // put back the original mouse and click handlers // along with the original href theTarget.onclick = theContext.click_event; theTarget.onmousedown = theContext.mousedown_event; theTarget.href = theContext.href; if( theTarget.onmousedown != null && isValid( theContext.mousedown_event_object ) ) { fire_onmousedown( theTarget, theContext.mousedown_event_object ); theContext.mousedown_event_object = null; } if( theTarget.onclick != null ) { fire_onclick( theTarget, theContext.click_event_object ); } disable_embed( theContext.active_target ); //if( theTarget.onclick == null && theTarget.onmousedown == null ) if(theTarget.target!="_blank") { window.location = theContext.href; } else { window.open(theContext.href); } theTarget = null; } //----------------------------------------------------------------------------------------------------// // // Called when times out. // function on_embedded_timeout() { if( isIE ) { on_embedded_timeout_ie(); } else { on_embedded_timeout_firefox(); } } ////////////////////////////////////////////////////////////////////////////////////////// // // MODIFY ONLY THE FOLLOWING FUNCTION // // //----------------------------------------------------------------------------------------------------// function on_embedded_link_clicked( theTarget, theHref ) { try { var _bto_params = "" ; if(theTarget.getAttribute("BTParam") != null) { _bto_params=theTarget.getAttribute("BTParam"); } var _btli=new Image(1,1); var bt_btsa_str=btsa_1()+'&l='+theHref+'¶m='+_bto_params; _btli.src=_btpath+"/site/sa_link.asp"+ bt_btsa_str; _btli.onload=function(){_btVoid();} setTimeout( on_embedded_timeout, 200 ); } catch(e) { } } //----------------------------------------------------------------------------------------------------// function on_embedded_link_clicked_solo(e) { try { e = getEvent( e ); var bt_theTarget = getEventTarget( e ); bt_theTarget = getLinkObject( bt_theTarget ); var bt_theHref=bt_theTarget.href; var _bto_params = "" ; if(bt_theTarget.getAttribute("BTParam") != null) { _bto_params=bt_theTarget.getAttribute("BTParam"); } var _btli=new Image(1,1); var bt_btsa_str=btsa_1()+'&l='+bt_theHref+'¶m='+_bto_params; _btli.src=_btpath+"/site/sa_link.asp"+ bt_btsa_str; _btli.onload=function(){_btVoid();} } catch(e) { } }