// Copyright (C) 2008 AdUup, Inc. All Rights Reserved. if(!FLEEQ){var FLEEQ=null;var DEBUG_FLEEQ=false;var DEBUG_USING_LOCAL_SERVICES=false;var FLEEQ_TRACKING_URL='http://js.fleeq.com/omniture_ticker.js';var PI_JS_DEBUG_URL="http://pi-js.googlecode.com/files/debugger.js";var FLEEQ_BEACON_URL='http://js.fleeq.com/beacon?'; var FLEEQ_WORDSPOTS_URL="http://json.fleeq.com/wordspot"; var ANCILLARY_LOC="search.fleeq.com"; ANCILLARY_LOC=document.domain; var FLEEQ_TRACKING_PAYLOAD=null;var FLEEQ_PUBINFO_PAYLOAD=null;var FLEEQ_DATA=null;var FLEEQ_SEARCH_PAYLOAD=null;var FLEEQ_RETRY_LIMIT=6;var FLEEQ_RETRIES=0;function FleeqApp(){this.landingURI=document.URL.replace(/^([^:]+:..[^\/]+\/[^\/?#]+).*$/,'$1'); this.pubInfoURI='http://search.fleeq.com/publisher-info'; this.mediaURI='http://media.fleeq.com/'; this.payloadURI='http://json.fleeq.com/display'; this.FLEEQ_LANDING_PAGE='http://www.fleeq.com';this.FLEEQ_SEARCH_PAGE='http://search.fleeq.com';this.POWERED_BY_FLEEQ_LOGO='http://media.fleeq.com/images/powered-by-fleeq.gif';this.flashVersion=0;if(DEBUG_USING_LOCAL_SERVICES){this.pubInfoURI='http://localhost:8000/publisher-info';} this.allowFloatingSearchInputBox=true;this.mainLoopMilliseconds=303;this.retryBodyTag=0;this.maxRetriesBodyTag=10;this.jsonRevision='0.1';this.display_search_results=false;this.PayloadReceived=false;this.PublisherInfoReceived=false;this.payloadSanity=[];this.domHook=null;this.flexApp=null;this.startTime=null;this.underneathBlock=null;this.containerBlock=null;this.boxBlock=null;this.DEFAULT_SEARCH_PAYLOAD={'query':'','skinLogoURI':'','skinSponsorName':'','skinSponsorURL':'','searchResultsWidgetURI':''};} FleeqApp.prototype.run=function(){if(DEBUG_FLEEQ&&FLEEQ.browser=="IE"){} this.setupDOM();this.processQueryStrings();this.setPublisherId();this.loadPublisherInfo();if(this.payloadID){if(DEBUG_FLEEQ&&this.payloadID=='x'){this.payloadID=prompt("plid","");} if(!this.fleeqReady){document.location.replace(FLEEQ.FLEEQ_LANDING_PAGE);} this.loadSearchPayload();}else{this.injectSearchBoxes();} this.handleBeaconTrackingCode();};FleeqApp.prototype.processQueryStrings=function(){var qs=document.URL.match(/\?([^#]+)/);if(qs){var query_strings=qs[1].match(/([^&]+)/g);if(query_strings.length>0){this.Log("query_strings=",query_strings);for(var i=query_strings.length-1;i>=0;--i){var pair=query_strings[i].match(/^([^=]+)=(.*)$/);if(!pair){continue;} var param=pair[1];var value=pair[2];if(param=="plid"||param=="p") {this.payloadID=value;} else if(param=="q") {this.query=value;} else if(param=="node") {this.serverID=value;}}}} this.display_search_results=this.payloadID?true:false;};FleeqApp.prototype.setupDOM=function(){var body=document.body;if(body)this.domHook=body;else{Log('Error: