var konalogMode=false;var konaMarkStartTime="KonaMark Enter Time= "+((new Date()).getTime()-window.konaJSEntryTime);logit("site: "+document.location.href+"~");var osMac=false;var dc_adLinkStyle=null;var iPageSize=2000;var iGetLimit=2065;var iMaxURL=250;var bAvant=(navigator.userAgent.toLowerCase().indexOf("avant")!=-1);var prev_page=escape(document.referrer.replace(/&/g,"|"));var TE_BASE="http://te.kontera.com/";var JAVASCRIPT_BASE=HTTP_KONTERA_BASE+"/javascript/lib/";var IMAGE_BASE="";var LOGO_IMAGE_BASE=TE_BASE+"images/";var KDAS_IMAGE_BASE="http://images.kontera.com/IMAGE_DIR/";var KDAS_IMAGE_BASE_WL="http://images.kontera.com/WL_IMAGE_DIR/";var STYLE_IMAGE_BASE=JAVASCRIPT_BASE+"imgs/";var FLASH_SWF_BASE=JAVASCRIPT_BASE+"flash/";var MS_KONABUILDER_URL=JAVASCRIPT_BASE+"MS_KonaBuilder.js"+konaSuffix;var NEW_EXPAND_KONABUILDER_URL=JAVASCRIPT_BASE+"newExpandKonaBuilder.js"+konaSuffix;var LAYER_PRELOAD_SRC=HTTP_KONTERA_BASE+"/javascript/lib/imgs/grey_loader.gif";var layerPreload=null;var layerPreloadSrc=HTTP_KONTERA_BASE+"/javascript/lib/imgs/grey_loader.gif";var CROSS_DOMAIN_FLASH_URL=FLASH_SWF_BASE+"konaCrossdomain.swf";var FLASH_PLAYER_URL=FLASH_SWF_BASE+"KonteraPlayer.swf";var FLASH_FLV_PLAYER_URL=FLASH_SWF_BASE+"KonteraFLVPlayer.swf";var FLASH_PROBE_URL=STYLE_IMAGE_BASE+"KonaFlashProbe.swf";var teUrl=TE_BASE+"ContentLink/ContentLink";var teUrlForBadAdv=TE_BASE+"ContentLink/ContentLink";var redirectUrl="http://te.kontera.com/redirectEngine/RedirectEngine";var testCenterUrl="http://localhost:8080/JSTestCenter/TestServlet?testReport=true";var sGetScriptName="KonaGet.js?";var sSendScriptName="KonaSend.js?";var dTemp=new Date();var sUnique=dTemp.getTime();var sRandomPerPage=Math.random();var GET_KEY_MODE=0;var GET_HTML_MODE=1;var DO_MARKUP_MODE=2;var FILTER_TAGS_REGULAR=0;var FILTER_TAGS_BY_GROUPS=1;var FILTER_TAGS_BY_EXPRESSION=2;var MINIMUM_TEXT_IN_PAGE=0;var layerByClick=null;var isAddScriptToDynamicPage=false;var isAddScriptToDynamicPageByIframe=false;var konaPostalCode="";var MIN_ELEMENT_FOR_ADLINK=20;var MIN_TEXT_FOR_CHUNK=650;var LOWER_BOUND_FOR_ELEMENT=2;var METHOD_TEXT_RANGE=0;var METHOD_TREE=1;var METHOD_JQUERY=2;var LAYER_MODE_POP=0;var LAYER_MODE_CLICK=1;var RE_MODE_REGULAR=1;var RE_MODE_CBL=2;var RE_MODE_SEARCH=3;var RE_MODE_DISAPPEAR=4;var RE_MODE_LAYER_CLICK=5;var RE_MODE_DATACAP_CLICK=6;var RE_MODE_DATACAP_BUG=7;var TWEAK_MODE_SINGLELINK=1;var TWEAK_MODE_REGULAR=2;var TWEAK_MODE_NO_REL_NO_SCR=3;var TWEAK_MODE_REL_SCR=4;var TWEAK_MODE_NO_REL_SCR=5;var TWEAK_MODE_REL_NO_SCR=6;var TWEAK_MODE_OVERTURE_MULTIKEYS=7;var TWEAK_MODE_OVERTURE_NO_MULTIKEYS=8;var TWEAK_MODE_EMV_REL_NO_SCR=9;var TE_UNFETCHED=0;var TE_AUTO_FETCH=1;var TE_DYNAMIC_FETCH=2;var TE_AUTO_DYNAMIC_FETCH=3;var HOST_TYPE_REG="$1te.kontera.com";var HOST_TYPE_100="$1te100.kontera.com";var HOST_TYPE_200="$1te200.kontera.com";var HOST_TYPE_300="$1te300.kontera.com";var HOST_TYPE_400="$1te400.kontera.com";var HOST_TYPE_EXT="$1te.konaext.com";var TAG_TYPE_CONTENT=0;var TAG_TYPE_FILTER=1;var LAYER_TYPE_LOADING=1;var LAYER_TYPE_SINGLE=2;var LAYER_TYPE_RM_TOP=3;var LAYER_TYPE_RM_LEFT=4;var LAYER_TYPE_RM_ONLY=5;var SPECIAL_TYPE_SEARCH_INFO=8;var SPECIAL_TYPE_SEARCH_WEBNARY=9;var SPECIAL_TYPE_FREE_DICTIONARY=14;var SPECIAL_TYPE_YAHOO_SHOPPING=19;var SPECIAL_TYPE_YAHOO_SPONSORED=22;var SPECIAL_TYPE_NEW_YAHOO=10;var SEARCH_LAYER=27;var FRAME_LAYER=24;var RM_FAMILY=25;var OUTER_LAYER_REG=0;var OUTER_LAYER_JUP=1;var EXTERNAL_TYPE_NONE=0;var EXTERNAL_TYPE_RTN=1;var EXTERNAL_TYPE_OPEN_AD=2;var EXTERNAL_TYPE_MEDIA_WHIZ=3;var COOKIE_EXPIRATION_DAYS=7;var TUV_CN=String.fromCharCode(105,65,115);if(typeof(Node)=="undefined"){var Node=new _Node()}var useRonLinks=false;var BROAD_MATCH="90";var TREE_CHUNK_TIMEOUT=850;var TREE_MARKUP_TIMEOUT=2200;var HARVEST_TIMEOUT=850;var PAGE_PROCESS_TIMEOUT=3500;var MAX_RONLINKS_ON_PAGE=2;var MAX_ADLINKS_ON_PAGE=10;var dc_jQuery_parsing_time_check=true;var JQUERY_GET_HTML_TIMEOUT=1000;var JQUERY_DO_MARKUP_TIMEOUT=50000;var dc_jsDebug=false;var dc_showAlerts=false;var dc_forceAnalysis=false;var dc_randomPageKey=false;var dc_jsTest=false;var dc_getCoreLinks=false;var dc_ArticalElements="TD P";var restrictedTags=["SELECT","SCRIPT","NOSCRIPT","TEXTAREA","IFRAME","PRE","META","MARQUEE","STYLE"];var restrictedTagsStr;var restrictedIDs=["_firebugConsole"];var KONA_LAYERS_ID="konaLayers";var KONA_LAYER_ID="konaLayer";var KONA_PLATE_CLASSNAME="konaPlate";var KONA_MS_MOVIE_LAYER_ID="konaMovieFlashWrap";var dc_exhibit=true;var curElementLen=0;var pageInfo;var chunkInfo;var kLang;var konaBuilder;var msKonaBuilder;var motifKonaBuilder;var msCashbackKonaBuilder;var newExpandKonaBuilder;var konaImages;var konaRichMedia;var movieLayer=null;var movieLayerIndex=null;var backup;var infoUnit;var oThisPara;var oLastPara;var bFirstPara;var specialTypeSurveyNum=-1;var adlinkEvent=null;var boldTags=["h1","h2","h3"];var boldTagsStr;var linksLimitingPercentage=[["background",90],["backgrounds",75],["myspace layout",7],["myspace layouts",20],["myspace background",20],["website",40],["websites",40],["free download",80],["free downloads",80],["password",80],["passwords",80],["back up",80],["back ups",80],["media player",80],["database",85],["databases",85],["photo gallery",80],["photo galleries",80],["photograph",40],["bikini",70],["photo",80],["magazine",70]];var keyA=17;var keyB=16;var speKey1=65;var speKey2=86;var keys=new Array(3);var tagNumberDoingProcess=-1;var dcAdlinksActive="1";var PAGE_NOT_READY="not_ready";var PAGE_READY="complete";var UNKNOWN=0;var LOADING=1;var LOADED=2;var IMAGE_LOADING=3;var IMAGE_DONE_LOADING=4;var YAHOO_LOADING=5;var DISABLED=-1;var NOT_MARKED=0;var MARKED=1;var NOT_VALID=2;var sCaption="ADVERTISEMENT";var windowStatusBarCaptionOnAdLinkMouseOver="ContentLink (TM)";var cookie_name="dc_PP_cap";var EXPANDABLE_LAYER_MS_OFFICE="http://view.atdmt.com/MRT/view/kntrtinf0250009683mrt/direct/01/";var EXPANDABLE_LAYER_MS_GHOST="http://ads.pointroll.com/PortalServe/?pid=582789O64120080220205200&pos=i&r=[RANDOM]";var KOSMIX_AD_URL="http://poweredby.kosmix.com/tools/kontera/";var KOSMIX_URL="http://www.kosmix.com/topic/";var HP_1_AD_URL="http://ad.doubleclick.net/adi/N5823.Kontera/B3677430;sz=300x250;ord=[timestamp]?";var HP_2_AD_URL="http://ad.doubleclick.net/adi/N5823.Kontera/B3677430.3;sz=300x250;ord=[timestamp]?";var YAHOO_SHOPPING="yahooShopping";var YAHOO_SPONSORED_SEARCH="YahooSponsoredSearch";var autoFecthMaxLinks=7;var autoFecthMaxLinks;var randMode3=Math.random()*100;if(randMode3<=80){konaTweakMode|=134217728;autoFecthMaxLinks=4}else{if(randMode3<=90){konaTweakMode|=268435456;autoFecthMaxLinks=0}else{konaTweakMode|=536870912;autoFecthMaxLinks=7}}var teTimeOut=1500;var teAutoFetchTimeOut=5500;var teLoadDataTimeOut=10000;var yahooLoadDataTimeOut=2000;var MIN_IMPRESSION_TIME=500;var ADV_CLICK_DELAY_TIME=500;var MAX_STYLE_ELEMENTS_ON_PAGE=31;var MAX_CHARS_FOR_TE_REQUEST=2053;var mouseOverAdlinkTimer=null;var generalIndex=-1;var aCustMeta=[];var DC_AL_NUMBER_DEF="1";var DC_AL_COLOR_DEF="#E67B00";var DC_AL_BORDER_COLOR_DEF="#FFCD69";var DC_AL_SINGLE_LINE="no";var DC_AL_LY_SHOWCAPTION_DEF="yes";var DC_AL_LY_CAPTION_TEXT_DEF="Advertisement";var DC_AL_LY_CAPTION_FONT_COLOR_DEF="#AFAFAF";var DC_AL_LY_BORDER_COLOR_DEF="BLACK";var DC_AL_LY_BG_COLOR_DEF="#FFFFF0";var DC_AL_LY_FONT_TYPE_DEF="verdana";var DC_AL_LY_ONMOUSEOVER_COLOR_DEF="#FFFFE0";var DC_AL_LY_TITLE_ACTIVE_DEF="yes";var DC_AL_LY_TITLE_FONT_COLOR_DEF="#00008B";var DC_AL_LY_TITLE_BOLOD_DEF="no";var DC_AL_LY_TITLE_FONT_SIZE_DEF="11px";var DC_AL_LY_DESC_ACTIVE_DEF="yes";var DC_AL_LY_DESC_FONT_SIZE_DEF="11px";var DC_TM_DESC_FONT_SIZE_DEF="11";var DC_AL_LY_URL_ACTIVE_DEF="yes";var DC_AL_LY_URL_FONT_COLOR_DEF="#00008B";var DC_AL_LY_URL_FONT_BOLD_DEF="no";var DC_AL_LY_URL_FONT_SIZE_DEF="10";var DC_AL_LY_EXPLAIN_ACTIVE_DEF="yes";var DC_AL_LY_EXPLAIN_TEXT_DEF="what's this?";var DC_AL_LY_EXPLAIN_URL_DEF="http://www.kontera.com/index.php";var DC_RON_DEF="SPORT";var DC_ADLINKS_ACTIVE_DEF="1";var DC_ADULT_DEF="0";var DC_PP_WIDHT_DEF="500";var DC_PP_HEIGHT_DEF="600";var DC_PP_CAP_DEF="3";var DC_PP_UNDER_DEF="0";var DC_AD_INDEX="0";var DC_AL_OPEN_NEW_WIN_DEF="no";var DC_AL_USE_VPP="no";var DC_AL_DELAY_TIME="0";var DC_AL_OFF_CLOSE_TIME="1000";var DC_AL_UNDERLINE_TYPE_DEF="solid";var DC_CLICK_DELAY_TIME_DEF="0";var DC_ADLINK_CLICK_ALLOWED_DEF=true;var DC_AL_CONTENT_TAG_DEF="span";var DC_AL_CONTENT_TAG_ATTR_DEF="name";var DC_AL_CONTENT_TAG_ATTR_VAL_DEF="konabody";var DC_REDIRECT3PARTY_URL_DEF="";var DC_LY_EFFECT_SPEED="20";var DC_AL_RESTRICTED_TAG_DEF="span";var DC_AL_RESTRICTED_TAG_ATTR_DEF="name";var DC_AL_RESTRICTED_TAG_ATTR_VAL_DEF="konafilter";var DC_AL_CONTENT_TAGS_DEF=new Array();var DC_AL_RESTRICTED_TAGS_DEF=new Array();var delayAdvertisers=new Array();var yahooAdvertisers=new Array();var alternativsAdvertisers=new Array();delayAdvertisers=[56115];yahooAdvertisers=[39905,39906,39907,54910,56116,56117,56118,56119,56120,56121,56526,57830,70485,70486,70487,70488];alternativsAdvertisers=[37647,47204];var maximumLinks=-1;var DC_AL_UNDERLINE_TYPE_ENUM=["dotted","solid","none","hidden","dashed","double","groove","ridge","inset","outset"];var doDemo=false;var showTail=true;var testingInfo;var kona_pub_limit=null;var puncChars="'"+String.fromCharCode(8217);var spaceChars="\\t\\f"+String.fromCharCode(9)+String.fromCharCode(13);var oddSpace=String.fromCharCode(160);var prgressBarNumber="";var statusBarStr="Loading";var harvestTimer=null;var useRelevancyTE=1;var generalGeneratedTimeOut=1500;var doRunOnPage=false;var forceRunOnPageTimeOut=5000;var crossDomainDiv;var relativeSizes=" larger smaller ";var traverseTimer=null;var movieLayer=null;var movieLayerIndex=null;var movieLayerShifting=50;var flashMovieOpenedTime=0;var isBigLayer=false;var expandCampainId;var baseCampaignUrl;collectExpandParams=new Array();var canShowLayer=true;var tailStatus="";(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();var kona_jQuery=jQuery.noConflict(true);(function(jQuery){jQuery.fn.konText=function(text,iMode,runDao){if(typeof text!=="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(dc_jQuery_parsing_time_check&&!runDao.isThereTime(iMode)){return ret}if(this.nodeType!=8&&parseThisNode(this,iMode)){switch(iMode){case GET_KEY_MODE:ret+=this.nodeType!=1?this.nodeValue:jQuery(this).konText(text,iMode,runDao);break;case GET_HTML_MODE:ret+=textPrefix(this);ret+=this.nodeType!=1?editNodesText(this.nodeValue):editNodesText(jQuery(this).konText(text,iMode,runDao),this);break;case DO_MARKUP_MODE:if(this.nodeType!=Node.ELEMENT_NODE){runDao.setNode(this);markAdLinkInNode(runDao)}else{jQuery(this).konText(text,iMode,runDao)}break}}})});if(iMode==GET_HTML_MODE){var repetitions1=new RegExp("(?:@* *_ + *@*)+","g");var repetitions2=new RegExp("(?:@+ *)+","g");ret=ret.replace(repetitions2," @ ").replace(repetitions1," _ ")}return ret};function textPrefix(node){var nodeName=node.nodeName.toUpperCase();if("B"==nodeName){return" B"}if("P"==nodeName||"TD"==nodeName){return"_"}if(node.parentNode!=null&&node.parentNode.nodeName.toUpperCase()=="B"){return" "}return"@"}function parseThisNode(node,iMode){nodeName=node.tagName?node.tagName.toUpperCase():node.nodeName.toUpperCase();if("undefined"!=typeof(iMode)&&DO_MARKUP_MODE==iMode&&"A"==nodeName){return false}var REGEXP_WORD_GREATER_THEN_100=new RegExp("\\S{100}");if(node.nodeValue&&node.nodeValue.search(REGEXP_WORD_GREATER_THEN_100)>-1){return false}if(isUserRestrictedNode(node)||(checkHiddenNodes&&isHiddenNode(node))){return false}if(isSkipNode(node)){return false}var restricedID=(-1)!=jQuery.inArray(jQuery(node).attr("id"),restrictedIDs);return !isSkipNode(node)&&!isRestrictedNode(node)&&!restricedID}function editNodesText(text,node){if(node!=undefined&&node.tagName&&node.tagName.toUpperCase()=="A"){var numOfWords=countWordsNew(text);if(0==numOfWords){return""}return" L "+numOfWords}var spaces=new RegExp("\\s+","g");var line_breaks=new RegExp("[\\n\\r\\n]+","g");return text.replace(line_breaks," ").replace(spaces," ")}})(kona_jQuery);var siteSearchWordRegExp=new RegExp("#WORD#","g");var xhtmlRegExp=new RegExp("XHTML(.)+strict","i");var apostrophesRegExp=new RegExp("\\'s\\b","gi");var pRfrRegExp=new RegExp("pRfr=([^&]*)&","i");var apRegExp=new RegExp("ap=([^&]*)&","i");var httpTEServRegExp=new RegExp("(http://)(te.kontera.com)","i");var httpTE100ServRegExp=new RegExp("(http://)(te100.kontera.com)","i");var httpTE200ServRegExp=new RegExp("(http://)(te200.kontera.com)","i");var countryRegExp=new RegExp("&cn=([^&]+)&");var IEPuncRegExp1=new RegExp("(^|[a-zA-Z0-9\\xC0-\\xFF"+puncChars+"]+?)([^a-zA-Z0-9\\xC0-\\xFF\\s"+puncChars+"]+?)","g");var IEPuncRegExp2=new RegExp("([^a-zA-Z0-9\\xC0-\\xFF\\s"+puncChars+"]+?)([a-zA-Z0-9\\xC0-\\xFF"+puncChars+"]+?|$)","g");var slash1RegExp=new RegExp("([\\\\])","g");var slash2RegExp=new RegExp("([\\/]+)","g");var wSpaceRegExp=new RegExp("(["+spaceChars+"])","g");var oddSpaceRegExp=new RegExp("[\\"+oddSpace+"]","g");var fixPuncRegExp1=new RegExp("(\\w)([\\,:\\.\\?!\\)\"'])([\\240\\s]|$)","g");var fixPuncRegExp2=new RegExp('(^|[\\240\\s])(["\\(])(\\w)',"g");var fixPuncRegExp3=new RegExp("(\\w)([\\,:])(\\w)","g");var clearSpacesRegex=new RegExp("(([\\s])+)","g");var spacesRegExp=new RegExp("(^[\\240\\s]+)|([\\240\\s]+$)","g");var tailorByCookieRegExp=new RegExp("([^:]+):(.+)");var goodDecimalRegExp=new RegExp("^[-+]?\\d*$","");var nodeWordRegExp=new RegExp("(\\*|\\^|\\$|\\+|\\?|\\.|\\(|\\)|\\||\\{|\\}|\\,|\\[|\\]|\\\\|\\/)","g");var dashRegExp=new RegExp("[\\s]-[\\s]","g");if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!kona$){return}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1)}if(id){this.setAttribute("id",id)}if(w){this.setAttribute("width",w)}if(h){this.setAttribute("height",h)}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(c){this.addParam("bgcolor",c)}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9)}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true)},setAttribute:function(_e,_f){this.attributes[_e]=_f},getAttribute:function(_10){return this.attributes[_10]},addParam:function(_11,_12){this.params[_11]=_12},getParams:function(){return this.params},addVariable:function(_13,_14){this.variables[_13]=_14},getVariable:function(_15){return this.variables[_15]},getVariables:function(){return this.variables},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key]}return _16},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}_19='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';_19+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var _1a=this.getParams();for(var key in _1a){_19+=[key]+'="'+_1a[key]+'" '}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+='flashvars="'+_1c+'"'}_19+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}_19='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';_19+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var _1d=this.getParams();for(var key in _1d){_19+='<param name="'+key+'" value="'+_1d[key]+'" />'}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+='<param name="flashvars" value="'+_1f+'" />'}_19+="</object>"}return _19},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?kona$(_20):_20;n.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0])}catch(e){axo=null}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always"}catch(e){if(_23.major==6){return _23}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))}}}return _23};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false}if(this.major>fv.major){return true}if(this.minor<fv.minor){return false}if(this.minor>fv.minor){return true}if(this.rev<fv.rev){return false}return true};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!kona$&&document.all){kona$=function(id){return document.all[id]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function konaLog(){if(!konalogMode){this.error=function(str){};this.info=function(str){};this.warn=function(str){};this.temp=function(str){};this.func=function(str){};return}this.init=function(){this.logCounter=0;this.sendDelimeter=function(){this.write("+",'<span style="color:#9999ff">- - - - - - - - - - - - - - - - - - - - - - - - - -</span><br>')};this.clearWindow=function(){this.write("","")};this.write=function(acn,str){if(konalogMode=="console"){console.log(str)}else{if(acn=="+"){textDiv.innerHTML+=str}else{textDiv.innerHTML=str}}};var logDiv=document.createElement("div");var btnsSpan=document.createElement("span");var textDiv=document.createElement("div");var titleDiv=document.createElement("div");titleDiv.id="titleDiv";titleDiv.innerHTML="<span id='title'style='font-size:12px;font-weight:bold;color:#ccccff;text-decoration:underline;font-family:arial;'>Kona Log Debugger</span>";logDiv.id="logger";logDiv.className="konafilter";logDiv.style.backgroundColor="#000";logDiv.style.padding="2px";if(bIE){logDiv.style.position="absolute";logDiv.style.top="5px";logDiv.style.right="5px"}else{logDiv.style.position="fixed";logDiv.style.bottom="5px";logDiv.style.left="5px"}logDiv.style.zIndex="100";logDiv.style.width="700px";logDiv.style.height="120px";btnsSpan.innerHTML+="<input type='button' name='delimit' value='delimit' onclick='konalog.sendDelimeter();'>";btnsSpan.innerHTML+="<input type='button' name='clear' value='clear' onclick='konalog.clearWindow();'>";textDiv.id="textDiv";textDiv.style.overflow="auto";textDiv.style.font='12px "Arial"';textDiv.style.height="80px";textDiv.style.width="700px";logDiv.appendChild(titleDiv);logDiv.appendChild(textDiv);logDiv.appendChild(btnsSpan);var body=document.getElementsByTagName("body").item(0);body.appendChild(logDiv);document.getElementById("textDiv").innerHTML=""};this.init();this.error=function(str){this.logCounter++;this.write("+","<span id='logNum"+this.logCounter+"' style='color:#ff0000'>"+str+"</span><br>")};this.info=function(str){this.logCounter++;this.write("+","<span id='logNum"+this.logCounter+"' style='color:#ffffff'>"+str+"</span><br>")};this.warn=function(str){this.logCounter++;this.write("+","<span id='logNum"+this.logCounter+"' style='color:#ffff00'>"+str+"</span><br>")};this.temp=function(str){this.logCounter++;this.write("+","<span id='logNum"+this.logCounter+"' style='color:#0000ff'>"+str+"</span><br>")};this.func=function(str){this.logCounter++;this.write("+","<span id='logNum"+this.logCounter+"' style='color:#00ffff'>Called:  "+str+"</span><br>")}}if(getQueryVariable("konalog")!=""){konalogMode=getQueryVariable("konalog")}konalog=new konaLog();function _Node(){this.ELEMENT_NODE=1;this.TEXT_NODE=3}function Positions(x,y,w,h){this.left=x;this.right=x+w;this.top=y;this.bottom=y+h}function getScreenBox(){var body=document.body;var dElem=document.documentElement;if(dElem.clientHeight==0||dElem.clientWidth==0){dElem=body}var clientH=(bSafari&&self)?self.innerHeight:Math.min(body.clientHeight,dElem.clientHeight);var clientW=(bSafari&&self)?self.innerWidth:Math.min(body.clientWidth,dElem.clientWidth);var scrollT=Math.max(body.scrollTop,dElem.scrollTop);var scrollL=Math.max(body.scrollLeft,dElem.scrollLeft);return new Positions(scrollL,scrollT,clientW,clientH)}function sendHttpRequest(url){var image=new Image();redirectLock.addListeners(image);image.src=url}function isValidArgument(arg){return(typeof(arg)!="undefined"&&arg!=null&&arg.length>0&&arg!="null")}function AdlinkEvent(e,obj,adlinkID){this.e=e;this.obj=obj;this.adlinkID=adlinkID}function initKonaPaint(){if(konaLayers==null){konaLayers=new KonaLayers();appendKonaLayer();if(siteSearchUrl!=null){addSearchInfo(0,siteSearchUrl)}}}function getIsXHTMLPage(){if(document.doctype&&document.doctype.publicId){return(document.doctype.publicId.search(xhtmlRegExp)!=-1)}return false}function removeApostrophes(str){return str.replace(apostrophesRegExp,"")}function getReformatedTEUrl(url){if(url.indexOf("?")==-1){url+="?publisherId="+(!isExternalPublisher?dc_PublisherID:extConvertedPubId)+"&creative=L&"}var arr=url.match(apRegExp);var words=exhibits.getApprovedStr();var hasWords=(arr!=null&&arr.length>0);if(hasWords){words+=(arr[1].length==0?"":"%2B")+arr[1]}words=removeApostrophes(words);if(words!=""){if(hasWords){url=url.replace(apRegExp,"ap="+words+"&")}else{url+="&ap="+words+"&ap="}}arr=url.match(pRfrRegExp);hasWords=(arr!=null&&arr.length>0);if(hasWords){url=url.replace(pRfrRegExp,"pRfr="+escape(document.location.href)+"&")}else{url+="&pRfr="+escape(document.location.href)+"&pRfr="}return url.replace(/#/g,"%23")}function getReformatedTMUrl(url){var httpServRegExp=new RegExp("(http://)(te100)","i");var servletNameRegExp=new RegExp("/ContentLink","g");url=url.replace(servletNameRegExp,"/ListingTransform").replace(httpServRegExp,"$1tm");return url}function sendTeRequest(teRequestStr){var s=document.createElement("script");s.setAttribute("id","sendTeRequestTag");s.setAttribute("type","text/javascript");if(typeof(__solutionTestVar_overrideFuncs__)=="undefined"){s.setAttribute("src",teRequestStr)}else{s.text=testTEResult}kona$("konasapn0").appendChild(s)}function getCountryStr(){var match=teUrl.match(countryRegExp);if(match!=null&&match.length==2){return match[1]}return"ERR"}function LoadByDemandAdLinkData(index){LoadDynamicAdLinkData(konaLinks.get(index).taxonomyKey,index)}function loadScript(url,doWrite){if(doWrite||(bIE&&document.readyState!="complete")){document.writeln("<script type='text/javascript' src='"+url+"'><\/script>")}else{var s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",url);if(kona$("konasapn0")!=null){kona$("konasapn0").appendChild(s)}else{document.body.appendChild(s)}}}function getBrowserType(){var type=99;if(bIE){type=1}else{if(bMozilla){if(bFireFox2){type=22}else{if(bFireFox3){type=23}else{type=2}}}else{if(bOpera){type=3}else{if(bSafari){if(!bChrome){type=4}else{type=5}}else{if(bFlock){type=6}else{type=99}}}}}return type}function getIEPunc(str){str=str.replace(IEPuncRegExp1,"$1 $2").replace(IEPuncRegExp2,"$1 $2");return str.replace(wSpaceRegExp," . ").replace(slash1RegExp," $1").replace(slash2RegExp,"$1 ")}function countSimpleWords(str){return str.replace(/\S+/g,"a").replace(/\s+/g,"").length}function shortenSpaces(str){return str.replace(clearSpacesRegex," ")}function trim(str){return str.replace(spacesRegExp,"")}function OptionallyGetUrl(){return"&l="+urlEncode(document.location.href.substring(0,iMaxURL))}function isAlternativ(reStr){return isInArray(alternativsAdvertisers,reStr)}function getBoxXYpositions(o){var XY=new Positions(0,0,0,0);if(!o){return XY}var skipFlag=(bSafari&&o.className&&o.className=="kLink"&&getKonaComputedStyleProp(o,"position")=="relative");var x=0,y=0,p=o,prevP=p,position=null;var i=0;while(p){if(ignoreRelativePositions||relativePositionBug){position=getKonaComputedStyleProp(p,"position")}if((p.tagName!="TR")&&(!skipFlag||i>=2)&&(!ignoreRelativePositions||!bIE||position!="relative")){if(!ignoreNegativePositions||(p.offsetLeft>=0&&p.offsetTop>=0)){x+=p.offsetLeft;y+=p.offsetTop}if(relativePositionBug&&prevP.offsetLeft==p.offsetLeft&&p==prevP.parentNode&&position=="relative"){var buged=(prevP.offsetTop>p.offsetTop?p:prevP);x-=buged.offsetLeft;y-=buged.offsetTop}}prevP=p;p=p.offsetParent;i++}XY.left=x;XY.top=y;XY.right=x+o.offsetWidth;XY.bottom=y+o.offsetHeight;return XY}function getBoxXYScrollPositions(o){var XY=new Positions(0,0,0,0);if(!o){return XY}var x=0,y=0,p=o;while(p&&(!p.nodeName||p.nodeName!="BODY")){x+=p.offsetLeft;y+=p.offsetTop;p=p.offsetParent}p=o;while(p&&(!p.nodeName||p.nodeName!="BODY")){x-=p.scrollLeft;y-=p.scrollTop;p=p.parentNode}XY.left=x;XY.top=y;XY.right=x+o.offsetWidth;XY.bottom=y+o.offsetHeight;return XY}function SerealizePositions(left,right,top,bottom){var o=new Positions(0,0,0,0);o.left=left;o.right=right;o.top=top;o.bottom=bottom;return o}function firstLetterUpperCase(str){var words=str.split(" ");var res="";for(var i=0;i<words.length;i++){if(words[i].length>0){res+=(res.length>0?" ":"")+words[i].replace(words[i].charAt(0),words[i].charAt(0).toUpperCase())}}return res}function isLinkNode(node){try{if(node!=null&&((node.tagName=="A"&&node.href)||exhibits.isExhibitNode(node)||(node.tagName!="BODY"&&node.onclick!="undefined"&&node.onclick!=null))){return true}}catch(e){return false}return false}function isLink(checkLevel,node){for(var level=1;level<=checkLevel&&isProperNode(node);level++){if(isLinkNode(node)){return true}node=node.parentNode}return false}function konaScreenScroll(event){for(var i=0;i<konaLinks.size();i++){if(konaLinks.get(i).status!=DISABLED){var node=konaLinks.getNode(konaLinks.get(i).wordIndex);if(node!=null){var span=getSpans(node)[0];span.style.borderBottomWidth="2px";span.style.borderBottomWidth="1px";break}}}}function isChildOf(checkLevel,obj,tagNameRegExp){var level=1;while(level<checkLevel){if(obj.tagName.search(tagNameRegExp)!=-1){return true}else{level++;obj=obj.parentNode;if(obj==null||typeof(obj)=="undefined"||obj.nodeName=="#document"){return false}}}return false}function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true}else{if(obj.attachEvent){return obj.attachEvent("on"+evType,fn)}}return false}function getPageContentLength(){if(document.body.innerText){return countSimpleWords(document.body.innerText)}else{if(document.body.textContent){return countSimpleWords(document.body.textContent)}}return -1}function removeEntry(array,entry){for(var i=0;i<array.length;i++){if(array[i]==entry){array.splice(i,1);break}}}function ensureEntry(array,entry){for(var i=0;i<array.length;i++){if(array[i]==entry){return}}array.push(entry)}function isInArray(array,val){for(var i=0;i<array.length;i++){if(array[i]==val){return true}}return false}function isBoolean(v){return(typeof v)==types.Boolean}function checkOS(){if(navigator.userAgent.indexOf("IRIX")!=-1){var OpSys="Irix"}else{if((navigator.userAgent.indexOf("Win")!=-1)&&(navigator.userAgent.indexOf("95")!=-1)){var OpSys="Windows95"}else{if(navigator.userAgent.indexOf("Win")!=-1){var OpSys="Windows3.1 or NT"}else{if(navigator.userAgent.indexOf("Mac")!=-1){var OpSys="Macintosh"}else{var OpSys="other"}}}}return OpSys}function parseFloatString(sNumber,precision){if(isNaN(parseInt(sNumber))){return}var periodPosition=sNumber.indexOf(".");if(periodPosition==-1){return}if(sNumber.substring(periodPosition+1).length>precision){return sNumber.substring(0,periodPosition+precision+1)}else{return sNumber}}function cutString(str,cutAfter){if(typeof(str)=="undefined"){return""}var newStr=str;if(newStr.match("^\\. ")){newStr=newStr.substring(2,newStr.length)}newStr=newStr.replace(/\'/g,"&#39;");if(newStr.length>cutAfter){newStr=newStr.substring(0,cutAfter);if(newStr.lastIndexOf(" ")!=-1){newStr=newStr.substring(0,newStr.lastIndexOf(" "))+"..."}else{newStr+="..."}}return newStr}function replaceCommas(str){if(typeof(str)=="undefined"){return""}var sText=str.replace(/&/g,"&amp;");sText=sText.replace(/"/g,"&quot;");sText=sText.replace(/'/g,"&#39;");return sText}function insertToObject(obj,property,value){obj[property]=value}function removePX(str){var theReturnStr=(str.substring(0,str.length-2));return theReturnStr}function tailorForPublisher(){if(typeof(initPubTailorConfig)!="undefined"){try{initPubTailorConfig()}catch(e){konaTweakMode|=262144}}else{konaTweakMode|=524288}try{var randReactionGroup=Math.random()*100;if(false&&randReactionGroup<=5){konaTweakMode|=4194304;reactionBase="http://kona20.konaext.com/";analysisBase="http://kona21.konaext.com/";teReplacementStr=HOST_TYPE_EXT}else{if(false&&randReactionGroup<=90){konaTweakMode|=2097152;reactionBase="http://kona5.kontera.com/";analysisBase="http://kona25.kontera.com/";teReplacementStr=HOST_TYPE_REG}else{if(false&&randReactionGroup<=65){konaTweakMode|=1048576;reactionBase="http://kona10.kontera.com/";analysisBase="http://kona11.kontera.com/";teReplacementStr=HOST_TYPE_REG}else{reactionBase="http://kona5.kontera.com/";analysisBase="http://kona25.kontera.com/";teReplacementStr=HOST_TYPE_REG}}}var randModeEMV=Math.random()*100;var modeHybrid=new KonaHash(7792,1,10747,1,32100,1,52730,1,38144,1,64727,1,70447,1,70448,1,73310,1,87143,1,104203,1,104204,1);var NOmaximumLinks=new KonaHash(373,1,44861,1,2750,1,741,1,923,1,23724,1,8406,1,1732,1);if(modeHybrid.hasItem(dc_PublisherID)){konaTweakMode|=2}else{if(randModeEMV<=10){konaTweakMode|=2}else{if(randModeEMV<=55){konaTweakMode|=19}else{if(randModeEMV<=100){konaTweakMode|=27}}}}modeHybrid=null;if(!NOmaximumLinks.hasItem(dc_PublisherID)){var randMode2=Math.random()*100;if(randMode2<=5){konaTweakMode|=32;maximumLinks=5}else{if(randMode2<=10){konaTweakMode|=64;maximumLinks=6}else{if(randMode2<=15){konaTweakMode|=96;maximumLinks=7}}}}var randYahooAB=Math.random()*100;if(randYahooAB<=50){konaTweakMode|=256}problematicAdverisers=[];if(!isExternalPublisher){switch(dc_PublisherID){case 57:case 281:case 710:case 1135:case 1136:case 1137:case 1434:case 1033:dc_doHalt=true;break;case 7:useMetaTags=false;break;case 67:infoUnit.dc_restrictedTag="span";infoUnit.dc_restrictedTagAttr="className";infoUnit.dc_restrictedTagAttrVal="style5";break;case 68:adlinkWordStyle="position:static;";break;case 79:infoUnit.dc_delayTime=250;break;case 173:boldFontSize=6;break;case 227:case 238:case 239:case 240:case 246:case 250:isBoldActive="0";teTimeOut=3000;teLoadDataTimeOut=5000;break;case 242:infoUnit.dc_delayTime="500";break;case 275:adlinkWordStyle="position:static;";break;case 332:isBoldActive="0";colorChangeLink=true;infoUnit.dc_AdLinkBorderColor="rgb(72,94,255)";teTimeOut=3000;teLoadDataTimeOut=5000;break;case 347:adlinkWordStyle="position:relative;";break;case 349:hiddenDepth=Number.MAX_VALUE;break;case 351:hiddenDepth=12;break;case 366:ensureEntry(boxesToAvoid,"iframe");break;case 453:isBoldActive="0";break;case 460:filterSmallNodes=true;break;case 487:useMetaTags=false;break;case 531:useMetaTags=false;useRonLinks=true;publisherIdInKey=true;break;case 564:adlinkWordStyle="position:static;";break;case 679:adlinkWordStyle="position:static;";break;case 841:adlinkWordStyle="position:static;";break;case 861:dc_z_index=1000;hiddenDepth=12;break;case 911:removeEntry(restrictedTags,"PRE");break;case 923:adlinkWordStyle="position:static;";infoUnit.dc_delayTime="250";doRemoveEmbeddedAdlinks=true;doStaticStyle=true;checkRestrictedNodes=true;isBoldActive="0";break;case 935:doStaticStyle=true;infoUnit.dc_contentTag="DIV";infoUnit.dc_contentTagAttr="id";infoUnit.dc_contentTagAttrVal="post_message_";break;case 953:isBoldActive="0";colorChangeLink=true;infoUnit.dc_AdLinkBorderColor="rgb(0,6,221)";teTimeOut=3000;teLoadDataTimeOut=5000;break;case 981:boldFontSize=4;break;case 994:removeEntry(boldTags,"h3");break;case 1140:maxLinksOnPage=2;maxLinksMode=1;break;case 1174:if(!bIE){dc_tmReload=false}break;case 1483:adlinkWordStyle="position:static;";break;case 1613:isBoldActive="0";checkBoldOnInsertion=true;adlinkWordStyle="position:static;";maxLinksMode=1;if(bIE){checkLinkVisibility=true}break;case 1642:MIN_ELEMENT_FOR_ADLINK=12;dc_urlPageKey=true;doStaticStyle=true;break;case 1645:dc_doTHLoop=false;break;case 1721:adlinkWordStyle="position:static;";break;case 1733:filterSmallNodes=true;break;case 1846:case 1847:useMetaTags=false;publisherIdInKey=true;break;case 1850:isBoldActive="0";useScrolledPosition=true;colorChangeLink=true;infoUnit.dc_AdLinkBorderColor="rgb(255,79,58)";teTimeOut=3000;teLoadDataTimeOut=5000;siteSearchUrl="http://www.google.com/custom?domains=BonaFideReviews.com&q=#WORD#&sa=Search&sitesearch=BonaFideReviews.com&client=pub-6981244736900730&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3AFFFFFF%3BALC%3A000000%3BLC%3A000000%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A90%3BLW%3A500%3BL%3Ahttp%3A%2F%2Fwww.bonafidereviews.com%2Fimages%2FTitle.jpg%3BS%3Ahttp%3A%2F%2Fwww.bonafidereviews.com%2F%3BFORID%3A1%3B&hl=en";break;case 1867:isBoldActive="0";colorChangeLink=true;infoUnit.dc_AdLinkBorderColor="rgb(72,94,255)";teTimeOut=3000;teLoadDataTimeOut=5000;doStaticStyle=true;break;case 1996:boldFontSize=4;break;case 2018:adlinkWordStyle="position:static;";break;case 2032:MIN_ELEMENT_FOR_ADLINK=11;break;case 2071:maxLinksOnPage=15;break;case 2207:adlinkWordStyle="position:static;";break;case 2468:adlinkWordStyle="position:static;";doStaticStyle=true;break;case 2471:textFromRange=false;break;case 2523:MIN_ELEMENT_FOR_ADLINK=19;break;case 2654:isBoldActive="0";break;case 2735:checkBoldOnInsertion=true;break;case 2797:isBoldActive="0";checkBoldOnInsertion=true;break;case 2829:restrictedTags.push("H4","STRONG");isBoldActive="0";break;case 2834:dc_ALTimeout=1000;doStaticStyle=true;break;case 2847:isBoldActive="0";checkBoldOnInsertion=true;break;case 2889:adlinkWordStyle="position:static;";break;case 2895:linksFontFamily="arial";break;case 2947:adlinkWordStyle="position:static;";break;case 2953:removeEntry(restrictedTags,"PRE");if(bOpera){dc_doHalt=true}break;case 3012:adlinkWordStyle="position:static;";refreshCSSOnScroll=true;isBoldActive="0";checkBoldOnInsertion=true;teTimeOut=3000;teLoadDataTimeOut=5000;break;case 3062:forceFontSizeCheck=true;break;case 3119:maxLinksOnPage=4;break;case 3340:adlinkWordStyle="position:static;";break;case 3362:doRemoveEmbeddedAdlinks=true;break;case 3366:isXHTMLPage=true;break;case 3388:isXHTMLPage=true;adlinkWordStyle="position:static;";if(bIE){refreshCSSOnScroll=true;removeFirstWordLinks=true}break;case 3414:adlinkFontCheck=false;adlinkWordStyle="position:static;";break;case 3463:ensureEntry(boxesToAvoid,"iframe");break;case 3464:adlinkFontCheck=false;isBoldActive="0";checkBoldOnInsertion=true;break;case 3465:boldFontSize=4;break;case 3467:case 3468:isBoldActive="0";adlinkWordStyle="position:static;";break;case 3512:isBoldActive="0";break;case 3517:maxLinksOnPage=2;maxLinksMode=1;break;case 3577:isBoldActive="0";break;case 3644:break;case 3652:adlinkWordStyle="position:static;";break;case 3693:isXHTMLPage=true;adlinkWordStyle="position:static;";break;case 3695:adlinkWordStyle="position:static;";useScrolledPosition=true;isXHTMLPage=true;break;case 3758:restrictedTags.push("H1");checkRestrictedNodes=true;break;case 3900:maxLinksOnPage=4;maxLinksMode=1;break;case 3952:adlinkWordStyle="position:static;";break;case 3968:adlinkFontCheck=false;break;case 3976:adlinkWordStyle="position:static;";break;case 4022:contentMarkTimeOut=10000;contentProcessTimeOut=10000;break;case 4023:isXHTMLPage=true;break;case 4024:maxLinksOnPage=4;maxLinksMode=1;break;case 4171:maxLinksOnPage=2;maxLinksMode=1;break;case 4172:maxLinksOnPage=2;maxLinksMode=1;break;case 4185:maxLinksOnPage=2;maxLinksMode=1;break;case 4213:marginBotForSearchInputField="4px";checkBoldOnInsertion=true;break;case 4348:isBoldActive="0";break;case 4464:maxLinksOnPage=3;break;case 4496:adlinkWordStyle="position:static;";break;case 4534:maxLinksOnPage=4;maxLinksMode=1;boldFontSize=5;break;case 4576:if(bMozilla){adlinkWordStyle+="line-height:1.3em; position:relative;z-index:3000;"}removeEntry(restrictedTags,"PRE");break;case 4645:maxLinksOnPage=4;maxLinksMode=1;break;case 4644:adlinkWordStyle="position:static;";relativePositionBug=true;break;case 4646:maxLinksOnPage=4;maxLinksMode=1;break;case 4712:PAGE_PROCESS_TIMEOUT=2000;dc_ALTimeout=1100;break;case 4715:adlinkWordStyle="position:static;";isBoldActive="0";if(bIE){refreshCSSOnScroll=true;removeFirstWordLinks=true}break;case 4754:trafficPercentage=20;break;case 4867:isXHTMLPage=true;dc_ALTimeout=900;break;case 4913:adlinkWordStyle="position:static;";break;case 5004:if(bIE){linksFontFamily="Times New Roman";isBoldActive="0"}break;case 5016:dc_ALTimeout=1100;break;case 5023:PAGE_PROCESS_TIMEOUT=2000;dc_ALTimeout=1100;break;case 5073:adlinkWordStyle="position:static;";checkBoldOnInsertion=true;break;case 5108:isXHTMLPage=true;adlinkWordStyle="position:static;";break;case 5158:adlinkWordStyle="position:static;";break;case 5175:isXHTMLPage=true;break;case 5255:adlinkWordStyle="position:static;";break;case 5257:adlinkWordStyle="position:static;";break;case 5268:maxLinksOnPage=5;break;case 5463:boldTags.push("h4");break;case 5537:adlinkWordStyle="position:static;";break;case 5545:adlinkWordStyle="position:static;";relativePositionBug=true;break;case 5671:adlinkWordStyle="position:static;";if(bIE){refreshCSSOnScroll=true}boldFontSize=4;break;case 5789:linksFontFamily="Times New Roman";checkBoldOnInsertion=true;break;case 5838:isBoldActive="0";break;case 5925:checkBoldOnInsertion=true;break;case 5939:break;case 6019:adlinkWordStyle="position:static;";break;case 6051:ignoreRelativeFonts=false;break;case 6079:boldFontSize=4;break;case 6162:adlinkWordStyle="position:static;";break;case 6184:adlinkWordStyle="position:static;";useScrolledPosition=true;if(bIE){refreshCSSOnScroll=true}break;case 6259:adlinkWordStyle="position:static;";if(bIE){refreshCSSOnScroll=true}break;case 6272:adlinkWordStyle="position:static;";break;case 6343:ignoreNegativePositions=true;break;case 6418:adlinkWordStyle="position:static;";break;case 6452:if(bIE){checkLinkVisibility=true}break;case 6491:adlinkWordStyle="position:static;";break;case 6503:adlinkWordStyle="position:static;";break;case 6567:adlinkWordStyle="position:static;";if(bIE){refreshCSSOnScroll=true}break;case 6610:adlinkWordStyle="position:static;";break;case 6648:adlinkWordStyle="position:static;";ignoreRelativePositions=true;break;case 6682:adLinkTextAlign="text-align:left;";break;case 6692:case 6693:adlinkWordStyle="position:static;";break;case 6740:adlinkWordStyle+="white-space:nowrap;";break;case 6754:adlinkWordStyle="position:static;";break;case 6773:if(bIE){adlinkWordStyle="position:static;"}break;case 6853:adlinkWordStyle="position:static;";if(bIE){refreshCSSOnScroll=true}break;case 6859:layerAreaOrder=[1,2,3,0];break;case 6860:infoUnit.dc_restrictedTags.push("<strong >");infoUnit.dc_restrictedTags.push("<h1 >");break;case 6865:boldFontSize=4;break;case 6946:maxLinksOnPage=4;adlinkWordStyle="position:static;";break;case 6999:useScrolledPosition=true;break;case 7089:adlinkWordStyle="position:static;";break;case 7120:siteSearchUrl="http://www.bookrags.com/#WORD#";break;case 7195:checkBoldOnInsertion=true;break;case 7230:isXHTMLPage=true;useScrolledPosition=true;break;case 7582:boldFontSize=4;break;case 7763:isBoldActive="0";break;case 7792:infoUnit.dc_delayTime="250";if(bIE){infoUnit.dc_restrictedTags.push("<div id=gallery1.pic>");adlinkWordStyle+="white-space:nowrap;";ignoreRelativeFonts=false}isBoldActive="0";break;case 7857:konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];checkBoldOnInsertion=true;break;case 8043:adlinkWordStyle="position:static;";break;case 8079:checkBoldOnInsertion=true;adlinkWordStyle+="white-space:nowrap;";break;case 8080:checkBoldOnInsertion=true;break;case 8112:doRemoveEmbeddedAdlinks=true;break;case 8242:infoUnit.dc_restrictedTags.push("<div id=lb>");boldFontSize=4;break;case 8284:boldFontSize=5;break;case 8363:adlinkWordStyle="position:static;";break;case 9515:adlinkWordStyle="position:static;";break;case 9520:adlinkWordStyle="position:static;";refreshCSSOnScroll=true;break;case 9808:isBoldActive="0";break;case 10064:adlinkWordStyle="position:static;";break;case 10082:checkBoldOnInsertion=true;adlinkWordStyle+="white-space:nowrap;";break;case 10382:infoUnit.dc_delayTime="250";break;case 104771:boldFontSize=6;break;case 10483:adlinkWordStyle="position:static;";break;case 10963:adlinkWordStyle="position:static;";if(bIE){refreshCSSOnScroll=true}break;case 11007:useScrolledPosition=true;break;case 11434:restrictedTags.push("H1");break;case 11526:restrictedTags.push("H4");break;case 11527:checkBoldOnInsertion=true;break;case 11614:if(bIE){adlinkWordStyle="position:static;"}break;case 11823:isBoldActive="0";break;case 11968:adlinkWordStyle="position:static;";break;case 12420:isBoldActive="0";break;case 12605:adlinkWordStyle="position:static;";refreshCSSOnScroll=true;useScrolledPosition=true;break;case 12799:ignoreNegativePositions=true;break;case 12965:adlinkWordStyle+="white-space:nowrap;";break;case 13246:adlinkWordStyle+="line-height:1.3em;";searchLogoImage="stele180x20.gif";break;case 13413:searchLogoImage="answerbag180x20.gif";break;case 13451:ignoreNegativePositions=true;break;case 13660:adlinkWordStyle="position:static;";refreshCSSOnScroll=true;break;case 13802:linksFontFamily="Times New Roman";break;case 13999:checkBoldOnInsertion=true;break;case 14042:isBoldActive="0";break;case 14101:konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];restrictedTags.push("B","STRONG","H1","H2");break;case 14102:konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];if(bIE){adlinkChildStyle+="font-size:1em;"}restrictedTags.push("B","STRONG","H1","H2");break;case 14103:checkBoldOnInsertion=true;isBoldActive="0";konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];if(bIE){adlinkChildStyle+="font-size:1em;"}restrictedTags.push("B","STRONG","H1","H2");break;case 14104:konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];if(bIE){adlinkChildStyle+="font-size:1em;"}restrictedTags.push("B","STRONG","H1","H2");break;case 14105:konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];if(bIE){adlinkChildStyle+="font-size:1em;"}restrictedTags.push("B","STRONG","H1","H2");break;case 14106:konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];if(bIE){adlinkChildStyle+="font-size:1em;"}restrictedTags.push("B","STRONG","H1","H2");break;case 14107:isBoldActive="0";konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];break;case 14108:konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];restrictedTags.push("B","STRONG","H1","H2");break;case 14179:adlinkWordStyle="position:static;white-space:nowrap;";if(bIE){refreshCSSOnScroll=true}break;case 14421:isBoldActive="0";break;case 14532:infoUnit.dc_restrictedTags.push("<div style=font-size: 200%>");break;case 14608:adlinkWordStyle="position:static;";useScrolledPosition=true;break;case 14846:adlinkWordStyle+="padding:0px !important;";break;case 15043:adlinkWordStyle="position:static;";refreshCSSOnScroll=true;break;case 15072:isBoldActive="0";break;case 15075:isBoldActive="0";break;case 15587:open_new_win_search="no";searchLogoImage="britannica2.gif";break;case 15588:if(bIE){cssForStrangeProblems=[["* HTML .googleSubLinksClass","WIDTH:100%;"]]}open_new_win_search="no";searchLogoImage="britannica2.gif";break;case 15844:adlinkWordStyle+="line-height:1.3em;";adlinkWordStyle+="white-space:nowrap;";checkBoldOnInsertion=true;searchLogoImage="stele180x20.gif";break;case 15847:case 15849:adlinkWordStyle+="white-space:nowrap;";checkBoldOnInsertion=true;searchLogoImage="stele180x20.gif";break;case 15966:adlinkWordStyle="position:static;";break;case 16004:adlinkWordStyle="position:static;";break;case 16315:searchLogoImage="healthline1.gif";break;case 17022:adlinkWordStyle="position:static;";break;case 17115:useScrolledPosition=true;adlinkWordStyle="position:static;";break;case 17204:removeEntry(restrictedTags,"PRE");break;case 17262:adlinkWordStyle="position:static;";refreshCSSOnScroll=true;break;case 18093:boldFontSize=4;break;case 18424:boldFontSize=4;break;case 18778:adlinkWordStyle+="white-space:nowrap;";break;case 18835:case 18836:case 18837:case 18838:case 18839:case 18840:case 18841:case 18842:case 18843:adlinkWordStyle="position:static;";break;case 19189:adlinkWordStyle="position:static;";refreshCSSOnScroll=true;break;case 19190:adlinkWordStyle="position:static;";refreshCSSOnScroll=true;isBoldActive="0";restrictedTags.push("H4");break;case 19342:useScrolledPosition=true;break;case 19857:isKonaBodyPositionChanged=true;break;case 19871:if(bMozilla){infoUnit.dc_restrictedTags.push("<p align=left>");infoUnit.dc_restrictedTags.push("<p align=justify>")}break;case 20509:useScrolledPosition=true;doRemoveEmbeddedAdlinks=true;break;case 20769:infoUnit.dc_delayTime="500";break;case 20913:searchLogoImage="hardOCP1.gif";break;case 21262:infoUnit.dc_delayTime="500";adlinkWordStyle+="white-space:nowrap;";break;case 21552:adlinkWordStyle="position:static;";restrictedTags.push("H3");checkRestrictedNodes=true;break;case 22156:adlinkWordStyle+="white-space:nowrap;";break;case 22350:adlinkWordStyle="position:static;";break;case 22506:useScrolledPosition=true;break;case 22266:konaOuterLayerStyle=OUTER_LAYER_JUP;konaBottomHeight=[50,23];logoImageForJupStyle="kna_wood.png";frameBarCell_leftSize="108px";paddingLeftPub="10px";break;case 22337:infoUnit.dc_delayTime="750";break;case 22338:infoUnit.dc_delayTime="750";break;case 22339:infoUnit.dc_delayTime="750";break;case 22340:infoUnit.dc_delayTime="750";break;case 22506:useScrolledPosition=true;break;case 22639:isBoldActive="0";checkBoldOnInsertion=true;break;case 22678:if(bIE){refreshCSSOnScroll=true}break;case 23031:open_new_win_search="no";searchLogoImage="britannica2.gif";useScrolledPosition=true;adlinkWordStyle="position:static;";break;case 23357:useScrolledPosition=true;break;case 24790:adlinkWordStyle="position:static;";break;case 25130:linksFontFamily="arial";break;case 25324:cssForStrangeProblems=[["ul.home-right li img.preloadImg, ul.home-left li img.preloadImg, ul.home-bottom li img.preloadImg","width:22px !important; height:22px !important;margin:0px !important; display:inline;float:none !important;border:none !important;"]];break;case 28577:if(bFireFox3){layerOffsetLeftAddition=220}break;case 29104:infoUnit.dc_delayTime="1000";break;case 31107:useScrolledPosition=true;break;case 31109:if(bFireFox3){delayJSFlowBY=3000}break;case 31439:infoUnit.dc_delayTime="1000";break;case 32102:infoUnit.dc_delayTime="250";isBoldActive="1";break;case 32103:infoUnit.dc_delayTime="250";break;case 32104:adlinkWordStyle+="white-space:nowrap;";break;case 32106:adlinkWordStyle+="white-space:nowrap;";break;case 32691:boldFontSize=5;break;case 34704:removeEntry(boldTags,"h3");removeEntry(boldTags,"h1");break;case 35490:isBoldActive="1";boldFontSize=5;break;case 36257:useScrolledPosition=true;adlinkWordStyle="position:static;";break;case 38144:infoUnit.dc_underlineType="dashed";paddingLeftPub="10px";frameBarCell_leftSize="108px";isSpecialKonaImage=true;siteLogoImage="huffington_logo.gif";break;case 40051:if(bIE){adlinkChildStyle+="font-size:1em;"}break;case 40109:infoUnit.dc_open_new_win="yes";break;case 40110:useScrolledPosition=true;break;case 40238:checkBoldOnInsertion=true;break;case 43492:removeEntry(restrictedTags,"PRE");break;case 44914:adlinkWordStyle+="white-space:nowrap;";isBoldActive="0";break;case 45760:isKonaBodyPositionChanged=true;break;case 46507:if(bIE){layerOffsetLeftAddition=-445}break;case 46613:checkBoldOnInsertion=true;break;case 47839:adlinkWordStyle="position:static;";break;case 49983:adlinkChildStyle+="padding:0px;margin:0px;border:0px;";if(bIE){ignoreRelativeFonts=false}break;case 50198:isBoldActive="0";checkBoldOnInsertion=true;adlinkWordStyle+="white-space:nowrap;";break;case 50635:delayJSFlowBY=6000;break;case 50201:delayJSFlowBY=6000;break;case 7986:delayJSFlowBY=6000;break;case 50416:if(bIE){ignoreRelativeFonts=false}break;case 50591:checkBoldOnInsertion=true;break;case 52730:checkBoldOnInsertion=true;isBoldActive="0";restrictedTags.push("B");break;case 53430:infoUnit.dc_restrictedTags.push("<td align=left valign=top>");infoUnit.dc_restrictedTags.push("<td align=center>");infoUnit.dc_restrictedTags.push("<div style=padding: 1px; width: 100%;>");break;case 57662:if((konaThisURL.indexOf("http://blog.aboutus.org/")==-1)&&!bIE8){layerOffsetLeftAddition=130}break;case 60237:if(bIE){layerOffsetLeftAddition=-240}break;case 64381:checkBoldOnInsertion=true;isBoldActive="0";restrictedTags.push("B");break;case 72647:adlinkWordStyle=bIE?"position:static;":"position:relative;";break;case 73386:if(bIE){adlinkChildStyle+="font-size:1em;"}break;case 77201:checkBoldOnInsertion=true;isBoldActive="0";restrictedTags.push("B","STRONG","H1","H2","H3");break;case 74751:infoUnit.dc_restrictedTags.push("<form >");infoUnit.dc_restrictedTags.push("<table >");infoUnit.dc_restrictedTags.push("<blockquote >");break;case 87143:case 104203:case 104204:infoUnit.dc_restrictedTags.push("<h1 class=h1_sec_subtitlex>");infoUnit.dc_restrictedTags.push("<div class=goog_4x>");infoUnit.dc_restrictedTags.push("<span class=goog_desc>");restrictedTags.push("H1");break;case 97997:MIN_ELEMENT_FOR_ADLINK=10;infoUnit.dc_restrictedTags.push("<caption >");infoUnit.dc_restrictedTags.push("<div id=sidebar-left>");break;case 100262:if(bFireFox2||bFireFox3){adlinkChildStyle="position:relative;"}break;case 102013:contentlinkLogo="pix";contentlinkLogoO="pix";contentlinkLogoParams="width='1' height='1' alt=''";searchInputTbParams="style='width:137px;'";searchLogoImageParams="width='46' height='30' alt='' style='float:right;margin-right:0px;'";searchButtonImage="ask_search_b";searchButtonImageO="ask_search_b_o";searchButtonImageParams="width='63' height='20' border='0' alt='Search'";searchButtonTbParams="style='width:85px;'";searchTransTbParams="style='width:27px;'";searchLogoTbParams="style='width:63px;'";frameBarCell_leftSize="0px";paddingLeftPub="110px";infoUnit.dc_restrictedTags.push("<b >");infoUnit.dc_restrictedTags.push("<span class=T10>");infoUnit.dc_restrictedTags.push("<div id=navbar_resultinfo>");handleTdParams="width:265px;";if(bFireFox2||bFireFox3||bChrome){searchButtonImageParams+="style='margin-top:3px;'"}moreInfoImage="pix.gif";moreInfoImageParams="width='1' height='1' alt=''";break;case 112738:restrictedTags.push("H1","H2","H3","STRONG","B");break;case 115101:if(bIE){adlinkWordStyle="position:relative;margin-left:0px;";overrideFontSize=true}else{adlinkWordStyle="margin-left:0px;"}adlinkChildStyle+="margin:0px;";cssForStrangeProblems=[["span.preLoadWrap","margin:0px; display:inline;"]];if(bMozilla){cssForStrangeProblems=[["span#konasapn0","margin-bottom:0;"],["span.preLoadWrap","margin:0px; display:inline;"]]}break;case 75:case 90:case 1295:case 1296:case 1297:case 1298:break;default:break}}else{switch(dc_PublisherID){case 2316:extExternalType=EXTERNAL_TYPE_RTN;konaLayerTitleTextColor="#739cc8";frameBarCell_leftSize="42px";moreInfoImage="moreinfo_blue.gif";layerTitleImage="realtech_title.gif";break;case 17986:extExternalType=EXTERNAL_TYPE_OPEN_AD;break;case 42887:extExternalType=EXTERNAL_TYPE_MEDIA_WHIZ;break;default:break}}if(bOpera){adlinkWordStyle="position:static;"}if(dc_jsDebug){dc_limitHarvestTime=false}infoUnit.dc_useVPP="no"}catch(e){}}function customSetJqueryParsingMethod(){if(window.location.search.match("konajp=1")){return true}var fetchMethodJqueryArr=[450,503,680,681,763,923,2750,2829,2836,2902,2903,3961,3968,4022,4192,4342,4700,4913,5108,5425,5671,5974,7611,8357,9514,9808,11433,11434,11435,11526,11881,11815,11816,11823,11742,12420,12751,12752,12753,12754,13179,13246,13636,13801,14101,14108,14250,14533,15072,15588,15966,16115,16445,17696,17787,18778,18835,18836,18837,18838,18839,18840,18841,18842,18843,19911,20980,22491,25324,31107,32102,38144,44914,50416,97483,77201,77204,73386,77703,85196,89062,94263,95378,98392,98267,100262,104880,112738,113247,119756,122635];if(isInArray(fetchMethodJqueryArr,dc_PublisherID)){return true}var randParsingType=Math.random()*100;if(randParsingType<=5){return true}return false}function buildGeneralTeStr(){var scriptURL="&cbl="+(konaLayerMode==LAYER_MODE_CLICK?1:0);scriptURL+="&ab="+(konaTweakMode!=TWEAK_MODE_REGULAR?1:0);scriptURL+="&onf="+(doOvertureNewFeed?"1":"0");scriptURL+="&omk="+(doOvertureMultikeys?"1":"0");scriptURL+="&resultNum="+aInfoUnits[0].dcAL_number+"&time="+teAutoFetchTimeOut+"&dc_aff_id="+aInfoUnits[0].dc_aff_id;scriptURL+="&bt="+getBrowserType();scriptURL+=(isExternalPublisher?("&extId="+dc_ExtId):"");scriptURL+="&mod="+konaTweakMode;scriptURL+="&rId="+(String.format("{0}_{1}_{2}",(!isExternalPublisher?dc_PublisherID:extConvertedPubId),sUnique,sRandomPerPage)).replace(".","");if(prev_page!=""){scriptURL+=String.format("&prev_page={0}",prev_page)}if(typeof(dc_ChannelID)!="undefined"&&dc_ChannelID!=null){scriptURL+=String.format("&cId={0}",dc_ChannelID)}return scriptURL}function getRootElems(){if(rootsLock){return}else{rootsLock=true}if(typeof(KonterDynamicContextDemoState)!="undefined"){var b=kona$("KonaBeginBody");aRootElems[0]=[b==null?document.body:b,null]}else{var tmp=null;var nodes=null;var rootsNum=0;var n=0;do{tmp=kona$("KonaBody"+(n==0?"":n));if(tmp!=null){tmp.isRoot=true;rootsNum++}else{if(n>0){break}}n++}while(true);if(rootsNum==0){var tags=contentTags.getByType(TAG_TYPE_CONTENT);var tag=null;for(var k=0;k<tags.length;k++){tag=tags[k];nodes=document.getElementsByTagName(tag.tagName);for(var i=0;i<nodes.length;i++){var attr=null;if(tag.isAttrMatch(nodes[i])){nodes[i].isRoot=true;rootsNum++}}}}if(rootsNum==0){aRootElems[0]=[document.body,null];rootsNum++}else{nodes=document.getElementsByTagName("*");nodesLen=nodes.length;for(var i=0;i<nodesLen;i++){if(nodes[i].isRoot){aRootElems.push([nodes[i],null])}}}}exhibits.getExhibitElems()}function urlEncode(sText){return escape(sText.replace(/[\240\s]+/g,"+"))}function cleanseIEstring(str){return str.replace(oddSpaceRegExp," ")}function toIEFormatArray(str){var str=getIEPunc(cleanseIEstring(str));return str.split(/[\n\240\s ]/)}function fixPuncs(sText){var sRetText;sRetText=sText.replace(fixPuncRegExp1,"$1+$2$3");sRetText=sRetText.replace(fixPuncRegExp2,"$1$2+$3");sRetText=sRetText.replace(fixPuncRegExp3,"$1+$2+$3");return sRetText}function getMetaTags(){if(!useMetaTags){return"&m1=&m2="}var oMeta=document.getElementsByTagName("META");var sMetaKwd="";var sMetaDesc="";var sCust="";for(var i=0;i<oMeta.length;i++){var sName=oMeta[i].name;if(sName.toLowerCase()=="keywords"){sMetaKwd+=oMeta[i].content}if(sName.toLowerCase()=="description"){sMetaDesc+=oMeta[i].content}for(var j=0;j<aCustMeta.length;j++){if(sName.toLowerCase()==aCustMeta[j]){sCust+=sName+"="+fixPuncs(oMeta[i].content)+";"}}}sMetaKwd="&m1="+(sMetaKwd!=""?urlEncode(fixPuncs(sMetaKwd.substr(0,500))):"");sMetaDesc="&m2="+(sMetaDesc!=""?urlEncode(fixPuncs(sMetaDesc.substr(0,500))):"");if(sCust!=""){sCust="&m3="+urlEncode(sCust.substr(0,500))}return sMetaKwd+sMetaDesc+sCust}function getKwdMetaOnly(){if(!useMetaTags){return""}var oMeta=document.getElementsByTagName("META");var sMeta="";for(var i=0;i<oMeta.length;i++){var sName=oMeta[i].name;if(sName.toLowerCase()=="keywords"){sMeta="&m1="+urlEncode(fixPuncs(oMeta[i].content.substr(0,100)))}}return sMeta}function showTimedTitle(){if(konaLinks.get(adlinkEvent.adlinkID).mouseIsOverAdlink&&adlinkEvent!=null){showTitle(adlinkEvent.e,adlinkEvent.obj,adlinkEvent.adlinkID)}}function showTitle(e,obj,adlinkID){logit("showTitle start:"+((new Date()).getTime()-konaLinks.get(adlinkID).linkHoverStartTime)+"~");updateAdLinksStatus();handleDynamicFetch(adlinkID);if(bIE||bOpera||bSafari){obj=e.srcElement}else{obj=e.originalTarget}if(obj.tagName!="SPAN"){spans=getSpans(obj);if(spans){obj=spans[Math.floor(spans.length/2)]}}konaLinks.get(adlinkID).preLoader=new konaPreloader(konaLinks.get(adlinkID));var xyObj=useScrolledPosition?getBoxXYScrollPositions(obj):getBoxXYpositions(obj);showListings(adlinkID,xyObj)}function showCoreDebugInfo(){var maxCPCRegExp=new RegExp("^([^;]+)(;|$)","i");var links=konaLinks.links;var htmlStr="<table style='border: 1px #96BF00 solid;'><tr><td><table cellspacing=5 ><tr><TH>Keyword</TH><TH>CPC List</TH><TH>Score List</TH><TH>Offset</TH><TH>Multple Score</TH></tr>";for(var i=0;i<links.length;i++){var maxCPC=parseFloat(links[i].cpcList.match(maxCPCRegExp)[1]);htmlStr+="<tr style='background-color:"+(links[i].linkType==0?"orange":"#96BF00")+";'><td>"+links[i].highlighttext+"</td><td>"+links[i].cpcList+"</td><td>"+links[i].scoreList+"</td><td>"+links[i].getWordNumber()+"</td><td>"+maxCPC*parseInt(links[i].scoreList)+"</td></tr>"}htmlStr+="</table></td></tr><tr><td style='background-color:#06BF00;font-weight:bold;text-align:center;'>Page Score : "+pageLayoutScore+"</td></tr>";htmlStr+="</table>";var s=document.createElement("div");s.innerHTML=htmlStr;kona$("konasapn0").appendChild(s)}function containsDOM(container,node){var isParent=false;try{do{isParent=(container==node);if(isParent){break}node=node.parentNode}while(node!=null)}catch(permissionDeniedException){}return isParent}function getRandomUrl(){return"?r="+Math.random()}function isMouseLeave(event,node){if(!bSafari&&node.contains&&event.toElement){return !node.contains(event.toElement)}else{if(event.relatedTarget){return !containsDOM(node,event.relatedTarget)}}return false}function getVPPImage(linkInfo){var frame=bIE?window.frames.VPPFrame:(kona$("VPPFrame")?kona$("VPPFrame").contentWindow:null);if(frame&&frame.GetVppUrl){return frame.GetVppUrl(linkInfo.keyword,linkInfo.landingUrl)}else{if(GetIAProductImage){return GetIAProductImage(linkInfo.keyword,linkInfo.landingUrl,"border=0",false)}}return""}function paintKonaLayer(adlink_IID){var newListing=null;var linkInfo=null;linkInfo=konaLinks.getInfo(adlink_IID,0);linkInfo.prepareForShow(adlink_IID);if(konaLinks.get(adlink_IID).IsNewExpandableLayer()){newListing=newExpandKonaBuilder.getLayer(adlink_IID,0,linkInfo)}else{if(!konaBuilder){konaBuilder=new KonaBuilder()}newListing=konaBuilder.getLayer(adlink_IID,0,linkInfo)}return newListing}function addScriptToDynamicPageByIframe(url){var headID=document.getElementById("caterpilarID").contentWindow.document.getElementsByTagName("head")[0];if(bIE){document.getElementById("caterpilarID").contentWindow.document.write('<script language="javascript" src="'+url+'"><\/script>');window.onbeforeunload=currKonteraOnUnLoad}else{var s=document.createElement("script");s.type="text/javascript";s.src=url;headID.appendChild(s)}}function currKonteraOnUnLoad(){document.getElementById("caterpilarID").contentWindow.document.close()}function linkInfoToFamily(linkInfo){if(linkInfo.isSpecialType("SPECIAL_TYPE_SEARCH_INFO")){return SPECIAL_TYPE_SEARCH_INFO}else{if(linkInfo.isSpecialType("SPECIAL_TYPE_SEARCH_WEBNARY")){return SPECIAL_TYPE_SEARCH_WEBNARY}else{if(linkInfo.isSpecialType("SPECIAL_TYPE_FREE_DICTIONARY")){return SPECIAL_TYPE_FREE_DICTIONARY}else{if(linkInfo.isSpecialType("SPECIAL_TYPE_YAHOO_SHOPPING")){return SPECIAL_TYPE_YAHOO_SHOPPING}else{if(linkInfo.isSpecialType("SPECIAL_TYPE_YAHOO_SPONSORED")){return SPECIAL_TYPE_YAHOO_SPONSORED}else{if(linkInfo.isSpecialType("SPECIAL_TYPE_NEW_YAHOO")){return SPECIAL_TYPE_NEW_YAHOO}else{if(linkInfo.isRM()){return RM_FAMILY}}}}}}}}function updateAdLinkTimedLayer(index,left,right,top,bottom){var p=new Positions(0,0,0,0);p.left=left;p.top=top;p.right=right;p.bottom=bottom;updateAdLinkLayer(index,p)}function isLayerLoaded(adlinkCur){return konaLinks.get(adlinkCur).hasGoodLinkInfo()}function updateAdLinkLayer(index,xyObj){var link=konaLinks.get(index);if(isLayerLoaded(index)){link.status=LOADED;link.teCounter=0;showListings(index,xyObj,true);window.status="Dynamic Context Loaded!";statusBarStr="Loading"}else{link.teCounter+=200;statusBarStr+=".";window.status=statusBarStr;if(link.teCounter>teLoadDataTimeOut){clearTimeout(link.teTimer);link.teCounter=0;removeAdLink(index);window.status=window.defaultStatus}else{var functionName="updateAdLinkTimedLayer("+index+","+xyObj.left+","+xyObj.right+","+xyObj.top+","+xyObj.bottom+")";link.teTimer=setTimeout(functionName,200)}}}function resizeKey(theKey){var newKey="";var getKeyNum=parseInt(theKey.length/100)+1;for(var i=0;i<theKey.length;++i){if(i%getKeyNum==0){newKey+=theKey.charAt(i)}}return newKey}function getPargraph(currentPargraphID,obj,checkLevel){var level=1;while(level<checkLevel){if(isArticleNode(obj)&&obj.uniqueID!=currentPargraphID){return obj}else{level++;obj=obj.parentNode;if(obj==null||typeof(obj)=="undefined"||obj.nodeName=="#document"){return false}}}return false}function filterAnalysisMarks(str){return str.replace(kLang.analysisMarksRegExp," . ")}function getLastWord(str){str.match(/([\s|^][^\s]+[\s]*$) /)}function KonaLang(){this.LINK=0;this.BOLD=1;this.PARA=2;this.LINE=4;this.FILTER=5;this.OK=-1;this.OUT_OF_ROOT=0;this.OUT_OF_WORDS=1;this.CHUNK_FULL=2;this.OUT_OF_TIME=3;this.TRASHING=4;this.ENOUGH_WORDS=5;this.ALL_MARKED=6;this.ALL_TRIED=7;this.analysisMarksRegExp=new RegExp("\\s([BLF@_])\\s","g");this.res;this.isMark=function(ch){return(ch=="F"||ch=="L"||ch=="B"||ch=="@"||ch=="_")};this.getMark=function(mode){switch(mode){case this.LINK:this.res="L";break;case this.BOLD:this.res="B";break;case this.PARA:this.res="_";break;case this.LINE:this.res="@";break;case this.FILTER:this.res="L";break}return this.res}}function countWordsNew(msg){var words=urlEncode(fixPuncs(msg)).split("+");var counter=0;for(i=0;i<words.length;i++){if(unescape(words[i]).length>1){counter++}}return counter}function fillArray(array,value){for(var i=0;i<array.length;i++){array[i]=value}return array}function tailorByCookie(){try{var str=readCookie("konaTailor");if(str.length>0){var pairs=str.split("|");var match=null;for(var i=0;i<pairs.length;i++){match=pairs[i].match(tailorByCookieRegExp);if(match&&match.length==3){eval(match[1]+"="+match[2]+";")}}}}catch(e){}}function isRestrictedNode(node){return(restrictedTagsStr.indexOf("|"+node.nodeName+"|")!=-1||node.id=="konaLayers"||node.className=="konaRestrictedArea")}function isProperNode(node){return(node!=null&&typeof(node)!="undefined"&&node.nodeName!="#document")}function isUserRestrictedNode(node){return contentTags.isMatch(node,TAG_TYPE_FILTER)}function isRestricted(checkLevel,node){for(var i=1;i<=checkLevel&&isProperNode(node);i++){if(isRestrictedNode(node)){return true}node=node.parentNode}return false}function isArticleNode(node){return(dc_ArticalElements.indexOf(node.nodeName.toUpperCase())!=-1)}function isSkipNode(node){return(node.nodeValue&&skipNode(node.nodeValue))}function skipNode(sText){if(!bIE&&trim(sText).length<2){return true}if(sText.search(/copyright[\s]*[\xA9]/i)!=-1){return true}if(sText.search(/All rights reserved/i)!=-1){return true}if(sText.search(/are registered trademarks/i)!=-1){return true}return false}function iframeUrlManipolation(sURL,sKeyword){var url;url=sURL+"&";url=url.replace(/&terms=[^&]*/g,"");url=url.replace(/&keywords=[^&]*/g,"");url=url.replace(/&sId=[^&]*/g,"");return url+"keywords="+sKeyword}function Exhibits(){this.exhibitElems=new Array();this.embedLock=false;this.showLock=false;this.getApprovedStr=function(){var str="";for(var i=0;i<konaLinks.size();i++){if(this.isExhibit(konaLinks.get(i))){str+=konaLinks.get(i).highlighttext+"%2B"}}return(str==""?str:str.substr(0,str.length-3))};this.isExhibitNode=function(node){return(node.getAttribute&&node.getAttribute("name")!=null&&typeof(node.getAttribute("name"))=="string"&&node.getAttribute("name").toLowerCase()=="konteraml")};this.getExhibitElems=function(){if(!dc_exhibit){return}var spans=document.getElementsByTagName("SPAN");var j=0;for(var i=0;i<spans.length;i++){if(this.isExhibitNode(spans[i])){this.exhibitElems[j]=spans[i];j++}}};this.embedExhibits=function(override_lock){if(this.embedLock&&override_lock!=true){return false}else{this.embedLock=true}var word=null;var link=null;for(var i=0;i<this.exhibitElems.length;i++){if(!bIE){word=this.exhibitElems[i].firstChild.nodeValue;if(word==null){this.exhibitElems.splice(i,1);i--;continue}}else{word=this.exhibitElems[i].innerText}word=trim(word);link=new Links(-1*i,-1,word,-1*i,word,"666");link.marked=MARKED;konaLinks.addLink(link)}return this.exhibitElems.length>0};this.getExhibit=function(linkIndex){return this.exhibitElems[(konaLinks.get(linkIndex).IEwordNumber*-1)]};this.size=function(){return this.exhibitElems.length};this.isExhibit=function(link){return(link.taxonomyKwd==-1&&link.taxonomyKey=="666")};this.showExhibits=function(){if(!dc_exhibit||this.showLock){return}this.showLock=true;var textRange=bIE?document.body.createTextRange():null;for(var i=0;i<konaLinks.size();i++){if(this.isExhibit(konaLinks.get(i))){this.showExhibit(textRange,i)}}};this.wasMarked=function(node){return false};this.showExhibit=function(textRange,linkIndex){if(this.wasMarked(this.getExhibit(linkIndex))){return}var adLinkStr=createAdLinkStr(this.getExhibit(linkIndex),linkIndex,konaLinks.get(linkIndex).highlighttext);if(bIE){textRange.moveToElementText(this.getExhibit(linkIndex));textRange.findText(konaLinks.get(linkIndex).highlighttext);textRange.pasteHTML(adLinkStr)}else{this.getExhibit(linkIndex).innerHTML=adLinkStr}}}function DoIFrame(iTagNum,iWidth,iHeight,iBorder,sURL,sBackColor){sURL=sURL.replace(/'/g,"%27");if(aInfoUnits[iTagNum].dc_Keywords!=null&&aInfoUnits[iTagNum].dc_Keywords!=""){sURL=iframeUrlManipolation(sURL,aInfoUnits[iTagNum].dc_Keywords)}var iBorder=0;var sIFrame="<IFRAME frameborder='no'  id=KonaIFrame"+iTagNum+" scrolling=no src='";sIFrame=sIFrame+sURL+"' width=";sIFrame=sIFrame+iWidth+"px height=";sIFrame=sIFrame+iHeight+"px frameBorder=";sIFrame=sIFrame+iBorder+"px style='background-color:";sIFrame=sIFrame+sBackColor+"' marginWidth=0 marginHeight=0 vspace=0 hspace=0 ";sIFrame=sIFrame+"allowTransparency='true'></IFRAME>";kona$("konasapn"+iTagNum).innerHTML=sIFrame}function writeLayerMode(layerModeSwitch){if(!layerModeLock){layerModeLock=true;konaLayerMode=(layerModeSwitch?LAYER_MODE_CLICK:LAYER_MODE_POP);if(konaLayerMode==LAYER_MODE_CLICK){var info=null;for(var i=0;i<konaLinks.size();i++){applyLayerMode(i,konaLayerMode)}}}}function applyLayerMode(layerCur,layerMode){info=konaLinks.getInfo(layerCur,0);if(layerMode==LAYER_MODE_CLICK&&info!=null&&!info.isDirect()){info.setLayerMode(layerMode);if(konaLinks.getNode(layerCur)!=null){konaLinks.getNode(layerCur).className+=" CBL"}}}function applyTweakMode(){switch(konaTweakMode){case TWEAK_MODE_SINGLELINK:numOfBestLinks=1;break;case TWEAK_MODE_OVERTURE_MULTIKEYS:doOvertureMultikeys=true;break;case TWEAK_MODE_OVERTURE_NO_MULTIKEYS:doOvertureMultikeys=false;break;case TWEAK_MODE_NO_REL_NO_SCR:newRelevancyActivation=false;newLayoutSelection=false;break;case TWEAK_MODE_REL_SCR:newRelevancyActivation=true;newLayoutSelection=true;break;case TWEAK_MODE_NO_REL_SCR:newRelevancyActivation=false;newLayoutSelection=true;break;case TWEAK_MODE_EMV_REL_NO_SCR:newRelevancyActivation=true;newLayoutSelection=false;reactionBase="http://kona6.kontera.com/";analysisBase="http://kona7.kontera.com/";break}}function teDataHere(layerModeSwitch,epid,fetchMode){if(typeof(epid)!="undefined"){konaEPid=epid}if(typeof(layerModeSwitch)!="undefined"){writeLayerMode(layerModeSwitch)}if(doReportMissingAds&&typeof(fetchMode)!="undefined"&&fetchMode==TE_AUTO_FETCH){reportMissingAds()}}function imageCampsHere(){}function checkPublisherLimits(percentage,fromHour,toHour){var timeInSF=getTimeInSF();if(timeInSF>=fromHour&&timeInSF<=toHour){if(Math.random()*100>percentage){return true}}return false}function getTimeInSF(){var currDate=new Date();var currLocalHour=currDate.getHours();var currTimeOffset=currDate.getTimezoneOffset();var timeInSF=0;var offsetInHours=currTimeOffset/60;var totalOffset=offsetInHours-8;timeInSF=currLocalHour+totalOffset;if(timeInSF>24){timeInSF-=24}else{if(timeInSF<0){timeInSF+=24}}return timeInSF}function ArrayIterator(array){this.i=0;this.array=array;this.reset=function(){this.i=0};this.hasNext=function(){return(this.i<this.array.length)};this.next=function(){return this.array[this.i++]};this.remove=function(){this.i--;this.array.splice(this.i,1)}}function showAdlinks(iTagNum){if(adlinkMarked){return}if(bIE){pageStatus=document.readyState}if(konaLinks.size()>0||useRonLinks){adlinkMarked=true;updateAdLinksStatus();if(!autoFetchAdLinkDataEvent&&!useRonLinks){autoFetchReq()}if(docBadRanges==null){docBadRanges=new BadRanges(document.body)}if(!dc_analysis){return}if(pageInfo==null||fetchMethod==METHOD_TREE||fetchMethod==METHOD_JQUERY){pageInfo=new PageInfo(iTagNum)}if(fetchMethod==METHOD_TREE||fetchMethod==METHOD_JQUERY){backup=new BackUpLinks();if(fetchMethod==METHOD_TREE){walkTheTree(DO_MARKUP_MODE)}else{newWalkTheTree(DO_MARKUP_MODE)}if(backup.hasLinks()){backup.mark()}else{if(useRonLinks){konaLinks.clear()}}testingInfo.setMarkedNum(markedLinks,backup.backupCounter)}else{if(useRonLinks){}else{var d1=new Date();var itr=new RootIterator();totalOffset=itr.offset+1;var range=null;var link=null;for(var i=0;i<konaLinks.size()&&(markedLinks<maxLinksOnPage);i++){link=konaLinks.get(i);if(exhibits.isExhibit(link)){continue}itr.findRootRange(link);if(itr.isNewRange){totalOffset=itr.offset+1}insertAdLink(itr,link,i,false)}var markedBefore=markedLinks;if(markedLinks<maxLinksOnPage&&markedLinks<konaLinks.size()){var unmarked=new Array();itr=new RootIterator();var startPointMark=null;for(var i=0;(i<konaLinks.size())&&(markedLinks<maxLinksOnPage);i++){link=konaLinks.get(i);if(exhibits.isExhibit(link)||link.marked==NOT_VALID){continue}if(!link.marked){itr.findRootRange(link);if(!itr.isNewRange){itr.range.moveToBookmark(itr.bookmark)}totalOffset=itr.offset+1;insertAdLink(itr,link,i,true);if(!link.marked){unmarked.push(i)}}}if(unmarked.length>0){insertGlobalLinks(new ArrayIterator(unmarked),false)}}testingInfo.setMarkedNum(markedLinks,markedLinks-markedBefore)}}}linksMarkingEnded()}function runOnPage_ReAanalysis(iTagNumFromServer,prod_ch){if(((pageStatus!=PAGE_READY&&document.readyState!="complete")&&!doRunOnPage)||dcDOMLock){window.setTimeout("runOnPage_ReAanalysis("+iTagNumFromServer+',"'+prod_ch+'")',150);return}isReAnalysis=true;iKonaResultCode=0;dcDOMLock=true;if(dc_analysis||prod_ch=="S"||prod_ch=="D"){doAnalysis=false;dc_forceAnalysis=false;if(!bIE){pageInfo=null;pageInfo=new PageInfo(0)}processPageContent(iTagNumFromServer)}dcDOMLock=false}function linksMarkingEnded(){impressions.adlinksShown();if(refreshCSSOnScroll){addEvent(window,"scroll",konaScreenScroll)}if(removeFirstWordLinks){var spans=null;var span=null;var node=null;for(var i=0;i<konaLinks.size();i++){node=konaLinks.getNode(i);if(node!=null){spans=getSpans(node);for(var j=0;j<spans.length;j++){span=spans[j];if(span.offsetLeft==0){removeAdLink(i);break}}}}}if(checkLinkVisibility){konaLinks.ensureLinksVisibility()}if(dc_getCoreLinks){showCoreDebugInfo()}}function createViewParamQueryForIFream(iTagNum){var params=["dc_numberAds","dc_bg_color1","dc_bg_color2","dc_description_font_color","dc_InBorder","dc_OutBorder","dc_aff_id","dc_external_border","dc_internal_border","dc_sm_type","dc_default","dc_bg_img","dc_align","dc_show_caption","dc_caption_text","dc_caption_font","dc_caption_font_size","dc_caption_font_color","dc_caption_font_bgColor","dc_show_title","dc_title_font","dc_title_font_size","dc_title_font_bold","dc_title_font_color","dc_show_description","dc_description_font","dc_description_font_size","dc_description_font_bold","dc_description_font_color","dc_show_url","dc_url_font","dc_url_font_size","dc_url_font_bold","dc_url_font_color","dc_titLinesNumberFactor","dc_descLinesNumberFactor","dc_descCharsFactor","dc_titCharsFactor","dc_caption_position","dc_adIndex","dc_is_image","dc_aff_id"];var results="";for(i=0;i<params.length;i++){var paramValue=eval("aInfoUnits["+iTagNum+"]."+params[i]);if(paramValue!=""){results+="&"+params[i]+"="+escape(paramValue)}}return results}function ProcessResults(iTagNum,iKonaResultCode){if(typeof(aKonaResults)=="undefined"||typeof(aKonaResults[iTagNum])=="undefined"){return}var aCurResultData=aKonaResults[iTagNum].split("|");if(aCurResultData[0]!="L"&&iTagNum==0&&maxLinksOnPage>0&&!alGotFactor){requestCounter++;alGotFactor=true}var firstLoad=true;var iframe=kona$("KonaIFrame"+iTagNum);if(iframe!=null){firstLoad=false}switch(aCurResultData[0]){case"S":if(!firstLoad&&!dc_tmReload){break}IFrameForSearchMatch(iTagNum,aCurResultData,firstLoad);break;case"D":IFrameForSearchMatch(iTagNum,aCurResultData,firstLoad);break;case"H":var sURLTemplate=aCurResultData[5];for(var i=1;i<=aURLParams.length;i++){var re=new RegExp("<"+i+">","g");sURLTemplate=sURLTemplate.replace(re,aURLParams[i])}if(dc_width!=0&&dc_height!=0){DoIFrame(iTagNum,dc_Width,dc_height,aCurResultData[3],sURLTemplate,aCurResultData[4])}else{DoIFrame(iTagNum,aCurResultData[1],aCurResultData[2],aCurResultData[3],sURLTemplate,aCurResultData[4])}break}return aCurResultData[0]}function getLastMark(str,size){var ch;if(size-1>=0){ch=str.charAt(size-1);if(kLang.isMark(ch)){if(size-2>=0&&str.charAt(i-2)=="+"){return ch}}}for(var i=size-1;i>=0;i--){if(str.charAt(i)=="+"&&(i-2>=0)&&str.charAt(i-2)=="+"){ch=str.charAt(i-1);if(kLang.isMark(ch)){return ch}}}if(kLang.isMark(str.charAt(0))&&str.charAt(1)=="+"){return str.charAt(0)}return""}function KonaStringBuffer(){this.buffer=[];this.size=0;this.append=function append(string){this.buffer.push(string);this.size+=string.length;return this};this.toString=function toString(){return this.buffer.join("")};this.length=function length(){return this.size}}function getLastPlusIndex(str,startIndex){var ind=str.lastIndexOf("+",startIndex);if(ind==-1){ind=startIndex}return ind}function ParametersUrl(str){this.str=str;this.set=function(parameter,val){var r=new RegExp("([?|&]{1}"+parameter+"=)[#]+");this.str=this.str.replace(r,"$1"+val)}}function THInfo(th){this.ths=new Array();this.init=function(th){for(var i=0;i<th+1;i++){this.ths[i]=new Array()}};this.getLen=function(){var res=0;for(var i=0;i<this.ths.length;i++){res+=this.ths[i].length*i}return res};this.stack=function(text,offset,wordsNum){this.ths[text.length].push(new THDao(text,offset,wordsNum))};this.stackLength=function(length){if(!this.ths[length]){for(var i=this.ths.length;i<=length;i++){this.ths[i]=new Array()}}this.ths[length].push(new THDao("",-1))};this.getNewTH=function(miss){var cur=this.ths.length-1;var originalMiss=miss;while(miss>0&&cur>=0){miss-=(this.ths[cur]?(this.ths[cur].length*cur):0);cur--}cur++;return(cur>=0&&originalMiss>miss?cur:-1)};this.fillWithTH=function(str,th,offset){var tmp=this.ths.slice(th);var thList=new Array();for(var i=0;i<tmp.length;i++){for(var j=0;j<tmp[i].length;j++){thList.push(tmp[i][j])}}thList.sort(function(a,b){return(b.offset-a.offset)});var res="";var cur=0;for(var i=0;i<thList.length;i++){cur=thList[i].offset-offset;res=thList[i].text+str.substring(cur+thList[i].getSymbolLen())+res;str=str.substring(0,cur)}res=str.substring(0,thList.pop().offset-offset)+res;return res};this.init(th)}function THDao(text,offset,wordsNum){this.text=text;this.offset=offset;this.wordsNum=new Number(wordsNum);this.getSymbolLen=function(){return(5+this.wordsNum.toString().length)}}function addAdditionalInfo(linkId,layerType,paramsHash){switch(layerType){case YAHOO_SHOPPING:konaLinks.getInfo(linkId).price=paramsHash.getItem("price");break}}function setMaxLinksOnPage(num){logit("got results from reaction: "+((new Date()).getTime()-window.konaJSEntryTime)+"~");if(maxLinksOnPage==MAX_ADLINKS_ON_PAGE){maxLinksOnPage=num}}function setPageLayoutScore(layoutScore){pageLayoutScore=layoutScore}function setKonaResults(resultCode,tagNum,resultString){aKonaResults[tagNum]=resultString;iKonaResultCode=resultCode}function onKonaReturn(iTagNumFromServer){if(isReAnalysis&&iTagNumFromServer==1){return}iTagNumFromServer=parseInt(iTagNumFromServer);iTagNumFromServer=0;var prod_ch="";if(iKonaResultCode==0||iKonaResultCode==1){prod_ch=ProcessResults(iTagNumFromServer,iKonaResultCode)}if(layerByClick!=null){if(layerByClick){konaTweakMode|=512}}runOnPage(iTagNumFromServer,iKonaResultCode,prod_ch);return}function removeEmbeddedAdlinks(){var obj=null;for(var i=0;i<10;i++){obj=kona$("KonaLink"+i);if(obj!=null){if(!bIE){if(obj.firstChild.nodeType==3&&trim(obj.firstChild.textContent)==""){obj.removeChild(obj.firstChild)}}if(obj.firstChild){var tag=obj.firstChild;var size="";while(tag!=null&&tag.firstChild&&tag.nodeName.toUpperCase()!="SPAN"){if(tag.size){size=tag.size}tag=tag.firstChild}if(tag==null){return}else{tag=tag.parentNode}var str="";for(var j=0;j<tag.childNodes.length;j++){if(tag.childNodes[j].nodeName=="SPAN"&&tag.innerHTML){str+=""+tag.childNodes[j].innerHTML}}var newNode=document.createElement("FONT");if(size!=""){newNode.setAttribute("size",size)}if(str!=""){newNode.innerHTML=str;if(bIE){obj.replaceNode(newNode)}else{obj.parentNode.replaceChild(newNode,obj)}}}}}}function poweredByKonteraClick(){window.open("http://www.kontera.com/","kontera")}function whatsThisClick(node){if(node){node.href=infoUnit.dcAL_explainURL+"/explanation?sr=100720&epid="+konaEPid+"&url="+escape(document.location.href)}else{window.location.href=infoUnit.dcAL_explainURL+"/explanation?sr=100720&epid="+konaEPid+"&url="+escape(document.location.href)}return false}function appendKonaLayer(doNow){if(bIE&&!doNow){if(document.readyState!="complete"){appendKonaLayerTime+=200;window.setTimeout("appendKonaLayer(false)",200);return false}}if(!konaLayers.hasLayersNode()){var konaLayersDIV;if((bIE&&document.readyState!="complete")){document.write("<div id='konaLayers' class='konaLayers'></div>");konaLayersDIV=document.getElementById("konaLayers")}else{konaLayersDIV=document.createElement("DIV");konaLayersDIV.id="konaLayers";konaLayersDIV.className="konaLayers";document.body.appendChild(konaLayersDIV)}konaLayers.setLayersNode(konaLayersDIV)}}function createTagUrl(){var sQuery="u="+sUnique+"&p="+dc_PublisherID+"&k="+urlEncode(sKey)+"&al="+dcAdlinksActive;var demoParam="&d=1";if(typeof(KonterDynamicContextDemoState)!="undefined"){sQuery+=demoParam}sQuery=sQuery+OptionallyGetUrl();var title=document.title;if(title!=null){if(title.length>100){title=title.substring(0,100)}}else{title=""}var t=urlEncode(fixPuncs(title));var m=getKwdMetaOnly();var h="";if(t==""||m==""){var body=document.body;if(body.innerText){h="&m2="+urlEncode(fixPuncs(body.innerText.substr(0,100)))}else{if(document.createRange){var range=document.createRange();range.selectNodeContents(body);h="&m2="+urlEncode(fixPuncs(range.toString().substr(0,100)))}}}var konaRequestId=(String.format("{0}_{1}_{2}",(!isExternalPublisher?dc_PublisherID:extConvertedPubId),sUnique,sRandomPerPage)).replace(".","");sQuery=sQuery+"&t="+t+m+h+"&rId="+konaRequestId;if(prev_page!=""){sQuery+=String.format("&prev_page={0}",prev_page)}sQuery+=((maximumLinks==-1)?"":"&ml="+maximumLinks);if(typeof(dc_ChannelID)!="undefined"&&dc_ChannelID!=null){sQuery+=String.format("&cId={0}",dc_ChannelID)}sQuery+="&rl=0";return sQuery}function validateInfoUnit(infoUnit){var i=0;for(i=0;i<DC_AL_UNDERLINE_TYPE_ENUM.length;i++){if(infoUnit.dc_underlineType.toLowerCase()==DC_AL_UNDERLINE_TYPE_ENUM[i]){infoUnit.dc_underlineType=DC_AL_UNDERLINE_TYPE_ENUM[i];i=-1;break}}if(i!=-1){infoUnit.dc_underlineType=DC_AL_UNDERLINE_TYPE_DEF}var numRegExp=new RegExp("^[0-9]");var charRegExp=new RegExp("^[a-fA-F]");var colorAttr=["dc_AdLinkColor","dcAL_LY_urlFontColor","dcAL_LY_titleFontColor","dcAL_LY_bgColor"];var str="";for(var i=0;i<colorAttr.length;i++){str=eval("infoUnit."+colorAttr[i]);str=trim(str);if(str.search(numRegExp)>-1){str="#"+str}else{if(str.search(charRegExp)>-1){str=str.substring(1);if(str!=null&&(str.search(charRegExp)>-1||str.search(numRegExp)>-1)){str="#"+eval("infoUnit."+colorAttr[i])}else{continue}}}eval("infoUnit."+colorAttr[i]+"=str;")}}function konaToCharHash(str){if(typeof(str)=="undefined"||str==null){return""}var res="";for(var i=0;i<str.length;i++){res+=""+str.charCodeAt(i)+i}return res}function checkCookieChange(){var url=document.location.href;var i=url.lastIndexOf("dcc=");if(i<0){return}var code1=url.substring(i+4);url=url.substring(0,i-1);var base=dc_PublisherID.toString()+","+url;var code2=konaToCharHash(base);if(code2==code1.substr(0,code1.length-1)){var val=code1.charAt(code1.length-1);createCookie("dc_op_code",val,COOKIE_EXPIRATION_DAYS)}}function cookieFeed(){var val=readCookie("dc_op_code");if(val=="0"){dc_doHalt=true}}function haltcheck(){if(trafficPercentage<100){dc_doHalt|=(Math.random()*100>trafficPercentage)}dc_doHalt|=konaGatewayCheck();return dc_doHalt}function getPageKey(){logit("build PageKey: "+((new Date()).getTime()-window.konaJSEntryTime)+"~");if(typeof(KonterDynamicContextDemoState)!="undefined"){sKey+=(""+sUnique+Math.random()).replace(".","");return}if(dc_urlPageKey){sKey=getPageUrlAsKey()}else{if(fetchMethod==METHOD_JQUERY){newWalkTheTree(GET_KEY_MODE)}else{walkTheTree(GET_KEY_MODE)}}if(publisherIdInKey){sKey+=":pid:"+dc_PublisherID}if(bIE){sKey+="IE"}else{if(bOpera){sKey+="OPERA"}else{sKey+="MOZILLA"}}if(dc_randomPageKey){sKey+=Math.random()}logit("build PageKey ended: "+((new Date()).getTime()-window.konaJSEntryTime)+"~")}function sendKonaGet(){if(!isReAnalysis){sendPageKey()}}function sendPageKey(){var sQuery=createTagUrl();var sPerTagQuery=sQuery+getCoresParamsString(0);var scriptURL=reactionBase+""+sGetScriptName+""+sPerTagQuery+"&add=FlashVer_"+getFlashFullVersion()+"|user_"+konaUserID+"|session_"+konaSessionID+"&"+(new Date()).getTime();var oSpan=document.createElement("SPAN");oSpan.setAttribute("id","konasapn0");var oScript=document.createElement("SCRIPT");oScript.setAttribute("type","text/javascript");oScript.setAttribute("src",scriptURL);oSpan.appendChild(oScript);document.body.appendChild(oSpan);logit("sendPageKey (CALL REACTION): "+((new Date()).getTime()-window.konaJSEntryTime)+"~")}function getCoresParamsString(tagNum){var urlSuffix="";if(typeof(KonterDynamicContextDemoState)!="undefined"){urlSuffix="&ds="+kona_demo_ds+"&dr="+kona_demo_direct+"&rl="+kona_demo_relevancy+"&rt="+kona_demo_relevancy_type+"&st="+(newLayoutSelection?1:0)}else{urlSuffix="&rt="+(newRelevancyActivation?1:0)+"&st="+(newLayoutSelection?1:0)}return"&i=14&n="+tagNum+"&dc_aff_id="+aInfoUnits[tagNum].dc_aff_id+"&cl="+numOfBestLinks+"&mp="+maxLinksMode+"&rm="+(hasRMFlashSupport?"1":"0")+(dc_getCoreLinks?"&pw=1":"")+"&mod="+konaTweakMode+(isExternalPublisher?("&extId="+dc_ExtId):"")+urlSuffix}function getPageUrlAsKey(){if(typeof(KonterDynamicContextDemoState)=="undefined"){return document.location.href}else{return dc_publisherUrl}}function getScriptUrl(scriptURL){return scriptURL}function getAndSendPageKeyOnFly(){if(!konaInit(false)){return}var browserName="";if(bIE){browserName="IE"}else{browserName="MOZILLA"}sKey=getPageUrlAsKey()+browserName;keyAdjustments();var sQuery=createTagUrl();var sPerTagQuery=sQuery+"&1=14&mod="+konaTweakMode+"&rm="+(hasRMFlashSupport?"1":"0")+(isExternalPublisher?("&extId="+dc_ExtId):"")+"&dc_aff_id="+aInfoUnits[0].dc_aff_id;var scriptURL=reactionBase+""+sGetScriptName+""+sPerTagQuery+"&add=FlashVer_"+getFlashFullVersion()+"|user_"+konaUserID+"|session_"+konaSessionID;if(delayJSFlowBY>0){var oSpan=document.createElement("SPAN");oSpan.setAttribute("id","konasapn0");var oScript=document.createElement("SCRIPT");oScript.setAttribute("type","text/javascript");var srcTag=getScriptUrl(scriptURL);oScript.setAttribute("src",srcTag);oSpan.appendChild(oScript);document.body.appendChild(oSpan)}else{var srcTag=getScriptUrl(scriptURL);var tagHtml='<SPAN ID=konasapn0><SCRIPT type="text/javascript" src="'+srcTag+'"></SCRIPT>';+"</SPAN>";document.writeln(tagHtml)}logit("CALL REACTION FIRST TIME: "+((new Date()).getTime()-window.konaJSEntryTime)+"~")}function validateNumeric(strValue){var objRegExp=/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/;return objRegExp.test(strValue)}function selectRandomValue(tagParam,tolower){var res;if(typeof(toEscape)=="undefined"){toEscape=false}if(typeof(tolower)=="undefined"){tolower=true}res=tagParam;if(tolower&&!validateNumeric(res)&&res.toLowerCase){res=res.toLowerCase()}return res}function support_1_3_Ver_Params(){if(aInfoUnits[0].dc_sm_type==""){if(Number(aInfoUnits[0].dc_width)>Number(aInfoUnits[iTagNumber].dc_height)){aInfoUnits[0].dc_sm_type="horizontal"}else{aInfoUnits[0].dc_sm_type="vertical"}}}function support_1_3_Ver_ParamsNameing(){if(typeof(this["dc_Width"])!="undefined"){eval("this['dc_width'] = dc_Width")}if(typeof(this["dc_Height"])!="undefined"){eval("this['dc_height'] = dc_Height")}if(typeof(this["dc_BorderColor"])!="undefined"){eval("this['dc_external_border'] = dc_BorderColor");eval("this['dc_OutBorder'] = 'yes' ");eval("this['dc_internal_border'] = dc_BorderColor");eval("this['dc_InBorder'] = 'yes' ")}if(typeof(this["dc_BackgroundColor1"])!="undefined"){eval("this['dc_bg_color1'] = dc_BackgroundColor1")}if(typeof(this["dc_BackgroundColor2"])!="undefined"){eval("this['dc_bg_color2'] = dc_BackgroundColor2")}if(typeof(this["dc_TitleColor"])!="undefined"){eval("this['dc_title_font_color'] = dc_TitleColor")}if(typeof(this["dc_TextColor"])!="undefined"){eval("this['dc_description_font_color'] = dc_TextColor")}if(typeof(this["dc_URLColor"])!="undefined"){eval("this['dc_url_font_color'] = dc_URLColor")}}function keyAdjustments(){if(networkByHash){}}function addKonaLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!="function"){window.onload=func}else{window.onload=function(){if(oldonload){try{oldonload()}catch(err){}}func()}}}function isIntersecting(box1,box2){if(box1.bottom>=box2.top){if(box1.top<=box2.bottom){if(box1.right>=box2.left){if(box1.left<=box2.right){return true}}}}return false}function dcInit(){logit("dcInit starts: "+((new Date()).getTime()-window.konaJSEntryTime)+"~");if(isKonaInited){return}isKonaInited=true;if(bIE){pageStatus=document.readyState}else{pageStatus=PAGE_READY}if(isDelayPageKey){konaInit(false);getRootElems();getPageKey();sendPageKey()}setTimeout("checkDoRunOnPage()",forceRunOnPageTimeOut)}function checkDoRunOnPage(){if(!doRunOnPage){doRunOnPage=true}}function ensureDefined(varName,varValue){if(typeof(this[varName])=="undefined"){eval("window."+varName+" = "+varValue)}}function defineAsWell(originName,varName){if(typeof(this[originName])!="undefined"){eval("window."+varName+" = "+originName)}}function getInfoUnitVal(varName,defaultVal,toLowerCase){if(typeof(toLowerCase)=="undefined"){var toLowerCase=true}return(typeof(this[varName])!="undefined")?eval("selectRandomValue("+varName+","+toLowerCase+");"):defaultVal}function crossDomainFlash(query){logit("USING CROSS DOMAIN: "+((new Date()).getTime()-window.konaJSEntryTime)+"~");crossDomainDiv=document.createElement("div");crossDomainDiv.id="crossDomainDiv";crossDomainDiv.style.position="absolute";crossDomainDiv.style.left="0px";crossDomainDiv.style.top="0px";document.body.appendChild(crossDomainDiv);var konaFlashSend=new SWFObject(CROSS_DOMAIN_FLASH_URL,"crossdomain","10","10","8","#ff0000");konaFlashSend.addParam("wmode","transparent");konaFlashSend.addParam("allowScriptAccess","always");konaFlashSend.addVariable("analysisBase",analysisBase);konaFlashSend.addVariable("query",escape(query));konaFlashSend.write("crossDomainDiv")}function hideCrossDomainFlash(){crossDomainDiv.style.visibility="hidden"}function returnFlashData(theData){logit("GOT RESPONSE FROM FLASH: "+((new Date()).getTime()-window.konaJSEntryTime)+"~");eval(theData)}function validateAndSet(paramName,paramVal){var isValid=false;switch(paramName){case"infoUnit.dc_underlineType":isValid=paramVal=="solid"||paramVal=="dashed"||paramVal=="dotted"||paramVal=="none";break;case"infoUnit.dc_clickDelayTime":isValid=parseInt(paramVal)>=0&&parseInt(paramVal)<=1000;break;case"infoUnit.dc_adLinkClickAllowed":isValid=(typeof eval(paramVal))=="boolean";break;case"infoUnit.dc_offCloseTime":isValid=parseInt(paramVal)>=0&&parseInt(paramVal)<=2000;break;case"infoUnit.dc_delayTime":isValid=parseInt(paramVal)>=0&&parseInt(paramVal)<=1000;break;case"infoUnit.dc_open_new_win":isValid=paramVal=="yes"||paramVal=="no";break;case"infoUnit.dc_AdLinkColor":case"siteLogoImage":case"searchLogoImage":case"boldTags":isValid=true;break}if(isValid){eval(paramName+" = paramVal")}}function setABTests_PT(){tailorForPublisher()}function getKonaComputedStyle(elem){var s=null;if(elem.currentStyle){s=elem.currentStyle}else{if(document.defaultView&&document.defaultView.getComputedStyle){s=document.defaultView.getComputedStyle(elem,null)}}if(!s&&elem.style){s=elem.style}return s}function getKonaComputedStyleProp(elem,prop){return getKonaComputedStyle(elem)[prop]}function getKonaComputedStyleNamedProp(elem,prop){if(elem.currentStyle){var ar=prop.match(/\w[^-]*/g);var s=ar[0];for(var i=1;i<ar.length;++i){s+=ar[i].replace(/\w/,ar[i].charAt(0).toUpperCase())}return elem.currentStyle[s]}else{if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop)}else{return elem.style[s]}}}function GoodDecimal(S){return goodDecimalRegExp.test(S)}function isHiddenNode(node){if(node.nodeType==Node.ELEMENT_NODE){var cStyle=getKonaComputedStyle(node);if(cStyle&&(cStyle.visibility=="hidden"||cStyle.visibility=="hide"||cStyle.display=="none")){return true}}return false}function isHiddenElement(checkLevel,obj){var level=1;var tempHiddentElements="";while(level<checkLevel){if(globalHiddenElements.indexOf("|"+obj.uniqueID+"|")!=-1){return true}if(obj.uniqueID){tempHiddentElements+="|"+obj.uniqueID+"|"}if(obj.currentStyle.visibility=="hidden"||obj.currentStyle.visibility=="hide"||obj.currentStyle.display=="none"){globalHiddenElements+=tempHiddentElements;return true}else{level++;obj=obj.parentNode;if(obj==null||typeof(obj)=="undefined"||obj.nodeName=="#document"){return false}}}return false}function ValueInfo(value,percentage,mask){this.value=value;this.percentage=percentage;this.mask=mask}function KonaLinkBuilder(){this.getContentLink=function(node,adIndex,adLinkWord){dc_adLinkStyle=createAdLinkStyle(node);var link=document.createElement("a");link.href="#";link.setAttribute("style","text-decoration: underline !important;"+adlinkChildStyle);link.className="kLink";link.target=this.target;link.id="KonaLink"+adIndex;link.onmouseover=function(event){adlinkMouseOver(event?event:window.event,this,adIndex)};link.onclick=function(event){adlinkMouseClick(event?event:window.event,this,adIndex)};link.onmouseout=function(event){adlinkMouseOut(event?event:window.event,this,adIndex)};link.oncontextmenu=function(){return false};var isCoreLink=(konaLinks.get(adIndex).linkType==1);var style="color: "+unescape(isCoreLink?kCoreLinkColor:infoUnit.dc_AdLinkColor)+" !important; "+dc_adLinkStyle.styleStr;var words="";var wordArr=adLinkWord.split(" ");for(var i=0;i<wordArr.length;i++){words+="<span class='kLink' style='"+style+adlinkWordStyle+"' >"+wordArr[i]+(i==wordArr.length-1?"":" ")+"</span>"}var innerTags="<font "+dc_adLinkStyle.fontSizeStr+" style='"+style+adlinkChildStyle+"' color='"+infoUnit.dc_AdLinkColor+"' >"+words+"</font>";link.innerHTML=innerTags;return link}}function adLinkInRange(link){if(typeof(link.getWordNumber())=="undefined"){return false}var adLinkLoacation=link.getWordNumber();if((adLinkLoacation>=wordsCounterStart&&adLinkLoacation<=wordsCounterEnd)){return true}else{return false}}function BackUpLinks(){this.nodes=null;this.links=null;this.temp=null;this.regExps=null;this.ronItr=null;this.backupCounter=0;this.markedCounter=0;this.init=function(){if(useRonLinks){konaLinks.resetLinks(dcRonLinks)}this.links=new Array(konaLinks.size());for(var i=0;i<konaLinks.size();i++){this.links[i]=konaLinks.get(i)}this.nodes=new Array(konaLinks.size());fillArray(this.nodes,null);this.regExps=new Array(konaLinks.size());for(var i=0;i<this.regExps.length;i++){this.regExps[i]=new RegExp("(\\b)+"+konaLinks.get(i).highlighttext+"(\\b)+","g")}};this.stack=function(node){for(var i=0;i<this.links.length;i++){this.stackNode(i,node)}};this.stackNode=function(i,node){if(this.links[i]==null||this.nodes[i]!=null){return false}this.temp=node.nodeValue.search(this.regExps[i]);if(this.temp!=-1){if(!isBoldNode(node.parentNode)){this.nodes[i]=node;this.backupCounter++;return true}}return false};this.stackForRon=function(node){if(this.links.length<=0){return}while(this.ronItr.hasNext()&&!this.hasEnoughRons()){if(this.stackNode(this.ronItr.next(),node)){this.ronItr.remove()}}this.ronItr.reset()};this.marked=function(index){if(this.nodes[index]!=null){this.backupCounter--}this.nodes[index]=null;this.links[index]=null;this.markedCounter++};this.hasEnoughRons=function(){return((this.backupCounter>=MAX_RONLINKS_ON_PAGE)||(this.backupCounter>=maxLinksOnPage))};this.allMarked=function(){return(this.markedCounter>=(this.links.length-exhibits.size()))||this.markedCounter>=maxLinksOnPage};this.hasLinks=function(){return this.backupCounter>0&&!this.allMarked()};this.mark=function(){var linksArray=new Array();var nodeArray=new Array();var linksForRon=new Array();for(var i=0;i<this.nodes.length;i++){if(this.nodes[i]!=null){linksArray.push(this.links[i]);nodeArray.push(this.nodes[i]);if(useRonLinks){linksForRon.push(this.links[i])}}}for(var i=0;i<nodeArray.length;i++){if(nodeArray[i]!=null){doBackupMark(nodeArray[i],this.getNodeLinks(nodeArray[i],nodeArray,linksArray))}}};this.getNodeLinks=function(node,nodeArray,linksArray){var tmpArray=new Array();for(var i=0;i<nodeArray.length;i++){if(nodeArray[i]!=null&&nodeArray[i].nodeValue==node.nodeValue&&nodeArray[i].parentNode==node.parentNode){tmpArray.push(linksArray[i]);nodeArray[i]=null}}return tmpArray};this.init()}function checkExitCond(td){switch(td.iMode){case GET_KEY_MODE:if(td.iWordNumber>1000){return kLang.OUT_OF_WORDS}break;case GET_HTML_MODE:if(!dc_jsDebug){dTemp=new Date();if((dTemp.getTime()-traverseTimer)>TREE_CHUNK_TIMEOUT){return kLang.OUT_OF_TIME}}break;case DO_MARKUP_MODE:if(!dc_jsDebug){dTemp=new Date();if((dTemp.getTime()-traverseTimer)>TREE_MARKUP_TIMEOUT){return kLang.OUT_OF_TIME}}if(useRonLinks&&backup.hasEnoughRons()){return kLang.ENOUGH_WORDS}else{if(backup.allMarked()){return kLang.ALL_MARKED}else{if(dc_jsDebug&&(iCurrMU>=konaLinks.size())){return kLang.ALL_TRIED}}}break}return kLang.OK}function doBackupMark(node,linksForNode){return doBackupMarkBy(node,linksForNode,document.createRange?true:false)}function doBackupMarkBy(node,linksForNode,isByRange){var linksStrs=new Array();linksForNode.sort(function(a,b){return(a.getWordNumber()-b.getWordNumber())});var linkCur=linksForNode.length-1;while(maxLinksOnPage>adLinksOnPageCounter&&(linkCur>=0)){var kwd=linksForNode[linkCur].highlighttext;var res=searchKeywordInNode(node,kwd);var linkOffset=res[0];if(linkOffset>=0){if(isByRange){node=insertByRange(node,linkOffset,kwd,linksForNode[linkCur].wordIndex)}else{node=insertBySplit(node,linkOffset,kwd,linksForNode[linkCur].wordIndex)}linksForNode[linkCur].marked=MARKED;adLinksOnPageCounter++;markedLinks++}linkCur--}}function doMark(td){return doMarkBy(td,false)}function doMarkBy(td,isByRange){var node=td.getNode();var linksForNode=getAdLinksForNodeNumber();if(exhibits.isExhibitNode(node.parentNode)){for(var i=0;i<linksForNode.length;i++){linksForNode[i].marked=NOT_VALID}return}var linkCur=linksForNode.length-1;var curNode=node;var wordRegExp=null;var cur=curNode.nodeValue.length;while((maxLinksOnPage>adLinksOnPageCounter)&&(linkCur>=0)&&curNode!=null){var kwd=linksForNode[linkCur].highlighttext;var offset=linksForNode[linkCur].getWordNumber()-wordsCounterStart;var res=searchKeywordInNode(curNode,kwd,offset);var linkOffset=res[0];if(linkOffset>=0){kwd=res[1];linksForNode[linkCur].highlighttext=kwd;if(isByRange){curNode=insertByRange(curNode,linkOffset,kwd,linksForNode[linkCur].wordIndex)}else{curNode=insertBySplit(curNode,linkOffset,kwd,linksForNode[linkCur].wordIndex)}linksForNode[linkCur].marked=MARKED;backup.marked(linksForNode[linkCur].wordIndex);adLinksOnPageCounter++;markedLinks++}linkCur--}iCurrMU=Math.max(iCurrMU,linksForNode.pop().wordIndex+1);return curNode}function getAdLinksForNodeNumber(){var tempArray=new Array();for(var i=0;i<konaLinks.size();i++){if(konaLinks.get(i).marked==NOT_MARKED&&adLinkInRange(konaLinks.get(i))){tempArray.push(konaLinks.get(i))}}tempArray.sort(function(a,b){return(a.getWordNumber()-b.getWordNumber())});return tempArray}function insertByRange(node,linkOffset,kwd,linkIndex){node.nodeValue=node.nodeValue.substring(0,linkOffset)+node.nodeValue.substring(linkOffset+kwd.length);var linkNode=createAdLinkNode(node.parentNode,linkIndex,kwd);var range=document.createRange();range.setStart(node,linkOffset);range.insertNode(linkNode);return node}function insertBySplit(node,linkOffset,kwd,linkIndex){var beforeText=node.nodeValue.substring(0,linkOffset);var afterText=node.nodeValue.substring(linkOffset+kwd.length);var beforeNode=null;var afterNode=null;var linkNode=createAdLinkNode(node.parentNode,linkIndex,kwd);if(beforeText==null){beforeText=""}beforeNode=document.createTextNode(beforeText);node.parentNode.insertBefore(beforeNode,node);node.parentNode.insertBefore(linkNode,node);if(afterText){afterNode=document.createTextNode(afterText);node.parentNode.insertBefore(afterNode,node)}node.parentNode.removeChild(node);return beforeNode}function Junction(node){this.node=node;this.isLink=false;this.isBold=false;this.isInLink=false;this.isInBold=false;this.isArticle=false;this.isInArticle=false;this.childNode=null;this.getNextChild=function(){if(this.childNode==null){this.childNode=this.node.firstChild}else{this.childNode=this.childNode.nextSibling}return this.childNode};this.duplicate=function(){var junc=new Junction(this.node);junc.node=this.node;junc.isLink=this.isLink;junc.isBold=this.isBold;junc.isInLink=this.isInLink;junc.isInBold=this.isInBold;junc.isArticle=this.isArticle;junc.isInArticle=this.isInArticle;junc.childNode=this.childNode;return junc};this.inherit=function(parent){this.isInBold=(parent.isBold||parent.isInBold);this.isInLink=(parent.isLink||parent.isInLink);this.isInArticle=(parent.isArticle||parent.isInArticle)}}function markAdLinkInNode(td){var node=td.getNode();var msg=node.nodeValue;var n=countWordsNew(msg);if(n==0){return""}wordsCounterStart=wordsCounterEnd+1;wordsCounterEnd+=n;if(!useRonLinks){while(iCurrMU<konaLinks.size()&&exhibits.isExhibit(konaLinks.get(iCurrMU))){iCurrMU++}if(iCurrMU<konaLinks.size()){if(typeof(konaLinks.get(iCurrMU).getWordNumber())!="undefined"){if(adLinkInRange(konaLinks.get(iCurrMU))&&konaLinks.get(iCurrMU).marked==NOT_MARKED){node=doMark(td)}}}}if(node.nodeType==Node.TEXT_NODE&&!td.isInLink()){if(useRonLinks){backup.stackForRon(node)}else{backup.stack(node)}}}function searchKeywordInNode(node,kwd,offset){var trimedString=node.nodeValue;var trimedSize=0;var linkOffset=-1;var wordLen=0;var word=null;if(typeof(offset)!="undefined"&&offset>=1){var prefixOffsetRegExp=new RegExp("(((^|\\s)+[^\\s]+){"+(offset-1)+"})");trimedString=trimedString.replace(prefixOffsetRegExp,"");trimedSize=node.nodeValue.length-trimedString.length}var escapeKwd=kwd.replace(nodeWordRegExp,"\\$1");var wordRegExp=new RegExp("(\\b"+escapeKwd+")(?!</font></A><)\\b","i");var wordMatch=trimedString.match(wordRegExp);if(wordMatch==null||wordMatch.index==-1){var words=escapeKwd.split(" ");if(words.length==2){wordRegExp=new RegExp("((\\b))("+words[0]+"(\\s)*"+words[1]+"(?!</A>)\\b)","i")}else{if(words.length==3){wordRegExp=new RegExp("((\\b))("+words[0]+"(\\s)*"+words[1]+"(\\s)*"+words[2]+"(?!</A>)\\b)","i")}}wordMatch=trimedString.match(wordRegExp)}if(wordMatch!=null&&wordMatch.index!=-1){word=wordMatch[0];linkOffset=trimedSize+wordMatch.index}var res=[linkOffset,word];return res}function addScriptToDynamicPage(url){var s=document.createElement("script");s.type="text/javascript";s.src=url;document.getElementById("konasapn0").appendChild(s)}var hProhibitSimLoading=new KonaHash(FRAME_LAYER,false,SEARCH_LAYER,false,RM_FAMILY,false,SPECIAL_TYPE_NEW_YAHOO,false,SPECIAL_TYPE_SEARCH_INFO,false,SPECIAL_TYPE_SEARCH_WEBNARY,false,SPECIAL_TYPE_FREE_DICTIONARY,false,SPECIAL_TYPE_YAHOO_SHOPPING,false,SPECIAL_TYPE_YAHOO_SPONSORED,false);var specialTypes={SPECIAL_TYPE_KONTERA:["http://www.kontera.com","www.kontera.com"],SPECIAL_TYPE_DATA_CAPTURE:["http://www.oracle.com","http://www.apcc.com/"],SPECIAL_TYPE_MSLAYER:["http://view.atdmt.com/MRT/view/kntrtinf0250009683mrt/direct/01/"],SPECIAL_TYPE_MOTIFLAYER:["www.dartmotif.com"],SPECIAL_TYPE_DARTLAYER:["www.dart.com"],SPECIAL_TYPE_HP:["hp_1","hp_2"],SPECIAL_TYPE_KOSMIX:["www.kosmix.com"],SPECIAL_TYPE_SEARCH_INFO:["info.com"],SPECIAL_TYPE_SEARCH_WEBNARY:["webnary"],SPECIAL_TYPE_GHOST:["http://ads.pointroll.com/PortalServe/?pid=582789O64120080220205200&pos=i&r=[RANDOM]"],SPECIAL_TYPE_NEW_YAHOO:["NewYahoo","YahooAlgo"],SPECIAL_TYPE_MICROSOFT_IE6:["www.microsoft.com/ie6"],SPECIAL_TYPE_MICROSOFT_IE8:["www.microsoft.com/ie8"],SPECIAL_TYPE_EDMUNDS:["http://www.caterpillar.com/control"],SPECIAL_TYPE_CATERPILAR:["http://ad.doubleclick.net/imp;v1;f;196836523;0-0;0;25651360;1|1;25507321|25525178|1;;cs=h%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]"],SPECIAL_TYPE_FREE_DICTIONARY:["FreeDictionary"],SPECIAL_TYPE_YAHOO_SHOPPING:["yahooShopping"],SPECIAL_TYPE_MS_CASHBACK:["www.mscashback.com"],SPECIAL_TYPE_NEW_EXPANDABLE:["expandable"],SPECIAL_TYPE_YAHOO_SPONSORED:["YahooSponsoredSearch"],SPECIAL_TYPE_DATA_CAPTURE_KOHL:["http://www.kohl.com"]};var OldSurveyFactory=function(curSurvey){var oldSurveys={"http://www.romanirner.com":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d366028/9/465161/randm.js?[randnum]",impression:"http://www.romanirner.com"},"http://view.atdmt.com/DNR/view/106066661/direct/01/":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d428102/10/449885/adscout.php?ord=[randnum]",impression:"http://view.atdmt.com/DNR/view/106066661/direct/01/"},"http://view.atdmt.com/DNR/view/106066662/direct/01/":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d428102/10/449886/adscout.php?ord=[randnum]",impression:"http://view.atdmt.com/DNR/view/106066662/direct/01/"},"http://ad.doubleclick.net/imp;v1;f;205658020;0-0;0;28311361;1|1;27344787|27362666|1;;cs=s%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d438941/8/446322/randm.js?[randnum]",impression:"http://ad.doubleclick.net/imp;v1;f;205658020;0-0;0;28311361;1|1;27344787|27362666|1;;cs=s%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]"},"www.symantec.com":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d438941/8/446321/randm.js?[randnum]",impression:"www.symantec.com"},"http://ad.doubleclick.net/imp;v1;f;205602900;0-0;0;28277294;1|1;27324746|27342625|1;;cs=r%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d438941/8/446322/randm.js?[randnum]",impression:"http://ad.doubleclick.net/imp;v1;f;205602900;0-0;0;28277294;1|1;27324746|27342625|1;;cs=r%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]"},"http://ad.doubleclick.net/ad/N1942.Kontera/B3233014;sz=1x1":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d520617/5/521621/randm.js?[randnum]",impression:"http://ad.doubleclick.net/ad/N1942.Kontera/B3233014;sz=1x1"},"http://ad.doubleclick.net/ad/N3340.kontera.com/B3250052;sz=1x1;ord=[timestamp]?":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d520617/5/522301/randm.js?[randnum]",impression:"http://ad.doubleclick.net/ad/N3340.kontera.com/B3250052;sz=1x1;ord=[timestamp]?"},"http://ads.pointroll.com/PortalServe/?pid=708772U13920081222211357&pos=i&r=[RANDOM]":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d530581/8/540321/randm.js?[randnum]",impression:"http://ads.pointroll.com/PortalServe/?pid=708772U13920081222211357&pos=i&r=[RANDOM]"},"http://www.cornrefiners.com":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d530581/8/540322/randm.js?[randnum]",impression:"http://www.cornrefiners.com"},"http://www.DL_exposed.com":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d615641/6/618682/randm.js",impression:"http://www.purwater.com/"},"http://www.DL_control_1.com":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d615641/6/618681/randm.js",impression:"http://ad.doubleclick.net/ad/N3340.kontera.com/B3678987;sz=1x1;ord=[timestamp]?"},"http://www.DL_control_2.com":{type:"questionmarket",script:"http://amch.questionmarket.com/adsc/d615641/6/618681/randm.js",impression:"http://ad.doubleclick.net/ad/N3340.kontera.com/B3678987.2;sz=1x1;ord=[timestamp]?"},"http://www.OM_control.com":{type:"insightexpressai",script:"http://core.insightexpressai.com/adServer/adServerESI.aspx?bannerID=150096",impression:"http://altfarm.mediaplex.com/ad/bn/9700-81203-13598-0?mpt=[CACHEBUSTER]"},"http://www.OM_exposed_1.com":{type:"insightexpressai",script:"http://core.insightexpressai.com/adServer/adServerESI.aspx?bannerID=149716",impression:"http://ad.doubleclick.net/imp;v1;f;215691195;0-0;0;37426879;1|1;31865184|31883060|1;;cs=h%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]"},"http://www.OM_exposed_2.com":{type:"insightexpressai",script:"http://core.insightexpressai.com/adServer/adServerESI.aspx?bannerID=149716",impression:"http://ad.doubleclick.net/imp;v1;f;215691241;0-0;0;38014450;1|1;31865184|31883060|1;;cs=z%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]"},"http://www.kohl_exposed_1.com":{type:"insightexpressaiKohl",script:"http://core.insightexpressai.com/adServer/adServerESI.aspx?bannerID=150685",impression:"http://view.atdmt.com/UNY/view/158180780/direct/01/"},"http://www.kohl_exposed_2.com":{type:"insightexpressaiKohl",script:"http://core.insightexpressai.com/adServer/adServerESI.aspx?bannerID=150684",impression:"http://view.atdmt.com/UNY/view/158182642/direct/01/"},"http://www.kohl_exposed_3.com":{type:"insightexpressaiKohl",script:"http://core.insightexpressai.com/adServer/adServerESI.aspx?bannerID=150661",impression:"http://view.atdmt.com/UNY/view/158182640/direct/01/"},"http://www.kohl_control.com":{type:"insightexpressaiKohl",script:"http://core.insightexpressai.com/adServer/adServerESI.aspx?bannerID=150662",impression:""}},getOldSurvey=function(curSurvey){var curSurveyString="";for(var specialType_string in oldSurveys){if(curSurvey==specialType_string){var thisSurvey=oldSurveys[specialType_string];type=thisSurvey.type;script=thisSurvey.script;impression=thisSurvey.impression;if(impression.length>0){curSurveyString="http://clearPixel#*#url#=#"+impression+"#|##+#"}curSurveyString+="http://survey#*#scriptType#=#"+type+"#|#scriptSrc#=#"+script+"#|#";return curSurveyString;break}}return curSurvey},isOldSurvey=function(curSurvey){for(var specialType_string in oldSurveys){if(curSurvey==specialType_string){return true}}return false};return{getOldSurvey:function(curSurvey){return getOldSurvey(curSurvey)},isOldSurvey:function(curSurvey){return isOldSurvey(curSurvey)}}}();var SpecialTypeHandler_survey=function(){this.run=function(linkWrap,specialType_string){linkWrap.infoObj.surveyObject=SurveyFactory.create(specialType_string);linkWrap.infoObj.surveyObject.run=function(){linkWrap.infoObj.surveyObject.implementSurvey()}};this.register=function(func_hash){func_hash.survey={self:this,func:this.run}}};var SpecialTypeHandler_expandable=function(){this.run=function(linkWrap,specialType_string){globalFacade.create_newExpanable();var thisExpandObject=linkWrap.expandableInfo();thisExpandObject.campainId=globalFacade.parseParams("campaign",specialType_string);if(!thisExpandObject.layerLoaded){thisExpandObject.layerLoaded=true;linkWrap.callAddExpandableContentInfo(specialType_string)}};this.register=function(func_hash){func_hash.expandable={self:this,func:this.run}}};var SpecialTypeHandler_floating=function(){this.run=function(linkWrap,specialType_string){globalFacade.create_newExpanable();var thisExpandObject=linkWrap.borderlessInfo();thisExpandObject.campainId=globalFacade.parseParams("campaign",specialType_string);if(!thisExpandObject.layerLoaded){thisExpandObject.layerLoaded=true;linkWrap.callAddExpandableContentInfo(specialType_string)}};this.register=function(func_hash){func_hash.floatingUnit={self:this,func:this.run}}};var SpecialTypeHandler_clearPixel=function(){this.run=function(linkWrap,specialType_string){var clearPixel_urls=globalFacade.getAllSpecialTypeParams(specialType_string);var urls=new Array();for(j=0;j<clearPixel_urls.length;j++){urls.push(globalFacade.parseParams("url",(clearPixel_urls[j])))}linkWrap.specialTypeCollector(urls)};this.register=function(func_hash){func_hash.clearPixel={self:this,func:this.run}}};var SpecialTypeHandler_clickDelayTime=function(){this.run=function(linkWrap,specialType_string){linkWrap.infoObj.clearPixelClickDelayTime=globalFacade.parseParams("delayTime",specialType_string)};this.register=function(func_hash){func_hash.clickDelayTime={self:this,func:this.run}}};var SpecialTypeHandler_muteSound=function(){this.run=function(linkWrap,specialType_string){linkWrap.infoObj.muteSoundOnHide=globalFacade.parseParams("mute",specialType_string)};this.register=function(func_hash){func_hash.muteSound={self:this,func:this.run}}};var SpecialTypeHandler_3rdPartyDynamicIframe=function(){this.run=function(linkWrap,specialType_string){linkWrap.infoObj.thirdPartyIframeObject=generateContentString(getParamsPairs(specialType_string),linkWrap)};this.register=function(func_hash){func_hash["3rdPartyDynamicIframe"]={self:this,func:this.run}};var getParamsPairs=function(specialType_string){var clearPixel_array=globalFacade.getAllSpecialTypeParams(specialType_string);var obj={};var att,val;for(var i in clearPixel_array){if(typeof(clearPixel_array[i])!="function"){att=clearPixel_array[i].split("#=#")[0];val=clearPixel_array[i].split("#=#")[1];obj[att]=val}}return obj};var generateContentString=function(paramsPairs,linkWrap){var Type=getSpecialPair(paramsPairs,"type");var ScriptSrc=getSpecialPair(paramsPairs,"scriptSrc");var ClickUrl=getSpecialPair(paramsPairs,"clickurl");var EscapeClickUrl=""+getSpecialPair(paramsPairs,"escapeClickUrl");var enableClickOnKW=((getSpecialPair(paramsPairs,"enableClickOnKW"))=="true"||(getSpecialPair(paramsPairs,"enableClickOnKW"))==true)?true:false;var Style="<style>body{margin:0;padding:0;}</style>";var collectContent="";for(var i in paramsPairs){if(i.length==0){continue}collectContent+="var "+i+" = "+((isNaN(parseInt(paramsPairs[i])))?("'"+paramsPairs[i]+"'"):(paramsPairs[i]))+";\n"}var Content="";if(collectContent.length>0){if(typeof(ClickUrl)=="string"){var tempClickUrl=(linkWrap.infoObj.get3rdPartyClickRedirect(5,true));if(typeof(EscapeClickUrl)=="string"){if((EscapeClickUrl)=="false"){tempClickUrl=unescape(tempClickUrl)}}collectContent+="var clickurl = '"+tempClickUrl+"';\n"}Content+='<script language="javascript" type="text/javascript">';Content+=collectContent;Content+="<\/script>"}Content+='<script src="'+ScriptSrc+'" language="javascript"><\/script>';return{Style:Style,Content:Content,enableClickOnKW:enableClickOnKW,Type:Type}};var getSpecialPair=function(paramsPairs,param){var ret=paramsPairs[param];delete (paramsPairs[param]);return ret}};var SpecialTypeHandler_3rdPartyIframeSrc=function(){this.run=function(linkWrap,specialType_string){linkWrap.infoObj.thirdPartyIframeObject=generateIframeSrc(getParamsPairs(specialType_string),linkWrap)};this.register=function(func_hash){func_hash["3rdPartyIframeSrc"]={self:this,func:this.run}};var getParamsPairs=function(specialType_string){var clearPixel_array=globalFacade.getAllSpecialTypeParams(specialType_string);var obj={};var att,val;for(var i in clearPixel_array){if(typeof(clearPixel_array[i])!="function"){att=clearPixel_array[i].split("#=#")[0];val=clearPixel_array[i].split("#=#")[1];obj[att]=val}}return obj};var generateIframeSrc=function(paramsPairs,linkWrap){var Type=getSpecialPair(paramsPairs,"type");var enableClickOnKW=(getSpecialPair(paramsPairs,"enableClickOnKW"));enableClickOnKW=(enableClickOnKW=="true"||enableClickOnKW==true)?true:false;var clickonKWredirect=getSpecialPair(paramsPairs,"clickOnKWurl");var EscapeClickUrl=""+getSpecialPair(paramsPairs,"escapeClickUrl");var ClickUrl=(linkWrap.infoObj.get3rdPartyClickRedirect(5,true));if(typeof(EscapeClickUrl)=="string"){if((EscapeClickUrl)=="false"){tempClickUrl=unescape(ClickUrl)}}var allAvailableTags={"[timestamp]":(new Date().getTime()),"[random]":(""+Math.random()).replace(".",""),"[keyword]":(linkWrap.infoObj.keyword),"[keywords]":(linkWrap.infoObj.keyword),"[clickurl]":ClickUrl};var IframeSrc=""+paramsPairs.iframeSrc;for(var tag in allAvailableTags){IframeSrc=IframeSrc.replace(tag,allAvailableTags[tag]);if(typeof(clickonKWredirect)!="undefined"){clickonKWredirect=clickonKWredirect.replace(tag,allAvailableTags[tag])}}var return_object={IframeSrc:IframeSrc,enableClickOnKW:enableClickOnKW,Type:Type};if(typeof(clickonKWredirect)!="undefined"){return_object.clickonKWredirect=generateKWredirect(linkWrap,clickonKWredirect)}return return_object};var generateKWredirect=function(linkWrap,KWredirect){var realClickUrl=(linkWrap.infoObj.get3rdPartyClickRedirect(1,false));return(realClickUrl+KWredirect)};var getSpecialPair=function(paramsPairs,param){var ret=paramsPairs[param];delete (paramsPairs[param]);return ret}};var SpecialTypeHandler_3rdPartyDART=function(){this.run=function(linkWrap,specialType_string){linkWrap.infoObj.thirdPartyIframeObject=generateIframeSrc(getParamsPairs(specialType_string),linkWrap)};this.register=function(func_hash){func_hash["3rdPartyDART"]={self:this,func:this.run}};var getParamsPairs=function(specialType_string){var clearPixel_array=globalFacade.getAllSpecialTypeParams(specialType_string);var obj={};var att,val;for(var i in clearPixel_array){if(typeof(clearPixel_array[i])!="function"){att=clearPixel_array[i].split("#=#")[0];val=clearPixel_array[i].split("#=#")[1];obj[att]=val}}return obj};var generateIframeSrc=function(paramsPairs,linkWrap){var Type=getSpecialPair(paramsPairs,"type");var enableClickOnKW=(getSpecialPair(paramsPairs,"enableClickOnKW"));enableClickOnKW=(enableClickOnKW=="true"||enableClickOnKW==true)?true:false;var ClickUrl=(getDartClickURL(linkWrap,5,true));var allAvailableTags={"[timestamp]":(new Date().getTime()),"[random]":(""+Math.random()).replace(".",""),"[keyword]":(linkWrap.infoObj.keyword),"[keywords]":(linkWrap.infoObj.keyword),"[clickurl]":ClickUrl};var IframeSrc=""+paramsPairs.iframeSrc;for(var tag in allAvailableTags){IframeSrc=IframeSrc.replace(tag,allAvailableTags[tag])}var return_object={IframeSrc:IframeSrc,enableClickOnKW:enableClickOnKW,Type:Type};return return_object};var getSpecialPair=function(paramsPairs,param){var ret=paramsPairs[param];delete (paramsPairs[param]);return ret};var getDartClickURL=function(linkWrap,clickType,escaped){var encodedStr=linkWrap.infoObj.encodedRedirect;var urlSize=encodedStr.length;var reportUrl=globalFacade.getReportString(linkWrap.infoObj,clickType,true,urlSize,false);var url=encodedStr+reportUrl;if(escaped==true){var combinedURL=[];combinedURL[0]=url.split("?")[0];combinedURL[1]="?";combinedURL[2]="escaped_params=";combinedURL[3]=encodeURI(url.split("?")[1]);url=combinedURL.join("");combinedURL=null}url+="&pru=";return url}};var SpecialType_newType=function(){this.run=function(linkWrap){var specialTypesArray=linkWrap.infoObj.specialTypeString.split("#+#");linkWrap.infoObj.specialTypeString=null;for(p=0;p<specialTypesArray.length;p++){var t=specialTypesArray[p].split("#*#")[0].split("http://")[1];if(this.func_hash[t]){this.func_hash[t].func.apply(this.func_hash[t].self,[linkWrap,specialTypesArray[p]])}}};this.canHandle=function(specialType_string){return((specialType_string!=null&&(typeof(specialType_string)!="undefind"))&&((specialType_string.indexOf("#*#")!=-1)&&(specialType_string.indexOf("impression#=#")<0)))};this.func_hash={};var handler=new SpecialTypeHandler_clearPixel();handler.register(this.func_hash);handler=new SpecialTypeHandler_expandable();handler.register(this.func_hash);handler=new SpecialTypeHandler_floating();handler.register(this.func_hash);handler=new SpecialTypeHandler_survey();handler.register(this.func_hash);handler=new SpecialTypeHandler_muteSound();handler.register(this.func_hash);handler=new SpecialTypeHandler_clickDelayTime();handler.register(this.func_hash);handler=new SpecialTypeHandler_3rdPartyDynamicIframe();handler.register(this.func_hash);handler=new SpecialTypeHandler_3rdPartyIframeSrc();handler.register(this.func_hash);handler=new SpecialTypeHandler_3rdPartyDART();handler.register(this.func_hash)};var SpecialType_oldTypes=function(){var _super=new SpecialType_newType();this.run=function(linkWrap){var clearPixel=linkWrap.infoObj.specialTypeString;if((clearPixel.indexOf("expandable_")==0)){var campaign=clearPixel.split("expandable_")[1];var oldCampaign=oldExpandables.get(campaign);if(oldCampaign){linkWrap.infoObj.specialTypeString=oldCampaign;_super.run(linkWrap)}return}if(clearPixel.indexOf("?setClickDelayTime")>=0){var arr=clearPixel.substr(clearPixel.indexOf("?setClickDelayTime")+1).split("=");var paramData={setClickDelayTime:arr[1]};var clickDelay_handler=new SpecialTypeHandler_clickDelayTime();var temp_clearPixel="http://clickDelayTime#*#delayTime#=#"+clearPixel.split("?setClickDelayTime=")[1]+"#|#";clickDelay_handler.run(linkWrap,temp_clearPixel);clearPixel=clearPixel.split("?setClickDelayTime")[0]}if(clearPixel.indexOf("?muteSound")>=0){var arr=clearPixel.substr(clearPixel.indexOf("?muteSound")+1).split("=");var paramData={muteSound:arr[1]};var muteSound_handler=new SpecialTypeHandler_muteSound();var temp_clearPixel="http://muteSound#*#mute#=#"+clearPixel.split("?muteSound=")[1]+"#|#";muteSound_handler.run(linkWrap,temp_clearPixel);clearPixel=clearPixel.split("?muteSound")[0]}if(OldSurveyFactory.isOldSurvey(reformatSurveyString(clearPixel))){clearPixel=reformatSurveyString(clearPixel);linkWrap.infoObj.specialTypeString=OldSurveyFactory.getOldSurvey(clearPixel);_super.run(linkWrap);return}if(clearPixel.indexOf("impression#=#")>-1){clearPixel=reformatSurveyString(clearPixel);linkWrap.infoObj.specialTypeString=clearPixel;_super.run(linkWrap);return}clearPixel=veryOldspecialTypes(linkWrap.infoObj,clearPixel);if(oldFunctionalityIE8(linkWrap)){return}if(oldFunctionalityIE6(linkWrap)){return}if(clearPixel!=null){linkWrap.infoObj.specialTypeString="http://clearPixel#*#url#=#"+clearPixel+"#|#";_super.run(linkWrap)}};this.canHandle=function(specialType_string){return(!((typeof(specialType_string)=="undefind")||(specialType_string==null)||(specialType_string.length==0)))&&((specialType_string.indexOf("#*#")!=-1)==(specialType_string.indexOf("impression#=#")>=0))};var oldFunctionalityIE6=function(linkWrap){if(linkWrap.infoObj.isSpecialType("SPECIAL_TYPE_MICROSOFT_IE6")){var ie6Obj=new msIe6Obj(linkWrap.id);linkWrap.infoObj.description=ie6Obj.description;linkWrap.infoObj.title=ie6Obj.title;linkWrap.infoObj.clickUrl=ie6Obj.clickUrl;linkWrap.specialTypeCollector([ie6Obj.impressionUrl]);linkWrap.infoObj.landingUrl=ie6Obj.landingUrl;return true}return false};var oldFunctionalityIE8=function(linkWrap){if(linkWrap.infoObj.isSpecialType("SPECIAL_TYPE_MICROSOFT_IE8")){var ie8Obj=new msIe8Obj(linkWrap.id);linkWrap.infoObj.description=ie8Obj.description;linkWrap.infoObj.title=ie8Obj.title;linkWrap.infoObj.clickUrl=ie8Obj.clickUrl;linkWrap.specialTypeCollector([ie8Obj.impressionUrl]);return true}return false};var isThisSpecialType=function(specialType_string){for(var i in specialTypes){var thisType=specialTypes[i];for(var j=0;j<thisType.length;j++){if(specialTypes[i][j]==specialType_string){return true}}}return false};var reformatSurveyString=function(clearPixel){if(clearPixel.indexOf("#impression#=#")==-1){return clearPixel}var url=clearPixel.split("impression#=#")[1].split("#|#")[0];var newFormat=clearPixel.split("impression#=#"+url+"#|#")[0]+clearPixel.split(url+"#|#")[1];newFormat="http://clearPixel#*#url#=#"+url+"#|##+#"+newFormat;return newFormat};var veryOldspecialTypes=function(infoObj,specialType_string){if(isThisSpecialType(specialType_string)){if(isValidArgument(specialType_string)&&((specialType_string.indexOf("www.dartmotif.com")!=-1)||(specialType_string.indexOf("www.dart.com")!=-1)||(specialType_string.indexOf("www.mscashback.com")!=-1)||(specialType_string.indexOf("www.kosmix.com")!=-1)||(specialType_string.indexOf("hp_1")!=-1)||(specialType_string.indexOf("hp_2")!=-1))){specialType_string=specialType_string.split("#$#")[0];if((specialType_string.indexOf("www.kosmix.com")!=-1)){infoObj.outerAdJavascriptUrl=KOSMIX_AD_URL+infoObj.keyword+"?redir="+infoObj.get3rdPartyClickRedirect(RE_MODE_LAYER_CLICK)}else{if(specialType_string.indexOf("hp_1")!=-1){infoObj.outerAdJavascriptUrl=HP_1_AD_URL+";click="+infoObj.get3rdPartyClickRedirect(RE_MODE_LAYER_CLICK)}else{if(specialType_string.indexOf("hp_2")!=-1){infoObj.outerAdJavascriptUrl=HP_2_AD_URL+";click="+infoObj.get3rdPartyClickRedirect(RE_MODE_LAYER_CLICK)}else{infoObj.outerAdJavascriptUrl=specialType_string.split("#$#")[1]}}}}infoObj.specialType=specialType_string;infoObj.specialTypeString=null;return infoObj.specialTypeString}return specialType_string}};var SpecialType_Strategy=function(){this.allTypes=[];this.handleSpecialTypeString=function(linkCur){var linkWrap=new linkFacade(linkCur);for(var i=0;i<this.allTypes.length;i++){if(this.allTypes[i].canHandle(linkWrap.infoObj.specialTypeString)){return this.allTypes[i].run(linkWrap)}}return false};this.allTypes.push(new SpecialType_newType());this.allTypes.push(new SpecialType_oldTypes())};var SpecialType_strategy=new SpecialType_Strategy();var linkFacade=function(adlinkID){this.infoObj=konaLinks.getInfo(adlinkID);this.id=adlinkID;this.callAddExpandableContentInfo=function(specialType_string){callAddExpandableContentInfo(this.id,specialType_string)};this.infoObj.specialTypeArray=new Array();this.specialTypeCollector=function(specialType_array){for(var i=0;i<specialType_array.length;i++){this.infoObj.specialTypeArray[i]=specialType_array[i]}};this.expandableInfo=function(){this.infoObj.expandableInfo=new expandableInfo();return this.infoObj.expandableInfo};this.borderlessInfo=function(){this.infoObj.borderlessInfo=new borderlessInfo();return this.infoObj.borderlessInfo}};var globalFacade=function(){return{create_newExpanable:function(){if(!newExpandKonaBuilder){newExpandKonaBuilder=new expandKonaBuilder()}},parseParams:function(phrase,specialType_string){return parseParams(phrase,specialType_string)},getAllSpecialTypeParams:function(specialType_string){return getAllSpecialTypeParams(specialType_string)},getReportString:function(info,clickType,sendVT,urlSize,tiFlag){return getReportString(info,clickType,sendVT,urlSize,tiFlag)}}}();function expandableInfo(){this.layerLoaded=false}function borderlessInfo(){this.layerLoaded=false}function getAllSpecialTypeParams(specialType_string){var specialTypeVars=(specialType_string.split("#*#")[1].split("#|#"));specialTypeVars.pop();return specialTypeVars}function checkSurveyLoaded(){if(typeof(InsightExpress)!="undefined"&&typeof(InsightExpress.onload)!="undefined"){InsightExpress.onload()}else{window.setTimeout("checkSurveyLoaded()",200)}}function surveyRunner(adlinkCur){var info=konaLinks.getInfo(adlinkCur);var surveyObj=info.surveyObject;this.overrideDocWrite=function(){document.write=function(args){}};this.checkDocWrite=function(){if((surveyObj)&&(typeof surveyObj.defineDocumentWrite=="function")&&(typeof surveyObj.defineDocumentWrite=="object")){return}this.overrideDocWrite()};this.surveySandbox=function(){if(!surveyObj){return}this.checkDocWrite();if(surveyObj.implementSurvey){surveyObj.implementSurvey()}};this.surveySandbox()}function parseParams(parseBy,str){if(str.indexOf(parseBy+"#=#")>-1){return str.split(parseBy+"#=#")[1].split("#|#")[0]}else{return""}}var SurveyFactory=function(){createSurvey=function(new_params){if(typeof(new_params)!="string"){return}params=new_params;scriptType=parseParams("scriptType",params);switch(scriptType){case"vizu":return new survey_default_flow(params);break;case"insightexpressai":return new survey_insightexpressai(params);break;case"questionmarket":return new survey_questionmarket(params);break;case"insightexpressaiKohl":return new survey_insightexpressai_kohl_flow(params);break;case"doubleclick":return;break;default:return new survey_default_flow(params);break}};return{create:function(params){return createSurvey(params)}}}();var ISurvey=function(){this.sendHttpRequest=function(){if(this.impression.length>0){sendHttpRequest(this.impression.replace("[timestamp]",(new Date()).getTime()))}};this.addScriptToDynamicPage=function(scriptLoadedCB,subScriptLoadedCB,documentWriteOverride){if(this.scriptSrc.length>0){scriptRunner.loadScript(this.scriptSrc,true,scriptLoadedCB,subScriptLoadedCB,documentWriteOverride)}};this.implementSurvey=function(){konalog.error("no implementSurvey function !!")}};function survey_insightexpressai(params){this.params=params;this.scriptSrc=parseParams("scriptSrc",params);this.impression=parseParams("impression",params);this.implementSurvey=function(){this.sendHttpRequest();this.addScriptToDynamicPage(this.checkSurveyLoaded(),"",this.defineDocumentWrite)};this.checkSurveyLoaded=function(){if(typeof(InsightExpress)!="undefined"&&typeof(InsightExpress.onload)!="undefined"){InsightExpress.onload()}else{window.setTimeout(this.checkSurveyLoaded,200)}};this.defineDocumentWrite=function(scripttag){var src=scripttag.split('src="')[1];src=src.split('"')[0];scriptRunner.loadScript(src,true,"","",this.defineDocumentWrite)}}survey_insightexpressai.prototype=new ISurvey();function survey_questionmarket(params){this.params=params;this.scriptSrc=parseParams("scriptSrc",params);this.impression=parseParams("impression",params);this.implementSurvey=function(){if(!bIE){document.readyState="complete"}this.sendHttpRequest();this.addScriptToDynamicPage()}}survey_questionmarket.prototype=new ISurvey();function survey_insightexpressai_kohl_flow(params){this.params=params;this.scriptSrc=parseParams("scriptSrc",params);this.impression=parseParams("impression",params);this.kohlSpecialScript="<script type='text/javascript'> _qoptions={media:'ad',qacct:'p-8aek6VcGVNap6',labels:'_imp.adserver.doubleclick,_imp.publisher.%epid!,_imp.placement.%eaid!,_imp.creative.%ecid!'};<\/script><script type='text/javascript' src='http://edge.quantserve.com/quant.js'><\/script><noscript><img src='http://pixel.quantserve.com/pixel/p-8aek6VcGVNap6.gif?media=ad&labels=_imp.adserver.doubleclick,_imp.publisher.%epid!,_imp.placement.%eaid!,_imp.creative.%ecid!' style='display: none;' border='0' height='1' width='1' alt='Quantcast'/></noscript>";this.implementSurvey=function(){this.sendHttpRequest();this.addScriptToDynamicPage(this.checkSurveyLoaded(),"",this.defineDocumentWrite);this.implementKohlSpecialScript()};this.implementKohlSpecialScript=function(){kona$("konasapn0").innerHTML+=this.kohlSpecialScript};this.checkSurveyLoaded=function(){if(typeof(InsightExpress)!="undefined"&&typeof(InsightExpress.onload)!="undefined"){InsightExpress.onload()}else{window.setTimeout(this.checkSurveyLoaded,200)}};this.defineDocumentWrite=function(scripttag){var src=scripttag.split('src="')[1];src=src.split('"')[0];scriptRunner.loadScript(src,true,"","",this.defineDocumentWrite)}}survey_insightexpressai_kohl_flow.prototype=new ISurvey();function survey_default_flow(params){this.params=params;this.scriptSrc=parseParams("scriptSrc",params);this.impression=parseParams("impression",params);this.implementSurvey=function(){this.sendHttpRequest();this.addScriptToDynamicPage()}}survey_default_flow.prototype=new ISurvey();function ImpressionType(name,startTime,endTime){this.name=name;this.startTime=startTime;this.endTime=endTime;this.layerCur=-1;this.markType=function(time,adlinkIndex,descIndex){if(time>=this.startTime&&time<this.endTime){this.layerCur++;reportLayerImpression(adlinkIndex,descIndex);return true}return false}}function ImpressionDaoFunc(){this.impression_types=new Array();this.impression_types.push(new ImpressionType(0,0,1000*60*10));this.impression_types.push(new ImpressionType(1,1000*60*10,Number.MAX_VALUE));this.adlinkShowTime=null;this.pixelTimers=null;this.adlinksShown=function(){this.adlinkShowTime=new Date();this.pixelTimers=new Array(konaLinks.size());fillArray(this.pixelTimers,null)};this.adlinkSwitched=false;this.descIndex=-2;this.adlinkIndex=-1;this.size=aInfoUnits[0].dcAL_number+1;this.imageArray=new Array(this.size);this.triggerFlag=-1;this.trigger=function(){return false};this.reset=function(){for(var i=0;i<this.imageArray.length;i++){this.imageArray[i]=null}};this.getParams=function(){return"&p="+dc_PublisherID+"&al="+this.adlinkIndex+"&dn="+this.descIndex+"&url="+document.location.href};this.adlinkChanged=function(adlinkIndex){this.clearTime();if(this.adlinkIndex!=adlinkIndex){this.reset();this.adlinkSwitched=true}else{this.adlinkSwitched=false}this.adlinkIndex=adlinkIndex;this.descIndex=-1};this.descChanged=function(descIndex,isOver){if(descIndex==this.descIndex){return}this.descIndex=descIndex;this.clearTime()};this.pixelTimeout=function(layerCur){var layer=konaLayers.getLayerObj(layerCur);if(layer.isShown){var linkInfo=konaLinks.getInfo(layerCur);linkInfo.reportPixelImpression(layerCur)}};this.layerShown=function(adlinkIndex){linkInfo=konaLinks.getInfo(adlinkIndex);if(linkInfo.isRM()&&linkInfo.needsPixelImpression()){this.pixelTimers[adlinkIndex]=window.setTimeout("impressions.pixelTimeout("+adlinkIndex+")",linkInfo.rmValidViewTime)}};this.layerClosed=function(adlinkIndex){if(adPreviewMode){return}if(this.pixelTimers[adlinkIndex]!=null){window.clearTimeout(this.pixelTimers[adlinkIndex]);this.pixelTimers[adlinkIndex]=null}if(adlinkIndex>=0&&konaLinks.getInfo(adlinkIndex)){this.reportImpression(adlinkIndex)}};this.closeImpressionArr=new Array();this.wasCloseImpression=function(adlinkIndex){if(!this.closeImpressionArr[adlinkIndex]){this.closeImpressionArr[adlinkIndex]=true;return false}else{return true}};this.reportImpression=function(adlinkIndex){var linkInfo=konaLinks.getInfo(adlinkIndex);if(linkInfo&&linkInfo.encodedLayerImps!=null){var time=(new Date()).getTime()-this.adlinkShowTime.getTime();for(var i=0;i<this.impression_types.length;i++){if(this.impression_types[i].markType(time,adlinkIndex,0)){break}}linkInfo.reportPixelImpression(adlinkIndex)}};this.clearTime=function(){};this.reset()}var impressions;function reportLayerImpression(adlinkCur,descCur){if(!adPreviewMode){konaLinks.getInfo(adlinkCur,descCur).reportLayerImpression(adlinkCur,descCur)}}function getReportString(info,clickType,sendVT,urlSize,tiFlag){var str="&rparam&wi="+info.parentLink.wordIndex+"&wo="+info.parentLink.IEwordNumber+"&mod="+konaTweakMode+(isExternalPublisher?("&ei="+dc_ExtId):"");if(clickType!=null){str+="&ct="+getReportingClickType(clickType)}konaRequestId=(String.format("{0}_{1}_{2}",(!isExternalPublisher?dc_PublisherID:extConvertedPubId),sUnique,sRandomPerPage)).replace(".","");str+="&rId="+konaRequestId;if(prev_page!=""){str+=String.format("&prev_page={0}",prev_page)}if(typeof(dc_ChannelID)!="undefined"&&dc_ChannelID!=null){str+=String.format("&cId={0}",dc_ChannelID)}if(info.isRM()&&info.isDirect()){if(info.parentLink.clickDelayHoverTime){str+="&cdht="+info.parentLink.clickDelayHoverTime}if(info.parentLink.clickDelayForDataLoaded){str+="&cddl="+info.parentLink.clickDelayForDataLoaded}}if(sendVT){if(!IsKonaLayerExist(info.parentLink.wordIndex)){str+="&vt=0"}else{if(konaLinks.get(info.parentLink.wordIndex).IsNewExpandableLayer()&&konaLayers.isExpandBig(info.parentLink.wordIndex)){str+="&vt="+konaLayers.getLayerObj(info.parentLink.wordIndex).expandViewTime}else{str+="&vt="+konaLayers.getLayerObj(info.parentLink.wordIndex).getTotalOpenTime()}}}if(tiFlag==null||typeof(tiFlag)=="undefined"||tiFlag!=false){if(clickType&&bIE){var param="&ti="+escape(info.title);if((urlSize+str.length+param.length)<MAX_CHARS_FOR_TE_REQUEST){str+=param}param="&de="+escape(info.description);if((urlSize+str.length+param.length)<MAX_CHARS_FOR_TE_REQUEST){str+=param}param="&la="+escape(info.landingUrl);if((urlSize+str.length+param.length)<MAX_CHARS_FOR_TE_REQUEST){str+=param}}else{str+="&ti="+escape(info.title)+"&de="+escape(info.description)+"&la="+escape(info.landingUrl)}}return str}function getReportingClickType(clickType){return clickType}function reportMissingAds(linkCur){return}function KonaLinks(){this.links=new Array();this.get=function(ind){if(this.links.length>ind){return this.links[ind]}return null};this.getNode=function(ind){return kona$("KonaLink"+ind)};this.getInfo=function(linkCur,plateCur){var link=this.get(linkCur);if(link!=null){return link.getInfo(plateCur)}return null};this.addLink=function(link){this.links.push(link)};this.removeLink=function(i){this.links.splice(i,1)};this.size=function(){return this.links.length};this.clear=function(){this.links=new Array()};this.prepareLinks=function(){this.filterLinks();this.sortByOffset()};this.resetLinks=function(newLinks){this.links=newLinks;this.prepareLinks()};this.sortByOffset=function(){if(konaLinks.size()==0){return}this.links.sort(function(a,b){return(a.getWordNumber()-b.getWordNumber())});for(var i=0;i<konaLinks.size();i++){konaLinks.get(i).setIndex(i)}};this.filterLinks=function(){for(var i=konaLinks.size()-1;i>=0;i--){for(var j=0;j<linksLimitingPercentage.length;j++){if(linksLimitingPercentage[j][0]==konaLinks.get(i).highlighttext.toLowerCase()){if(Math.random()*100>=linksLimitingPercentage[j][1]){this.removeLink(i);break}}}}};this.ensureLinksVisibility=function(){for(var i=0;i<this.links.length;i++){this.ensureBorderVisibility(i)}};this.ensureBorderVisibility=function(linkNum){var node=this.getNode(linkNum);var space=this.getLineBottomSpace(node);if(space<0){var lineHeight=node.offsetHeight+(-1)*space*2;var style=bIE?node.runtimeStyle:node.style;style.lineHeight=lineHeight+"px"}};this.getLineBottomSpace=function(linkNode){var linkPos=getBoxXYpositions(linkNode);var p=linkNode;while(p!=null){if(getKonaComputedStyleProp(p,"display")=="block"){break}p=p.parentNode}if(p!=null){var parentPos=getBoxXYpositions(p);return parentPos.bottom-linkPos.bottom}}}function KonaLayerTopNode(layer,id){this.node=kona$(id);this.layer=layer;this.show=function(){if(layer.isUp){this.layer.setImage(this.node,"top_curve",false,"image");this.node.className="top_curve"}else{if(layer.isRight){this.layer.setImage(this.node,"drop_top_curve_right");this.node.className="drop_top_curve_right"}else{this.layer.setImage(this.node,"drop_top_curve");this.node.className="drop_top_curve"}}};this.floatNode=function(){if(layer.isUp){}else{if(layer.isByClick){this.layer.setImage(this.node,"top_curve",false,"image")}else{this.layer.setImage(this.node,"drop_box_top_drag")}if(layer.isByClick){this.node.className="top_curve"}}};this.onDragStart=function(){};this.onDragEnd=function(){};this.nodeMouseOver=function(){};this.nodeMouseOut=function(){}}function KonaLayerBottomNode(layer,id){this.node=kona$(id);this.layer=layer;this.show=function(){if(layer.isUp){if(layer.isRight){this.layer.setImage(this.node,"box_bottom_right");this.node.className="konaBottomBox_Right"}else{this.layer.setImage(this.node,"box_bottom");this.node.className="konaBottomBox"}}else{this.layer.setImage(this.node,"box_bottom_drag");this.node.className="konaBottomBox_drag"}};this.nodeMouseOver=function(){var isHooked=(!this.layer.isByClick&&!this.layer.isStick);if(layer.isUp){if(isHooked){if(layer.isRight){this.layer.setImage(this.node,"box_bottom_right_o")}else{this.layer.setImage(this.node,"box_bottom_o")}}else{this.layer.setImage(this.node,"box_bottom_drag_o")}}else{this.layer.setImage(this.node,"box_bottom_drag_o")}};this.nodeMouseOut=function(){var isHooked=(!this.layer.isByClick&&!this.layer.isStick);if(layer.isUp){if(isHooked){if(layer.isRight){this.layer.setImage(this.node,"box_bottom_right")}else{this.layer.setImage(this.node,"box_bottom")}}else{this.layer.setImage(this.node,"box_bottom_drag")}}else{this.layer.setImage(this.node,"box_bottom_drag")}};this.floatNode=function(){if(layer.isUp){this.layer.setImage(this.node,"box_bottom_drag")}if(layer.isUp){this.node.className="konaBottomBox_drag"}};this.onDragStart=function(){this.nodeMouseOver()};this.onDragEnd=function(){}}function KonaLayerBox(layer,id){this.node=kona$(id);this.layer=layer;this.show=function(){this.layer.setImage(this.node,"box",false)};this.floatNode=function(){this.nodeMouseOut()};this.nodeMouseOut=function(){this.layer.setImage(this.node,"box",false)};this.nodeMouseOver=function(){this.layer.setImage(this.node,"box_o",false)};this.onDragStart=function(){this.nodeMouseOver()};this.onDragEnd=function(){}}function KonaLayerTopBox(layer,id){this.node=kona$(id);this.layer=layer;this.show=function(){this.layer.setImage(this.node,"top_box",false)};this.floatNode=function(){this.nodeMouseOut()};this.nodeMouseOut=function(){this.layer.setImage(this.node,"top_box",false)};this.nodeMouseOver=function(){this.layer.setImage(this.node,"top_box_o",false)};this.onDragStart=function(){this.nodeMouseOver()};this.onDragEnd=function(){}}function KonaLayerBoxSeparator(layer,id){this.node=kona$(id);this.layer=layer;this.show=function(){this.layer.setImage(this.node,"box_separator",false)};this.floatNode=function(){this.nodeMouseOut()};this.nodeMouseOut=function(){this.layer.setImage(this.node,"box_separator",false)};this.nodeMouseOver=function(){this.layer.setImage(this.node,"box_separator_o",false)};this.onDragStart=function(){this.nodeMouseOver()};this.onDragEnd=function(){}}function KonaPlate(layer,num,actionNodes){this.num=num;this.actionNodes=actionNodes;this.layer=layer;this.show=function(){for(var i=0;i<this.actionNodes.length;i++){this.actionNodes[i].show()}};this.floatPlate=function(){for(var i=0;i<this.actionNodes.length;i++){this.actionNodes[i].floatNode()}};this.plateMouseOver=function(){if(konaLinks.get(layer.num).IsMotifLayer(this.num)||konaLinks.get(layer.num).isKosmix(this.num)||konaLinks.get(layer.num).isHP(this.num)){return}if(konaLinks.get(layer.num).IsNewExpandableLayer()){smallLayerOverOut(layer.num,"Over");return}for(var i=0;i<this.actionNodes.length;i++){this.actionNodes[i].nodeMouseOver()}};this.plateMouseOut=function(){if(konaLinks.get(layer.num).IsNewExpandableLayer()){smallLayerOverOut(layer.num,"Over");return}for(var i=0;i<this.actionNodes.length;i++){this.actionNodes[i].nodeMouseOut()}};this.onDragStart=function(){for(var i=0;i<this.actionNodes.length;i++){this.actionNodes[i].onDragStart()}};this.onDragEnd=function(){for(var i=0;i<this.actionNodes.length;i++){this.actionNodes[i].onDragEnd()}}}function KonaLayer(num,layerType){this.plates=null;if(num!=movieLayerIndex){this.node=kona$(KONA_LAYER_ID+num)}else{this.node=kona$(KONA_MS_MOVIE_LAYER_ID)}if(!konaLinks.get(num).IsNewExpandableLayer()&&!konaLayers.isMScashback(num)){this.handleNode=kona$("konaHandle0-"+num)}else{if(num==movieLayerIndex){this.handleNode=kona$("konaBigFlashDrag0-"+num)}else{this.handleNode=kona$("konaFlashDrag0-"+num)}}this.logoNode=kona$("konaLayerLogo0-"+num);this.actionNode=kona$("konaActionBlock0-"+num);this.isStick=false;this.isActive=false;this.isShown=false;this.scrollDone=!bIE;this.hidingTimer=null;this.num=num;this.isRight=false;this.isUp=true;this.isByClick=(konaLinks.getInfo(num,0).konaLayerMode==LAYER_MODE_CLICK);this.lastSourceBox=null;this.totalOpenTime=0;this.openedTime=0;this.selectedTab=0;this.linkInfo=null;this.invalid=false;this.expandViewTime=0;this.init=function(){var actionNodes=new Array();this.plates=new Array();this.linkInfo=konaLinks.getInfo(this.num);if(!konaLayers.IsMotifLayer(this.num)&&!konaLayers.isMScashback(this.num)&&!konaLinks.get(this.num).IsNewExpandableLayer()&&!konaLayers.isKosmix(this.num)&&!konaLayers.isHP(this.num)){switch(konaLayers.isShowSearch(this.num)){case false:actionNodes.push(new KonaLayerBottomNode(this,"konaBottom0-"+this.num));actionNodes.push(new KonaLayerTopNode(this,"konaTopCurve0-"+this.num));actionNodes.push(new KonaLayerTopBox(this,"konaBox0-"+this.num));this.plates.push(new KonaPlate(this,0,actionNodes));break;case true:actionNodes.push(new KonaLayerTopNode(this,"konaTopCurve0-"+this.num));actionNodes.push(new KonaLayerTopBox(this,"konaBox0-"+this.num));actionNodes.push(new KonaLayerBoxSeparator(this,"konaBoxSeparator0-"+this.num));this.plates.push(new KonaPlate(this,0,actionNodes));actionNodes=new Array();actionNodes.push(new KonaLayerBox(this,"konaTabsBox"+this.num));actionNodes.push(new KonaLayerBottomNode(this,"konaBottom1-"+this.num));this.plates.push(new KonaPlate(this,1,actionNodes));break}}else{if(konaLayers.IsMotifLayer(this.num)||konaLayers.isKosmix(this.num)||konaLayers.isHP(this.num)){actionNodes.push(new KonaLayerBottomNode(this,"konaBottom0-"+this.num));actionNodes.push(new KonaLayerTopNode(this,"konaTopCurve0-"+this.num));actionNodes.push(new KonaLayerTopBox(this,"konaBox0-"+this.num));this.plates.push(new KonaPlate(this,0,actionNodes))}else{this.plates.push(new KonaPlate(this,0,actionNodes))}}};this.close=function(){this.hide();this.isStick=false};this.tabSelected=function(cur){if(cur!=this.selectedTab){var tab=kona$("konaTab"+this.selectedTab+"-"+this.num);tab.className="";tab=kona$("konaTab"+cur+"-"+this.num);tab.className="selected";this.selectedTab=cur}};this.hide=function(){clearTimeout(this.hidingTimer);konaRichMedia.hide(this.num);if(this.node!=null){this.node.style.visibility="hidden"}if(this.isShown){this.totalOpenTime+=(new Date()).getTime()-this.openedTime}this.isShown=false;this.isActive=false};this.invalidate=function(){this.invalid=true};this.getTotalOpenTime=function(){if(this.invalid){return 0}else{return this.totalOpenTime+(this.isShown?(new Date()).getTime()-this.openedTime:0)}};this.setImage=function(node,imageName,asIEBackground,sizingMethod){var imageUrl=this.getPic(imageName);if(!sizingMethod){if(typeof(asIEBackground)!="undefined"){var sizingMethod="crop"}else{var sizingMethod="scale"}}if(bIE&&(typeof(asIEBackground)=="undefined"||!asIEBackground)){node.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"',sizingMethod='"+sizingMethod+"')"}else{node.style.backgroundImage="url("+imageUrl+")"}};this.show=function(xy){this.positionLayer(xy);this.node.style.visibility="visible";for(var i=0;i<this.plates.length;i++){this.plates[i].show(this.isRight,this.isUp)}if(this.isUp){if(this.logoNode){this.logoNode.className="imgBanner"}}else{if(this.logoNode){this.logoNode.className="imgBanner_down"}}if(this.isByClick){this.floatLayer()}this.lastSourceBox=xy;this.coordinateLayer();this.node.style.zIndex=dc_z_index;this.node.style.display="";this.isShown=true;this.openedTime=(new Date()).getTime();var link=konaLinks.get(this.num);if(!link.wasTotlCalc&&link.hasGoodLinkInfo()&&link.usedFetchMethod!=TE_AUTO_FETCH){link.setShowAddTotalTime((new Date()).getTime()-link.linkHoverStartTime)}if(bIE){setTimeout("playRM('"+this.num+"')",100)}else{konaRichMedia.show(this.num)}};this.coordinateLayer=function(){var _xy=this.getLayerPosition(this.lastSourceBox,this.isUp,this.isRight,this.isByClick?getScreenBox():null);this.node.style.left=_xy.left+layerOffsetLeftAddition+"px";this.node.style.top=_xy.top+"px";this.node.style.position="absolute"};this.positionLayer=function(xy){var layer=this.node;var screenBox=getScreenBox();var yUpDiff=(xy.top-screenBox.top)-layer.offsetHeight;var yDownDiff=(screenBox.bottom-xy.bottom)-layer.offsetHeight;var areas=[true,true,true,true];var isUp=true;var isRight=false;if(yUpDiff>0){areas[1]=false;areas[2]=false}else{isUp=false;areas[0]=false;areas[3]=false}var xLeftOffset=(xy.right-screenBox.left)-layer.offsetWidth;var xRightOffset=(screenBox.right-xy.left)-layer.offsetWidth;if(xLeftOffset<0&&xLeftOffset<xRightOffset){isRight=false;areas[2]=false;areas[3]=false}else{if(xRightOffset<0){isRight=true;areas[0]=false;areas[1]=false}}var _xy=null;var _isRight,_isUp;var areaOrder=this.isByClick?[2,3,0,1]:layerAreaOrder;var j=0;for(var i=0;i<areas.length;i++){j=areaOrder[i];if(areas[j]){_isRight=j>1;_isUp=(j%3)==0;_xy=this.getLayerPosition(xy,_isUp,_isRight,screenBox);if(docBadRanges.matchProblematicBoxes(_xy)){areas[j]=false}else{isRight=_isRight;isUp=_isUp;break}}}this.setLocation(isRight,isUp)};this.correctRightPosition=function(){var linkInfo=konaLinks.getInfo(this.num);if((linkInfo.borderlessInfo||linkInfo.expandableInfo)&&(parseInt(linkInfo.expandableSmallWidth)<280)){return parseInt(linkInfo.expandableSmallWidth)}return 280};this.getLayerPosition=function(xy,isUp,isRight,screenBox){var _xy=new Positions(0,0,0,0);var originalT=this.node.offsetHeight;if(this.isByClick){_xy.top=(isUp?xy.top-originalT+(bIE?0:0):xy.bottom)}else{_xy.top=(isUp?xy.top-originalT:xy.bottom)}if(this.isByClick){_xy.left=((xy.right+xy.left)/2)-(this.node.offsetWidth/2);if(_xy.left<screenBox.left){_xy.left=screenBox.left}else{if(_xy.left+this.node.offsetWidth>screenBox.right){_xy.left=screenBox.right-this.node.offsetWidth}}}else{if(isRight){_xy.left=xy.left-this.correctRightPosition()}else{_xy.left=xy.left+Math.round((xy.right-xy.left)/2)-10}}var layer=this.node;_xy.right=_xy.left+layer.offsetWidth;_xy.bottom=_xy.top+layer.offsetHeight;return _xy};this.getPlatePosition=function(plateCur){switch(plateCur){case 0:return"TOP";case 1:return"BOTTOM"}};this.plateMouseOver=function(plateCur){clearTimeout(this.hidingTimer);var isHooked=(!this.isByClick&&!this.isStick);var platePos=this.getPlatePosition(plateCur);this.plates[plateCur].plateMouseOver();if(!this.isByClick){KonaDrag.init(this.handleNode,this.node)}};this.plateMouseOut=function(plateCur){var isHooked=(!this.isByClick&&!this.isStick);var platePos=this.getPlatePosition(plateCur);this.plates[plateCur].plateMouseOut();if(!this.isStick){this.setTimeout(this.linkInfo.isRM()?rmLayerOffOpenTime:infoUnit.dc_offCloseTime)}};this.adlinkMouseOver=function(){clearTimeout(this.hidingTimer)};this.adlinkMouseOut=function(){if(!this.isStick){this.setTimeout(this.linkInfo.isRM()?rmLayerOffOpenTime:infoUnit.dc_offCloseTime)}};this.floatLayer=function(){for(var i=0;i<this.plates.length;i++){this.plates[i].floatPlate()}};this.onDragStart=function(){this.floatLayer();this.plates[0].onDragStart()};this.onDragEnd=function(layerIndex){};this.setTimeout=function(time){clearTimeout(this.hidingTimer);this.hidingTimer=setTimeout("hideKonaLayer('"+this.num+"')",time)};this.setLocation=function(isRight,isUp){this.isRight=isRight;this.isUp=isUp};this.imageLoaded=function(){if(this.isShown){this.coordinateLayer()}};this.getPic=function(str){return eval("konaImages."+str+".src")};this.init()}function InfoUnit(dc_width,dc_height,dc_Keywords,dc_OutBorder,dc_InBorder,dc_external_border,dc_internal_border,dc_bg_color1,dc_bg_color2,dc_AdLinkColor,dc_AdLinkBorderColor,dc_single_line,dc_useVPP,dcAL_number,dcAL_bgColor,dcAL_LY_showCaption,dcAL_LY_captionTxt,dcAL_LY_captionFontColor,dcAL_LY_borderColor,dcAL_LY_bgColor,dcAL_LY_FontType,dcAL_onMouseOvercolor,dcAL_LY_titleActive,dcAL_LY_titleFontColor,dcAL_LY_titleBold,dcAL_LY_titleFontSize,dcAL_LY_descActive,dcAL_LY_descFontColor,dcAL_LY_descFontSize,dcAL_LY_urlActive,dcAL_LY_urlFontColor,dcAL_LY_urlFontBold,dcAL_LY_urlFontSize,dcAL_explainActive,dcAL_explainText,dcAL_explainURL,dc_numberAds,dc_sm_type,dc_default,dc_bg_img,dc_align,dc_caption_text,dc_show_caption,dc_caption_font,dc_caption_font_size,dc_caption_font_color,dc_caption_font_bgColor,dc_show_title,dc_title_font,dc_title_font_size,dc_title_font_bold,dc_title_font_color,dc_show_description,dc_description_font,dc_description_font_size,dc_description_font_bold,dc_description_font_color,dc_show_url,dc_url_font,dc_url_font_size,dc_url_font_bold,dc_url_font_color,dc_titLinesNumberFactor,dc_descLinesNumberFactor,dc_descCharsFactor,dc_titCharsFactor,dc_caption_position,dc_adlinks_active,dc_ron,dc_adult,dc_PP_cap,dc_PP_width,dc_PP_height,dc_PP_under,dc_adIndex,dc_aff_id,dc_is_image,dc_open_new_win,dc_delayTime,dc_offCloseTime,dc_underlineType,dc_clickDelayTime,dc_adLinkClickAllowed,dc_contentTag,dc_contentTagAttr,dc_contentTagAttrVal,dc_redirect3PartyUrl,dc_effect_speed,dc_restrictedTag,dc_restrictedTagAttr,dc_restrictedTagAttrVal,dc_maxLinks,dc_contentTags,dc_restrictedTags){this.dc_width=dc_width;this.dc_height=dc_height;this.dc_Keywords=dc_Keywords;this.dc_OutBorder=dc_OutBorder;this.dc_InBorder=dc_InBorder;this.dc_external_border=dc_external_border;this.dc_internal_border=dc_internal_border;this.dc_bg_color1=dc_bg_color1;this.dc_bg_color2=dc_bg_color2;this.dc_AdLinkColor=dc_AdLinkColor;this.dc_AdLinkBorderColor=dc_AdLinkBorderColor;this.dc_single_line=dc_single_line;this.dc_useVPP=dc_useVPP;this.dcAL_number=dcAL_number;this.dcAL_bgColor=dcAL_bgColor;this.dcAL_LY_showCaption=dcAL_LY_showCaption;this.dcAL_LY_captionTxt=dcAL_LY_captionTxt;this.dcAL_LY_captionFontColor=dcAL_LY_captionFontColor;this.dcAL_LY_borderColor=dcAL_LY_borderColor;this.dcAL_LY_bgColor=dcAL_LY_bgColor;this.dcAL_LY_FontType=dcAL_LY_FontType;this.dcAL_onMouseOvercolor=dcAL_onMouseOvercolor;this.dcAL_LY_titleActive=dcAL_LY_titleActive;this.dcAL_LY_titleFontColor=dcAL_LY_titleFontColor;this.dcAL_LY_titleBold=dcAL_LY_titleBold;this.dcAL_LY_titleFontSize=dcAL_LY_titleFontSize;this.dcAL_LY_descActive=dcAL_LY_descActive;this.dcAL_LY_descFontColor=dcAL_LY_descFontColor;this.dcAL_LY_descFontSize=dcAL_LY_descFontSize;this.dcAL_LY_urlActive=dcAL_LY_urlActive;this.dcAL_LY_urlFontColor=dcAL_LY_urlFontColor;this.dcAL_LY_urlFontBold=dcAL_LY_urlFontBold;this.dcAL_LY_urlFontSize=dcAL_LY_urlFontSize;this.dcAL_explainActive=dcAL_explainActive;this.dcAL_explainText=dcAL_explainText;this.dcAL_explainURL=dcAL_explainURL;this.dc_numberAds=dc_numberAds;this.dc_sm_type=dc_sm_type;this.dc_default=dc_default;this.dc_bg_img=dc_bg_img;this.dc_align=dc_align;this.dc_show_caption=dc_show_caption;this.dc_caption_text=dc_caption_text;this.dc_caption_font=dc_caption_font;this.dc_caption_font_size=dc_caption_font_size;this.dc_caption_font_color=dc_caption_font_color;this.dc_caption_font_bgColor=dc_caption_font_bgColor;this.dc_show_title=dc_show_title;this.dc_title_font=dc_title_font;this.dc_title_font_size=dc_title_font_size;this.dc_title_font_bold=dc_title_font_bold;this.dc_title_font_color=dc_title_font_color;this.dc_show_description=dc_show_description;this.dc_description_font=dc_description_font;this.dc_description_font_size=dc_description_font_size;this.dc_description_font_bold=dc_description_font_bold;this.dc_description_font_color=dc_description_font_color;this.dc_show_url=dc_show_url;this.dc_url_font=dc_url_font;this.dc_url_font_size=dc_url_font_size;this.dc_url_font_bold=dc_url_font_bold;this.dc_url_font_color=dc_url_font_color;this.dc_titLinesNumberFactor=dc_titLinesNumberFactor;this.dc_descLinesNumberFactor=dc_descLinesNumberFactor;this.dc_descCharsFactor=dc_descCharsFactor;this.dc_titCharsFactor=dc_titCharsFactor;this.dc_caption_position=dc_caption_position;this.dc_adlinks_active=dc_adlinks_active;this.dc_ron=dc_ron;this.dc_adult=dc_adult;this.dc_PP_cap=dc_PP_cap;this.dc_PP_width=dc_PP_width;this.dc_PP_height=dc_PP_height;this.dc_PP_under=dc_PP_under;this.dc_adIndex=dc_adIndex;this.dc_aff_id=dc_aff_id;this.dc_is_image=dc_is_image;this.dc_open_new_win=dc_open_new_win;this.dc_delayTime=dc_delayTime;this.dc_offCloseTime=dc_offCloseTime;this.dc_underlineType=dc_underlineType;this.dc_clickDelayTime=dc_clickDelayTime;this.dc_adLinkClickAllowed=dc_adLinkClickAllowed;this.dc_contentTag=dc_contentTag;this.dc_contentTagAttr=dc_contentTagAttr;this.dc_contentTagAttrVal=dc_contentTagAttrVal.toLowerCase();this.dc_redirect3PartyUrl=dc_redirect3PartyUrl;this.dc_effect_speed=dc_effect_speed;this.dc_restrictedTag=dc_restrictedTag;this.dc_restrictedTagAttr=dc_restrictedTagAttr;this.dc_restrictedTagAttrVal=dc_restrictedTagAttrVal.toLowerCase();this.dc_maxLinks=parseInt(dc_maxLinks);this.dc_contentTags=dc_contentTags;this.dc_restrictedTags=dc_restrictedTags}function Links(IEwordNumber,taxonomyKwd,highlighttext,wordNumber,isInTopic,taxonomyKey,sids,linkType,cpcList,scoreList){if(!sids){sids=""}if(!taxonomyKey||taxonomyKey.length==0){taxonomyKey=highlighttext}this.IEwordNumber=IEwordNumber;this.taxonomyKwd=taxonomyKwd;this.highlighttext=highlighttext;this.wordNumber=wordNumber;this.isInTopic=isInTopic;this.dcAdlinkInfo=[];this.status=UNKNOWN;this.preloadTimeOut=null;this.preloadTimeOutID=null;this.autoFetch=false;this.LoadByDemandAdLinkData=LoadByDemandAdLinkData;this.marked=NOT_MARKED;this.wordIndex=-1;this.clicked=false;this.teCounter=0;this.teTimer=null;this.isPainted=false;this.goodAvertisers="";this.directAdvertiser="";this.badAdvertisers="";this.isDelayAdvertiser=false;this.hasYahooAdvertiser=false;this.isYahooFetched=false;this.yahooPreloadTimeOut=null;this.yahooAdvertisers="";this.sids=sids;this.hasDirect=false;this.hasDirectOnly=false;this.taxonomyKey=taxonomyKey;this.usedFetchMethod=TE_UNFETCHED;this.linkType=linkType;this.cpcList=cpcList;this.scoreList=scoreList;this.mouseIsOverAdlink=false;this.linkHoverStartTime=0;this.clickDelayHoverTime=0;this.clickDelayFlashInit=0;this.clickDelayForDataLoaded=0;this.layerReadyStartTime;this.showAddTotalTime=0;this.wasTotlCalc=false;this.init=function(){this.parseSids()};this.parseSids=function(){var bAdvertiserIsDirect;var advertisersFullData=this.sids.split(";");for(var i=0;advertisersFullData&&i<advertisersFullData.length;i++){var advData=advertisersFullData[i];var advParams=advData.split("|");var advertiserId=advParams[0];if(!advertiserId){continue}bAdvertiserIsDirect=false;if(directAdsPrefetch==true){if(advertiserId.indexOf("8_",0)!=-1){bAdvertiserIsDirect=true;directAdvertiser=advertiserId;this.hasDirect=true;if(advertisersFullData.length==1){this.hasDirectOnly=true}}}if(isInArray(yahooAdvertisers,advertiserId)){this.hasYahooAdvertiser=true;this.yahooAdvertisers+=advData+";"}else{if(directAdsPrefetch==true&&!bAdvertiserIsDirect){this.goodAvertisers+=advData+";"}else{if(!bAdvertiserIsDirect){this.goodAvertisers+=advData+";"}}}if(advertiserId&&isInArray(delayAdvertisers,advertiserId)){this.isDelayAdvertiser=true}}};this.IsNewExpandableLayer=function(){return(this.dcAdlinkInfo[0].borderlessInfo||this.dcAdlinkInfo[0].expandableInfo)};this.IsMotifLayer=function(layerCur){return this.dcAdlinkInfo[0].isSpecialType("SPECIAL_TYPE_MOTIFLAYER")};this.isMScashback=function(layerCur){return this.dcAdlinkInfo[0].isSpecialType("SPECIAL_TYPE_MS_CASHBACK")};this.IsDartLayer=function(layerCur){return this.dcAdlinkInfo[0].isSpecialType("SPECIAL_TYPE_DARTLAYER")};this.isKosmix=function(layerCur){return this.dcAdlinkInfo[0].isSpecialType("SPECIAL_TYPE_KOSMIX")};this.isHP=function(layerCur){return this.dcAdlinkInfo[0].isSpecialType("SPECIAL_TYPE_HP")};this.setLinkHoverStartTime=function(startTime){this.linkHoverStartTime=startTime};this.setShowAddTotalTime=function(endTime){this.showAddTotalTime=endTime;this.wasTotlCalc=true};this.fetched=function(fetchMethod){if(fetchMethod==TE_DYNAMIC_FETCH&&this.usedFetchMethod==TE_AUTO_FETCH){this.usedFetchMethod=TE_AUTO_DYNAMIC_FETCH}else{this.usedFetchMethod=fetchMethod}};this.setIndex=function(index){this.wordIndex=index};this.getWordNumber=function(){var flag=exhibits.isExhibit(this);return(fetchMethod==METHOD_TEXT_RANGE?this.IEwordNumber*(flag?-1:1):this.wordNumber*(flag?-1:1))};this.hasGoodLinkInfo=function(){return((this.dcAdlinkInfo.length>0)&&(this.dcAdlinkInfo[0]!=link_info_loading))};this.addInfo=function(index,linkInfo){this.dcAdlinkInfo[index]=linkInfo;linkInfo.setParentLink(this)};this.getInfo=function(i){if(typeof(i)=="undefined"){var i=0}return(this.dcAdlinkInfo.length>i?this.dcAdlinkInfo[i]:null)};this.isWouldBeDirect=function(){return(this.sids.indexOf("8")==0)};this.preLoader=null;this.init()}function konaPreloader(link){this.link=null;this.adlinkCur=null;this.isByClick=null;this.init=function(){this.link=link;this.adlinkCur=this.link.wordIndex;this.isByClick=(this.link.konaLayerMode==LAYER_MODE_CLICK);this.buildPreLoad()};this.hideAllPreLoaders=function(){var i;for(i=0;i<konaLinks.size();i++){if(kona$("preLoadLayer"+i)){this.hidePreLoad(i)}}};this.hidePreLoad=function(preLoadIndex){if(!this.isPreloaderOn()){return}if(preLoadIndex){i=preLoadIndex}else{preLoadIndex=this.adlinkCur}kona$("preLoadLayer"+preLoadIndex).style.display="none"};this.buildPreLoad=function(){if(this.isExistPreloader()){return}var theHref=this.getLink();var preloadImg=document.createElement("img");preloadImg.className="preloadImg";preloadImg.src=layerPreloadSrc;preloadImg.style.border="none";preloadImg.style.width=22+"px";preloadImg.style.height=22+"px";var preLoadLayer=document.createElement("div");preLoadLayer.id="preLoadLayer"+this.adlinkCur;preLoadLayer.appendChild(preloadImg);var preLoadWrap=document.createElement("span");preLoadWrap.id="preLoadWrap"+this.adlinkCur;preLoadWrap.className="preLoadWrap";preLoadWrap.appendChild(preLoadLayer);preLoadWrap.style.position="relative";preLoadLayer.style.position="absolute";preLoadLayer.style.zIndex=dc_z_index;preLoadLayer.style.top=bIE?"-22px":"-32px";preLoadLayer.style.left="-18px";preLoadLayer.style.display="inline";theHref.appendChild(preLoadWrap)};this.getLink=function(){return kona$("KonaLink"+this.adlinkCur)};this.isPreloaderOn=function(){if(this.isExistPreloader()){return kona$("preLoadLayer"+this.adlinkCur).style.display!="none"}return false};this.isExistPreloader=function(){return kona$("preLoadLayer"+this.link.wordIndex)!=null};this.init()}function checkClickDisableForPublishers(index){var linkInfo=konaLinks.getInfo(index);var yahooFeedsClickDelayAdvertisers=[57830,39905,56116];var yahooFeedsClickDelayPublishers1=[77201,52271,50582,7959,50382,12532,85194,14108,18512,52417,65472,64722,5606,10875,34705,8242,13709];var yahooFeedsClickDelayPublishers2=[39,93,227,383,923,924,1220,1545,1733,1805,1995,1996,2352,2401,2650,2924,2986,2988,3062,3390,3456,3464,3525,4244,4389,4494,4576,5289,5624,5668,5671,5731,5735,5850,5974,6146,6511,6723,6740,6897,7759,7763,7903,8047,8079,8214,8235,8382,8707,9292,9377,9418,9515,9762,9830,9908,9937,9994,10176,10384,10427,10576,10905,10925,11065,11128,11159,11160,11252,11327,11435,11472,11566,11695,11851,12081,12143,12203,12367,12414,12492,12531,12563,12574,12608,13648,13801,13802,14116,14129,14188,14424,14427,14532,15309,15310,15650,15956,16004,16052,16400,17140,17666,19655,21418,34705,35062,35726,40109,44914,70093,70094,70095,73318,73322,73323,73324,73325,73327,73328,73329,73330,75000,77252,78646,78647,79048,81025,82045,82046,82047,82048,86626,86627,86628,87990];var yahooFeedsClickDelayPublishers3=[18134,64627];var publisherClickDelayTime=((new Date()).getTime()-konaLinks.get(index).layerReadyStartTime);if((isInArray(yahooFeedsClickDelayPublishers1,dc_PublisherID)&&yahooFeedsClickDelayAdvertisers[0]==linkInfo.searchProviderID)||(isInArray(yahooFeedsClickDelayPublishers2,dc_PublisherID)&&yahooFeedsClickDelayAdvertisers[1]==linkInfo.searchProviderID)||(isInArray(yahooFeedsClickDelayPublishers3,dc_PublisherID)&&yahooFeedsClickDelayAdvertisers[2]==linkInfo.searchProviderID)){if((publisherClickDelayTime<=1000)||(!konaLinks.get(index).layerReadyStartTime)){return true}}return false}function getAdGroup(adlinkCur){var adgroupID=-1;var exelateHash=new KonaHash("8_7142",1,"8_7143",1,"8_7144",1,"8_7145",1,"8_7146",1,"8_7147",1,"8_7148",1,"8_7149",1,"8_7150",1,"8_7151",1,"8_7152",1,"8_7153",1,"8_7154",1,"8_7155",1,"8_7156",1,"8_7157",1,"8_7158",1,"8_7159",1,"8_7160",1,"8_7161",1,"8_7162",1,"8_7163",1,"8_7164",1,"8_7165",1);var advertisersFullData=konaLinks.get(adlinkCur).sids.split(";");for(var i=0;i<advertisersFullData.length;i++){if(exelateHash.hasItem(advertisersFullData[i])){adgroupID=advertisersFullData[i];break}}exelateHash=null;return adgroupID}function loadExternalScripts(doWrite){if(aInfoUnits[0].dc_useVPP=="yes"){var url="http://js.vpptechnologies.com/DittoIA.jsh?pid=3933";loadScript(url,doWrite)}}function updateYahooAdLinkLayer(index,xyObj){var link=konaLinks.get(index);if(link.status==YAHOO_LOADING){link.teCounter+=200;if(link.teCounter>yahooLoadDataTimeOut){clearTimeout(link.teTimer);link.teCounter=0;link.status=LOADED;showListings(index,xyObj,true)}else{var functionName="updateYahooTimedLayer("+index+","+xyObj.left+","+xyObj.right+","+xyObj.top+","+xyObj.bottom+")";link.teTimer=setTimeout(functionName,200)}}else{showListings(index,xyObj,true)}}function updateYahooTimedLayer(index,left,right,top,bottom){var p=new Positions(0,0,0,0);p.left=left;p.top=top;p.right=right;p.bottom=bottom;updateYahooAdLinkLayer(index,p)}function LinkInfo(keyword,title,description,landingUrl,encodedRedirect,clickUrl,logoImageUrl,searchProviderID,imageUrl,adType,encodedLayerImps,clearPixelUrl,rmType,RMCreativeUrl,isGlobalClick,rmPlayerType,isCacheBusting,rmValidViewTime){this.keyword=keyword;this.title=title;this.description=description;this.landingUrl=landingUrl;this.encodedRedirect=encodedRedirect;this.clickUrl=clickUrl;this.logoImageUrl=(doDemo&&adType!="LOAD")?"http://www.top-uk-web-design.com/g/sexy.jpg":!logoImageUrl||logoImageUrl=="null"||logoImageUrl==""?null:logoImageUrl;this.linkCPC=isValidArgument(searchProviderID)?(searchProviderID.split("$|$")[1]):0;this.searchProviderID=isValidArgument(searchProviderID)?(searchProviderID.split("$|$")[0]):null;this.imageUrl=typeof(imageUrl)=="undefined"||!imageUrl||imageUrl=="null"||imageUrl==""?null:IMAGE_BASE+imageUrl;this.adType=(doDemo&&adType!="LOAD")?("RM|"):(typeof(adType)=="undefined"?null:adType);this.encodedLayerImps=typeof(encodedLayerImps)=="undefined"?null:encodedLayerImps;this.rmType=typeof(rmType)=="undefined"?null:rmType;this.RMCreativeUrl=doDemo?("http://images.kontera.com/IMAGE_DIR/462/1296/11_07_35_2685535.swf"):(typeof(RMCreativeUrl)=="undefined"?null:RMCreativeUrl);if(this.RMCreativeUrl){var dot=this.RMCreativeUrl.lastIndexOf(".");this.creativeType=this.RMCreativeUrl.substring(dot+1).toLowerCase()}this.clearPixelClickDelayTime=0;this.allowClickAfterDelay=false;this.setClickDelayTime=this.clearPixelClickDelayTime?this.clearPixelClickDelayTime:null;this.isClickDelay=!(this.setClickDelayTime==0);this.flashIsReady=false;this.isClickOnRM=false;this.clearPixelUrl=clearPixelUrl;this.specialTypeString=clearPixelUrl;this.isGlobalClick=doDemo?false:(typeof(isGlobalClick)=="undefined"?null:(isGlobalClick==1?true:false));this.rmPlayerType=doDemo?1:(typeof(rmPlayerType)=="undefined"?null:rmPlayerType);this.isCacheBusting=doDemo?false:(typeof(isCacheBusting)=="undefined"?null:(isCacheBusting==1?true:false));this.rmValidViewTime=doDemo?0:(typeof(rmValidViewTime)=="undefined"?null:parseInt(rmValidViewTime)*1000);this.konaLayerMode=LAYER_MODE_POP;this.logoPosition=null;this.imagePosition=null;this.hasText=null;this.wasImpression=false;this.wasCaptureClick=false;this.wasPixelImpression=false;this.logoImage=null;this.image=null;this.parentLink=null;this._isRM=false;this._isSimpleFlash=false;this.kwdRegExp1=new RegExp("&lt;([b|u]{1,2}_){0,1}konakwd&gt;","ig");this.kwdRegExp2=new RegExp("<([b|u]{1,2}_){0,1}konakwd>","ig");this.httpRegExp=new RegExp("(http)","i");this.swfRegExp=new RegExp("\\.swf","i");this.feedType=null;this.price=null;this.init=function(){this.logoPosition=null;this.imagePosition=null;this.hasText=true;this._isRM=(this.adType!=null&&this.adType.indexOf("RM")!=-1);if(this._isRM){this._isSimpleFlash=(this.RMCreativeUrl.search(this.swfRegExp)!=-1)}if(this.adType!=null){this.adType=this.adType.split("|",2)[0];if(this.isSpecialType("SPECIAL_TYPE_DATA_CAPTURE")){this.clickUrl=""}}if(this.encodedRedirect!=null){this.encodedRedirect=this.encodedRedirect.replace(httpTEServRegExp,teReplacementStr)}if(this.encodedLayerImps!=null){this.encodedLayerImps=this.encodedLayerImps.replace(httpTEServRegExp,teReplacementStr)}if(!this.isDirect()){this.logoPosition="leftup";this.imagePosition="north";return}};this.setParentLink=function(link){this.parentLink=link};this.declareOuterOnClick=function(){var result=true;result&=(!this.isSpecialType("SPECIAL_TYPE_NEW_YAHOO"));return result};this.prepareForShow=function(layerCur){this.fillDynamicFields();this.loadImages(layerCur)};this.fillDynamicFields=function(){this.title=this.fillDynamicText(this.title);this.description=this.fillDynamicText(this.description)};this.fillDynamicText=function(str){try{var regexp=this.kwdRegExp1;var tmp=str.match(regexp,"$1");if(tmp==null){regexp=this.kwdRegExp2;tmp=str.match(regexp,"$1")}if(tmp!=null&&tmp.length>0){tmp=tmp[0];var kwd=this.parentLink.highlighttext;if(tmp.indexOf("u")!=-1){kwd=firstLetterUpperCase(kwd)}if(tmp.indexOf("b")!=-1){kwd=" <b>"+kwd+"</b> "}else{kwd=" "+kwd+" "}return str.replace(regexp,kwd)}}catch(e){}return str};this.loadImages=function(layerCur){if(this.hasLogo()){this.logoImage=new Image();eval("this.logoImage.onload = function(){konaLayers.imageLoaded("+layerCur+")}");this.logoImage.src=this.getLogo()}if(this.hasImage()){this.image=new Image();eval("this.image.onload = function(){konaLayers.imageLoaded("+layerCur+")}");this.image.src=this.getImage()}};this.getCreativeUrl=function(){var imgUrl=KDAS_IMAGE_BASE;return(!this.isCompleteUrl(this.RMCreativeUrl)?(this.isWl()?KDAS_IMAGE_BASE_WL:imgUrl):"")+this.RMCreativeUrl};this.getLogo=function(){var imgUrl=KDAS_IMAGE_BASE;return(((this.isDirect()||this.isWl())&&!this.isCompleteUrl(this.logoImageUrl))?(this.isWl()?KDAS_IMAGE_BASE_WL:imgUrl):"")+this.logoImageUrl};this.getouterAdJavascriptUrl=function(){return this.outerAdJavascriptUrl};this.isCompleteUrl=function(url){return(url.search(this.httpRegExp)!=-1)};this.setLogo=function(url,addBase){this.logoImageUrl=(addBase?LOGO_IMAGE_BASE:"")+url};this.setLayerMode=function(mode){this.konaLayerMode=mode};this.getImage=function(){return this.imageUrl};this.isDirect=function(){if(adPreviewMode){return true}else{return(this.searchProviderID!=null&&(this.searchProviderID==8||this.searchProviderID=="8"))}};this.isWl=function(){return(this.searchProviderID!=null&&(this.searchProviderID==10||this.searchProviderID=="10"))};this.isSimpleFlash=function(){return this._isSimpleFlash};this.isSpecialType=function(type){var requestedType=specialTypes[type];for(typ=0;typ<requestedType.length;typ++){if(requestedType[typ]==this.specialType){return true}}return false};this.isAlternativeLayer=function(){return this.isSpecialType("SPECIAL_TYPE_SEARCH_INFO")||this.isSpecialType("SPECIAL_TYPE_SEARCH_WEBNARY")||this.isSpecialType("SPECIAL_TYPE_FREE_DICTIONARY")};this.isRM=function(){return this._isRM};this.isWithButtons=function(){return(this.rmPlayerType==1&&!this.isSimpleFlash())};this.getLayerType=function(){switch(this.adType){case"TRM1":return LAYER_TYPE_RM_LEFT;case"TRM2":return LAYER_TYPE_RM_TOP;case"RM":return LAYER_TYPE_RM_ONLY;case"LOAD":return LAYER_TYPE_LOADING;default:return LAYER_TYPE_SINGLE;break}};this.isEncodedAdvertiserUrl=function(clickType){if((this.getLayerType()==LAYER_TYPE_RM_ONLY)&&clickType!=RE_MODE_REGULAR&&this.isGlobalClick==false&&linkInfo.isClickOnRM){return true}if((clickType==1)&&(this.borderlessInfo||this.expandableInfo)&&(this.expandableLinkClickBehavior=="3rd")){return false}if((this.borderlessInfo||this.expandableInfo)&&(clickType==1||clickType==5)&&(this.expandableLinkClickBehavior=="second")){return false}if(this.isSpecialType("SPECIAL_TYPE_SEARCH_WEBNARY")||this.isSpecialType("SPECIAL_TYPE_SEARCH_INFO")||this.isSpecialType("SPECIAL_TYPE_FREE_DICTIONARY")||(this.borderlessInfo||this.expandableInfo)||this.isSpecialType("SPECIAL_TYPE_MICROSOFT_IE8")||this.isSpecialType("SPECIAL_TYPE_MICROSOFT_IE6")){return true}return false};this.getClickRedirect=function(clickType,isReport){var encodedStr=this.encodedRedirect;var advertiserUrl=isReport?"":(this.isEncodedAdvertiserUrl(clickType)?"&pru=":"&ru=")+this.clickUrl;var urlSize=encodedStr.length+advertiserUrl.length;var reportUrl=getReportString(this,clickType,true,urlSize);var url=encodedStr+reportUrl+advertiserUrl;return url};this.get3rdPartyClickRedirect=function(clickType,escaped){var encodedStr=this.encodedRedirect;var advertiserUrl="&pru=";var urlSize=encodedStr.length+advertiserUrl.length;var reportUrl=getReportString(this,clickType,true,urlSize,false);if(this.isSpecialType("SPECIAL_TYPE_KOSMIX")){var url=escape(encodedStr+reportUrl+advertiserUrl)}else{if(this.isSpecialType("SPECIAL_TYPE_HP")){var url=encodedStr+reportUrl+advertiserUrl}else{if(escaped!=null&&typeof(escaped)!="undefined"){var url=encodedStr+reportUrl;if(escaped==true){var combinedURL=[];combinedURL[0]=url.split("?")[0];combinedURL[1]="?";combinedURL[2]="escaped_params=";combinedURL[3]=encodeURI(url.split("?")[1]);url=combinedURL.join("");combinedURL=null}url+=advertiserUrl}}}return url};this.getRedirect=function(){return(this.encodedRedirect)};this.hasImage=function(){return(this.imageUrl!=null)};this.hasLogo=function(){return this.logoImageUrl!=null};this.reportLayerImpression=function(adlinkCur,descCur){if(this.wasImpression){return}this.wasImpression=true;if(isAddScriptToDynamicPageByIframe==false&&this.isSpecialType("SPECIAL_TYPE_EDMUNDS")){isAddScriptToDynamicPageByIframe=true;addScriptToDynamicPageByIframe("http://core.insightexpressai.com/adServer/adServerESI.aspx?bannerID=29799")}var url=this.encodedLayerImps+getReportString(this,null,true)+"";sendHttpRequest(url)};this.reportCaptureClick=function(url){if(this.wasCaptureClick){return}this.wasCaptureClick=true;sendHttpRequest(url)};this.needsPixelImpression=function(){if(this.wasPixelImpression){return false}if(this.specialTypeArray.length>0){return true}return false};this.reportPixelImpression=function(adlinkCur,descCur){if(!this.needsPixelImpression()){return}this.wasPixelImpression=true;var clearPixRegExp=new RegExp("\\[timestamp\\]","g");for(i=0;i<this.specialTypeArray.length;i++){konalog.warn("impression url "+(i+1)+":"+this.specialTypeArray[i]);sendHttpRequest(this.specialTypeArray[i].replace(clearPixRegExp,(new Date()).getTime()))}};this.initExpandableParams=function(theCollectObj,theIndexArr){for(var i=0;i<theIndexArr.length;i++){eval("this."+theIndexArr[i]+"= '"+theCollectObj[theIndexArr[i]]+"'")}};this.init()}function showMotifLayer(adlinkID){var timeStamp=new Date().getTime();var linkInfo=konaLinks.getInfo(adlinkID,0);var HPstr="";var iframeSRC=linkInfo.getouterAdJavascriptUrl();iframeSRC=iframeSRC.replace("[timestamp]",timeStamp);if(konaLinks.getInfo(adlinkID).isSpecialType("SPECIAL_TYPE_HP")){if(linkInfo.specialType.indexOf("_2")!=-1){var HPstr='<SCRIPT language="JavaScript1.1SRC="http://ad.doubleclick.net/adj/N5823.Kontera/B3677430.3;abr=!ie;sz=300x250;ord=[timestamp]?"></SCRIPT><NOSCRIPT><A HREF="http://ad.doubleclick.net/jump/N5823.Kontera/B3677430.3;abr=!ie4;abr=!ie5;sz=300x250;ord=[timestamp]?"><IMG SRC="http://ad.doubleclick.net/ad/N5823.Kontera/B3677430.3;abr=!ie4;abr=!ie5;sz=300x250;ord=[timestamp]?" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here"></A></NOSCRIPT>'}else{if(linkInfo.specialType.indexOf("_1")!=-1){var HPstr='<SCRIPT language="JavaScript1.1SRC="http://ad.doubleclick.net/adj/N5823.Kontera/B3677430;abr=!ie;sz=300x250;ord=[timestamp]?"></SCRIPT><NOSCRIPT><A HREF="http://ad.doubleclick.net/jump/N5823.Kontera/B3677430;abr=!ie4;abr=!ie5;sz=300x250;ord=[timestamp]?"><IMG SRC="http://ad.doubleclick.net/ad/N5823.Kontera/B3677430;abr=!ie4;abr=!ie5;sz=300x250;ord=[timestamp]?" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here"></A></NOSCRIPT>'}}}var str='<iframe style="overflow:hidden;" src="'+iframeSRC+'" width="300" height="250" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" borderCOLOR="#000000"></iframe>';document.getElementById("konteraMotifWrap"+adlinkID).innerHTML=str}function setTailPositionCashback(stat){var xPos,yPos;switch(stat){case"BL":xPos=85;yPos=0;break;case"BR":xPos=85;yPos=0;break;case"TL":xPos=85;yPos=35;break;case"TR":xPos=85;yPos=35;break}var returnArr=new Array(xPos,yPos);return returnArr}function showKonaFlashMScashback(stat,adlinkID){showTail=true;tailStatus=stat;var position_params=setTailPositionCashback(stat);document.getElementById("konaFlashDrag0-"+adlinkID).style.left=position_params[0]+"px";document.getElementById("konaFlashDrag0-"+adlinkID).style.top=position_params[1]+"px";document.getElementById("konaFlashWrap0-"+adlinkID).style.display="inline";createMScashbackPlayer(stat,adlinkID)}function createMScashbackPlayer(tail_direction,adlinkID){var flashName="konaMScashback.swf";var konaFlash=new SWFObject(""+FLASH_SWF_BASE+flashName,"konaFlashBubble"+adlinkID,"320","335","8","#ffffff");konaFlash.addParam("allowScriptAccess","always");konaFlash.addVariable("tail_direction",tail_direction);konaFlash.addVariable("adlinkID",adlinkID);konaFlash.addVariable("adWord",konaLinks.get(adlinkID).highlighttext);konaFlash.addVariable("campaign_info",konaLinks.getInfo(adlinkID).outerAdJavascriptUrl);konaFlash.addParam("wmode","transparent");konaFlash.write("konaFlashContent0-"+adlinkID);document.getElementById("konaFlashBubble"+adlinkID).style.width=320+"px"}function msIe8Obj(linkCur){this.bType=getBrowserType();this.linkCur=linkCur;this.title="LOOKING FOR A BETTER WEB EXPERIENCE?";this.description="Download Internet Explorer 8 and see for yourself how it compares to";this.clickUrl="http://clk.atdmt.com/MRT/go/159284058/direct;wi.1;hi.1/01/";this.impressionUrl="http://view.atdmt.com/MRT/view/159284058/direct;wi.1;hi.1/01/";this.init=function(){switch(this.bType){case 1:this.description="Upgrade to Internet Explorer 8 and see for yourself how it compares to Firefox.";this.clickUrl="http://clk.atdmt.com/MRT/go/159284060/direct;wi.1;hi.1/01/";this.impressionUrl="http://view.atdmt.com/MRT/view/159284060/direct;wi.1;hi.1/01/";break;case 2:case 22:case 23:this.description+=" Firefox.";break;case 3:this.description+=" Opera.";break;case 5:this.description+=" Chrome.";break;case 6:this.description+=" Flock.";break;case 99:this.description="Download Internet Explorer 8 now. It's faster, safer & easier than ever!";this.clickUrl="http://clk.atdmt.com/MRT/go/159284059/direct;wi.1;hi.1/01/";this.impressionUrl="http://view.atdmt.com/MRT/view/159284059/direct;wi.1;hi.1/01/";break;default:break}};this.init()}function msIe6Obj(linkCur){this.bType=getBrowserType();this.linkCur=linkCur;this.title="Upgrade To Internet Explorer 8.";this.description="Increased security and better performance. It's everything you want from a business-ready browser.";this.landingUrl="www.microsoft.com/ie8";this.clickUrl="http://clk.atdmt.com/MRT/go/148403146/direct/01/";this.impressionUrl="http://view.atdmt.com/MRT/view/148403146/direct/01/";this.init=function(){switch(this.bType){case 1:if(bIE6){this.title="Your Business-Ready Browser. Made Better.";this.description="Upgrade to Internet Explorer 8 today. Save time and mitigate security risk. Deploy it now."}break;case 99:this.description="Download Internet Explorer 8 now. It's faster, safer & easier than ever!";this.clickUrl="http://clk.atdmt.com/MRT/go/142214868/direct/01/";this.impressionUrl="http://view.atdmt.com/MRT/view/142214868/direct/01/";break;default:break}};this.init()}function hideFlashTail(linkID){document.getElementById("konaFlashBubble"+linkID).hide_flash_tail()}function callFromFlash(info){var val=info[0];var idx=info[1];var adlinkID=info[2];if(idx.toString()=="cashback"){switch(val.toString()){case"tail":showTail=false;break;case"info":location.href="http://www.kontera.com/";break;case"close":closeFlashKonaLayer(adlinkID);break;case"report":descriptionMouseClick(null,null,0,adlinkID);break;default:break}}return false}function closeFlashKonaLayer(layerCur){if(konaLinks.getInfo(layerCur).isSpecialType("SPECIAL_TYPE_GHOST")){konaLayers.getLayerObj(movieLayerIndex).totalOpenTime=0;konaLayers.getLayerObj(movieLayerIndex).openedTime=flashMovieOpenedTime;konaLinks.getInfo(movieLayerIndex).wasImpression=false;reportLayerImpression(movieLayerIndex,0)}closeKonaLayer(layerCur)}function getKosmixClickUrl(adlinkCur){var link=konaLinks.get(adlinkCur);var info=konaLinks.getInfo(adlinkCur);var infoArr=link.dcAdlinkInfo;var clickUrlArr=unescape(info.clickUrl).split("#$#");if(clickUrlArr.length==0||infoArr.length==0){return}var url=unescape(info.get3rdPartyClickRedirect(RE_MODE_REGULAR))+KOSMIX_URL+info.keyword+clickUrlArr[1];return url}function konaFlashRedirect(playerId,url){linkInfo.isClickOnRM=true;var layerCur=konaRichMedia.getLayerCur(playerId);var layer=konaLinks.getInfo(layerCur);layer.clickUrl=escape(url);descriptionMouseClick(null,null,0,layerCur)}function showKonaThirdPartyIframe(adlink_ID){if(kona$("konteraThirdPartyIframe"+adlink_ID)){return}var data=konaLinks.getInfo(adlink_ID).thirdPartyIframeObject;var parentDiv=kona$("konteraThirdPartyWrapper"+adlink_ID);var IframeThirdParty=document.createElement("iframe");IframeThirdParty.setAttribute("id","konteraThirdPartyIframe"+adlink_ID);IframeThirdParty.style.position="relative";IframeThirdParty.style.left=0+"px";IframeThirdParty.style.top=0+"px";IframeThirdParty.style.width=300+"px";IframeThirdParty.style.height=250+"px";IframeThirdParty.frameBorder=0;IframeThirdParty.scrolling="no";IframeThirdParty.style.overflow="hidden";if(data.IframeSrc){IframeThirdParty.src=data.IframeSrc}else{IframeThirdParty.src="about:blank"}parentDiv.appendChild(IframeThirdParty);if(data.Content){var iframeWin;var content="<html><head>"+data.Style+"</head><body>"+data.Content+"</body></html>";setTimeout(function(){if(IframeThirdParty.contentDocument){iframeWin=IframeThirdParty.contentDocument}else{if(IframeThirdParty.contentWindow){iframeWin=IframeThirdParty.contentWindow.document}}iframeWin.open("text/html");if(!bIE8){iframeWin.writeln(content)}else{iframeWin.write(content)}if(getBrowserType()==2||getBrowserType()==22||getBrowserType()==23){iframeWin.close()}},0)}}function TestingInfo(){this.url="";this.initTime=0;this.analysisTime=0;this.markupTime=0;this.serverLinks=0;this.markedLinks=0;this.backupLinks=0;this.chunkNum=0;this.wasAnalysis=false;this.init=function(){this.url=document.location.href};this.setChunkTime=function(time){testingInfo.wasAnalysis=true;this.analysisTime+=time;this.chunkNum=pageInfo.cur+1;if(dc_showAlerts){var time_prefix={METHOD_TEXT_RANGE:"ProcessPage : ",METHOD_TREE:"Mozilla Walk : ",METHOD_JQUERY:"jQuery Walk : "};alert(time_prefix[fetchMethod]+time)}};this.setMarkupTime=function(time){this.markupTime=time;if(dc_showAlerts){alert("Marking : "+this.markupTime);alert("Backuped "+this.backupLinks+", Marked "+(this.markedLinks-this.backupLinks))}};this.setInitTime=function(time){testingInfo.initTime=time;if(dc_showAlerts){alert("konaInit : "+testingInfo.initTime)}};this.setMarkedNum=function(totalMarked,backuped){this.markedLinks=totalMarked;this.backupLinks=backuped};this.end=function(){createCookie("url",this.url,1);createCookie("it",this.initTime,1);createCookie("at",this.analysisTime,1);createCookie("mt",this.markupTime,1);createCookie("sl",this.serverLinks,1);createCookie("ml",this.markedLinks,1);createCookie("bl",this.backupLinks,1);createCookie("cn",this.chunkNum,1);createCookie("wa",this.wasAnalysis?1:0,1);createCookie("bt",getBrowserType(),1);loadScript(testCenterUrl,false)};this.init()}function TestInfo(testName,timeStamp){this.name=testName;this.timeStamp=timeStamp;this.values=new Array();this.addValue=function(value,percentage,mask){this.values.push(new ValueInfo(value,percentage,mask))}}function setAbTestCookie(paramName,paramValue,mask,abTestTimeStamp){var cookieName=String.format("{0}{1}","konaAB",paramName);var cookieValue=String.format("{0}|{1}|{2}",paramValue,mask,abTestTimeStamp);createCookie(cookieName,cookieValue,14)}function hasABTestCookie(paramName,abTestTimeStamp){var result=null;var cookieName=String.format("{0}{1}","konaAB",paramName);var cookieValue=readCookie(cookieName);if(cookieValue.length>0){var cookieValueArray=cookieValue.split("|");var testInfo=new TestInfo(paramName,cookieValueArray[2]);if(testInfo.timeStamp.toLowerCase()==abTestTimeStamp.toLowerCase()){result=new ValueInfo(cookieValueArray[0],null,cookieValueArray[1])}}return result}function initAbTest(testInfo){var valueInfo=null;try{valueInfo=hasABTestCookie(testInfo.name,testInfo.timeStamp);if(valueInfo){paramVal=valueInfo.value;konaTweakMode|=valueInfo.mask}else{var randNumber=Math.random()*100;var sumPercentage=0;var vInfo=null;for(var i=0;i<testInfo.values.length;i++){vInfo=testInfo.values[i];sumPercentage+=vInfo.percentage;if(randNumber<=sumPercentage){konaTweakMode|=vInfo.mask;setAbTestCookie(testInfo.name,vInfo.value,vInfo.mask,testInfo.timeStamp);valueInfo=vInfo;break}}}eval(validateAndSet(testInfo.name,valueInfo.value))}catch(err){}}function ContentTag(tagType,tagName,attributeName,attributeValue){this.tagType=tagType;this.tagName=tagName;this.attributeName=attributeName?attributeName:"";this.attributeValue=attributeValue?attributeValue:"";this.init=function(){};this.isMatch=function(node){if(node.nodeName.toLowerCase()==this.tagName){if(this.attributeName.length==0){return true}return this.isAttrMatch(node)}return false};this.isAttrMatch=function(node){var attr=null;attr=node.getAttributeNode(this.attributeName);if(attr!=null&&attr.nodeValue&&((this.attributeValue.length==0)||attr.nodeValue.toLowerCase().indexOf(this.attributeValue)!=-1)){return true}return false};this.init()}function ContentTags(infoUnit){this.tags=new Array();this.filterTags=null;this.contentTagRegExp0=new RegExp("([^<\\s]+)");this.contentTagRegExp1=new RegExp("([^<\\s]+)[\\s]+([^>\\s]+)");this.contentTagRegExp2=new RegExp("([^<\\s]+)[\\s]+([^>\\s]+)[\\s]*=[\\s]*([^>\\s]+)");this.add=function(cTag){this.tags.push(cTag)};this.getTagNamesList=function(tagType){var res=new Array();for(var i=0;i<this.tags.length;i++){if(this.tags[i].tagType==tagType){res.push(this.tags[i].tagName)}}return res};this.isMatch=function(node,tagType){var tags=contentTags.getByType(TAG_TYPE_FILTER);for(var i=0;i<tags.length;i++){if(tags[i].isMatch(node)){return true}}return false};this.getByType=function(tagType){if(tagType!=TAG_TYPE_FILTER||this.filterTags==null){var res=new Array();for(var i=0;i<this.tags.length;i++){if(this.tags[i].tagType==tagType){res.push(this.tags[i])}}}else{res=this.filterTags}if(tagType==TAG_TYPE_FILTER&&this.filterTags==null){this.filterTags=res}return res};this.parseToTag=function(str,tagType){var res=null;var match=str.match(this.contentTagRegExp2);if(match){res=new ContentTag(tagType,match[1],match[2],match[3])}else{match=str.match(this.contentTagRegExp1);if(match){res=new ContentTag(tagType,match[1],match[2])}else{match=str.match(this.contentTagRegExp0);if(match){res=new ContentTag(tagType,match[1])}}}if(res!=null){this.add(res)}};this.init=function(infoUnit){this.add(new ContentTag(TAG_TYPE_CONTENT,infoUnit.dc_contentTag,infoUnit.dc_contentTagAttr,infoUnit.dc_contentTagAttrVal));this.add(new ContentTag(TAG_TYPE_CONTENT,"div","class","konabody"));this.add(new ContentTag(TAG_TYPE_FILTER,infoUnit.dc_restrictedTag,infoUnit.dc_restrictedTagAttr,infoUnit.dc_restrictedTagAttrVal));this.add(new ContentTag(TAG_TYPE_FILTER,"div","class","konafilter"));for(var i=0;i<infoUnit.dc_contentTags.length;i++){this.parseToTag(infoUnit.dc_contentTags[i],TAG_TYPE_CONTENT)}for(var i=0;i<infoUnit.dc_restrictedTags.length;i++){this.parseToTag(infoUnit.dc_restrictedTags[i],TAG_TYPE_FILTER)}};this.init(infoUnit)}function OnClick(e,index,aElement,iLinkID,clickType){if(e){konaEventCancel(e)}if(adPreviewMode){return}if(kona$("konaMovieFlashWrap")!=null&&konaLayers!=null){var layerIsShown=konaLayers.getLayerObj(movieLayerIndex);if(layerIsShown.isShown){return}}if((oneClickPerLink&&konaLinks.get(iLinkID).clicked||(konaLinks.get(iLinkID).status!=LOADED&&konaLinks.get(iLinkID).status!=IMAGE_LOADING&&konaLinks.get(iLinkID).status!=IMAGE_DONE_LOADING&&konaLinks.get(iLinkID).status!=YAHOO_LOADING))){if(aElement){aElement.removeAttribute("href");aElement.onclick=new function(){return false}}return false}else{konaLinks.get(iLinkID).clicked=true}var infoArr=konaLinks.get(iLinkID).dcAdlinkInfo;if(infoArr.length==0){return false}else{if(konaLinks.getInfo(iLinkID).thirdPartyIframeObject){if(!(konaLinks.getInfo(iLinkID).thirdPartyIframeObject.enableClickOnKW)){return}}if(infoArr[0].isAlternativeLayer()){var searchTerm=((kona$("konaSearchText_"+iLinkID)!=null)?kona$("konaSearchText_"+iLinkID).value:infoArr[0].keyword);infoArr[0].clickUrl=urlEncode(infoArr[0].clickUrl.replace(/<TERM>/g,searchTerm))}else{if(konaLinks.getInfo(iLinkID).isSpecialType("SPECIAL_TYPE_YAHOO_SPONSORED")){var searchTerm=((kona$("konaSearchText_"+iLinkID)!=null)?kona$("konaSearchText_"+iLinkID).value:infoArr[0].keyword);infoArr[0].clickUrl=infoArr[0].clickUrl.replace(/__TERM/g,searchTerm)}}if(konaLinks.get(iLinkID).isKosmix()){var url=getKosmixClickUrl(iLinkID)}else{if(infoArr[0].thirdPartyIframeObject){if(infoArr[0].thirdPartyIframeObject.clickonKWredirect){var url=infoArr[0].thirdPartyIframeObject.clickonKWredirect}else{var url=infoArr[0].getClickRedirect(clickType)}}else{var url=infoArr[0].getClickRedirect(clickType)}}if(infoUnit.dc_open_new_win!="yes"){redirectLock.lock((infoArr[0].wasImpression?0:1)+(infoArr[0].needsPixelImpression()?1:0)+(isExternalPublisher?1:0))}redirectLock.clicker=kona$("AdLinkLayerClick");impressions.reportImpression(iLinkID);if(isExternalPublisher&&infoUnit.dc_redirect3PartyUrl!=null){sendHttpRequest(infoUnit.dc_redirect3PartyUrl+konaRequestId)}if(konaLinks.getInfo(iLinkID).isSpecialType("SPECIAL_TYPE_DATA_CAPTURE")||(konaLinks.getInfo(iLinkID).isSpecialType("SPECIAL_TYPE_DATA_CAPTURE_KOHL")&&clickType==RE_MODE_DATACAP_CLICK)){infoArr[0].reportCaptureClick(url)}else{if(konaLinks.get(iLinkID).IsNewExpandableLayer()){kona$("konaFlashBubble"+iLinkID).SetVariable("theTestVar","inNewExpandable"+iLinkID);if(konaLinks.getInfo(iLinkID).expandableLinkClickBehavior){switch(konaLinks.getInfo(iLinkID).expandableLinkClickBehavior){case"first":konaLayers.setStick(iLinkID,true);hideFlashTail(iLinkID);break;case"second":setTimeout('expandKonaLayerSmallClick("'+iLinkID+'",1);',450);break;case"3rd":konaRedirect(url,true,true);break}}}else{if(konaLayers!=null){hideKonaLayer(iLinkID)}var isRegularClick=true;konaRedirect(url,isRegularClick)}}}}function RedirectLock(){this.isLocked=false;this.clicker=null;this.action=null;this.maxWaitTimeout=null;this.locks=0;this.images=new Array();this.init=function(){this.defaultClicker()};this.defaultClicker=function(){this.clicker=kona$("AdLinkLayerClick")};this.reset=function(){this.isLocked=false;clearTimeout(redirectLock.maxWaitTimeout);this.maxWaitTimeout=null;this.locks=0};this.setAction=function(actionStr){this.action=actionStr;this.maxWaitTimeout=window.setTimeout("redirectLock.timeout()",5000)};this.lock=function(num){if(num>0){this.isLocked=true;this.locks=num}};this.timeout=function(){if(this.isLocked){this.reset();eval(this.action)}};this.unlock=function(){if(this.isLocked){this.locks--;if(this.locks<=0){this.reset();eval(this.action)}}};this.addListeners=function(image){if(this.isLocked){var f=function(){redirectLock.unlock()};image.onload=f;image.onabort=f;image.onerror=f;this.images.push(image)}};this.init()}function konaRedirect(redirectStr,isRegularClick,forceNewWindow){if(typeof(forceNewWindow)=="undefined"){forceNewWindow=false}if(redirectLock.isLocked){redirectLock.setAction("konaRedirect('"+redirectStr+"')");return}var clicker=redirectLock.clicker;clicker.href=redirectStr;if(isRegularClick){if(infoUnit.dc_open_new_win=="yes"||forceNewWindow){if(bIE){clicker.target="_new";clicker.click()}else{window.open(redirectStr)}}else{if(bIE){clicker.target="_top";clicker.click()}else{window.location=redirectStr}}}else{if(open_new_win_search!="yes"){if(bIE){clicker.target="_top";clicker.click()}else{window.location=redirectStr}}else{if(bIE){clicker.target="_new";clicker.click()}else{window.open(redirectStr)}}}}function konaEventCancel(event){konaEventUnbubble(event);if(event.cancelable){event.preventDefault()}else{event.returnValue=false}}function konaEventUnbubble(event){event.cancelBubble=true;if(event.stopPropagation){event.stopPropagation()}}function konaExpandableRedirect(iLinkID,url,clickType,newWindow){konaLinks.get(iLinkID).clicked=true;var layer=konaLinks.getInfo(iLinkID);layer.clickUrl=encodeURIComponent(url);var infoArr=konaLinks.get(iLinkID).dcAdlinkInfo;var redirectStr=infoArr[0].getClickRedirect(clickType);var currClicker=kona$("AdLinkLayerClick");redirectLock.clicker=currClicker;if(newWindow==undefined||newWindow==null){newWindow=true}hideKonaLayer(iLinkID);konaRedirect(redirectStr,true,newWindow)}function callAddExpandableContentInfo(linkCur,str){if(typeof(addExpandableContentInfo)!="undefined"){addExpandableContentInfo(linkCur,str)}else{setTimeout('callAddExpandableContentInfo("'+linkCur+'","'+str+'");',500)}}function addExpandableContentInfo(linkCur,str){baseCampaignUrl=HTTP_KONTERA_BASE+"/javascript/lib/flash/campaigns/";initExpandParams(linkCur,str)}var collectExpandParams={expandableMoviePlayer:FLASH_SWF_BASE+"JWFLVmediaPlayer.swf",expandableKonteraTxt:"Kontera",expandableKonteraToolTip:"Powered by Kontera",expandableKonteraColor:"0x7ca330",expandableSmallBGStartColor:"0xffffff",expandableSmallBGEndColor:"0xffffff",expandableSmallBGHeadHeight:"24",expandableSmallBGHeadStartColor:"0xFEFEFE",expandableSmallBGHeadEndColor:"0xEAEAEA",expandableSmallBGHeadOnStartColor:"0xFEFEFE",expandableSmallBGHeadOnEndColor:"0xE2E2E2",expandableSmallBgColor:"CCCCCC",expandableSmallHeadlineTxt:"Advertisement",expandableSmallDragAlpha:"30",expandableSmallDragTop:"0",expandableSmallDragBottom:"40",expandableSmallTailWidth:"36",expandableSmallTailHeight:"38",expandableSmallTailColor:"0xffffff",expandableSmallTailBorderColor:"0x626262",expandableSmallTailMargin:"35",expandableSmallTailBgPic:HTTP_KONTERA_BASE+"/javascript/lib/imgs/callOutPic.png",expandableSmallTailBgPicOver:HTTP_KONTERA_BASE+"/javascript/lib/imgs/callOutPicOver.png",expandableSmallTailBgPicShadow:HTTP_KONTERA_BASE+"/javascript/lib/imgs/callOutShadowPic.png",expandableSmallSwfMargin:"5",expandableBigAutoStart:"false",expandableBigVolume:"67",expandableBigMinReportTime:"3",expandableBigLearnMoreButtonText:"Learn More",expandableBigBrandingStripUrl:"",expandableSmallSwfWidth:"299",expandableSmallSwfHeight:"250",expandableSmallWidth:"299",expandableSmallHeight:"280",expandableSmallBGpic:"",expandableSmallBGOnpic:"",expandableSmallPublisherLogo:HTTP_KONTERA_BASE+"/javascript/lib/imgs/emptyPixel.png",expandableSmallPublisherLogoUrl:"http://www.podcastgo.com/",expandableSmallPublisherLogoToolTip:"this is the publisher logo tooltip",expandableSmall_Url:"",expandableBig_Url:"",expandableBigUrlWidth:"450",expandableBigUrlHeight:"375",expandableBigWidth:"450",expandableBigHeight:"407",expandableBigBGpic:"",expandableBigPublisherLogo:HTTP_KONTERA_BASE+"/javascript/lib/imgs/emptyPixel.png",expandableBigPublisherLogoUrl:"http://www.podcastgo.com/",expandableBigPublisherLogoToolTip:"this is the big publisher logo tooltip",expandableBigBrandingStripPosition:"bottom",expandableBigBrandingStripWidth:"447",expandableBigBrandingStripHeight:"38",expandableWasImpression:false,expandableLinkClickBehavior:"second",expandableWithinSmallLayer:"",expandableFloatingUnit_Url:"",expandableClickUnitRedirect:""};var oldExpandables=function(){campaigns={Kellogg:"http://expandable#*#campaign#=#Kellogg#|#Small_Url#=#konteraLoader.swf#|#Big_Url#=#500x250_grab.swf#|#BigUrlWidth#=#500#|#BigUrlHeight#=#250#|#BigWidth#=#500#|#BigHeight#=#282#|#",MS:"http://expandable#*#campaign#=#MS#|#Small_Url#=#msx70380_coun_cta1_300x250_ms.swf#|#Big_Url#=#msft_v2.swf#|#",RiceKrispies:"http://expandable#*#campaign#=#RiceKrispies#|#Small_Url#=#kellogsRecipe_preExpand.swf#|#Big_Url#=#kellogsRecipe_expand.swf#|#",NBCJayLeno:"http://expandable#*#campaign#=#NBCJayLeno#|#Small_Url#=#NBCJayLeno_preExpand.swf#|#Big_Url#=#NBCJayLeno_expand.swf#|#ClickUnitRedirect#=#http://www.thejaylenoshow.com#|#",NBCJayLeno2:"http://expandable#*#campaign#=#NBCJayLeno2#|#Small_Url#=#NBCJayLeno_preExpand2.swf#|#Big_Url#=#NBCJayLeno_expand2.swf#|#",snapple:"http://floatingUnit#*#campaign#=#snapple#|#SmallSwfWidth#=#324#|#SmallSwfHeight#=#336#|#SmallWidth#=#324#|#SmallHeight#=#300#|#LinkClickBehavior#=#3rd#|#IsImpression#=#true#|#FloatingUnit_Url#=#snapple.swf#|#",TGIF:"http://clearPixel#*#url#=#http://ad.doubleclick.net/imp;v1;f;216545066;0-0;0;38472506;1|1;32641528|32659405|1;;cs=s%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]#|##+#http://floatingUnit#*#campaign#=#TGIF#|#SmallSwfWidth#=#150#|#SmallSwfHeight#=#150#|#SmallWidth#=#150#|#SmallHeight#=#120#|#LinkClickBehavior#=#3rd#|#IsImpression#=#true#|#FloatingUnit_Url#=#TGIF_floating_unit.swf#|#",irelandTourism:"http://clearPixel#*#url#=#http://ad.doubleclick.net/ad/N3867.126834.2012298720521/B3845986.8;sz=1x1;ord=[timestamp]#|##+#http://floatingUnit#*#campaign#=#irelandTourism#|#SmallSwfWidth#=#321#|#SmallSwfHeight#=#279#|#SmallWidth#=#321#|#SmallHeight#=#279#|#LinkClickBehavior#=#3rd#|#IsImpression#=#true#|#FloatingUnit_Url#=#Ireland_branded_v3.swf#|#"},getCampaign=function(name){for(var i in campaigns){if(i==name){return campaigns[i]}}return false};return{get:function(name){return getCampaign(name)}}}();function parseParamsIntoObj(str){paramArray=new Array();if(str.indexOf("#*#")>-1){str=str.split("#*#")[1];paramArray=str.split("#|#");for(i=0;i<paramArray.length;i++){param=paramArray[i].split("#=#")[0];value=paramArray[i].split("#=#")[1];if(typeof(value)!="undefined"){if(param.indexOf("_Url")>-1){value=baseCampaignUrl+value}if(param!="campaign"){collectExpandParams["expandable"+param]=value}}}}}function initExpandParams(linkCur,newStr){parseParamsIntoObj(newStr);konaLinks.getInfo(linkCur).initExpandableParams(collectExpandParams,propertysArr)}var propertysArr=new Array();propertysArr.push("expandableMoviePlayer");propertysArr.push("expandableKonteraTxt");propertysArr.push("expandableKonteraToolTip");propertysArr.push("expandableKonteraColor");propertysArr.push("expandableSmallBGStartColor");propertysArr.push("expandableSmallBGEndColor");propertysArr.push("expandableSmallBGHeadHeight");propertysArr.push("expandableSmallBGHeadStartColor");propertysArr.push("expandableSmallBGHeadEndColor");propertysArr.push("expandableSmallBGHeadOnStartColor");propertysArr.push("expandableSmallBGHeadOnEndColor");propertysArr.push("expandableSmallBgColor");propertysArr.push("expandableSmallHeadlineTxt");propertysArr.push("expandableSmallDragAlpha");propertysArr.push("expandableSmallDragTop");propertysArr.push("expandableSmallDragBottom");propertysArr.push("expandableSmallTailWidth");propertysArr.push("expandableSmallTailHeight");propertysArr.push("expandableSmallTailColor");propertysArr.push("expandableSmallTailBorderColor");propertysArr.push("expandableSmallTailMargin");propertysArr.push("expandableSmallTailBgPic");propertysArr.push("expandableSmallTailBgPicOver");propertysArr.push("expandableSmallTailBgPicShadow");propertysArr.push("expandableSmallSwfMargin");propertysArr.push("expandableBigAutoStart");propertysArr.push("expandableBigVolume");propertysArr.push("expandableBigMinReportTime");propertysArr.push("expandableBigLearnMoreButtonText");propertysArr.push("expandableBigBrandingStripUrl");propertysArr.push("expandableSmallSwfWidth");propertysArr.push("expandableSmallSwfHeight");propertysArr.push("expandableSmallWidth");propertysArr.push("expandableSmallHeight");propertysArr.push("expandableSmallBGpic");propertysArr.push("expandableSmallBGOnpic");propertysArr.push("expandableSmallPublisherLogo");propertysArr.push("expandableSmallPublisherLogoUrl");propertysArr.push("expandableSmallPublisherLogoToolTip");propertysArr.push("expandableSmall_Url");propertysArr.push("expandableBig_Url");propertysArr.push("expandableBigUrlWidth");propertysArr.push("expandableBigUrlHeight");propertysArr.push("expandableBigWidth");propertysArr.push("expandableBigHeight");propertysArr.push("expandableBigBGpic");propertysArr.push("expandableBigPublisherLogo");propertysArr.push("expandableBigPublisherLogoUrl");propertysArr.push("expandableBigPublisherLogoToolTip");propertysArr.push("expandableBigBrandingStripPosition");propertysArr.push("expandableBigBrandingStripWidth");propertysArr.push("expandableBigBrandingStripHeight");propertysArr.push("expandableWasImpression");propertysArr.push("expandableLinkClickBehavior");propertysArr.push("expandableIsImpression");propertysArr.push("expandableWithinSmallLayer");propertysArr.push("expandableFloatingUnit_Url");propertysArr.push("expandableClickUnitRedirect");function expandKonaBuilder(){this.styleRE=new RegExp("#STYLE#","g");this.descRE=new RegExp("#DESCRIPTION#","g");this.plateIndexRE=new RegExp("#PLATEINDEX#","g");this.layerIndexRE=new RegExp("#LAYERINDEX#","g");this.titleRE=new RegExp("#TITLE#","g");this.urlRE=new RegExp("#URL#","g");this.block1RE=new RegExp("#BLOCK1#","g");this.block2RE=new RegExp("#BLOCK2#","g");this.block3RE=new RegExp("#BLOCK3#","g");this.colspanRE=new RegExp("#COLSPAN#","g");this.linkInfo=null;this.adlinkCur=null;this.plateCur=null;this.layerType=null;this.tabs=null;this.isOneSearch=null;this.target=infoUnit.dc_open_new_win=="yes"?"_new":"_top";this.paintSearchInfo=false;this.getLayer=function(adlinkCur,plateCur,linkInfo){this.adlinkCur=adlinkCur;this.plateCur=plateCur;this.linkInfo=linkInfo?linkInfo:konaLinks.getInfo(adlinkCur,plateCur);this.layerType=this.linkInfo.getLayerType();this.tabs=konaLayers.getSearchInfos();this.isOneSearch=(this.tabs.length==1);this.paintSearchInfo=konaLayers.isShowSearch(this.adlinkCur);if(adlinkCur==movieLayerIndex){return this.getMovieSuperDIV()}else{return this.getSuperDIV()}};this.getContentBlock=function(){contextBlock="";if(infoUnit.dcAL_LY_descActive.toLowerCase()=="yes"){contextBlock+=this.getActionBlock()}return contextBlock};this.getExpandableLayer=function(){var timeStamp=new Date().getTime();return"<div id='konaFlashWrap#PLATEINDEX#-#LAYERINDEX#' class='konaFlashWrap' style='border:0px solid green;width:"+parseInt(parseFloat(this.linkInfo.expandableSmallWidth)+10)+"px;Height:"+parseInt(parseFloat(this.linkInfo.expandableSmallHeight)+parseFloat(this.linkInfo.expandableSmallTailHeight)*1+10*1)+"px'><div id='konaFlashDrag#PLATEINDEX#-#LAYERINDEX#' class='konaFlashDrag' style='cursor:move;z-index:100;position:absolute;width:198px;height:26px;top:0px;background-color:#ffffff;opacity:0;filter:alpha(opacity=0.0);'></div><div id='konaExpandFlashWrap#PLATEINDEX#-#LAYERINDEX#' class='konaExpandFlashWrap'><div id='konaFlashContent#PLATEINDEX#-#LAYERINDEX#' class='konaExpandFlashContent' style='width:"+parseInt(parseFloat(this.linkInfo.expandableSmallWidth)+10)+"px;height:"+parseInt(parseFloat(this.linkInfo.expandableSmallHeight)*1+parseFloat(this.linkInfo.expandableSmallTailHeight)*1+10*1)+"px;'></div></div></div>"};this.getActionBlock=function(){return"<div id='konaActionBlock#PLATEINDEX#-#LAYERINDEX#' onmouseover='descriptionMouseOver(event,this,#PLATEINDEX#,#LAYERINDEX#);' onmouseout='descriptionMouseOut(event,this,#PLATEINDEX#,#LAYERINDEX#);'>"+this.getExpandableLayer()+"</div>"};this.getSuperDIV=function(){var layer=document.createElement("div");layer.id=KONA_LAYER_ID+this.adlinkCur;layer.className="konaLayer"+(this.linkInfo.konaLayerMode==LAYER_MODE_CLICK?" CBL":"");layer.style.width=parseInt(this.linkInfo.expandableSmallWidth)*1+10+"px";layer.style.height=parseFloat(this.linkInfo.expandableSmallHeight)*1+parseFloat(this.linkInfo.expandableSmallTailHeight)*1+10+"px";layer.style.border="0px solid red";layer.innerHTML=this.getActionBlock().replace(this.layerIndexRE,this.adlinkCur).replace(this.plateIndexRE,0);return layer};this.getMovieSuperDIV=function(){var layer=document.createElement("div");layer.id=KONA_MS_MOVIE_LAYER_ID;layer.className="konaBigFlashWrap";layer.innerHTML=this.getMS_MOVIELayer().replace(this.layerIndexRE,this.adlinkCur).replace(this.plateIndexRE,0);return layer}}function closeExpandKonaLayer(layerCur){konaLayers.close(layerCur);impressions.layerClosed(layerCur);impressions.adlinkChanged(-1)}function showExpandKonaFlash(stat,adlinkID){showTail=true;tailStatus=stat;var position_params=setExpandableTailPosition(stat);if(!konaLayers.isExpandBig(adlinkID)){smallLayerPosition(adlinkID,position_params)}createExpandPlayer(stat,adlinkID)}function smallLayerPosition(adlinkID,position_params){try{kona$("konaFlashDrag0-"+adlinkID).style.left=position_params[0]+"px";kona$("konaFlashDrag0-"+adlinkID).style.top=position_params[1]+"px"}catch(err){setTimeout('smallLayerPosition("'+adlinkID+'","'+position_params+'");',450)}}function hideFlashTail(linkID){try{kona$("konaFlashBubble"+linkID).hide_flash_tail()}catch(err){setTimeout('hideFlashTail("'+linkID+'");',450)}}function setExpandableTailPosition(stat){var xPos,yPos;switch(stat){case"BL":xPos=85;yPos=25;expandDragTopPoz=(this.linkInfo.expandableSmallDragTop);break;case"BR":xPos=85;yPos=25;expandDragTopPoz=(this.linkInfo.expandableSmallDragTop);break;case"TL":xPos=85;yPos=40;expandDragTopPoz=(this.linkInfo.expandableSmallDragBottom);break;case"TR":xPos=85;yPos=40;expandDragTopPoz=(this.linkInfo.expandableSmallDragBottom);break}var returnArr=new Array(xPos,yPos,expandDragTopPoz);return returnArr}function closeExpandFlashKonaLayer(layerCur){if(konaLinks.getInfo(layerCur).getSpecialType()==SPECIAL_TYPE_GHOST){konaLayers.getLayerObj(movieLayerIndex).totalOpenTime=0;konaLayers.getLayerObj(movieLayerIndex).openedTime=flashMovieOpenedTime;konaLinks.getInfo(movieLayerIndex).wasImpression=false;reportLayerImpression(movieLayerIndex,0)}closeExpandKonaLayer(layerCur)}function createExpandPlayer(tail_direction,adlinkID){var flashName=(konaLinks.get(adlinkID).IsNewExpandableLayer())?"konaFlashExpand.swf":"konaFlashExpand.swf";var konaFlash=new SWFObject(""+FLASH_SWF_BASE+flashName,"konaFlashBubble"+adlinkID,parseInt(this.linkInfo.expandableSmallWidth)+10,parseInt(parseFloat(this.linkInfo.expandableSmallHeight)+parseFloat(this.linkInfo.expandableSmallTailHeight)+10),"8","#ffffff");konaFlash.addParam("allowScriptAccess","always");konaFlash.addVariable("tail_direction",tail_direction);konaFlash.addVariable("adlinkID",adlinkID);konaFlash.addParam("wmode","transparent");konaFlash.write("konaFlashContent0-"+adlinkID);kona$("konaFlashBubble"+adlinkID).style.width=parseInt(this.linkInfo.expandableSmallWidth)*1+10*1+"px";if(konaLayers.isExpandBig(adlinkID)){setLayerSize(parseInt(this.linkInfo.expandableSmallWidth)*1+10*1,parseInt(this.linkInfo.expandableSmallHeight)+parseInt(this.linkInfo.expandableSmallTailHeight)*1+10*1,adlinkID,tail_direction)}}function createBigExpandPlayer(xyPos,adlinkID){var flashName="";var movieUrl="";var defaultImage="";if(konaLinks.get(adlinkID).IsNewExpandableLayer()){flashName="konaGhostLarge.swf";movieUrl="http://images.kontera.com/IMAGE_DIR/FLV/ghost2.flv";defaultImage="GhostMovieDefault.jpg"}var playerWidth=(konaLayers.isMSLayer(adlinkID))?"278":"235";kona$(KONA_MS_MOVIE_LAYER_ID).style.left=calcMoviePos(xyPos)[0]+"px";kona$(KONA_MS_MOVIE_LAYER_ID).style.top=calcMoviePos(xyPos)[1]+"px";var konaBigFlash=new SWFObject(""+FLASH_SWF_BASE+flashName,"konaMovieBubble","470","395","8","#ffffff");konaBigFlash.addParam("allowScriptAccess","always");konaBigFlash.addParam("wmode","transparent");konaBigFlash.addParam("allowfullscreen","false");konaBigFlash.addVariable("file",movieUrl);konaBigFlash.addVariable("image",STYLE_IMAGE_BASE+defaultImage);konaBigFlash.addVariable("displaywidth","442");konaBigFlash.addVariable("displayheight","332");konaBigFlash.addVariable("backcolor","0xffffff");konaBigFlash.addVariable("screencolor","0xffffff");konaBigFlash.addVariable("frontcolor","0x666666");konaBigFlash.addVariable("lightcolor","0x557722");konaBigFlash.addVariable("autostart","true");konaBigFlash.addVariable("volume","80");konaBigFlash.addVariable("width",playerWidth);konaBigFlash.addVariable("height","350");konaBigFlash.addVariable("showdigits","false");flashMovieOpenedTime=(new Date()).getTime();konaBigFlash.write("konaBigFlashContent");kona$("konaMovieBubble").style.width=470+"px"}function callFromExpandFlash(info){var val=info[0];var idx=info[1];var adlinkID=info[2];if(idx.toString()=="sml"){switch(val.toString()){case"tail":showTail=false;break;case"info":location.href="http://www.kontera.com/";break;case"close":closeExpandKonaLayer(adlinkID);break;case"play":descriptionMouseClick(null,null,0,adlinkID);break;default:break}}else{if(idx.toString()=="big"){switch(val.toString()){case"info":location.href="http://www.kontera.com/";break;case"close":closeExpandKonaLayer(movieLayerIndex);break;default:break}}}return false}function prepareFlashParams(linkInfo){var myObject=new Object();for(var i=0;i<propertysArr.length;i++){eval("myObject."+propertysArr[i]+" = linkInfo."+propertysArr[i])}return myObject}function sendLayerDimentionsObjToFlash(adlinkID){return prepareFlashParams(konaLinks.getInfo(adlinkID,0))}function setDragSize(theDragWidth,theDragLeftPoz,theDragTopPoz,adlinkID){kona$("konaFlashDrag0-"+adlinkID).style.width=theDragWidth+"px";kona$("konaFlashDrag0-"+adlinkID).style.left=theDragLeftPoz+"px";kona$("konaFlashDrag0-"+adlinkID).style.top=theDragTopPoz+"px"}function removeDrag(adlinkID){kona$("konaFlashDrag0-"+adlinkID).style.width=0;kona$("konaFlashDrag0-"+adlinkID).style.left=0;kona$("konaFlashDrag0-"+adlinkID).style.top=0}function setBigLayer(bigLayerWidth,bigLayerHeight,adlinkID){konaLayers.isExpandBigArr[adlinkID]=true;setLayerSize(bigLayerWidth,bigLayerHeight,adlinkID)}function kona3rdPartyReport(adlinkID,url){konaLinks.getInfo(adlinkID).reportCaptureClick(url)}function expandKonaLayerSmallClick(iLinkID,clickType){try{if((konaFlashFunction(("konaFlashBubble"+layerCur),"js_getWhatLayerActive",null,true)=="myBigLayer")){return}}catch(e){}try{kona$("konaFlashBubble"+iLinkID).clickToExpand()}catch(err){setTimeout('expandKonaLayerSmallClick("'+iLinkID+'","'+clickType+'");',450);return}konaLayers.setStick(iLinkID,true);impressions.reportImpression(iLinkID);if(konaLinks.getInfo(iLinkID).expandableWasImpression==true){return}konaLinks.getInfo(iLinkID).expandableWasImpression=true;var infoArr=konaLinks.get(iLinkID).dcAdlinkInfo;var redirectStr=infoArr[0].getClickRedirect(clickType,true);sendHttpRequest(redirectStr)}function expandKonaCloseLayer(layerCur){if(konaLinks.get(layerCur).IsNewExpandableLayer()){konaFlashFunction(("konaFlashBubble"+layerCur),"js_stop_video",null,false);if((konaFlashFunction(("konaFlashBubble"+layerCur),"js_getWhatLayerActive",null,true)=="myBigLayer")||(collectExpandParams.expandableIsImpression)){var bigLayerOpenTime=konaFlashFunction(("konaFlashBubble"+layerCur),"js_getTimeBigOpened",null,true);konaLayers.setViewTime(layerCur,bigLayerOpenTime);konaFlashFunction(("konaFlashBubble"+layerCur),"js_close_big_layer",null,false);impressions.reportImpression(layerCur)}else{konaFlashFunction(("konaFlashBubble"+layerCur),"js_close_small_layer",null,false)}konaFlashFunction(("konaFlashBubble"+layerCur),"js_setWhatLayerActive","noLayer",false);konaLayers.setStick(layerCur,false);konaLayers.hide(layerCur)}}function konaFlashFunction(obj,func,params,ret){if(ret){try{return kona$(obj).konaFlashGlobalFunction(func,params,ret)}catch(e){}}else{try{kona$(obj).konaFlashGlobalFunction(func,params,ret)}catch(e){}}}function expandedLayerImpression(iLinkID,sendVT){var infoArr=konaLinks.get(iLinkID).dcAdlinkInfo;var url=this.encodedLayerImps+getReportString(this,null,true)+"";sendHttpRequest(url)}function setLayerSize(layerWidth,layerHeight,adlinkID,tail_direction){var widthDiffer=removePX(kona$("konaLayer"+adlinkID).style.width)-layerWidth;var heightDiffer=removePX(kona$("konaLayer"+adlinkID).style.height)-layerHeight;kona$("konaLayer"+adlinkID).style.width=layerWidth+"px";kona$("konaLayer"+adlinkID).style.height=layerHeight+"px";kona$("konaFlashWrap0-"+adlinkID).style.width=layerWidth+"px";kona$("konaFlashWrap0-"+adlinkID).style.height=layerHeight+"px";kona$("konaFlashContent0-"+adlinkID).style.width=layerWidth+"px";kona$("konaFlashContent0-"+adlinkID).style.height=layerHeight+"px";kona$("konaFlashBubble"+adlinkID).style.width=layerWidth+"px";kona$("konaFlashBubble"+adlinkID).style.height=layerHeight+"px";if(tail_direction!=null&&tail_direction!="undefine"&&tail_direction!="TL"&&tail_direction!="TR"){kona$("konaLayer"+adlinkID).style.top=parseInt(removePX(kona$("konaLayer"+adlinkID).style.top))+parseInt(heightDiffer)+"px"}if(konaLayers.isExpandBigArr[adlinkID]){var toLeft=parseInt(removePX(kona$("konaLayer"+adlinkID).style.left))+widthDiffer;if(toLeft<0){toLeft=0}kona$("konaLayer"+adlinkID).style.left=toLeft}}function smallLayerOverOut(adlinkID,state){try{switch(state){case"Over":kona$("konaFlashBubble"+adlinkID).smallLayerOver();break;case"Out":kona$("konaFlashBubble"+adlinkID).smallLayerOut();break}}catch(err){setTimeout('smallLayerOverOut("'+adlinkID+'","'+state+'");',450)}}function konaCreativeClick(adlinkID,action,params){var link_info=konaLinks.getInfo(adlinkID);if(link_info.expandableInfo){expandableController(adlinkID,action,params)}else{if(link_info.borderlessInfo){borderlessController(adlinkID,action,params)}}}function borderlessController(adlinkID,action,params){switch(action){case"close":expandKonaCloseLayer(adlinkID,(params?params:""));break;case"about":whatsThisClick();break;case"powered":poweredByKonteraClick();break;case"click":var link_info=konaLinks.getInfo(adlinkID);var url=params&&params.url?params.url:link_info.expandableClickUnitRedirect;var clickType=params&&params.cType?params.cType:5;var newWin=params&&params.newWindow?params.newWindow:null;konaExpandableRedirect(adlinkID,url,clickType,newWin);break}}function expandableController(adlinkID,action,params){switch(action){case"close":expandKonaCloseLayer(adlinkID,(params?params:""));break;case"about":whatsThisClick();break;case"powered":poweredByKonteraClick();break;case"click":var link_info=konaLinks.getInfo(adlinkID);if(!(konaLayers.isExpandBig(adlinkID))){expandKonaLayerSmallClick(adlinkID,5)}else{var link_info=konaLinks.getInfo(adlinkID);var url=params&&params.url?params.url:link_info.expandableClickUnitRedirect;var clickType=params&&params.cType?params.cType:11;var newWin=params&&params.newWindow?params.newWindow:null;konaExpandableRedirect(adlinkID,url,clickType,newWin)}break}}function playRM(layerCur){konaRichMedia.show(layerCur)}function konaFlashClick(playerId){linkInfo.isClickOnRM=true;descriptionMouseClick(null,null,0,konaRichMedia.getLayerCur(playerId))}function konaFlashIsReady(playerId){var index=konaRichMedia.getLayerCur(playerId);var linkInfo=konaLinks.getInfo(index);if(linkInfo.isClickDelay){window.setTimeout(function(){linkInfo.allowClickAfterDelay=true},linkInfo.setClickDelayTime)}konaLinks.get(index).clickDelayForDataLoaded=((new Date()).getTime()-konaLinks.get(index).linkHoverStartTime);linkInfo.flashIsReady=true;var reportUrl=getReportString(linkInfo,null,true,null)}function konaFlashStateChanged(){}function konaFlashError(id,str){konaRichMedia.flashError(id)}function konaFlashProbeError(id,str){}function konaFlashProbeReport(report,isValid){hasRMFlashSupport=isValid}function getObjectTagHtml(id,movieUrl,dim,embedClass,align){var codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";var pluginspage="http://www.macromedia.com/go/getflashplayer";var classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";var embedStyle="width:"+dim[0]+"px !important; height:"+dim[1]+"px !important;";return"<object style='position:relative;"+embedStyle+"' class='"+embedClass+"' classid='"+classid+"' codebase='"+codebase+"' id='"+id+"' align='"+align+"' height='"+dim[1]+"' width='"+dim[0]+"' ><param name='movie' value='"+movieUrl+"' /><param name='quality' value='high'><param name='FlashVars' value='vidId="+id+"'><param name='wmode' value='opaque'><param name='allowScriptAccess' value='always' /><param name='swliveconnect' value='true'><embed style='position:relative;"+embedStyle+"' name='"+id+"' class='"+embedClass+"' src='"+movieUrl+"' FlashVars='vidId="+id+"' wmode='opaque' swLiveConnect='True' quality='high' bgcolor='#FFFFFF' type='application/x-shockwave-flash' allowScriptAccess='always' pluginspage='"+pluginspage+"' height='"+dim[1]+"' width='"+dim[0]+"' ></embed></object>"}function KonaRichMedia(){this.idRegExp=new RegExp("[0-9]+");this.accumulatedPlayedTime=-1;this.players=null;this.init=function(){this.players=new Array()};this.initPlayer=function(playerId){var player=this.getPlayer(playerId);var layerCur=this.getLayerCur(playerId);var linkInfo=konaLinks.getInfo(layerCur);this.players[layerCur]=player;var dim=konaBuilder.getRMBoxDimension(linkInfo.getLayerType(),false);switch(linkInfo.creativeType){case"flv":player.SetVariable("vidWidth",""+dim[0]);player.SetVariable("vidHeight",""+dim[1]);player.SetVariable("vidThumb",linkInfo.hasLogo()?linkInfo.getLogo():"");player.SetVariable("vidControls",""+linkInfo.isWithButtons());player.SetVariable("vidButton",""+linkInfo.isGlobalClick);player.SetVariable("vidAutoplay","true");player.SetVariable("vidCacheBusting",""+linkInfo.isCacheBusting);player.SetVariable("vidLoop","false");player.SetVariable("konaInfo",linkInfo.keyword);player.SetVariable("vidURL",linkInfo.getCreativeUrl());player.SetVariable("vidVolume","100");player.SetVariable("vidBufferRatio","2");player.SetVariable("vidStateCallback","false");player.SetVariable("vidSimpleFlash",""+linkInfo.isSimpleFlash());player.SetVariable("funcVar","loadFlash");break;case"swf":player.SetVariable("vidWidth",""+dim[0]);player.SetVariable("vidHeight",""+dim[1]);player.SetVariable("vidThumb",linkInfo.hasLogo()?linkInfo.getLogo():"");player.SetVariable("vidButton",""+linkInfo.isGlobalClick);player.SetVariable("vidCacheBusting",""+linkInfo.isCacheBusting);player.SetVariable("vidURL",linkInfo.getCreativeUrl());player.SetVariable("vidSimpleFlash",""+linkInfo.isSimpleFlash());player.SetVariable("muteSoundOnHide",linkInfo.muteSoundOnHide);player.SetVariable("konaPostalCode",konaPostalCode);player.SetVariable("funcVar","loadFlash");break}};this.getPlayer=function(n,d){var p,i,x;if(!d){d=document}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all){x=d.all[n]}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=this.getPlayer(n,d.layers[i].document)}if(!x&&d.getElementById){x=d.kona$(n)}return x};this.hide=function(playerNum){try{var player=this.players[playerNum];if(player){player.SetVariable("funcVar","stopFlash")}}catch(e){}};this.show=function(playerNum){try{var player=this.players[playerNum];if(player){player.SetVariable("funcVar","playFlash")}}catch(e){}};this.flashError=function(playerId){konaLayers.getLayerObj(this.getLayerCur(playerId)).invalidate()};this.getLayerCur=function(playerId){return playerId.match(this.idRegExp)[0]};this.init()}function konaFlashHere(playerId){var index=konaRichMedia.getLayerCur(playerId);konaLinks.get(index).clickDelayFlashInit=((new Date()).getTime()-konaLinks.get(index).linkHoverStartTime);konaRichMedia.initPlayer(playerId)}function konaFlashProbeHere(){}function adlinkMouseOver(event,node,index){initKonaPaint();if(kona$("konaMovieFlashWrap")!=null){var layerIsShown=konaLayers.getLayerObj(movieLayerIndex);if(layerIsShown.isShown){return}}var link=konaLinks.get(index);link.setLinkHoverStartTime((new Date()).getTime());logit("adlink over start:"+((new Date()).getTime()-konaLinks.get(index).linkHoverStartTime)+"~");link.mouseIsOverAdlink=true;setAdLinkStyle(node,true);impressions.descIndex=-1;impressions.adlinkChanged(index);adlinkEvent=new AdlinkEvent((bIE?document.createEventObject(event):event),node,index);konaLayers.adlinkMouseOver(index)}function adlinkMouseClick(event,node,index){initKonaPaint();var plateIndex=0;if(adlinkMouseClickDisable(index)){konaEventCancel(event)}else{if(konaLinks.getInfo(index,0)){if(konaLinks.getInfo(index,0).konaLayerMode==LAYER_MODE_POP){konaLinks.get(index).clickDelayHoverTime=((new Date()).getTime()-konaLinks.get(index).linkHoverStartTime);OnClick(event,0,node,index,RE_MODE_REGULAR)}else{if(konaLinks.getInfo(index,0).konaLayerMode==LAYER_MODE_CLICK){konaEventCancel(event)}}}}return false}function adlinkMouseClickDisable(index){var clickDelayTime=parseInt(infoUnit.dc_clickDelayTime);var linkInfo=konaLinks.getInfo(index);if(infoUnit.dc_adLinkClickAllowed==false){return true}if(konaLinks.getInfo(index,0)==null){return true}if(linkInfo.thirdPartyIframeObject){if(!(linkInfo.thirdPartyIframeObject.enableClickOnKW)){return true}}if((linkInfo.isDirect())&&(linkInfo.isClickDelay)){if((linkInfo.isRM())&&((!linkInfo.flashIsReady)||(!linkInfo.allowClickAfterDelay))){return true}if((!linkInfo.isRM())&&(konaLinks.get(index).status!=IMAGE_DONE_LOADING)){return true}}if(checkClickDisableForPublishers(index)==true){return true}if(konaLinks.get(index).status==YAHOO_LOADING&&isAlternativ(konaLinks.getInfo(index,0).searchProviderID)){return true}if(konaLinks.get(index).isDelayAdvertiser){if(((new Date()).getTime()-konaLinks.get(index).linkHoverStartTime)<ADV_CLICK_DELAY_TIME){return true}}if(konaLinks.getInfo(index).clearPixelClickDelayTime>0){clickDelayTime=konaLinks.getInfo(index).clearPixelClickDelayTime;if(clickDelayTime>0){var timeNewOpening=(!IsKonaLayerExist(index))?0:konaLayers.getLayerObj(index).getTotalOpenTime()-konaLayers.getLayerObj(index).totalOpenTime;if(timeNewOpening<clickDelayTime){return true}}}if(konaLinks.getInfo(index,0).isSpecialType("SPECIAL_TYPE_DATA_CAPTURE")){return true}if(((konaTweakMode&768)==768)&&konaLinks.getInfo(index,0).isSpecialType("SPECIAL_TYPE_NEW_YAHOO")){return true}return false}function adlinkMouseOut(event,node,index){konaLinks.get(index).mouseIsOverAdlink=false;adlinkEvent=null;setAdLinkStyle(node,false);if(konaLayers!=null){konaLayers.adlinkMouseOut(index)}}function descriptionMouseOver(event,node,plateCur,layerIndex){if(konaLayers.getLayerObj(layerIndex).isActive){return}impressions.descChanged(plateCur,true);konaLayers.plateMouseOver(plateCur,layerIndex)}function descriptionMouseOut(event,node,plateCur,layerIndex){if(!konaLayers.getLayerObj(layerIndex).isActive||!isMouseLeave(event,konaLayers.getActionNode(plateCur,layerIndex))){return}impressions.descChanged(plateCur,false);konaLayers.plateMouseOut(plateCur,layerIndex)}function descriptionMouseClick(event,node,plateCur,layerIndex){if(plateCur==0){var linkInfo=konaLinks.getInfo(layerIndex,0);var clickType=(linkInfo.konaLayerMode==LAYER_MODE_CLICK?RE_MODE_CBL:RE_MODE_LAYER_CLICK);if(konaLinks.getInfo(layerIndex).isSpecialType("SPECIAL_TYPE_DATA_CAPTURE")||konaLinks.getInfo(layerIndex).isSpecialType("SPECIAL_TYPE_DATA_CAPTURE_KOHL")){var url=linkInfo.clickUrl;if(url==""){return false}if(url.indexOf("NaN")==0){clickType=RE_MODE_DATACAP_BUG}else{clickType=RE_MODE_DATACAP_CLICK}}OnClick(event,plateCur,node,layerIndex,clickType)}else{konaSearchClick(event,node,layerIndex)}}function konaTabMouseClick(event,node,tabCur,layerIndex){konaLayers.tabSelected(layerIndex,tabCur);konaEventCancel(event)}function onkeydownLis(e){if(bIE){e=event}switch(e.keyCode){case keyA:keys[0]=true;break;case keyB:if(keys[0]){keys[1]=true}break;default:if(!isSpecKey(e.keyCode)||!(keys[0]&&keys[1])){resetKeys()}else{keys[2]=e.keyCode}}if(keys[2]!=false){showStat(keys[2])}}function resetKeys(){keys[0]=keys[1]=keys[2]=false}function isSpecKey(key){return(key==speKey1||key==speKey2)}function showStat(key){var msg="";switch(key){case speKey1:if(konaLinks!=null){for(var i=0;i<konaLinks.size();i++){msg+=konaLinks.get(i).highlighttext+" | "}}break;case speKey2:msg=KONA_VERSION;break}window.status=msg;resetKeys()}function konaSearchInfo(searchTypeId,searchUrl){this.searchTypeId=searchTypeId;this.searchUrl=searchUrl;this.tabName=null}function konaSearchClick(e,node,layerCur){konaEventCancel(e);var kwd=kona$("konaSearchInput"+layerCur).value;var linkInfo=konaLinks.getInfo(layerCur);if(infoUnit.dc_open_new_win!="yes"){redirectLock.lock((linkInfo.wasImpression?0:1)+(linkInfo.needsPixelImpression()?0:1))}var clickStr=linkInfo.getClickRedirect(RE_MODE_SEARCH);sendHttpRequest(clickStr);hideKonaLayer(layerCur);var currClicker=kona$("AdLinkLayerClick");redirectLock.clicker=currClicker;var searchInfo=konaLayers.getSelectedSearch(layerCur);var redirectStr=searchInfo.searchUrl.replace(siteSearchWordRegExp,urlEncode(kwd));var isRegularClick=false;konaRedirect(redirectStr,isRegularClick);return false}function IFrameForSearchMatch(iTagNum,aCurResultData,firstLoad){var sURL=aCurResultData[5];sURL=getReformatedTMUrl(sURL);sURL+=createViewParamQueryForIFream(iTagNum);if(aInfoUnits[iTagNum].dc_width!=""){sURL=sURL+"&dc_width="+aInfoUnits[iTagNum].dc_width;aCurResultData[1]=aInfoUnits[iTagNum].dc_width}else{if(aCurResultData[1]!="0"){sURL=sURL+"&dc_width="+aCurResultData[1]}else{sURL=sURL+"&dc_width="+def_dc_Width;aInfoUnits[iTagNum].dc_width=def_dc_Width;aCurResultData[1]=def_dc_Width}}if(aInfoUnits[iTagNum].dc_height!=""){sURL=sURL+"&dc_height="+aInfoUnits[iTagNum].dc_height;aCurResultData[2]=aInfoUnits[iTagNum].dc_height}else{if(aCurResultData[2]!="0"){sURL=sURL+"&dc_height="+aCurResultData[2]}else{sURL=sURL+"&dc_height="+def_dc_Height;aInfoUnits[iTagNum].dc_height=def_dc_Height;aCurResultData[2]=def_dc_Height}}if(firstLoad){DoIFrame(iTagNum,aCurResultData[1],aCurResultData[2],aCurResultData[3],sURL,aCurResultData[4])}else{var iframeObj=kona$("KonaIFrame"+iTagNum);if(iframeObj!=null){var tagStartIndex=sURL.indexOf("tag=");var tagEndIndex=sURL.indexOf("&cb");if(tagStartIndex!=-1&&tagEndIndex!=-1){sURL=sURL.substring(0,tagStartIndex+4)+"600"+sURL.substring(tagEndIndex,sURL.length)}iframeObj.src=sURL}}}function addSearchInfo(searchTypeId,searchUrl){if(konaLayers==null){siteSearchUrl=searchUrl}else{konaLayers.addSearchInfo(new konaSearchInfo(searchTypeId,searchUrl))}}function autoFetchReq(){if(directAdsPrefetch==true&&!hasLinksForAutoFetch()){return}var scriptURL="&keys=";var kidsStr="&kids=";var sidsStr="&sids=";var goodSids="";var iitStr="&iit=";var link=null;autoFetchAdLinkDataEvent=true;for(var i=0;i<konaLinks.size()&&i<autoFecthMaxLinks;i++){link=konaLinks.get(i);if(i>0){scriptURL+=";";kidsStr+=";";iitStr+=";"}scriptURL+=escape(removeApostrophes(link.taxonomyKey));kidsStr+=escape(link.taxonomyKwd);iitStr+=link.isInTopic;link.status=LOADING;link.autoFetch=true;link.fetched(TE_AUTO_FETCH);if(goodSids!=""){goodSids+="-"}if(directAdsPrefetch==true){if(!link.hasDirect&&link.goodAvertisers!=""){goodSids+=link.goodAvertisers}else{goodSids+="0"}}else{if(link.goodAvertisers!=""){goodSids+=link.goodAvertisers}else{goodSids+="0"}}}scriptURL+=kidsStr+iitStr;scriptURL+="&index=0";scriptURL+=buildGeneralTeStr();var tagStr="&tag=0";var constractTeUrl="";if(goodSids!=""&&goodSids.match(/[1-9]/)){if(bIE){var stringTosendTeRequest="";var overLength="";var rightLength="";constractTeUrl=scriptURL+sidsStr+goodSids+tagStr;stringTosendTeRequest=getReformatedTEUrl(teUrl)+constractTeUrl+"&ptv="+pageTopicVector+String.format("&ur={0}",useRelevancyTE);if(stringTosendTeRequest.length>MAX_CHARS_FOR_TE_REQUEST){overLength=stringTosendTeRequest.length-MAX_CHARS_FOR_TE_REQUEST;rightLength=pageTopicVector.length-overLength;pageTopicVector=pageTopicVector.slice(0,rightLength)}}scriptURL+="&ptv="+pageTopicVector+String.format("&ur={0}",useRelevancyTE);constractTeUrl=scriptURL+sidsStr+goodSids+tagStr;sendTeRequest(getReformatedTEUrl(teUrl)+constractTeUrl)}}function dynamicFetchYahooReq(linkIndex){var link=konaLinks.get(linkIndex);var autoFetchedSids=link.yahooAdvertisers;if(link.goodAvertisers!=""){autoFetchedSids+="&afsids="+link.goodAvertisers}autoFetchedSids+="&cc="+konaLinks.getInfo(linkIndex,0).linkCPC;dynamicFetchReq(linkIndex,autoFetchedSids)}function dynamicFetchDirectPrefetchedReq(linkIndex){var link=konaLinks.get(linkIndex);var sidsParam=link.goodAvertisers;sidsParam+=link.yahooAdvertisers;if(link.directAdvertiser!=""){sidsParam+="&afsids="+link.directAdvertiser}sidsParam+="&cc="+konaLinks.getInfo(linkIndex,0).linkCPC;dynamicFetchReq(linkIndex,sidsParam)}function dynamicFetchAllReq(linkIndex){var link=konaLinks.get(linkIndex);dynamicFetchReq(linkIndex,link.sids)}function dynamicFetchReq(linkIndex,advr){var link=konaLinks.get(linkIndex);link.status=LOADING;link.fetched(TE_DYNAMIC_FETCH);link.autoFetch=false;var scriptURL="&keys="+escape(removeApostrophes(konaLinks.get(linkIndex).taxonomyKey));scriptURL+="&kids="+escape(link.taxonomyKwd);scriptURL+="&sids="+advr;scriptURL+="&iit="+link.isInTopic;var t,j,adsUrl="";for(t=0;t<konaLinks.size();t++){link=konaLinks.get(t);if(link.status==LOADED){for(j=0;j<link.dcAdlinkInfo.length;j++){adsUrl+="|"+link.dcAdlinkInfo[j].landingUrl}}}scriptURL+="&pL="+escape(adsUrl);scriptURL+="&index="+linkIndex;scriptURL+="&tag="+Number(requestCounter+500);scriptURL+=buildGeneralTeStr();if(bIE){var stringTosendTeRequest="";var overLength="";var rightLength="";stringTosendTeRequest=getReformatedTEUrl(teUrl)+scriptURL+"&ptv="+pageTopicVector+String.format("&ur={0}",useRelevancyTE);if(stringTosendTeRequest.length>MAX_CHARS_FOR_TE_REQUEST){overLength=stringTosendTeRequest.length-MAX_CHARS_FOR_TE_REQUEST;rightLength=pageTopicVector.length-overLength;pageTopicVector=pageTopicVector.slice(0,rightLength)}}scriptURL+="&ptv="+pageTopicVector+String.format("&ur={0}",useRelevancyTE);sendTeRequest(getReformatedTEUrl(teUrl)+scriptURL);requestCounter++}function handleDynamicFetch(adlinkID){var link=konaLinks.get(adlinkID);if(link.status==UNKNOWN){link.isYahooFetched=true;dynamicFetchAllReq(adlinkID);return}if(directAdsPrefetch==true&&link.hasDirectOnly){return}if(directAdsPrefetch==true&&(link.hasDirect&&!link.directComparedWithFeeds&&link.goodAdvertisers!="")){dynamicFetchDirectPrefetchedReq(adlinkID);link.directComparedWithFeeds=true;link.status=YAHOO_LOADING;return}if(!link.hasYahooAdvertiser){return}if(!link.isYahooFetched){if(link.clicked&&!isAlternativ(link.getInfo().searchProviderID)){link.status=LOADED;link.isYahooFetched=true;return}link.clicked=false;link.isYahooFetched=true;dynamicFetchYahooReq(adlinkID);link.status=YAHOO_LOADING;return}}function updateAdLinksStatus(){var i;var link;for(i=0;i<konaLinks.size();i++){link=konaLinks.get(i);if(isLayerLoaded(i)){}else{if(link.autoFetch&&link.status==LOADING){link.status=UNKNOWN;link.autoFetch=false}}}}function hasLinksForAutoFetch(){var bRetVal=false;for(var i=0;i<konaLinks.size()&&i<autoFecthMaxLinks;i++){link=konaLinks.get(i);if(!link.hasDirect&&link.goodAvertisers!=""){bRetVal=true;break}else{}}return bRetVal}function LoadingScriptParams(scriptUrl,monitor,sciprtLoadedCB,callBack,overrideDocWrite){this.scriptUrl=scriptUrl;this.monitor=monitor;this.callBack=callBack;this.sciprtLoadedCB=sciprtLoadedCB;this.overrideDocWrite=overrideDocWrite}var scriptRunner=function(){var scriptQueue=new Array();document.origWindowOnerror=window.onerror;document.origCreateElement=document.createElement;document.origDocWrite=document.write;var lastScript=null;var init=function(overrideDocWrite){if(overrideDocWrite){document.origDocWrite=document.write;document.write=myDocumentWrite}};document.restorWindowError=function(){setTimeout(function(){window.onerror=document.origWindowOnerror},500)};var loadScript=function(scriptUrl,monitor,sciprtLoadedCB,callBackFunction,overrideDocWrite){scriptQueue.push(new LoadingScriptParams(scriptUrl,monitor,sciprtLoadedCB,callBackFunction,overrideDocWrite));if(scriptQueue.length==1){runScript()}};var myCreateElement=function(tagName){var s=document.origCreateElement(tagName);if(tagName!="script"&&tagName!="SCRIPT"){return s}setScriptOnLoad(s,[lastScript.callBack]);return s};var myDocumentWrite=function(){return false};var setScriptOnLoad=function(elem,funcArr){if(bIE){elem.onreadystatechange=function(){if((this.readyState=="loaded"||this.readyState=="complete")){for(var i=0;i<funcArr.length;i+=1){if(typeof(funcArr[i])=="function"){funcArr[i]()}}}}}else{elem.onload=function(){for(var i=0;i<funcArr.length;i+=1){if(typeof(funcArr[i])=="function"){funcArr[i]()}}}}};var overrideMonitorHandlers=function(lastScript){if(lastScript.monitor){document.createElement=myCreateElement;window.onerror=function(args){return false}}if(typeof(lastScript.overrideDocWrite)=="function"){document.origDocWrite=document.write;document.write=lastScript.overrideDocWrite}};var restoreMonitorHandlers=function(){setTimeout(function(){window.onerror=document.origWindowOnerror},500);document.createElement=document.origCreateElement;document.write=document.origDocWrite};var runScript=function(){var head=document.getElementsByTagName("head").item(0);lastScript=scriptQueue.shift();restoreMonitorHandlers();if(lastScript){var s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",lastScript.scriptUrl);overrideMonitorHandlers(lastScript);setScriptOnLoad(s,[lastScript.sciprtLoadedCB,runScript]);head.appendChild(s)}};return{loadScript:function(string,monitor,sciprtLoadedCB,callBackFunction,overrideDocWrite){loadScript(string,monitor,sciprtLoadedCB,callBackFunction,overrideDocWrite)},init:function(scriptParentElement,overrideDocWrite){init(scriptParentElement,overrideDocWrite)}}}();function loadGatewayCheck(){kona_pub_limit=[[8981,100,4,16],[6945,100,4,16],[7330,100,4,16],[6261,100,4,16],[4173,100,4,16],[7794,100,4,16],[3802,100,4,16],[2239,100,4,16],[3453,100,4,16],[6917,100,4,16],[6897,100,4,16],[8238,100,4,16],[1995,100,4,16],[4867,100,4,16],[5674,100,4,16],[3852,100,4,16],[5108,100,4,16],[3975,100,4,16],[4880,100,4,16],[7936,100,4,16],[7038,100,4,16],[10137,100,4,16],[3332,100,4,16],[4759,100,4,16],[5282,100,4,16],[10372,100,4,16],[3126,100,4,16],[5611,100,4,16],[4038,100,4,16],[10690,100,4,16],[5175,100,4,16],[8368,100,4,16],[5855,100,4,16],[6298,100,4,16],[6657,100,4,16],[2541,100,4,16],[707,100,4,16],[10196,100,4,16],[764,100,4,16],[7882,100,4,16],[4743,100,4,16],[5612,100,4,16],[7378,100,4,16],[5885,100,4,16],[2352,100,4,16],[5610,100,4,16],[2224,100,4,16],[2381,100,4,16],[4956,100,4,16],[9850,100,4,16],[3691,100,4,16],[9817,100,4,16],[6382,100,4,16],[7154,100,4,16],[3682,100,4,16],[7985,100,4,16],[2032,100,4,16],[5939,100,4,16],[1549,100,4,16],[1634,100,4,16],[4929,100,4,16],[4643,100,4,16],[7631,100,4,16],[4234,100,4,16],[9492,100,4,16],[5334,100,4,16],[6289,100,4,16],[3467,100,4,16],[2284,100,4,16],[6037,100,4,16],[7372,100,4,16],[2740,100,4,16],[10,100,4,16],[3384,100,4,16],[8056,100,4,16],[1218,0,1,22],[627,0,1,22],[7164,100,4,16],[35730,100,6,16],[28576,100,6,16],[14421,100,6,16],[3696,100,6,16],[8354,100,6,16],[3691,100,6,16],[15650,100,6,16],[12318,100,6,16],[38643,100,6,16],[10700,100,6,16],[20631,100,6,16],[8359,100,6,16],[28890,100,6,16],[28780,100,6,16],[28527,100,6,16],[23603,100,6,16],[8238,100,6,16],[2091,100,6,16],[32877,100,6,16],[2401,100,6,16],[16914,100,6,16],[13382,100,6,16],[21674,100,6,16],[35267,100,6,16],[18985,100,6,16],[20698,100,6,16],[5610,100,6,16],[8984,100,6,16],[17144,100,6,16],[34480,100,6,16],[37715,100,6,16],[2394,100,6,16],[5613,100,6,16],[36710,100,6,16],[18701,100,6,16],[10613,100,6,16],[438,100,6,16],[34696,100,6,16],[21573,100,6,16],[16324,100,6,16],[10336,100,6,16],[26321,100,6,16],[3578,100,6,16],[4173,100,6,16],[0,100,0,0]]}function konaGatewayCheck(){var dohalt=false;try{var pubArrSize=((typeof(this["kona_pub_limit"])=="undefined")?0:kona_pub_limit.length);for(var i=0;i<pubArrSize;i++){if(kona_pub_limit[i][0]==dc_PublisherID){dohalt=checkPublisherLimits(kona_pub_limit[i][1],kona_pub_limit[i][2],kona_pub_limit[i][3]);break}}}catch(e){}kona_pub_limit=null;return dohalt}function hideKonaLayer(layerCur){if(konaLayers==null){return}if(konaLinks.get(layerCur).mouseIsOverAdlink){return}if(!adPreviewMode){konaLinks.get(layerCur).preLoader.hidePreLoad()}if(konaLinks.get(layerCur).getInfo(0)&&konaLinks.get(layerCur).IsNewExpandableLayer()){konaFlashFunction(("konaFlashBubble"+layerCur),"js_setWhatLayerActive","noLayer",false)}else{if(adPreviewMode){return}impressions.layerClosed(layerCur)}konaLayers.hide(layerCur)}function closeKonaLayer(layerCur){konaLinks.get(layerCur).clickDelayHoverTime=((new Date()).getTime()-konaLinks.get(layerCur).linkHoverStartTime);konaLayers.close(layerCur);impressions.layerClosed(layerCur);impressions.adlinkChanged(-1)}function removeAdLink(index){hideKonaLayer(index);if(doReportMissingAds){reportMissingAds(index)}var link=konaLinks.get(index);link.preLoader.hidePreLoad();var linkNode=konaLinks.getNode(index);if(!link||!linkNode){return}var nodeBefore=linkNode.previousSibling;var nodeAfter=linkNode.nextSibling;var newText="";if(nodeBefore!=null&&nodeBefore.nodeType==Node.TEXT_NODE){newText+=nodeBefore.nodeValue;nodeBefore.parentNode.removeChild(nodeBefore)}newText+=link.highlighttext;if(nodeAfter!=null&&nodeAfter.nodeType==Node.TEXT_NODE){newText+=nodeAfter.nodeValue;nodeAfter.parentNode.removeChild(nodeAfter)}link.status=DISABLED;var newNode=document.createTextNode(newText);linkNode.parentNode.replaceChild(newNode,linkNode)}function showListings(adlink_ID,xy,doUpdate){var link=konaLinks.get(adlink_ID);var aLinkInfo=link.dcAdlinkInfo[0];var PRELOAD_TIME_OUT=3000;switch(link.status){case YAHOO_LOADING:updateYahooAdLinkLayer(adlink_ID,xy);return;break;case LOADING:updateAdLinkLayer(adlink_ID,xy);return;break;case LOADED:link.status=IMAGE_LOADING;if(!konaImages.load(adlink_ID,xy,doUpdate,linkInfoToFamily(aLinkInfo))){link.preloadTimeOut=new Date().getTime();var funcName=String.format("showListings({0},SerealizePositions({1},{2},{3},{4}))",adlink_ID,xy.left,xy.right,xy.top,xy.bottom);if(link.status!=IMAGE_DONE_LOADING){link.preloadTimeOutID=window.setTimeout(funcName,PRELOAD_TIME_OUT)}return}break;case IMAGE_LOADING:var now=new Date().getTime();if(!(now-link.preloadTimeOut>=PRELOAD_TIME_OUT)){return}else{link.status=IMAGE_DONE_LOADING;window.clearTimeout(link.preloadTimeOutID)}break;case IMAGE_DONE_LOADING:window.clearTimeout(link.preloadTimeOutID);delete link.preloadTimeOutID;break}if(!konaLayers.hasLayer(adlink_ID)){if(!konaLayers.hasLayersNode()){if(!appendKonaLayer()){var funcName=String.format("showListings({0},SerealizePositions({1},{2},{3},{4}))",adlink_ID,xy.left,xy.right,xy.top,xy.bottom);link.preloadTimeOutID=window.setTimeout(funcName,222);return}}window.clearTimeout(link.preloadTimeOutID);var layer=paintKonaLayer(adlink_ID);konaLayers.update(layer,adlink_ID);link.preLoader.hidePreLoad();konaLinks.get(adlink_ID).isPainted=true;if(konaLinks.getInfo(adlink_ID).surveyObject){setTimeout(function(){konaLinks.getInfo(adlink_ID).surveyObject.run()},1510)}}else{layer=konaLayers.getLayerNode(adlink_ID)}konaLayers.setStick(adlink_ID,false);konaLayers.hideAll(adlink_ID);link.preLoader.hideAllPreLoaders();konaLayers.show(xy,adlink_ID);impressions.layerShown(adlink_ID);if(konaLayers.isMScashback(adlink_ID)){showKonaFlashMScashback(konaLayers.getTailPosition(adlink_ID),adlink_ID)}if(konaLinks.get(adlink_ID).IsNewExpandableLayer()){showExpandKonaFlash(konaLayers.getTailPosition(adlink_ID),adlink_ID)}if(konaLayers.isKosmix(adlink_ID)||konaLayers.isHP(adlink_ID)||konaLayers.IsMotifLayer(adlink_ID)){showMotifLayer(adlink_ID)}if(konaLinks.getInfo(adlink_ID).thirdPartyIframeObject){showKonaThirdPartyIframe(adlink_ID)}link.layerReadyStartTime=(new Date()).getTime()}function BadRanges(root){this.pRanges=null;this.rRanges=null;this.pBoxes=null;this.root=root;this.matchProblematicBoxes=function(box){var arry=this.getProblematicBoxes();for(var i=0;i<arry.length;i++){if(isIntersecting(box,arry[i])){return arry[i]}}return null};this.getProblematicBoxes=function(){if(this.pBoxes==null){this.pBoxes=new Array()}else{return this.pBoxes}var pTags=boxesToAvoid;var node=null;for(var i=0;i<pTags.length;i++){nodes=this.root.getElementsByTagName(pTags[i]);for(var j=0;j<nodes.length;j++){this.pBoxes.push(getBoxXYpositions(nodes[j]))}}return this.pBoxes};this.getRestrictedRanges=function(){if(this.rRanges==null){this.rRanges=new Array()}else{return this.rRanges}var names=contentTags.getTagNamesList(TAG_TYPE_FILTER);for(var i=0;i<names.length;i++){arry=this.root.getElementsByTagName(names[i]);if(arry!=null&&arry.length){for(var j=0;j<arry.length;j++){if(isUserRestrictedNode(arry[j])){var range=document.body.createTextRange();range.moveToElementText(arry[j]);this.rRanges.push(range)}}}}return this.rRanges};this.getProblematicRanges=function(){if(this.pRanges==null){this.pRanges=new Array()}else{return this.pRanges}var pTags=["marquee","textarea","select","fieldset"];var arry=null;var range=null;for(var i=0;i<pTags.length;i++){arry=this.root.getElementsByTagName(pTags[i]);if(arry!=null&&arry.length){for(var j=0;j<arry.length;j++){this.pRanges.push(this.getBadTagData(arry[j]))}}}return this.pRanges};this.matchRestrictedRange=function(range){var arry=this.getRestrictedRanges();var res=null;for(var i=0;i<arry.length;i++){if(arry[i].inRange(range)){return arry[i]}}return null};this.matchBadRange=function(range,word,rd){var arry=this.getProblematicRanges();var res=null;for(var i=0;i<arry.length;i++){if(arry[i][0].inRange(range)||arry[i][2]==word){res=arry.splice(i,1)[0];range=res[0].duplicate();range.collapse(false);if(res[2]==null){range.move("word",1)}rd.i+=res[1];return range}}return null};this.getBadTagData=function(node){var range=document.body.createTextRange();range.moveToElementText(node);var array=new Array();var selectFlag=false;if(range.text.length>0){array=toIEFormatArray(range.text)}else{if(node.innerText){array=toIEFormatArray(node.innerText);selectFlag=true}}var res=[range,array.length,selectFlag?node.innerText:null];return res};this.cleanText=function(str){var selectText=null;var cur=0;this.getProblematicRanges();for(var i=0;i<this.pRanges.length;i++){selectText=this.pRanges[i][2];if(selectText!=null){str=str.replace(selectText,"")}}return str}}function PageInfo(tagNum){this.cur=-1;this.aheadCur=this.cur;this.chunks=new Array();this.pageDone=false;this.pTemp=null;this.temp=null;this.lastDocSize=0;this.queryStrBase="";this.zeroChunkStr="";this.tagNum=tagNum;this.wasTH=false;this.iMode=GET_HTML_MODE;this.inited=false;this.init=function(){};this.initChunks=function(){if(this.inited){return}this.initQueryStr();this.cur=-1;this.newChunk();this.aheadCur=this.cur;this.inited=true};this.reset=function(){this.pageDone=false;this.chunks=new Array();this.inited=false;this.initChunks()};this.sealPage=function(isDump){if(isDump){var str=this.getRunDao().getDump(3-this.cur);this.append(str);if(!this.isCurChunkFull()){this.sealChunk()}}else{this.sealChunk();while(this.hasChunk()){this.chunks[this.aheadCur]=null;this.aheadCur--}}this.pageDone=true};this.getRunDao=function(){if(typeof(this.getChunk())=="undefined"){return null}return this.getChunk().getRunDao()};this.setDoMode=function(mode){this.iMode=mode;if(this.iMode==DO_MARKUP_MODE){this.reset()}else{for(var i=0;i<this.chunks.length;i++){this.chunks[i].getRunDao().iMode=this.iMode}}};this.initQueryStr=function(){this.queryStrBase="$an_host$"+sSendScriptName+"u=#############&p="+(extConvertedPubId<0?dc_PublisherID:extConvertedPubId)+"&k="+urlEncode(sKey)+"&c=##&####o=####&e=####&al="+dcAdlinksActive+"&bAl="+isBoldActive+getCoresParamsString(this.tagNum)+(typeof(KonterDynamicContextDemoState)!="undefined"?"&d=1":"")+"&sj=#"+OptionallyGetUrl()+"&rId="+(String.format("{0}_{1}_{2}",(!isExternalPublisher?dc_PublisherID:extConvertedPubId),sUnique,sRandomPerPage)).replace(".","")+(prev_page!=""?String.format("&prev_page={0}",prev_page):"")+(typeof(dc_ChannelID)!="undefined"&&dc_ChannelID!=null?String.format("&cId={0}",dc_ChannelID):"")+((maximumLinks==-1)?"":"&ml="+maximumLinks)+"&h=";var metaData=getMetaTags();var title=document.title;if(title==null){title=""}title=urlEncode(fixPuncs(title));this.zeroChunkStr="&t="+title+metaData+"&ps="+getPageContentLength()};this.getChunkToSend=function(){var isLastChunk=(this.isPageDone()&&this.aheadCur==this.cur);var s=this.getChunk().getChunkQueryStr(this.lastDocSize,isLastChunk);this.lastDocSize+=this.getChunk().toString().length;this.cur++;this.wasTH=false;return s};this.getCurRoot=function(){aRootElems[this.getChunk().rootId][0]};this.nextRoot=function(){if(this.getChunk().rootId+1>=aRootElems.length){this.pageDone=true}else{this.getChunk().nextRoot()}};this.isCurChunkFull=function(){return this.getChunk().isChunkFull()};this.sealChunk=function(){this.expandAhead(this.getChunk().sealChunk())};this.append=function(str){this.pTemp=this.getChunk().append(str);if(this.pTemp==null){return true}else{this.expandAhead(this.pTemp)}return false};this.expandAhead=function(prefix){while(prefix!=null&&prefix.getLen()!=0){this.aheadCur++;this.temp=new ChunkInfo(this.aheadCur,this,this.getRunDao().duplicate());this.temp.getRunDao().exitCode=-1;if(bMozilla&&dc_PublisherID==33690){prefix=null}else{prefix=this.temp.setPrefix(prefix)}this.chunks[this.aheadCur]=this.temp}};this.hasChunk=function(){return(this.aheadCur>this.cur)};this.resetOnTH=function(th){if(fetchMethod==METHOD_TEXT_RANGE){var roundTrip=this.getChunk().getRoundTrip();this.dumpChunk();this.newChunk();this.getChunk().setTH(th);this.getChunk().setRoundTrip(roundTrip+1);this.pageDone=false}else{var str="";var offset=0;if(this.hasChunk()){str=this.chunks[this.cur+1].toString();str=str.substring(0,str.length-2);str=this.getChunk().toString()+str;str=this.getChunk().thInfo.fillWithTH(str,th,offset)}else{offset=this.getChunk().prefix!=null?this.getChunk().prefix.getLen():0;str=this.getChunk().sentText.toString();str=this.getChunk().thInfo.fillWithTH(str,th,offset)}this.dumpChunk();this.cur++;this.getChunk().resetForRefill();this.append(str)}};this.dumpChunk=function(){while(this.hasChunk()){this.chunks[this.aheadCur]=null;this.aheadCur--}if(this.cur>=0){this.cur--}};this.newChunk=function(){var dao=null;if(fetchMethod==METHOD_TEXT_RANGE){dao=(this.cur==-1?new RunTimeDao(0,0):this.getRunDao())}else{if(fetchMethod==METHOD_TREE){dao=(this.cur==-1?new TreeDao(this.iMode,0,MIN_ELEMENT_FOR_ADLINK):this.getRunDao())}else{dao=(this.cur==-1?new JParseDao():this.getRunDao())}}this.cur++;var temp=this.getChunk();this.chunks[this.cur]=new ChunkInfo(this.cur,this,dao);if(temp!=null){this.getChunk().setPrefix(temp.prefix)}};this.getChunk=function(index){if(typeof(index)!="undefined"){return this.chunks[index]}else{return this.chunks[this.cur]}};this.getChunkCur=function(){return this.cur};this.isPageDone=function(){return this.pageDone};this.getNewTH=function(len){if(this.wasTH){return -1}this.wasTH=true;return this.getChunk().getNewTH(MIN_TEXT_FOR_CHUNK+((this.pageDone||fetchMethod==METHOD_TREE)?300:0),len)};this.wasVisited=function(node){if(node.walkMark==this.iMode){return true}else{node.walkMark=this.iMode;return false}};this.init()}function ChunkInfo(chunkNum,pageInfo,startDao){this.thInfo=new THInfo(MIN_ELEMENT_FOR_ADLINK);this.textLength=0;this.prefix=null;this.wordCounter=0;this.maxWords=1200;this.sentText=new KonaStringBuffer();this.th=MIN_ELEMENT_FOR_ADLINK;this.rootId=0;this.chunkNum=chunkNum;this.quertStr="";this.chunkFull=false;this.runDao=null;this.treeDao=null;this.sealed=false;this.lastChunk=false;this.THlock=false;this.doEncode=true;this.init=function(pageInfo,startDao){if(startDao!=null){if(fetchMethod==METHOD_TEXT_RANGE&&this.runDao==null){this.runDao=startDao.duplicate()}else{if(fetchMethod==METHOD_TREE&&this.treeDao==null){this.treeDao=startDao.duplicate()}else{this.jParseDao=startDao.duplicate()}}this.rootId=startDao.rootId}this.initQueryStr();this.setTH(MIN_ELEMENT_FOR_ADLINK)};this.initQueryStr=function(){this.quertStr=pageInfo.queryStrBase.replace("&sj=#",this.chunkNum==0?pageInfo.zeroChunkStr:"&sj=#")};this.getRunDao=function(){if(fetchMethod==METHOD_TEXT_RANGE){return this.runDao}else{if(fetchMethod==METHOD_TREE){return this.treeDao}else{return this.jParseDao}}};this.resetForRefill=function(){this.sentText=new KonaStringBuffer();this.chunkFull=false;this.sealed=false;this.doEncode=false};this.getLastState=function(){return this.runDao.state};this.formatText=function(){if(this.prefix!=null){this.prefix.formatText()}this.resetStr(shortenSpaces(this.sentText.toString()).replace(/B\+B/g,"B++B"))};this.nextRoot=function(){this.rootId++;this.getRunDao().setRoot(this.rootId)};this.setPrefix=function(prefix){if(prefix==null){this.prefix=null;return}var r=this.maxLen()-prefix.getLen();var newPrefix=null;this.prefix=prefix;if(r<0){this.sealed=true;newPrefix=this.splitToChunks(prefix,prefix.toString(),r)}return newPrefix};this.set=function(prefix,val){var r=new RegExp("("+prefix+")[#]+");this.quertStr=this.quertStr.replace(r,"$1"+val)};this.setAnHost=function(){if(strAnalysisHostNameFromReaction!="na"){this.quertStr=this.quertStr.replace("$an_host$",strAnalysisHostNameFromReaction)}else{this.quertStr=this.quertStr.replace("$an_host$",analysisBase)}};this.getChunkQueryStr=function(lastDocSize,isLastChunk){this.setAnHost();this.set("u=",sUnique);this.set("c=",this.chunkNum);if(this.isLastChunk()||isLastChunk){this.set("&","ls=1&")}else{this.set("&","")}this.set("o=",lastDocSize);this.formatText();var sCountTemp=this.toString().replace(/_\+B[\+$]/g,"_+");var aElems=this.toString().match(/^[_@]\+|\+[_@]\+|\+[_@]$/g);if(aElems!=null){iLastNodeNumber+=aElems.length}this.set("e=",iLastNodeNumber);if(iKonaServerColId!=-1){this.set("&sj=",iKonaServerColId)}else{this.quertStr=this.quertStr.replace("&sj=#","")}if(!this.sealed){var temp=urlEncode(this.sentText.toString());this.resetStr(temp);r=this.maxLen()-this.getLen();if(r<0){this.resetStr(temp.substring(0,temp.length+r))}}if(dc_PublisherID==1733&&document.location.href=="http://www.4x4wire.com/"&&this.chunkNum==0){var str=this.toString();str=str.replace("Online+Magazine+","L+Online+Magazine+");str=str.replace("more+.","more+.+_");return this.quertStr+str}return this.quertStr+this.toString()};this.isLastChunk=function(){if(this.chunkNum==maxAnalysisChunks-1||this.lastChunk){return true}};this.maxLen=function(){return iGetLimit-this.quertStr.length};this.isChunkFull=function(){return(this.chunkFull||this.maxLen()-this.getLen()<0)};this.resetStr=function(str){this.sentText=new KonaStringBuffer();if(str){this.sentText.append(str)}};this.sealChunk=function(){this.chunkFull=true;this.resetStr(urlEncode(this.sentText.toString()));r=this.maxLen()-this.getLen();return this.splitToChunks(this,this.sentText.toString(),r)};this.append=function(str){if(this.chunkFull){return}var r=this.maxLen()-this.getLen()-str.length;if(r<0){this.chunkFull=true;if(METHOD_JQUERY==fetchMethod){this.resetStr(this.sentText.toString())}else{this.resetStr(urlEncode(this.sentText.toString()));if(this.doEncode){str=urlEncode(str)}}r=this.maxLen()-this.getLen()-str.length;return this.splitToChunks(this,this.sentText.toString()+str,r)}this.sentText.append(str);return null};this.setTH=function(th){this.th=th;this.thInfo=new THInfo(th)};this.setRoundTrip=function(roundTrip){this.runDao.setRoundTrip(roundTrip)};this.getRoundTrip=function(){return this.runDao.getRoundTrip()};this.splitToChunks=function(chunk,str,r){chunk.sealed=true;var i=getLastPlusIndex(str,str.length+r-1);var prefix=new ChunkInfo(chunk.chunkNum+1,pageInfo,null);var temp=str.substring(0,i+1);chunk.resetStr(temp);var mark=getLastMark(chunk.toString(),chunk.getLen());prefix.resetStr(mark+"+"+str.substring(i+1));return prefix};this.addWordCount=function(wordNum){this.wordCounter+=wordNum};this.wordStartRegExp=new RegExp("(^|\\s)([a-zA-Z])","g");this.signRegExp=new RegExp("\\^","g");this.getLen=function(){return(this.prefix==null?0:this.prefix.getLen())+this.sentText.length()};this.getWordCount=function(){return this.wordCounter+(this.prefix==null?0:this.prefix.getWordCount())};this.hasEnoughWords=function(){if(this.getWordCount()>=this.maxWords){return true}else{return false}};this.getLinksLen=function(){return this.thInfo.getLen()};this.stackLinkLen=function(len){if(this.THlock){return}this.thInfo.stackLength(len)};this.stackLink=function(str){if(this.THlock){return}this.thInfo.stack(str,-1)};this.stackTH=function(str,wordsNum){this.thInfo.stack(str,this.getLen(),wordsNum)};this.stackChars=function(str){if(this.THlock){return}this.textLength+=str.length};this.toString=function(){return(this.prefix==null?"":this.prefix.toString())+this.sentText.toString()};this.getTextLen=function(){return this.textLength+(this.prefix==null?0:this.prefix.getTextLen())};this.getNewTH=function(minChars,textLength){if(typeof(textLength)=="undefined"){var textLength=this.getTextLen()}if(this.THlock||minChars<=textLength){return -1}this.THlock=true;var miss=minChars-textLength;var originalMiss=miss;var cur=this.thInfo.getNewTH(miss);return(cur>=0?Math.max(cur,LOWER_BOUND_FOR_ELEMENT):-1)};this.init(pageInfo,startDao)}function processPageContent(iTagNumFromServer){if(bIE){pageStatus=document.readyState}if(tagNumberDoingProcess!=iTagNumFromServer&&tagNumberDoingProcess!=-1||iChunkNumber>=maxAnalysisChunks){return}tagNumberDoingProcess=iTagNumFromServer;pageInfo.initChunks();var th=-1;if(!pageInfo.isPageDone()&&!pageInfo.hasChunk()){if(dc_showAlerts||dc_jsTest){var timer1=new Date()}if(fetchMethod==METHOD_TEXT_RANGE){harvestTimer=new Date();var tempTime1=harvestTimer.getTime();var tempTime2=0;var roundTrip=0;while(!pageInfo.isCurChunkFull()&&!pageInfo.isPageDone()){harvestChunk();if(pageInfo.getRunDao().exitCode==kLang.OUT_OF_ROOT||pageInfo.getRunDao().exitCode==kLang.OUT_OF_WORDS){pageInfo.nextRoot()}tempTime2=(new Date()).getTime();globalTimeCount+=(tempTime2-tempTime1);tempTime1=tempTime2;if(!dc_jsDebug&&(globalTimeCount>PAGE_PROCESS_TIMEOUT)){pageInfo.sealPage(false)}else{if(pageInfo.getRunDao().exitCode==kLang.TRASHING){pageInfo.sealPage(true)}else{if(pageInfo.getRunDao().exitCode==kLang.OUT_OF_TIME){pageInfo.sealChunk()}else{if(pageInfo.isCurChunkFull()||pageInfo.isPageDone()){if(dc_jsDebug||(dc_doTHLoop&&(tempTime2-harvestTimer.getTime()<=HARVEST_TIMEOUT*0.6))){th=pageInfo.getNewTH();if(th!=-1){pageInfo.resetOnTH(th)}}}}}}}}else{if(fetchMethod==METHOD_TREE){walkTheTree(GET_HTML_MODE)}else{if(fetchMethod==METHOD_JQUERY){newWalkTheTree(GET_HTML_MODE)}}}if(dc_showAlerts||dc_jsTest){var timer2=new Date();var time=timer2.getTime()-timer1.getTime();testingInfo.setChunkTime(time)}}if(pageInfo.getChunk()==undefined){return}if(pageInfo.getChunk().getLen()<MINIMUM_TEXT_IN_PAGE){return}var query=pageInfo.getChunkToSend();var oScript=document.createElement("script");oScript.setAttribute("language","JavaScript");oScript.setAttribute("src",query);iChunkNumber++;dcDOMLock=false;document.getElementById("konasapn"+iTagNumFromServer).appendChild(oScript)}function addCoreContentLink(IEwordNumber,taxonomyKwd,highlighttext,wordNumber,isInTopic,taxonomyKey,sids,linkType,cpcList,scoreList){konaLinks.addLink(new Links(IEwordNumber,taxonomyKwd,highlighttext,wordNumber,isInTopic,taxonomyKey,sids,linkType,cpcList,scoreList));testingInfo.serverLinks++}function addContentLink(IEwordNumber,taxonomyKwd,highlighttext,wordNumber,isInTopic,taxonomyKey,sids){if(dc_PublisherID==35554&&IEwordNumber<100){return}konaLinks.addLink(new Links(IEwordNumber,taxonomyKwd,highlighttext,wordNumber,isInTopic,taxonomyKey,sids));testingInfo.serverLinks++}function addContentInfo(linkCur,adCur,keyword,title,description,landingUrl,encodedRedirect,clickUrl,logoImageUrl,searchProviderID,imageUrl,adType,encodedLayerImps,clearPixelUrl,rmType,RMCreativeUrl,isGlobalClick,rmPlayerType,isCacheBusting,rmValidViewTime){var obj=konaLinks.get(linkCur);if(obj.status==LOADED||obj.status==IMAGE_LOADING||obj.status==IMAGE_DONE_LOADING){return}if(directAdsPrefetch==true&&obj.autoFetch&&obj.hasDirect){obj.status=LOADED;return}var originalSearchProviderID=searchProviderID.split("$|$")[0];if(obj.clicked||(obj.status==YAHOO_LOADING&&isAlternativ(originalSearchProviderID))){obj.status=LOADED;return}if(layerModeLock&&obj.status!=DISABLED){applyLayerMode(linkCur,konaLayerMode)}obj.status=LOADED;obj.addInfo(adCur,new LinkInfo(keyword,title,description,landingUrl,encodedRedirect,clickUrl,logoImageUrl,searchProviderID,imageUrl,adType,encodedLayerImps,clearPixelUrl,rmType,RMCreativeUrl,isGlobalClick,rmPlayerType,isCacheBusting,rmValidViewTime));SpecialType_strategy.handleSpecialTypeString(linkCur)}function addContentInfoEmpty(linkCur){konaLinks.get(linkCur).status=LOADED}function runOnPage(iTagNumFromServer,konaRes,prod_ch){iKonaResultCode=konaRes;var doProcessing=(!useRonLinks&&dc_analysis&&iKonaResultCode==0)||dc_forceAnalysis;var doMarking=(iKonaResultCode==1||!dc_analysis)&&!useRonLinks;var timeOut=doMarking?contentMarkTimeOut:contentProcessTimeOut;if(layerPreload==null){layerPreload=new Image();layerPreload.src=layerPreloadSrc}if((pageStatus!=PAGE_READY&&document.readyState!="complete")&&!doRunOnPage){var timeD=doMarking?100:150;timeCounter+=timeD;window.setTimeout("runOnPage("+iTagNumFromServer+","+konaRes+',"'+prod_ch+'")',timeD);return}if(doRemoveEmbeddedAdlinks){removeEmbeddedAdlinks()}getRootElems();doAnalysis=(dc_analysis||prod_ch=="S"||prod_ch=="D");if(doProcessing&&!dcDOMLock){dcDOMLock=true;if(doAnalysis||dc_forceAnalysis){doAnalysis=false;dc_forceAnalysis=false;processPageContent(iTagNumFromServer)}dcDOMLock=false}else{if(doMarking&&!dcDOMLock){dcDOMLock=true;konaBuilder=new KonaBuilder();teUrlForBadAdv=teUrl.replace(httpTEServRegExp,teBadAdvReplacementStr);teUrl=teUrl.replace(httpTEServRegExp,teReplacementStr);redirectUrl=redirectUrl.replace(httpTEServRegExp,teReplacementStr);if(dc_showAlerts||dc_jsTest){var timer1=new Date()}konaLinks.prepareLinks();if(!dc_analysis){konaLinks.clear();exhibits.embedExhibits(true);konaLinks.prepareLinks()}else{if(exhibits.embedExhibits()){konaLinks.prepareLinks()}}showAdlinks(iTagNumFromServer);exhibits.showExhibits();dcDOMLock=false;if(dc_showAlerts||dc_jsTest){var timer2=new Date();testingInfo.setMarkupTime(timer2.getTime()-timer1.getTime());if(dc_jsTest){testingInfo.end()}}}else{if(iKonaResultCode==2){}}}}function setKonaMarkStyle(infoUnit){konaImages=new KonaImages();konaImages.init();validateInfoUnit(infoUnit);var target=infoUnit.dc_open_new_win=="yes"?"_new":"_top";if(infoUnit.dc_single_line=="yes"){infoUnit.dc_underlineType="none"}linkTemplate="<a href=# style='text-decoration: underline !important;"+adlinkChildStyle+"' class='kLink' onMouseOver='adlinkMouseOver(event,this,<1>);' target='"+target+"' id='KonaLink<1>' onclick='adlinkMouseClick(event,this,<1>);' oncontextmenu='return false;' onmouseout='adlinkMouseOut(event,this,<1>);' ><font #FS# color='"+infoUnit.dc_AdLinkColor+"' ><2></font></a>";var zeroPosition="top:0px; right:0px;bottom:0px;left:0px;";var linkGlobalCSS="border: 0px none transparent !important;background: transparent none !important;margin: 0px 0px 0px 0px; padding:0px 0px 0px 0px !important;text-transform: none !important;display:inline !important;font-variant:normal;";var target=infoUnit.dc_open_new_win=="yes"?"_new":"_top";if(infoUnit.dc_single_line=="yes"){infoUnit.dc_underlineType="none"}var descriptionBase="font: normal "+infoUnit.dcAL_LY_descFontSize+" "+infoUnit.dcAL_LY_FontType+" !important; color: "+infoUnit.dcAL_LY_descFontColor+"; text-align: left;";var style=[["span.kLink","border-top: 0px none !important;border-left: 0px none !important;border-right: 0px none !important;border-bottom:  1px "+infoUnit.dc_underlineType+" "+infoUnit.dc_AdLinkBorderColor+" ;padding : 0px 0px "+(bIE?"0.5pt":"1px")+" 0px !important;color:"+infoUnit.dc_AdLinkColor+";background: transparent none;width: auto !important;float: none !important;display:inline !important;"],["a.kLink","color:"+infoUnit.dc_AdLinkColor+" !important ; border-bottom-style: none;text-decoration: underline;cursor: "+cursorType+";font-family: "+infoUnit.dcAL_LY_FontType+";"+linkGlobalCSS+zeroPosition],["a.kLink:link","color:"+infoUnit.dc_AdLinkColor+" !important ; border-bottom-style: none;text-decoration: underline;cursor: "+cursorType+";font-family: "+infoUnit.dcAL_LY_FontType+";"+linkGlobalCSS+zeroPosition],["a.kLink:hover","color:"+infoUnit.dc_AdLinkColor+";text-decoration: underline;cursor: "+cursorType+";font-family: "+infoUnit.dcAL_LY_FontType+";"+linkGlobalCSS+zeroPosition],["a.kLink:visited","color:"+infoUnit.dc_AdLinkColor+";text-decoration: underline;cursor: "+cursorType+"; font-family: "+infoUnit.dcAL_LY_FontType+";margin: 0px 0px 0px 0px; padding:0px 0px 0px 0px;"],[".sponsor","font-family: MS Sans Serif, Verdana; color: "+infoUnit.dcAL_LY_captionFontColor+";font-size: 9pt; cursor: default;"],[".konaLayers","azimuth:center;border-collapse:separate;border-spacing:0;caption-side:top;cursor:auto;direction:ltr;elevation:level;empty-cells:show;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;list-style-image:none;list-style-position:outside;list-style-type:disc;orphans:2;page-break-inside:auto;pitch-range:50;pitch:medium;position:static;richness:50;right:auto;speak-header:once;speak-numeral:continuous;speak:normal;speech-rate:medium;stress:50;text-align:left;text-indent:0;text-transform:none;visibility:visible;volume:medium;white-space:normal;widows:2;word-spacing:normal;"],[".konaLayers *","background-attachment:scroll;background-color:transparent;background-image:none;background-position:0% 0%;background-repeat:repeat;border-style: none none none none;border-width: medium medium medium medium;clear:none;color:inherit;content:normal;counter-increment:none;counter-reset:none;cue-after:none;cue-before:none;float:none;left:auto;letter-spacing:normal;margin: 0px 0px 0px 0px;max-height:none;"+(bSafari?"":"max-width:none;")+"min-height:0;min-width:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;padding:0px 0px 0px 0px;page-break-after:auto;page-break-before:auto;pause-after:0;pause-before:0;position:static;table-layout:auto;text-decoration:none;top:auto;unicode-bidi:normal;"+(bSafari?"":"width:auto;")+"z-index:auto;"],[".konaLayers .konaLayer","position: absolute; top:0px; left:0px; width: 313px; padding: 0px; visibility: hidden; text-align:left; overflow: hidden;"],[".konaLayers .konaLayer a","font-weight: normal;text-decoration:none;"+linkGlobalCSS+zeroPosition],[".konaLayers .konaLayer a:link","font-weight: normal;text-decoration:none;"+linkGlobalCSS+zeroPosition],[".konaLayers .konaLayer a:hover","font-weight: normal;text-decoration:none;"+linkGlobalCSS+zeroPosition],[".konaLayers .konaLayer b","font-size:inherit;"],["a.CBL","cursor:default;"],["a.CBL:link","cursor:default;"],["a.CBL:hover","cursor:default;"],["a.CBL:visited","cursor:default;"],[".konaLayers .CBL .handleTd div","cursor:default;"],[".konaLayers .konaPlate","cursor : pointer;"],[".konaLayers .konaPlate .konaBox","background: url("+konaImages.top_box.src+") left top no-repeat;width: 313px;"],[".konaLayers .konaPlate .konaBottomBox","width: 313px; height:"+konaBottomHeight[0]+"px; font-size: 3px; "+(bIE?"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+konaImages.box_bottom.src+"', sizingMethod='scale');":"background: url("+konaImages.box_bottom.src+") left top no-repeat;")],[".konaLayers .konaPlate .konaBottomBox_Right","width: 313px; height:"+konaBottomHeight[0]+"px; font-size: 3px; "+(bIE?"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+konaImages.box_bottom_right.src+"', sizingMethod='scale');":"background: url("+konaImages.box_bottom_right.src+") left top no-repeat;")],[".konaLayers .konaPlate .konaBottomBox_drag","width: 313px; height:"+konaBottomHeight[1]+"px; font-size: 3px; "+(bIE?"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+konaImages.box_bottom_drag.src+"', sizingMethod='scale');":"background: url("+konaImages.box_bottom_drag.src+") top no-repeat;")],[".konaLayers .handleTd","vertical-align: top; width: 180px;"],[".konaLayers .handleTd div","cursor: move; padding: 0px 0px 0px "+paddingLeftPub+"; font-size: 3px;"],[".konaLayers .handleTd img",(isXHTMLPage&&!bIE?"vertical-align:top;":"")],[".konaLayers .frameBarCell_left","width:"+frameBarCell_leftSize+"; vertical-align: top; padding: 0px 0px 0px 0px;"],[".konaLayers .frameBarCell_right","width: 32px; vertical-align: top; padding-top: 0px; font-size: 5px;"],[".konaLayers .frameBar","margin-left: 7px; margin-right: 6px; cursor:auto; width:300px;"],[".konaLayers .konaDescDiv"," cursor: pointer; padding-top: 2px;"],[".konaLayers .table02","margin-left: 9px; font: normal 13px arial; width: 305px;"],[".konaLayers .table03","margin-left: 8px; font: normal 13px arial; width: 280px; "+(bIE?"":"table-layout: fixed;")],[".konaLayers .table03_flv02","margin: 0px 0px 0px 32px; width: 242px; font: normal 13px arial; "+(bIE?"":"table-layout: fixed;")],[".konaLayers .konaLayerTitle","text-align:center; padding-right: 10px;"],[".konaLayers .konaLayerRMTitle","text-align:left; padding-right: 10px; padding-left: 6px;"],[".konaLayers .konaLayerTitleText ","font: bold "+infoUnit.dcAL_LY_titleFontSize+" tahoma; color:"+konaLayerTitleTextColor+"; !important; text-decoration: underline;display:block;"],[".konaLayers .konaLayerTitleText b","font-size : "+infoUnit.dcAL_LY_titleFontSize+"; color: #FFA200;"],[".konaLayers .konaLayerDesc","padding: 6px 7px 0px 0px; "+descriptionBase],[".konaLayers .konaLayerDescDownlod","padding: 6px 7px 0px 0px; vertical-align:top; "+descriptionBase],[".konaLayers .konaLayerDesc b","font-size : "+infoUnit.dcAL_LY_descFontSize+"; color: "+infoUnit.dcAL_LY_descFontColor+";"],[".konaLayers .konaLayerLinks td","padding-top: 8px;"],[".konaLayers .konaLayerShopLinks td","padding-top: 1px; font-size: 9px;"],[".konaLayers .site","padding-left: 8px; overflow:hidden;"+adLinkTextAlign],[".konaLayers .site a","color: #666666 !important; font: normal 11px arial !important; text-decoration: underline !important; overflow:hidden;"],[".konaLayers .site a:hover","color: #FFA200 !important;"],[".konaLayers .buyNow","text-align: right; width:105px;"],[".konaLayers .konaLayer img","border: 0px;display:inline; padding:0px;"],[".konaLayers .imgBanner","padding: 6px 13px 0px 6px; vertical-align: top; width:"+widthLoadingLayer+"; text-align: center;"+(bIE?"":(!isXHTMLPage?"padding-bottom: 4px;":""))],[".konaLayers .imgShoppingBanner","padding: 5px 4px 0px 3px; vertical-align: top; width: 51px; text-align: center;"],[".konaLayers .imgBanner_down","padding: 5px 13px 0px 13px; vertical-align: top; width:"+widthLoadingLayer+"; text-align: center;"],[".konaLayers .top_curve","width: 313px; height: 10px; padding:0px; margin:0px;"+(((isXHTMLPage&&!bIE)||bIE)?"vertical-align:bottom;":"")+(bIE?"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+konaImages.top_curve.src+"', sizingMethod='image');":"background: url("+konaImages.top_curve.src+") left "+(bSafari?"bottom":"top")+" no-repeat;")],[".konaLayers .drop_top_curve","width: 313px; height: 35px;"+(isXHTMLPage&&!bIE?"vertical-align:bottom;":"")+(bIE?"padding:0px; margin:0px;":"font-size: 3px;")+(bIE?"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+konaImages.drop_top_curve.src+"', sizingMethod='scale');":"background: url("+konaImages.drop_top_curve.src+") top no-repeat;")],[".konaLayers .drop_top_curve_right","width: 313px; height: 35px; "+(bIE?"padding:0px; margin:0px;":"font-size: 3px;")+(isXHTMLPage&&!bIE?"vertical-align:bottom;":"")+(bIE?"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+konaImages.drop_top_curve_right.src+"', sizingMethod='scale');":"background: url("+konaImages.drop_top_curve_right.src+") top no-repeat;")],[".konaLayers .konaSearchRow td","padding-top: 2px;"],[".konaLayers .konaSearchTable","margin-left: 5px; font: normal 13px arial;"],[".KonaBody",(!bSafari&&!isKonaBodyPositionChanged?"display:inline;":"")],[".konaLayers .table02_flv","margin-left: 10px; "+(bIE?"margin-top: 7px;":"margin-top: 3px; margin-bottom: -4px;")],[".konaLayers .table02_flv02","margin-left: 34px; width: 234px; "+(bIE?"margin-top: 7px;":"margin-top: 3px;")],[".konaLayers .table02_flv03","margin-left: 6px;"+(bIE?"margin-top: 7px;":"margin-top: 3px;")],[".konaLayers .konaLayer_flvTD01",(bIE?"padding: 6px 0px 0px 6px;":"padding: 6px 6px 0px 6px;")],[".konaLayers .konaLayer_flvTD02",(bIE?"padding: 5px 0px 0px 6px;":"padding: 5px 6px 0px 6px;")],[".konaLayers .konaLayer_flvEmbed01",""],[".konaLayers .konaLayer_flvEmbed02",(!bIE?"margin-bottom: -3px;":"")],[".konaLayers .konaLayerDesc_nearFLV",descriptionBase+"vertical-align: top; "+(bIE?"padding: 11px 10px 0px 5px;":"padding: 11px 10px 0px 0px;")],[".konaLayers .konaLayerDesc_underFLV",descriptionBase+"font: normal 11px/14px verdana !important; vertical-align: top; "+(bIE?"padding: 2px 0px 0px 6px;":"padding: "+(isXHTMLPage?"0px":"4px")+" 0px 0px 6px;")],[".konaLayers .konaLayerLearnMore","text-align:left; vertical-align: bottom; "+(bIE?"padding: 0px 0px 1px 14px;":"padding: 0px 0px 1px 6px;")],[".konaLayers .konaLayerLearnMore02","vertical-align: top; text-align:right;"+(bIE?"padding: 0px 0px 0px 12px;":"width: auto !important; padding: 4px 0px 0px 0px !important;")],[".konaLayers .konaLayerDownload","vertical-align: top; text-align:right;"+(bIE?"width: 132px; padding: 0px 0px 0px 12px;":"width: 132px !important; padding: 4px 0px 0px 0px !important;")],[".konaLayers .konaLayerLinks_underFLV td",(bIE?"width: 170px !important; padding-top: 4px; word-wrap:break-word;":"padding-top: "+(isXHTMLPage?"0px":"4px")+"; padding-bottom: 4px; line-height: 14px;")],[".konaLayers .konaLayerLinks_underFLV02 td",(bIE?"padding-top: 7px; word-wrap: break-word; width: 130px !important;":"padding-top: 4px; line-height: 14px;")],[".konaLayers .konaFlashWrap","width: 320px; height: 288px; "],[".konaLayers .konaFlashDrag","position:absolute;width:198px;height:26px;background-color:#ffffff;opacity:0;filter:alpha(opacity=0);cursor:move;"],[".konaLayers .konaFlashContent","width: 320px; height: 288px;"],[".konaLayers #konaFlashBubble","width: 320px; height: 288px; "],[".konaLayers .konaBigFlashWrap","position:absolute;width:470px;height:395px;"],[".konaLayers .konaBigFlashDrag","position:absolute;z-index:17;width:347px;height:24px;left:85px;top:5px;background-color:#ffffff;opacity:0;filter:alpha(opacity=0);cursor:move; "],[".konaLayers .konaBigFlashContent","position:absolute;left:0;top:0;z-index:12;width:470px;height:395px; "],[".konaLayers .konaInfocomSearchTD .konaLineInputTD","position:relative;"],[".konaInfocomTableContainer","margin-left:21px;"],[".konaInfocomSearchTD","background: url("+konaImages.info_search_area.src+"); width: 270px; height:46px;"],[".konaInfocomSearchTable","margin-top: 10px; margin-left:13px; width:244px;"],[".konaInfocomSearchField","width:163px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; background-color:#FFF;color:#000; border:1px inset #ccc; padding: 1px 0px;"],[".konaInfocomInputContainer","position:relative; width: 163px; text-align: left; overflow: hidden;"],[".konaLayers .konaFlashWrap","position:relative;"],[".konaLayers .konaExpandFlashWrap","position:relative;"],[".konaLayers .konaFlashDrag","z-index:100;position:absolute;width:198px;height:26px;background-color:#ffffff;opacity:0;filter:alpha(opacity=0.0);cursor:move;top:0px;"],[".konaLayers .konaExpandFlashContent",""],[".konaLayers .konaExpandFlashIframe","/*background:yellow;*/z-index:9999;position:absolute;"],[".konaLayers .konaWebnaryGradientTD .konaLineInputTD","position:relative; width: 200px"],[".konaWebnaryGradientTD","background:url("+konaImages.webnary_kona_grad.src+") repeat-x; height:39px; width:300px;"],[".konaWebnaryTable","width: 300px; height:112px; margin-left:7px; margin-top:3px"],[".konaWebnaryHeadTD","width: 300px; height:51px;"],[".konaWebnarySubTD","width: 300px; height:22px;"],[".konaWebnarySearch","width:280px; height:23px; margin: 3px 0 0 10px;"],[".konaWebnaryInput","width: 200px; font: 12px Verdana, Arial, Helvetica, sans-serif; background-color:#FFF;color: black; border:1px inset #ccc; padding: 1px 0px;"],[".konaWebnarySubmit","margin-left:5px;"],[".konaWebnaryInputContainer","position:relative; width: 200px; text-align: left; overflow: hidden;"],[".konaLayers .konaFDGradientTD .konaLineInputTD","position:relative; width: 193px"],[".konaFDGradientTD","background:url("+konaImages.konaFDbottom.src+"); height:39px; width:300px;"],[".konaFDTable","width: 300px; height:112px;"],[".konaFDHeadTD","width: 300px; height:55px;"],[".konaFDSubTD","width: 300px; height:20px;"],[".konaFDSearch","width:280px; height:23px; margin: 3px 0 0 10px;"],[".konaFDInput","width: 193px; font: 12px Verdana, Arial, Helvetica, sans-serif; background-color:#FFF;color: black;border:1px inset #ccc; padding: 1px 0px;"],[".konaFDSubmit","margin-left:5px;"],[".konaFDInputContainer","position:relative; width: 193px; text-align: left; overflow: hidden;"],[".konaYahooShoppingTable","width: 288px; height:125px; border: none; margin-left: 12px; margin-top: 5px; background-image:url("+konaImages.konaYahooSbgWhite.src+");"],[".konaYahooShoppingTable2","width: 288px; border: none; margin-left: 12px;"],[".konaYahooShoppingHeader","height: 31px; font-family:Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0px; vertical-align:middle; text-align:center;"],[".konaLayers .konaLayer a.konaYahooShoppingTitle","font-size:11px; font-weight:bold; color: #000000; text-decoration:underline; cursor:default;"],[".konaYahooShoppingContentTable","border: none; padding:0;"],[".konaYahooShoppingImageTd","padding-top:6px; padding-right:0px; padding-left:12px; padding-bottom:0px; vertical-align:top;"],[".konaLayers .konaLayer .konaYahooShoppingImg","border:solid 1px; border-color: #808080;"],[".konaYahooShoppingPrice","padding-bottom:5px; padding-right: 7px;"],[".konrYahooShoppingFont","font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color: #000000;"],[".konaYahooShoppingText","width: 177px; padding-left: 5px"],[".konaYahooShoppingDescriptionTable","height: 80px;"],[".konaYahooShoppingDescriptionTd","vertical-align: top;"],[".konaYahooShoppingDescription","margin:0; padding: 3px 3px 7px 2px; text-align:left; vertical-align:top; line-height:1.5;"],[".konaYahooSecondTable","background-image:url("+konaImages.konaYahooSbgMiddle2.src+"); width:100%; border: none;"],[".konaYahooSecondTableLinkTD","padding-left:15px; vertical-align:bottom;"],[".konaLayers .konaLayer a.konrYahooLink1","color:#0170b3; font-size:10px; text-decoration: underline; font-family: verdana,sans-serif;"],[".konaYahooSecondTableButtonTD","float:right; vertical-align:bottom;"],[".konaYahooShoppingBuyNowImg","margin-right: 5px; float:right; border:none;"],[".konaYahooShoppingBottomTd","padding:0px; vertical-align:top;"],[".konaYahooShoppingBottomImg","padding:0; margin:0;"],[".konaYahooShoppingPoweredImg","margin:5px 0 0 0; padding:0;"],[".konaLayers .konaBox_bottom","background: url("+konaImages.box_separator.src+") left top no-repeat; width: 313px; height: 10px; font-size: 1px;"],[".konaLayers .konaBox02","background: url("+konaImages.box.src+") left top no-repeat; width: 313px; padding-top: 7px;"],[".konaLayers .konaLayer .konatabs_Search","margin: 0px 0px 0px 16px; width: 280px; padding: 0px; text-align: left; background: url("+konaImages.tabs_bg.src+") bottom repeat-x;"],[".konaLayers .konaLayer .konatabs_Table td","padding-right: 4px;"],[".konaLayers .konaLayer .konatabs_Table div","height: 18px; padding: 0px ; text-align: center; background: url("+konaImages.tab_right.src+") bottom right no-repeat;"],[".konaLayers .konatabs_Table div span","display:block; height: 15px; padding: 3px 7px 0px 9px; text-align: center; background: url("+konaImages.tab_left.src+") bottom left no-repeat; color: #808080; font: normal 11px arial; cursor: pointer;"],[".konaLayers .konaLayer .konatabs_Table div.selected","background: url("+konaImages.tab_selected_right.src+") bottom right no-repeat; cursor: default;"],[".konaLayers .konatabs_Table div.selected span","background: url("+konaImages.tab_selected_left.src+") bottom left no-repeat; font: bold 11px arial; color: #96BF00; cursor: default;"],[".konaLayers .konaSearch_Form","margin: 6px 0px 0px 15px;"],[".konaLayers .konaSearch_Form input","font: normal 11px verdana; color: black; border: 1px solid #7F9DB9; margin-right: 3px;padding-left:2px;"],[".konaLayers .konaSearch_Form .konaSearchName","font: normal 11px verdana; color: #96BF00; padding-right: 6px;"],[".konaLayers .konaLayer .konaBox02 td.konaHover * ","color: #96BF00;"],[".searchTbContainer","width:295px; height:20px; border:0px solid red; padding:0 0 0 0; margin: 0 0 0 0;"],[".searchTransTb","width:10px; height:20px; border:0px solid blue; margin:0; padding: 0; vertical-align:middle;"],[".searchLogoTb","width:81px; height:20px ;vertical-align:middle;border:0px solid red; margin:0; padding: 0; "],[".searchInputTb","width:140px;  height:20px; vertical-align:middle; margin:0; padding: 0; "],[".searchButtonTb","width:63px;  height:20px; vertical-align:middle;border:0px solid red; margin:0; padding: 0; "],[".searchInputFieldTbDiv","width:133px; height:16px; position:relative; background-color: #fff; border:1px solid #939aa0; padding-left: 2px; margin:0; vertical-align:middle; "],[".searchInputFieldTb","font-size:12px; font-weight: normal; font-family:Tahoma, Arial, sans-serif; color:#000000;background-color: transparent;position:absolute;"],[".konaYahooSponsored_bckgr","background:url("+konaImages.konaYSponsored_fon_w_text.src+"); height:113px; width:300px; margin-left:7px; margin-top:3px"],[".konaYahooSponsored_table","margin-top: 72px; margin-left: 17px;"],[".konaYahooSponsored_input","width: 182px; font: Verdana, Arial, Helvetica, sans-serif; margin-top: 0px; background-color:#FFF;color: black;border:1px inset #ccc; padding: 1px 0px;"],[".konaYahooSponsored_inputContainor","position:relative; width: 182px; text-align: left; overflow: hidden;"],[".konaYahooSponsored_td","padding:2px;"]];if(cssForStrangeProblems!=""){for(i=0;i<cssForStrangeProblems.length;i++){style.push(cssForStrangeProblems[i])}}insertStyles(style)}function insertStyles(styleArr){var styleElementLength=bIE?document.getElementsByTagName("STYLE").length:0;if((!isDynamicContent||(bIE&&document.readyState!="complete"))&&(styleElementLength<MAX_STYLE_ELEMENTS_ON_PAGE)){document.write("<style id='konaStyle' type='text/css'>");var str="";for(var i=0;i<styleArr.length;i++){str+="\n "+styleArr[i][0]+" { "+styleArr[i][1]+" } "}var str2=str;document.write(str);document.write("</style>");if(bIE&&(dc_PublisherID==8192)){document.write("<style id='konaStyle1' type='text/css'>");document.write(str2);document.write("</style>")}}else{var oStyleSheet;oStyleSheet=document.createElement("style");oStyleSheet.type="text/css";oStyleSheet.media="all";oStyleSheet.rel="stylesheet";oStyleSheet.id="konaStyleSheet";oStyleSheet.name="konaStyleSheet";var head=document.getElementsByTagName("head").item(0);head.appendChild(oStyleSheet);for(var i=0;i<styleArr.length;i++){if(styleArr[i][1].length>0){appendStyleRule(styleArr[i][0],styleArr[i][1])}}}}function appendStyleRule(selector,declarations){if(document.styleSheets){if(document.styleSheets.length>0){var lastIndex=document.styleSheets.length-1;if(document.styleSheets[0].insertRule){document.styleSheets[lastIndex].insertRule(String.format("{0} { {1} } ",selector,declarations),document.styleSheets[lastIndex].cssRules.length)}else{if(document.styleSheets[0].addRule){document.styleSheets[lastIndex].addRule(selector,declarations)}}}}}function getFontSizeStr(fontSize,oNode){return GoodDecimal(fontSize)?"size="+fontSize:""}function getStyleAttribute(obj,attributeType,simpleAttribute){var attributValue="";if(bIE){var style=obj.currentStyle;if(typeof(style)!="undefined"){attributValue=eval("style."+attributeType)}}else{attributValue=getKonaComputedStyleNamedProp(obj,attributeType)}return attributValue}function AdLinkStyle(fontType,fontWeight,fontSize,fontSizeStr){this.fontType=fontType;this.fontWeight=fontWeight;this.fontSize=fontSize;this.fontSizeStr=fontSizeStr;this.styleStr=(fontType==""?"":"font-family:"+fontType+";")+(fontWeight==""?"":"font-weight:"+fontWeight+";")+(fontSizeStr==""&&fontSize!=""?"font-size:"+fontSize+";":"")}var fontApostrophesRegExp=new RegExp("[\\']","gi");function createAdLinkStyle(oNode){var fontAtr="";var fontSizeAtr="";var fontWeightAtr="";if(oNode.nodeType==Node.TEXT_NODE){oNode=oNode.parentNode}if(bIE){fontAtr="fontFamily";fontSizeAtr="fontSize";fontWeightAtr="fontWeight"}else{fontAtr="font-family";fontSizeAtr="font-size";fontWeightAtr="font-weight"}var fontWeight=adlinkFontCheck?getStyleAttribute(oNode,fontWeightAtr,true):"";if(dc_AdLinkBold){fontWeight=Number(700)}var fontType=linksFontFamily==""?getStyleAttribute(oNode,fontAtr,true):linksFontFamily;fontType=fontType.replace(fontApostrophesRegExp,'"');var fontSize="";var hTagRegExp=new RegExp("h[1-6]","gi");if(forceFontSizeCheck||(adlinkFontCheck&&(!bIE||!isChildOf(4,oNode,hTagRegExp)))){fontSize=getStyleAttribute(oNode,fontSizeAtr,true)}var fontSizeStr="";if(ignoreRelativeFonts&&isRelativeFont(fontSize)){fontSize=ignoreFontSize(fontSize)}else{if(fontSize!=""&&fontSize.indexOf("-")<=-1){fontSizeStr=getFontSizeStr(fontSize,oNode)}}return new AdLinkStyle(fontType,fontWeight,fontSize,fontSizeStr)}function isRelativeFont(fontSize){return(fontSize.indexOf("em")!=-1||fontSize.indexOf("%")!=-1||relativeSizes.indexOf(fontSize.toLowerCase())!=-1)}function ignoreFontSize(fontSize){if(fontSize.indexOf("%")!=-1&&overrideFontSize){return"100%"}else{return""}}function getSpans(aTag){while(aTag&&aTag.tagName!="SPAN"){aTag=aTag.firstChild}return aTag?aTag.parentNode.childNodes:null}function setAdLinkStyle(aTag,isMouseOver){var span=getSpans(aTag)[0];var style=null;try{while(span!=null){style=span.style;if(!bIE){style.paddingBottom="1px;"}if(isMouseOver){if(infoUnit.dc_single_line!="yes"){style.borderBottomStyle="solid"}if(colorChangeLink){style.borderBottomColor=infoUnit.dc_AdLinkColor;style.borderBottomWidth="2px"}else{style.borderBottomWidth=(infoUnit.dc_underlineType=="solid")?"3px":"1px"}style.backgroundColor=unescape(infoUnit.dcAL_bgColor)}else{if(colorChangeLink){style.borderBottomColor=infoUnit.dc_AdLinkBorderColor}else{style.borderBottomColor=infoUnit.dc_AdLinkColor}style.borderBottomWidth="1px";style.borderBottomStyle=infoUnit.dc_underlineType;style.backgroundColor="transparent"}span=span.nextSibling}}catch(e){}}function createAdLinkStr(oNode,adIndex,adLinkWord){dc_adLinkStyle=createAdLinkStyle(oNode);var sLink=linkTemplate.replace(/<1>/g,adIndex).replace(/<2>/g,"$3");var isCoreLink=(konaLinks.get(adIndex).linkType==1);var style="color: "+unescape(isCoreLink?kCoreLinkColor:infoUnit.dc_AdLinkColor)+" !important;";style+=dc_adLinkStyle.styleStr;sLink=sLink.replace(/#FS#/g,dc_adLinkStyle.fontSizeStr+" style='"+style+adlinkChildStyle+"'");var words="";var wordArr=adLinkWord.split(" ");for(var i=0;i<wordArr.length;i++){words+="<span class='kLink' style='"+style+adlinkWordStyle+"' >"+wordArr[i]+(i==wordArr.length-1?"":" ")+"</span>"}sLink=sLink.replace("$3",words);return sLink}function createAdLinkNode(oNode,adIndex,adLinkWord){return konaLinkBuilder.getContentLink(oNode,adIndex,adLinkWord)}function isBoldNode(node){var attributeValue="";var fontWeight="";var tagName="|"+node.nodeName.toLowerCase()+"|";if(isBoldActive=="0"){if("|b|strong|".indexOf(tagName)!=-1){return true}startIndex=0;fontWeight=getKonaComputedStyleProp(node,"fontWeight");if(GoodDecimal(fontWeight)){if(Number(fontWeight)>=700){return true}}else{if(fontWeight=="bold"){return true}}}if(boldTagsStr.indexOf(tagName)!=-1){return true}else{if(tagName=="|font|"){var size=node.getAttribute("size");if(size&&size>=boldFontSize){return true}}}return false}function konaInit(pageLoaded){if(initLock){return true}else{initLock=true}testingInfo=new TestingInfo();infoUnit=aInfoUnits[0];checkCookieChange();cookieFeed();if(haltcheck()){return false}if(restrictedTagsStr==null){restrictedTagsStr="|";for(var i=0;i<restrictedTags.length;i++){restrictedTagsStr+=restrictedTags[i]+"|"}}if(boldTagsStr==null){boldTagsStr="|";for(var i=0;i<boldTags.length;i++){boldTagsStr+=boldTags[i]+"|"}}if(kLang==null){kLang=new KonaLang()}if(pageInfo==null){pageInfo=new PageInfo(0)}if(contentTags==null){contentTags=new ContentTags(infoUnit)}if(isDynamicContent){pageLoaded=false}loadExternalScripts(!pageLoaded);if(!doStaticStyle){setKonaMarkStyle(infoUnit)}impressions=new ImpressionDaoFunc();konaLinks=new KonaLinks();konaLinkBuilder=new KonaLinkBuilder();konaRichMedia=new KonaRichMedia();aRootElems=new Array();if(dc_getCoreLinks){maxLinksOnPage=Number.MAX_VALUE}return true}ensureDefined("iTagNumber","0");if(iTagNumber==0){if(typeof(__externalInitFunction)==="function"){__externalInitFunction()}ensureDefined("aInfoUnits","['']");ensureDefined("dcAdlinkHighlights","['']");ensureDefined("dc_PublisherID",(typeof(this["iKonaPublisherID"])=="undefined")?"4":"iKonaPublisherID");ensureDefined("dc_ExtId","-1");if(typeof(this["dc_PartnerID"])!="undefined"){eval("var dc_PublisherID = dc_PartnerID")}ensureDefined("dc_isBoldActive","'yes'");ensureDefined("dc_useRonLinks","'no'");ensureDefined("dc_isFilterMinimumElementsActive","'yes'");ensureDefined("js_url","'www.gamelink.com'");ensureDefined("dc_AdLinkBold","false");if(dc_useRonLinks=="yes"){useRonLinks=true}ensureDefined("dc_urlPageKey","false");ensureDefined("dc_analysis","true");ensureDefined("dcDOMLock","false");defineAsWell("sKonaBGColor1","dc_bg_color1");defineAsWell("sKonaBGColor2","dc_bg_color2");defineAsWell("sKonaTitleColor","dc_TitleColor");defineAsWell("sKonaTextColor","dc_TextColor");defineAsWell("sKonaURLColor","dc_URLColor");defineAsWell("sKonaURLVisitedColor","dc_URLVisitedColor");support_1_3_Ver_ParamsNameing();aInfoUnits[0]=new InfoUnit(getInfoUnitVal("dc_width",""),getInfoUnitVal("dc_height",""),getInfoUnitVal("dc_Keywords",""),getInfoUnitVal("dc_OutBorder",""),getInfoUnitVal("dc_InBorder",""),getInfoUnitVal("dc_external_border",""),getInfoUnitVal("dc_internal_border",""),getInfoUnitVal("dc_bg_color1",""),getInfoUnitVal("dc_bg_color2",""),getInfoUnitVal("dc_AdLinkColor",DC_AL_COLOR_DEF),getInfoUnitVal("dc_AdLinkBorderColor",""),getInfoUnitVal("dc_single_line",DC_AL_SINGLE_LINE),getInfoUnitVal("dc_useVPP",DC_AL_USE_VPP),getInfoUnitVal("dcAL_number",DC_AL_NUMBER_DEF),getInfoUnitVal("dcAL_bgColor",""),getInfoUnitVal("dcAL_LY_showCaption",DC_AL_LY_SHOWCAPTION_DEF),getInfoUnitVal("dcAL_LY_captionTxt",DC_AL_LY_CAPTION_TEXT_DEF,false),getInfoUnitVal("dcAL_LY_captionFontColor",DC_AL_LY_CAPTION_FONT_COLOR_DEF),getInfoUnitVal("dcAL_LY_borderColor",DC_AL_LY_BORDER_COLOR_DEF),getInfoUnitVal("dcAL_LY_bgColor",DC_AL_LY_BG_COLOR_DEF),getInfoUnitVal("dcAL_LY_FontType",DC_AL_LY_FONT_TYPE_DEF),getInfoUnitVal("dcAL_onMouseOvercolor",DC_AL_LY_ONMOUSEOVER_COLOR_DEF),getInfoUnitVal("dcAL_LY_titleActive",DC_AL_LY_TITLE_ACTIVE_DEF),getInfoUnitVal("dcAL_LY_titleFontColor",DC_AL_LY_TITLE_FONT_COLOR_DEF),getInfoUnitVal("dcAL_LY_titleBold",DC_AL_LY_TITLE_BOLOD_DEF),getInfoUnitVal("dcAL_LY_titleFontSize",DC_AL_LY_TITLE_FONT_SIZE_DEF),getInfoUnitVal("dcAL_LY_descActive",DC_AL_LY_DESC_ACTIVE_DEF),getInfoUnitVal("dcAL_LY_descFontColor",DC_AL_LY_BORDER_COLOR_DEF),getInfoUnitVal("dcAL_LY_descFontSize",DC_AL_LY_DESC_FONT_SIZE_DEF),getInfoUnitVal("dcAL_LY_urlActive",DC_AL_LY_URL_ACTIVE_DEF),getInfoUnitVal("dcAL_LY_urlFontColor",DC_AL_LY_URL_FONT_COLOR_DEF),getInfoUnitVal("dcAL_LY_urlFontBold",DC_AL_LY_URL_FONT_BOLD_DEF),getInfoUnitVal("dcAL_LY_urlFontSize",DC_AL_LY_URL_FONT_SIZE_DEF),getInfoUnitVal("dcAL_explainActive",DC_AL_LY_EXPLAIN_ACTIVE_DEF),getInfoUnitVal("dcAL_explainText",DC_AL_LY_EXPLAIN_TEXT_DEF,false),getInfoUnitVal("dcAL_explainURL",DC_AL_LY_EXPLAIN_URL_DEF),getInfoUnitVal("dc_numberAds",""),getInfoUnitVal("dc_sm_type",""),getInfoUnitVal("dc_default",""),getInfoUnitVal("dc_bg_img",""),getInfoUnitVal("dc_align",""),getInfoUnitVal("dc_caption_text","",false),getInfoUnitVal("dc_show_caption",""),getInfoUnitVal("dc_caption_font",""),getInfoUnitVal("dc_caption_font_size",""),getInfoUnitVal("dc_caption_font_color",""),getInfoUnitVal("dc_caption_font_bgColor",""),getInfoUnitVal("dc_show_title",""),getInfoUnitVal("dc_title_font",""),getInfoUnitVal("dc_title_font_size",""),getInfoUnitVal("dc_title_font_bold",""),getInfoUnitVal("dc_title_font_color",""),getInfoUnitVal("dc_show_description",""),getInfoUnitVal("dc_description_font",""),getInfoUnitVal("dc_description_font_size",DC_TM_DESC_FONT_SIZE_DEF),getInfoUnitVal("dc_description_font_bold",""),getInfoUnitVal("dc_description_font_color",""),getInfoUnitVal("dc_show_url",""),getInfoUnitVal("dc_url_font",""),getInfoUnitVal("dc_url_font_size",""),getInfoUnitVal("dc_url_font_bold",""),getInfoUnitVal("dc_url_font_color",""),getInfoUnitVal("dc_titLinesNumberFactor",""),getInfoUnitVal("dc_descLinesNumberFactor",""),getInfoUnitVal("dc_descCharsFactor",""),getInfoUnitVal("dc_titCharsFactor",""),getInfoUnitVal("dc_caption_position",""),getInfoUnitVal("dc_adlinks_active",DC_ADLINKS_ACTIVE_DEF),getInfoUnitVal("dc_ron",DC_RON_DEF),getInfoUnitVal("dc_adult",DC_ADULT_DEF),getInfoUnitVal("dc_PP_cap",DC_PP_CAP_DEF),getInfoUnitVal("dc_PP_width",DC_PP_WIDHT_DEF),getInfoUnitVal("dc_PP_height",DC_PP_HEIGHT_DEF),getInfoUnitVal("dc_PP_under",DC_PP_UNDER_DEF),getInfoUnitVal("dc_adIndex",DC_AD_INDEX,false),getInfoUnitVal("dc_aff_id",""),getInfoUnitVal("dc_is_image","no"),getInfoUnitVal("dc_open_new_win",DC_AL_OPEN_NEW_WIN_DEF),getInfoUnitVal("dc_delayTime",DC_AL_DELAY_TIME),getInfoUnitVal("dc_offCloseTime",DC_AL_OFF_CLOSE_TIME),getInfoUnitVal("dc_underlineType",DC_AL_UNDERLINE_TYPE_DEF),getInfoUnitVal("dc_clickDelayTime",DC_CLICK_DELAY_TIME_DEF),getInfoUnitVal("dc_adLinkClickAllowed",DC_ADLINK_CLICK_ALLOWED_DEF),getInfoUnitVal("dc_contentTag",DC_AL_CONTENT_TAG_DEF),getInfoUnitVal("dc_contentTagAttr",DC_AL_CONTENT_TAG_ATTR_DEF),getInfoUnitVal("dc_contentTagAttrVal",DC_AL_CONTENT_TAG_ATTR_VAL_DEF),getInfoUnitVal("dc_redirect3PartyUrl",DC_REDIRECT3PARTY_URL_DEF,false),getInfoUnitVal("dc_effect_speed",DC_LY_EFFECT_SPEED),getInfoUnitVal("dc_restrictedTag",DC_AL_RESTRICTED_TAG_DEF),getInfoUnitVal("dc_restrictedTagAttr",DC_AL_RESTRICTED_TAG_ATTR_DEF),getInfoUnitVal("dc_restrictedTagAttrVal",DC_AL_RESTRICTED_TAG_ATTR_VAL_DEF),getInfoUnitVal("dc_maxLinks",MAX_ADLINKS_ON_PAGE),getInfoUnitVal("dc_contentTags",DC_AL_CONTENT_TAGS_DEF),getInfoUnitVal("dc_restrictedTags",DC_AL_RESTRICTED_TAGS_DEF));support_1_3_Ver_Params();if(aInfoUnits[0].dc_adlinks_active=="0"){dcAdlinksActive="0"}var def_dc_Width=500;var def_dc_Height=500;var def_AdLinkColor="#FF6633";dc_width="";dc_height="";dc_caption_text="";dc_Keywords="";dc_OutBorder="";dc_InBorder="";dc_external_border="";dc_internal_border="";dc_bg_color1="";dc_bg_color2="";dc_TitleColor="";dc_DescriptionColor="";dc_URLColor="";if(isForcedDynamicContent){isDynamicContent=true}var cursorType=bIE?"hand":"pointer";if(!kona$("AdLinkLayerClick")){var target=aInfoUnits[0].dc_open_new_win=="yes"?"_new":"_top";if((!isBritannicaFF3&&!isDynamicContent)||(bIE&&document.readyState!="complete")){document.writeln("<a href=#  target='"+target+"' id='AdLinkLayerClick'></a>")}else{var s=document.createElement("a");s.setAttribute("href","#");s.setAttribute("target",target);s.setAttribute("id","AdLinkLayerClick");document.body.appendChild(s)}}var timeCounter=0;var adLinkMarkTimeOutCounter=0;var isKonaInited=false;var appendKonaLayerTime=0;var markedLinks=0;var sKey="";var wordsCounterStart=1;var wordsCounterEnd=0;var pageStatus=PAGE_NOT_READY;var dc_ALLastTime=0;var adlinkMarked=false;var requestCounter=0;var autoFetchAdLinkDataEvent=false;var alGotFactor=false;var iChunkNumber=0;var iLastNodeNumber=0;var iCurrMU=0;var totalOffset=1;var adLinksOnPageCounter=0;var linkTemplate="";var exhibits=new Exhibits();var initLock=false;var rootsLock=false;var layerModeLock=false;var konaLayerMode=LAYER_MODE_POP;var doAnalysis=true;var globalTimeCount=0;var ronLinksLock=false;var isBoldActive=dc_isBoldActive=="no"?"0":"1";var link_info_loading=new LinkInfo("","","<br>Loading<br><br><br>","","#","#",null,-1,"","LOAD");var widthLoadingLayer="51px";var konaEPid="";var layerEffectSpeed=parseInt(aInfoUnits[0].dc_effect_speed);var hasRMFlashSupport=false;var redirectLock=new RedirectLock();var kCoreLinkColor="red";var pageLayoutScore=-1;var reactionBase="";var analysisBase="";var dc_ALTimeout=1800;var hiddenDepth=8;var adlinkChildStyle="position:static;";var adlinkWordStyle=bIE?"position:relative;":"position:static;";var useMetaTags=true;var dc_doHalt=false;var fetchMethod=bIE?METHOD_TEXT_RANGE:METHOD_TREE;if(customSetJqueryParsingMethod()){fetchMethod=METHOD_JQUERY;konaTweakMode|=1024}var dc_z_index=4000;var dc_tmReload=true;var doStaticStyle=true;var doRemoveEmbeddedAdlinks=false;var dc_doTHLoop=true;var dc_limitHarvestTime=true;var networkByHash=false;var filterSmallNodes=false;var ronLinksRandom=true;var publisherIdInKey=false;var checkRestrictedNodes=false;var textFromRange=true;var checkBoldOnInsertion=false;var useScrolledPosition=false;var colorChangeLink=false;var siteSearchUrl=null;var maxLinksOnPage=parseInt(aInfoUnits[0].dc_maxLinks);var isXHTMLPage=getIsXHTMLPage();var adlinkFontCheck=true;var checkHiddenNodes=true;var contentMarkTimeOut=5000;var contentProcessTimeOut=5000;var dc_sendLinks=false;var oneClickPerLink=true;var ignoreRelativePositions=false;var maxLinksMode=0;var boldFontSize=3;var refreshCSSOnScroll=false;var removeFirstWordLinks=false;var forceFontSizeCheck=false;var relativePositionBug=false;var linksFontFamily="";var doReportMissingAds=true;var doOvertureNewFeed=true;var trafficPercentage=100;var ignoreRelativeFonts=true;var ignoreNegativePositions=false;var overrideFontSize=false;var maxAnalysisChunks=50;var boxesToAvoid=null;if(bOpera){boxesToAvoid=["object","embed","iframe"]}else{if(bIE){boxesToAvoid=["object","embed","select"]}else{boxesToAvoid=["object","embed"]}}var doOvertureMultikeys=true;var tweakModePercentage=0;var numOfBestLinks=0;var checkLinkVisibility=false;var layerAreaOrder=[0,1,2,3];var rmLayerOffOpenTime=2000;var newLayoutSelection=true;var newRelevancyActivation=false;if(layerEffectSpeed<=0||layerEffectSpeed>20){layerEffectSpeed=5}var iKonaResultCode=2;var isReAnalysis=false;var aKonaResults=[];var aURLParams=[];var globalHiddenElements="";var dcAdlinkHighlights=new Array();var iKonaServerColId=-1;var searchLogoImage="ssearch80x20.gif";var searchLogoImageParams="width='80' height='20' alt=''";var searchButtonImage="search_button_text20";var searchButtonImageO="search_button_text20_o";var searchButtonImageParams="width='63' height='20' border='0' alt='Search'";var contentlinkLogo="contentlink5";var contentlinkLogoO="contentlink5_o";var contentlinkLogoParams="width='78' height='16' alt='Kontera'";var searchInputFieldTbDivParams="";var searchInputTbParams="";var searchPaddingSize=bIE?"2px":"4px";var searchLogoTbParams="";var searchButtonTbParams="";var searchTransTbParams="";var konaOuterLayerStyle=OUTER_LAYER_REG;var konaBottomHeight=[45,20];var isExternalPublisher=(dc_ExtId>0?true:false);var extConvertedPubId=-1;var extExternalType=EXTERNAL_TYPE_NONE;var konaRequestId=0;var konaLayerTitleTextColor="#FFA200;";var frameBarCell_leftSize="88px";var handleTdParams="";var moreInfoImage="moreinfo.gif";var moreInfoImageParams="width='105' height='22' alt='More info'";var layerTitleImage="ad_title.gif";var open_new_win_search=aInfoUnits[0].dc_open_new_win;var cssForStrangeProblems="";var teReplacementStr=HOST_TYPE_REG;var teBadAdvReplacementStr=HOST_TYPE_REG;var isKonaBodyPositionChanged=false;var logoImageForJupStyle="jp_internetlogo.gif";var paddingLeftPub="33px";var pageTopicVector=null;var directAdsPrefetch=false;var strAnalysisHostNameFromReaction="na";var marginBotForSearchInputField="0px";var siteLogoImage="";var layerOffsetLeftAddition=0;var adLinkTextAlign="";var dc_waitTime=3000;var konaLayers=null;var konaLinks=null;var contentTags=null;var docBadRanges=null;var aRootElems=null;if(dc_PublisherID==1370){dc_waitTime*=3}if(bIE6&&dc_PublisherID==503){}else{if(!isDynamicContent&&!adPreviewMode){var alreadyrunflag=false;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){alreadyrunflag=true;pageStatus=PAGE_NOT_READY;dcInit();logit("FAST INIT START: "+((new Date()).getTime()-window.konaJSEntryTime)+"~")},false)}else{if(document.all&&!window.opera){document.write('<script type="text/javascript" id="contentloadtag" defer="defer" src="javascript:void(0)"><\/script>');var contentloadtag=kona$("contentloadtag");contentloadtag.onreadystatechange=function(){if(this.readyState=="complete"){logit("FAST INIT START: "+((new Date()).getTime()-window.konaJSEntryTime)+"~");alreadyrunflag=true;dcInit()}}}}addKonaLoadEvent(function(){logit("WINDOW ONLOAD FIRED: "+((new Date()).getTime()-window.konaJSEntryTime)+"~");setTimeout("if (!alreadyrunflag){dcInit();}",0)});if(bIE){setTimeout("if (!alreadyrunflag){alreadyrunflag = true; dcInit();}",dc_waitTime)}}}if((!isBritannicaFF3&&!isDynamicContent)||(bIE&&document.readyState!="complete")){document.writeln("<input id='KonaImpression' style='width:0px;height:0px;visibility:hidden;display:none;' type='image' />");document.writeln("<input id='KonaImpression1' style='width:0px;height:0px;visibility:hidden;display:none;' type='image' />");document.writeln("<iframe name='caterpilarID' id='caterpilarID' style='width:1px;height:1px;background-color:transparent;' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0' src='' scrolling='no' allowTransparency='true'>></iframe>")}else{var o=document.createElement("input");o.setAttribute("type","image");o.setAttribute("style","width:0px;height:0px;visibility:hidden;display:none;position:absolute;left:-500px;");o.setAttribute("id","KonaImpression");o.style.width=1+"px";o.style.height=1+"px";o.style.position="absolute";o.style.left=-500+"px";document.body.appendChild(o);o=document.createElement("input");o.setAttribute("type","image");o.setAttribute("style","width:0px;height:0px;visibility:hidden;display:none;position:absolute;left:-500px;");o.setAttribute("id","KonaImpression1");o.style.width=1+"px";o.style.height=1+"px";o.style.position="absolute";o.style.left=-500+"px";document.body.appendChild(o);o=document.createElement("iframe");o.setAttribute("name","caterpilarID");o.setAttribute("id","caterpilarID");o.setAttribute("style","width:1px;height:1px;background-color:transparent;position:absolute;left:-500px;");o.setAttribute("marginwidth","0");o.setAttribute("marginheight","0");o.setAttribute("hspace","0");o.setAttribute("vspace","0");o.setAttribute("frameborder","0");o.setAttribute("src","");o.setAttribute("scrolling","no");o.setAttribute("allowTransparency","true");o.style.width=1+"px";o.style.height=1+"px";o.style.position="absolute";o.style.left=-500+"px";document.body.appendChild(o);o=null}checkFlashSupport();resetKeys();infoUnit=aInfoUnits[0];tailorByCookie();setABTests_PT();document.onkeydown=onkeydownLis;loadGatewayCheck();if(doStaticStyle){setKonaMarkStyle(infoUnit)}if(!isDelayPageKey&&!adPreviewMode){if(delayJSFlowBY>0){window.setTimeout("getAndSendPageKeyOnFly()",delayJSFlowBY)}else{getAndSendPageKeyOnFly()}}scriptRunner.init(false)}iTagNumber++;if(adPreviewMode){var inFuncCounter=0;var isDefinedSetTEDemoInfo=false;var linkColor="blue";var previewLinksObject=new Array();var dynamicLinksElems=new Array();var attributeArr=["konaTitle","konaDescription","konaLandingUrl","konaLogoImageUrl","konaImageUrl","konaAdType","konaClearPixelUrl","konaRmType","konaRMCreativeUrl"];function adPreviewFlowCtrl(){function isDynamicLinksNode(node){return(node.getAttribute&&node.getAttribute("name")!=null&&typeof(node.getAttribute("name"))=="string"&&node.getAttribute("name")=="konteraml")}function linkInfoArr(linkCur,spanCur){previewLinksObject[linkCur]=new Object();insertToObject(previewLinksObject[linkCur],"highlightText",(!bIE)?spanCur.firstChild.nodeValue:spanCur.innerText);insertToObject(previewLinksObject[linkCur],"object",spanCur);for(i=0;i<attributeArr.length;i++){insertToObject(previewLinksObject[linkCur],attributeArr[i],spanCur.getAttribute(attributeArr[i]))}}var spans=document.getElementsByTagName("SPAN");var j=0;for(var k=0;k<spans.length;k++){if(isDynamicLinksNode(spans[k])){linkInfoArr(j,spans[k]);j++}}docBadRanges=new BadRanges(document.body);testingInfo=new TestingInfo();konaInit(false);konaLinks=new KonaLinks();initKonaPaint();var textRange=bIE?document.body.createTextRange():null;for(var i=0;i<previewLinksObject.length;i++){var linkStr="<a href='#' id='KonaLink"+i+"' name='konteraml' style='border-bottom: 3px double; text-decoration:none; cursor:pointer; color:"+linkColor+"' onmouseover='dynamicLinkMouseover(this, "+i+")' onmouseout='dynamicLinkMouseout("+i+")'>"+previewLinksObject[i].highlightText+"</a>";var innerTags=document.createElement("a");innerTags.href="#";innerTags.id="KonaLink"+i;innerTags.name="konteraml";innerTags.setAttribute("style","border-bottom: 3px double; text-decoration:none; cursor:pointer; color:"+linkColor+";");innerTags.setAttribute("onmouseover","dynamicLinkMouseover(this, "+i+")");innerTags.setAttribute("onmouseout","dynamicLinkMouseout("+i+")");if(bIE){textRange.moveToElementText(previewLinksObject[i].object);textRange.findText(previewLinksObject[i].highlightText);textRange.pasteHTML(linkStr)}else{previewLinksObject[i].object.innerHTML="";previewLinksObject[i].object.appendChild(innerTags);innerTags.innerHTML=previewLinksObject[i].highlightText}addContentLink("","","","",i,"","","","","");konaLinks.get(i).setIndex(i)}}function dynamicLinkMouseover(node,linkCur){if(isDefinedSetTEDemoInfo){setTEDemoInfo()}else{addContentInfo(linkCur,0,"highlightText",previewLinksObject[linkCur].konaTitle,previewLinksObject[linkCur].konaDescription,previewLinksObject[linkCur].konaLandingUrl,"encodedRedirect","clickUrl",previewLinksObject[linkCur].konaLogoImageUrl,"searchProviderID",previewLinksObject[linkCur].konaImageUrl,previewLinksObject[linkCur].konaAdType,"encodedLayerImps",previewLinksObject[linkCur].konaClearPixelUrl,previewLinksObject[linkCur].konaRmType,previewLinksObject[linkCur].konaRMCreativeUrl,1,"rmPlayerType","isCacheBusting",3)}konaBuilder=new KonaBuilder();linkInfo=konaLinks.getInfo(linkCur);layer=konaBuilder.getLayer(linkCur,linkCur,linkInfo);var xyObj=getBoxXYpositions(node);konaLayers.update(layer,linkCur);linkInfo.loadImages(linkCur);konaLayers.show(xyObj,linkCur);konaLinks.get(linkCur).mouseIsOverAdlink=true}function dynamicLinkMouseout(linkCur){konaLinks.get(linkCur).mouseIsOverAdlink=false;if(konaLayers!=null){konaLayers.getLayerObj(linkCur).plateMouseOut(0)}}function checkCallSetTEDemoInfo(){if(typeof(dc_standAloneMode)=="undefined"){adPreviewFlowCtrl();return}if(inFuncCounter>10){return}if(typeof(setTEDemoInfo)=="function"){isDefinedSetTEDemoInfo=true;adPreviewFlowCtrl()}else{inFuncCounter++;window.setTimeout(checkCallSetTEDemoInfo,200)}}checkCallSetTEDemoInfo()}konaBaseHere=true;var KonaDrag={obj:null,init:function(o,oRoot,minX,maxX,minY,maxY,bSwapHorzRef,bSwapVertRef,fXMapper,fYMapper){if(adPreviewMode){return}o.onmousedown=KonaDrag.start;o.hmode=bSwapHorzRef?false:true;o.vmode=bSwapVertRef?false:true;o.root=oRoot&&oRoot!=null?oRoot:o;if(o.hmode&&isNaN(parseInt(o.root.style.left))){o.root.style.left="0px"}if(o.vmode&&isNaN(parseInt(o.root.style.top))){o.root.style.top="0px"}if(!o.hmode&&isNaN(parseInt(o.root.style.right))){o.root.style.right="0px"}if(!o.vmode&&isNaN(parseInt(o.root.style.bottom))){o.root.style.bottom="0px"}o.minX=typeof minX!="undefined"?minX:null;o.minY=typeof minY!="undefined"?minY:null;o.maxX=typeof maxX!="undefined"?maxX:null;o.maxY=typeof maxY!="undefined"?maxY:null;o.xMapper=fXMapper?fXMapper:null;o.yMapper=fYMapper?fYMapper:null;if(!o.root.onDragStart){o.root.onDragStart=new Function()}if(!o.root.onDragEnd){o.root.onDragEnd=new Function()}if(!o.root.onDrag){o.root.onDrag=new Function()}},start:function(e){var o=KonaDrag.obj=this;e=KonaDrag.fixE(e);var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);o.root.onDragStart(x,y);o.lastMouseX=e.clientX;o.lastMouseY=e.clientY;if(o.hmode){if(o.minX!=null){o.minMouseX=e.clientX-x+o.minX}if(o.maxX!=null){o.maxMouseX=o.minMouseX+o.maxX-o.minX}}else{if(o.minX!=null){o.maxMouseX=-o.minX+e.clientX+x}if(o.maxX!=null){o.minMouseX=-o.maxX+e.clientX+x}}if(o.vmode){if(o.minY!=null){o.minMouseY=e.clientY-y+o.minY}if(o.maxY!=null){o.maxMouseY=o.minMouseY+o.maxY-o.minY}}else{if(o.minY!=null){o.maxMouseY=-o.minY+e.clientY+y}if(o.maxY!=null){o.minMouseY=-o.maxY+e.clientY+y}}if(o.id.toString().indexOf("konaFlashDrag")!=-1){var linkID=o.id.toString();linkID=linkID.split("-")[1];hideFlashTail(linkID)}document.onmousemove=KonaDrag.drag;document.onmouseup=KonaDrag.end;return false},drag:function(e){e=KonaDrag.fixE(e);var o=KonaDrag.obj;var ey=e.clientY;var ex=e.clientX;var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);var nx,ny;if(o.minX!=null){ex=o.hmode?Math.max(ex,o.minMouseX):Math.min(ex,o.maxMouseX)}if(o.maxX!=null){ex=o.hmode?Math.min(ex,o.maxMouseX):Math.max(ex,o.minMouseX)}if(o.minY!=null){ey=o.vmode?Math.max(ey,o.minMouseY):Math.min(ey,o.maxMouseY)}if(o.maxY!=null){ey=o.vmode?Math.min(ey,o.maxMouseY):Math.max(ey,o.minMouseY)}nx=x+((ex-o.lastMouseX)*(o.hmode?1:-1));ny=y+((ey-o.lastMouseY)*(o.vmode?1:-1));if(o.xMapper){nx=o.xMapper(y)}else{if(o.yMapper){ny=o.yMapper(x)}}KonaDrag.obj.root.style[o.hmode?"left":"right"]=nx+"px";KonaDrag.obj.root.style[o.vmode?"top":"bottom"]=ny+"px";KonaDrag.obj.lastMouseX=ex;KonaDrag.obj.lastMouseY=ey;KonaDrag.obj.root.onDrag(nx,ny);return false},end:function(){document.onmousemove=null;document.onmouseup=null;KonaDrag.obj.root.onDragEnd(parseInt(KonaDrag.obj.root.style[KonaDrag.obj.hmode?"left":"right"]),parseInt(KonaDrag.obj.root.style[KonaDrag.obj.vmode?"top":"bottom"]));KonaDrag.obj=null},fixE:function(e){if(typeof e=="undefined"){e=window.event}if(typeof e.layerX=="undefined"){e.layerX=e.offsetX}if(typeof e.layerY=="undefined"){e.layerY=e.offsetY}return e}};function TreeDao(iMode,rootId,th){this.iWordNumber=0;this.iMode=iMode;this.junctions=new Array();this.junction=null;this.tmp=null;this.rootId=rootId;this.exitCode=-1;this.articleStart=false;this.mark=null;this.sb=null;this.th=th;this.inTH=false;this.thEffectiveSize=0;this.isArticleLeave=false;this.init=function(){this.setRoot(this.rootId)};this.setRoot=function(rootId){this.rootId=rootId;this.junctions=new Array();this.junction=new Junction(aRootElems[this.rootId][0]);this.junctions.push(this.junction);this.oThisPara=null;this.oLastPara=null;this.sb=new KonaStringBuffer();this.inTH=false;this.thEffectiveSize=0;this.isArticleLeave=false;this.exitCode=-1};this.duplicate=function(){var dao=new TreeDao(this.iMode,this.rootId,this.th);dao.iWordNumber=this.iWordNumber;dao.iMode=this.iMode;dao.junctions=new Array();for(var i=0;i<this.junctions.length;i++){dao.junctions.push(this.junctions[i].duplicate())}dao.junction=this.junction.duplicate();dao.tmp=this.tmp;dao.rootId=this.rootId;dao.exitCode=this.exitCode;dao.articleStart=this.articleStart;dao.mark=this.mark;dao.sb=this.sb;dao.th=this.th;dao.inTH=this.inTH;dao.thEffectiveSize=this.thEffectiveSize;dao.isArticleLeave=this.isArticleLeave;return dao};this.next=function(){if(this.hasNext()){this.junction=this.junctions[this.junctions.length-1];if(this.junctions.length>=2){this.getJunc().inherit(this.junctions[this.junctions.length-2])}}else{this.junction=null;return null}this.tmp=this.jumpToNext();if(this.tmp){this.stack(this.tmp)}return this.getJunc().node};this.jumpToNext=function(){if(this.junctions.length>0){var tmp=this.junctions[this.junctions.length-1].getNextChild();if(!tmp){tmp=this.junctions.pop();if(tmp.isArticle){this.isArticleLeave=true}return this.jumpToNext()}return tmp}return null};this.cutBranch=function(){if(this.junctions.length>=2&&this.getJunc()==this.junctions[this.junctions.length-2]){this.junctions.pop();this.junctions.pop();this.next()}};this.getNode=function(){return this.getJunc().node};this.getJunc=function(){return this.junction};this.hasNext=function(){return(this.junctions.length>0)};this.setExitCode=function(code){this.exitCode=code};this.stack=function(node){this.junctions.push(new Junction(node))};this.isInBold=function(){return this.getJunc().isInBold};this.isLink=function(){return this.getJunc().isLink};this.isBold=function(){return this.getJunc().isBold};this.setIsBold=function(val){this.getJunc().isBold=val};this.setIsLink=function(val){this.getJunc().isLink=val};this.setIsInLink=function(val){this.getJunc().isInLink=val};this.isInLink=function(){return this.getJunc().isInLink};this.setLastPara=function(newPara){this.oLastPara=newPara};this.setIsArticle=function(val){this.getJunc().isArticle=val;if(val){this.articleStart=true;this.inTH=true}};this.isNewArticle=function(){return this.articleStart};this.articleStarted=function(){this.articleStart=false};this.isInTH=function(){return this.inTH};this.appendToTH=function(str){this.sb.append(str);this.thEffectiveSize+=str.length;if(this.thEffectiveSize>=this.th){return this.clearTH()}return null};this.flushTH=function(){if(this.inTH&&this.isArticleLeave&&this.thEffectiveSize<this.th){this.isArticleLeave=false;return this.clearTH()}return null};this.clearTH=function(){this.inTH=false;this.thEffectiveSize=0;this.tmp=this.sb.toString();this.sb=new KonaStringBuffer();return this.tmp};this.init()}function walkTheTree(iMode){oThisPara=null;oLastPara=null;bFirstPara=true;var treeD=null;switch(iMode){case GET_KEY_MODE:pageInfo.setDoMode(GET_KEY_MODE);var sb=new KonaStringBuffer();for(var i=0;i<aRootElems.length;i++){treeD=new TreeDao(iMode,i);treeD.sb=sb;traverse(treeD)}sKey=resizeKey(sb.toString());break;case GET_HTML_MODE:pageInfo.setDoMode(GET_HTML_MODE);if(!pageInfo.isPageDone()){chunkInfo=pageInfo.getChunk();var th=0;var exitCode=-1;while(!pageInfo.isCurChunkFull()&&!pageInfo.isPageDone()){traverseTimer=(new Date()).getTime();var tempTime1=traverseTimer;var tempTime2=0;traverse();exitCode=pageInfo.getRunDao().exitCode;tempTime2=(new Date()).getTime();globalTimeCount+=(tempTime2-tempTime1);tempTime1=tempTime2;if(exitCode==kLang.OUT_OF_ROOT){pageInfo.nextRoot()}if(!dc_jsDebug&&(globalTimeCount>PAGE_PROCESS_TIMEOUT)){pageInfo.sealPage(false)}else{if(exitCode==kLang.OUT_OF_TIME){pageInfo.sealChunk()}else{if(pageInfo.isCurChunkFull()||pageInfo.isPageDone()){th=pageInfo.getNewTH();if(th!=-1){pageInfo.resetOnTH(th)}}}}}}break;case DO_MARKUP_MODE:pageInfo.reset();pageInfo.setDoMode(DO_MARKUP_MODE);traverseTimer=(new Date()).getTime();while(!pageInfo.isPageDone()){traverse();exitCode=pageInfo.getRunDao().exitCode;if(exitCode==kLang.OUT_OF_ROOT){pageInfo.nextRoot()}else{break}}break}}function traverse(td){if(!td){var td=pageInfo.getRunDao()}var exitCode=-1;var cutFlag=false;var REGEXP_WORD_GREATER_THEN_100=new RegExp("\\S{100}");while(td.hasNext()&&(td.iMode!=GET_HTML_MODE||!pageInfo.isCurChunkFull())){var node=td.next();if(node.nodeValue&&node.nodeValue.search(REGEXP_WORD_GREATER_THEN_100)>-1){continue}exitCode=checkExitCond(td);if(exitCode!=-1){td.setExitCode(exitCode);return}if(node.nodeType==Node.ELEMENT_NODE){cutFlag|=pageInfo.wasVisited(node)||isRestrictedNode(node);if(!cutFlag&&td.iMode!=GET_KEY_MODE){cutFlag|=isUserRestrictedNode(node)||(checkHiddenNodes&&isHiddenNode(node))}}else{try{cutFlag|=isSkipNode(node)}catch(e){if(td.iMode==GET_HTML_MODE){td.setExitCode(kLang.CHUNK_FULL);return}}}if(cutFlag){td.cutBranch();cutFlag=false;continue}if(node.nodeType==Node.ELEMENT_NODE){if(td.iMode==GET_HTML_MODE){td.setIsArticle(isArticleNode(node));td.setIsBold(isBoldNode(node))}td.setIsLink(isLinkNode(node))}if(td.isInLink()&&node.nodeName=="TABLE"){td.setIsInLink(false)}if(node.nodeType==Node.TEXT_NODE&&(!td.isInLink()||dc_sendLinks)){doWork(td)}}if(!td.hasNext()){td.setExitCode(kLang.OUT_OF_ROOT)}if(td.iMode==GET_HTML_MODE&&pageInfo.isCurChunkFull()){td.setExitCode(kLang.CHUNK_FULL)}}function doWork(td){var node=td.getNode();switch(td.iMode){case GET_KEY_MODE:var aWords=node.nodeValue.split(/[\240\s]/);for(var i=0;i<aWords.length;i++){if(td.iWordNumber%10==0){if(aWords[i].match(/\d+/g)==null&&aWords[i]!=""){td.sb.append(aWords[i])}else{td.iWordNumber--}}td.iWordNumber++}break;case GET_HTML_MODE:if(td.isNewArticle()){if(td.isInLink()){td.mark="_  L"}else{if(td.isInBold()){td.mark="_  B"}else{td.mark="_"}}td.articleStarted()}else{if(td.isInLink()){td.mark="L"}else{if(td.isInBold()){td.mark="B"}else{td.mark="@"}}}var text=fixPuncs(node.nodeValue);var str=" "+td.mark+" "+text;if(td.isInTH()){str=td.appendToTH(str)}if(str!=null){pageInfo.append(str)}str=td.flushTH();if(str!=null&&str.length>0){td.tmp=countWordsNew(str);if(td.tmp>0){pageInfo.getChunk().stackTH(str,td.tmp);pageInfo.append(" _ L "+td.tmp)}}else{if(td.mark!=kLang.LINK&&td.mark!=kLang.FILTER){pageInfo.getChunk().stackChars(text)}}break;case DO_MARKUP_MODE:markAdLinkInNode(td);break}}function getTextByNodes(node,sb){if(node.nodeType==Node.TEXT_NODE){sb.append(node.nodeValue)}else{if(!isRestrictedNode(node)){for(var i=0;i<node.childNodes.length;i++){getTextByNodes(node.childNodes[i],sb)}}}}function harvestChunk(){var rd=pageInfo.getRunDao();var moved=1;var word=null;var BSCount=0;var doEscape=false;var isSkipNode=false;var temp=null;var prefix=null;var mark="";var looping=0;var lastWord=null;var inPlace=false;var tNode=null;try{while(moved>0&&!pageInfo.isCurChunkFull()&&rd.hasMoreWords()){if(dc_limitHarvestTime&&(looping==0)&&((new Date()).getTime()-harvestTimer.getTime()>HARVEST_TIMEOUT)){rd.exitCode=kLang.OUT_OF_TIME;break}word=rd.getWord();if(word.length==0||word==""||word=="."){BSCount++;rd.move(1);continue}looping=dc_jsDebug?1:(looping+1)%6;if(BSCount>0){if(rd.inTH()){pageInfo.append(" "+kLang.getMark(kLang.PARA));pageInfo.getChunk().stackLinkLen(rd.THLength);rd.setTHstate(false)}if(BSCount<3){while(BSCount>0){pageInfo.append(" .");BSCount--}pageInfo.append(" ")}else{pageInfo.append(" "+kLang.getMark(kLang.FILTER)+" "+BSCount+" "+kLang.getMark(kLang.LINE)+" ");rd.state=kLang.LINE}BSCount=0;if(pageInfo.isCurChunkFull()){rd.exitCode=kLang.CHUNK_FULL;return}}doEscape=!rd.oRange.findText(word,rd.direction,rd.searchMode);rd.resetSeach();temp=rd.matchBadRange(word);if(temp!=null){rd.oRange=temp;continue}if(doEscape){var tries=5;var found=false;while(tries>0&&moved>0){rd.oRange.expand("word");temp=rd.matchBadRange(word);if(temp!=null){rd.oRange=temp;break}seek=trim(rd.oRange.text);if(seek.length!=0&&seek!="."){cur=word.indexOf(seek);if(cur!=-1){rd.splitWord(rd.i,seek,word.substring(cur+seek.length));found=true;break}tries--}moved=rd.oRange.move("word",1)}if(found){continue}}if(!doEscape&&countSimpleWords(rd.oRange.text)>1){doEscape=true}if(!doEscape){try{inPlace=rd.isInPlace()}catch(e){inPlace=true}if(inPlace){rd.info.setWord(word,rd.oRange.parentElement());tNode=rd.info.getTextNode()}else{try{rd.resetToPlace()}catch(e){}tNode=null}if(tNode==null){moved=rd.oRange.move("word",1);rd.move(1);if(rd.state!=kLang.LINK&&rd.state!=kLang.FILTER){pageInfo.getChunk().stackChars(word);pageInfo.getChunk().addWordCount(1)}else{pageInfo.append(" _")}pageInfo.append(" "+word);continue}else{if(rd.info.isNewParent){if(tNode.nodeValue!=null){isSkipNode=skipNode(tNode.nodeValue)}paraGraphNode=rd.info.paragraph;if(paraGraphNode){rd.paraGraphID=paraGraphNode.uniqueID}else{rd.paraGraphID=false}if(rd.paraGraphID&&rd.paraGraphID!=rd.currentPargraphID){if(rd.inTH()){rd.state=kLang.LINE;pageInfo.getChunk().stackLinkLen(rd.THLength);rd.setTHstate(false);pageInfo.append(" _ ");if(pageInfo.isCurChunkFull()){rd.exitCode=kLang.CHUNK_FULL;rd.info.unsetWord();return}}var newParagraphvalue=shortenSpaces(rd.info.paragraph.innerText);if(newParagraphvalue.length<pageInfo.getChunk().th){rd.setTHstate(true)}rd.currentPargraphID=rd.paraGraphID;mark=" _ ";if(rd.isRestrictedRange(word)||!rd.info.relevant||isSkipNode){rd.state=kLang.FILTER}else{if(rd.info.isLink||rd.inTH()){rd.state=kLang.LINK}else{if(rd.info.isBold){rd.state=kLang.BOLD}else{rd.state=kLang.PARA;mark=" "}}}mark+=kLang.getMark(rd.state)+" "}else{if(rd.isRestrictedRange(word)||!rd.info.relevant||isSkipNode){rd.state=kLang.FILTER}else{if(rd.info.isLink){rd.state=kLang.LINK}else{if(rd.info.isBold){rd.state=kLang.BOLD}else{rd.state=kLang.LINE}}}mark=" "+kLang.getMark(rd.state)+" "}}else{mark=""}}if(tNode.nodeValue!=null){var cur=tNode.nodeValue.indexOf(word);temp=tNode.nodeValue.substr(cur);if(rd.state!=kLang.LINK&&rd.state!=kLang.FILTER){pageInfo.getChunk().stackChars(temp)}if(rd.inTH()&&rd.state!=kLang.FILTER){rd.stackTH(temp)}temp=getIEPunc(cleanseIEstring(temp));var moveUnits=countSimpleWords(temp);rd.move(moveUnits);var j=1;if(rd.i>=rd.wdArry.length){j=rd.i-rd.wdArry.length+1}if(moveUnits>1){lastWord=rd.wdArry[rd.i-j];cur=temp.lastIndexOf(lastWord)}else{cur=0}if(cur!=0&&(cur==-1||cur+lastWord.length<temp.replace(/[\s]*$/,"").length)){moved=rd.oRange.move("word",moveUnits-j);rd.oRange.expand("word");var newWord=trim(rd.oRange.text);cur=lastWord.indexOf(newWord);if(cur!=-1){if(newWord!=lastWord){rd.splitWord(rd.i-j,newWord,lastWord.substring(cur+newWord.length))}moved=rd.oRange.move("word",j)}else{rd.direction=-1}}else{moved=rd.oRange.move("word",moveUnits)}if(rd.state!=kLang.FILTER&&(rd.state!=kLang.LINK||dc_sendLinks)){temp=filterAnalysisMarks(temp);pageInfo.append(mark+" "+temp);if(rd.state!=kLang.LINK){pageInfo.getChunk().addWordCount(moveUnits)}}else{pageInfo.append(mark+" "+moveUnits)}}isSkipNode=false}if(doEscape){rd.escape()}}}catch(e){e=e;moved=0}if(moved<=0){rd.exitCode=kLang.TRASHING}if(rd.exitCode==-1){rd.exitCode=kLang.CHUNK_FULL}else{pageInfo.append(" ")}}function insertAdLink(rootItr,adLinkobj,adLinkIndex,globalReplace){var range=rootItr.range;range.collapse(true);var adLinkWord=adLinkobj.highlighttext;if(!globalReplace){var rightOffset=Number(adLinkobj.IEwordNumber);var moveUnits=rightOffset-totalOffset;totalOffset=rightOffset;var fix=0;totalOffset+=fix;range.move("word",moveUnits+fix)}insertInRange(rootItr,adLinkWord,adLinkobj,adLinkIndex)}function insertGlobalLinks(itr,useRon){var rootItr=null;var index=-1;var links=new Array();var markCount=0;var markLimit=useRon?MAX_RONLINKS_ON_PAGE:maxLinksOnPage;for(var i=0;i<aRootElems.length;i++){rootItr=new RootIterator(new Array()[aRootElems[i][0],null]);while(itr.hasNext()&&markCount<markLimit){index=itr.next();if(insertInRange(rootItr,konaLinks.get(index).highlighttext,konaLinks.get(index),useRon?markCount:index)){itr.remove();if(useRon){links.push(konaLinks.get(index))}markCount++}rootItr.range.moveToElementText(aRootElems[i][0])}itr.reset()}}function insertInRange(rootItr,adLinkWord,adLinkobj,adLinkIndex){var adLinkInsrted=false;var node=null;var isFound=true;var tryCounts=1;var range=rootItr.range;var word=adLinkWord.replace(dashRegExp,"-");isFound=range.findText(word,1,6);if(isFound){adLinkobj.highlighttext=word}else{word=adLinkWord;isFound=range.findText(word,1,6)}if(!isFound){return false}while(!adLinkInsrted&&isFound&&tryCounts<20&&rootItr.superRange.inRange(range)){node=range.parentElement();var nodeValue=node.innerText;for(var t=0;t<node.childNodes.length;t++){try{if(node.childNodes[t].nodeType==Node.TEXT_NODE){if(node.childNodes[t].nodeValue.indexOf(word)!=-1){node=node.childNodes[t];nodeValue=node.nodeValue;break}}}catch(e){continue}}if(!isLink(5,node)&&!rootItr.br.matchRestrictedRange(range)&&(!checkBoldOnInsertion||!isBoldNode(node.parentNode))){adLinkInsrted=true}if(adLinkInsrted){var adLinkStr=createAdLinkStr(node,adLinkIndex,word);range.pasteHTML(adLinkStr);totalOffset+=countSimpleWords(adLinkobj.highlighttext);markedLinks++;adLinkobj.marked=true}else{isFound=false;var bookMark=range.getBookmark();range.moveToBookmark(bookMark);range.move("word",1);isFound=range.findText(word,1,6);tryCounts++}}return adLinkInsrted}function RunTimeDao(rootIndex,roundTrip,doSetRoot){this.paraGraphID="1";this.currentPargraphID="2";this.BSCount=0;this.state=kLang.LINE;this.rootId=-1;this.info=null;this.oRange=null;this.superRange=null;this.exitCode=-1;this.wdArry=null;this.badRanges=null;this.i=0;this.wordSnipA=null;this.wordSnipB=null;this.tempWord=null;this.inTH=false;this.THLength=0;this.direction=1;this.searchMode=6;this.temp=null;this.move=function(num){if(this.wordSnipA!=null){this.wordSnipA=(num==1?this.wordSnipB:null);if(this.wordSnipB!=null){num--}this.wordSnipB=null}this.i+=num};this.getDump=function(chunkNum){var str="";while(str.length<MIN_TEXT_FOR_CHUNK*chunkNum&&(this.i+1)<this.wdArry.length){str+=" "+this.wdArry[++this.i]}return str};this.hasMoreWords=function(){if(!this.superRange.inRange(this.oRange)){this.exitCode=kLang.OUT_OF_ROOT}else{if(this.i>=this.wdArry.length){this.exitCode=kLang.OUT_OF_WORDS}}return(this.exitCode==-1)};this.splitWord=function(offset,wordInOffset,wordInNext){if(offset==this.i){this.wordSnipA=trim(wordInOffset);this.wordSnipB=trim(wordInNext)}else{this.wordSnipA=trim(wordInNext);this.i=offset}};this.setRoot=function(rootIndex){this.rootId=rootIndex;if(document.body.createTextRange){this.oRange=document.body.createTextRange();this.oRange.moveToElementText(aRootElems[rootIndex][0]);this.superRange=this.oRange.duplicate();this.badRanges=new BadRanges(aRootElems[rootIndex][0]);this.wdArry=this.getRootWords(aRootElems[rootIndex][0],this.oRange);this.exitCode=-1;this.i=0}};this.getRootWords=function(root,range){var array=null;var text="";if(textFromRange){text=this.oRange.text}else{var sb=new KonaStringBuffer();getTextByNodes(root,sb);text=sb.toString()}array=toIEFormatArray(this.badRanges.cleanText(text));return array};this.setRoundTrip=function(roundTrip){this.info=new WordInfo(roundTrip);this.exitCode=-1};this.getRoundTrip=function(){return this.info.roundtrip};this.setTHstate=function(val){this.th_on=val;this.THLength=0};this.inTH=function(){return this.th_on};this.escape=function(){this.oRange.collapse(false);this.move(1);return this.oRange.move("word",1)};this.getWord=function(){if(this.wordSnipA!=null){this.tempWord=this.wordSnipA}else{this.tempWord=this.wdArry[this.i]}return this.tempWord};this.stackTH=function(str){this.THLength+=str.length};this.resetSeach=function(){this.searchMode=6;this.direction=1};this.duplicate=function(){var runDao=new RunTimeDao(0,0,false);runDao.rootId=this.rootId;if(document.body.createTextRange){runDao.paraGraphID=this.paraGraphID;runDao.currentPargraphID=this.currentPargraphID;runDao.BSCount=this.BSCount;runDao.state=this.state;runDao.info=this.info.duplicate();runDao.oRange=this.oRange.duplicate();runDao.superRange=this.superRange.duplicate();runDao.exitCode=this.exitCode;runDao.wdArry=this.wdArry;runDao.badRanges=this.badRanges;runDao.i=this.i;runDao.wordSnipA=this.wordSnipA;runDao.wordSnipB=this.wordSnipB;runDao.tempWord=this.tempWord;runDao.inTH=this.inTH;runDao.THLength=this.THLength;runDao.direction=this.direction;runDao.searchMode=this.searchMode}return runDao};this.isInPlace=function(){if(this.i+1>=this.wdArry.length){return true}var i=0;var word="";var moved=0;do{moved=this.oRange.move("word",1);this.oRange.expand("word");word=trim(this.oRange.text);i++}while(word.length==0&&i<20&&moved>0);var nextWord="";if(this.wordSnipB!=null){nextWord=this.wordSnipB}else{var cur=this.i+1;while(cur>0&&this.wdArry[cur]=="."&&word!="."){cur++}nextWord=this.wdArry[cur]}this.temp=(nextWord.indexOf(word)!=-1||(nextWord==".")||(word.length==0));this.oRange.move("word",-1*i);return this.temp};this.resetToPlace=function(word){var parent=this.info.parent;this.oRange.moveToElementText(parent);this.oRange.findText(this.info.word,1,6)};this.isRestrictedRange=function(word){var r=this.badRanges.matchRestrictedRange(this.oRange);if(r!=null&&r.text.indexOf(word)!=-1){return true}return false};this.matchBadRange=function(word){return this.badRanges.matchBadRange(this.oRange,word,this)};if(doSetRoot!=false){this.setRoot(rootIndex);this.setRoundTrip(roundTrip)}}function WordInfo(roundTrip){this.parent=null;this.parentId=null;this.word=null;this.cur=null;this.paragraph=null;this.roundtrip=roundTrip;this.parentRelevant=false;this.relevant=false;this.isBold=false;this.isLink=false;this.isNewParent=false;this.childs=null;this.duplicate=function(){var wordInfo=new WordInfo(this.roundtrip);wordInfo.parent=this.parent;wordInfo.parentId=this.parentId;wordInfo.word=this.word;wordInfo.cur=this.cur;wordInfo.paragraph=this.paragraph;wordInfo.roundtrip=this.roundtrip;wordInfo.parentRelevant=this.parentRelevant;wordInfo.relevant=this.relevant;wordInfo.isBold=this.isBold;wordInfo.isNewParent=this.isNewParent;wordInfo.childs=this.childs;wordInfo.isLink=this.isLink;return wordInfo};this.unsetWord=function(){this.parentId=-1};this.setWord=function(word,parent){this.word=word;this.parent=parent;if(!(this.parentId==this.parent.uniqueID)){this.isNewParent=true;this.parentId=this.parent.uniqueID;this.childs=this.parent.childNodes;if(typeof(this.parent.lastVisited)!="undefined"&&this.parent.roundtrip==this.roundtrip){this.cur=this.parent.lastVisited+1}else{this.cur=0}this.parentRelevant=this.isRelevant(true);this.paragraph=getPargraph(this.paragraph,parent,6);this.isBold=isBoldNode(parent);this.isLink=isLink(4,parent)}else{this.isNewParent=false}this.relevant=this.parentRelevant&&this.isRelevant(false)};this.getTextNode=function(){for(var i=this.cur;i<this.childs.length;i++){if(this.childs[i].nodeType==Node.TEXT_NODE){if(this.childs[i].nodeValue.indexOf(this.word)!=-1){this.parent.lastVisited=i;this.parent.roundtrip=this.roundtrip;this.cur=i+1;if(filterSmallNodes&&this.childs[i].nodeValue){if(this.childs[i].nodeValue.length<MIN_ELEMENT_FOR_ADLINK){this.relevant=false}}return this.childs[i]}}}return null};this.isRelevant=function(doParent){return !((checkRestrictedNodes?isRestricted(doParent?4:1,this.parent):false)||isHiddenElement(doParent?hiddenDepth:2,this.parent))}}function RootIterator(rootArray){if(typeof(rootArray)=="undefined"){this.rootArray=aRootElems}this.range=document.body.createTextRange();this.range.moveToElementText(this.rootArray[0][0]);this.bookmark=this.range.getBookmark();this.superRange=this.range.duplicate();this.root=0;this.offset=0;this.isNewRange=true;this.doMove=false;this.wordsArray=new Array();this.br=null;if(this.rootArray.length==1){this.rootArray[0][1]=Number.MAX_VALUE}this.getRoot=function(){return this.rootArray[this.root][0]};this.stackRootWords=function(){this.br=new BadRanges(this.rootArray[this.root][0])};this.getOffsetFix=function(totalOffset,word){var count=0;var resA=10;var resB=10;for(var i=0;i<this.root;i++){count+=this.wordsArray[i].length}var tries=0;var offset=totalOffset-count;var array=this.wordsArray[this.root];var i=0;var mul=0;wordArray=word.split(/\s|\n/);while(mul!=-1){mul=(mul==0?1:-1);tries=0;while(tries<resA&&offset+tries<array.length&&offset+tries>=0){for(i=0;i<wordArray.length&&offset+mul*tries+i<array.length;i++){if(array[offset+mul*tries+i].indexOf(wordArray[i])==-1){break}}if(wordArray.length==i){if(mul==1){resA=tries}else{resB=tries}break}tries++}}return resB>resA?resA:(resA==resB?0:resB*(-1))};this.findRootRange=function(adlink){this.isNewRange=false;if(this.rootArray.length>1){var count=0;for(var i=this.root;i<this.rootArray.length;i++){if(this.doMove){this.range.moveToElementText(this.rootArray[i][0]);this.bookmark=this.range.getBookmark();this.superRange=this.range.duplicate();this.stackRootWords();this.doMove=false}if(this.rootArray[i][1]==null){this.rootArray[i][1]=countSimpleWords(getIEPunc(this.range.text))}count=(this.rootArray[i][1]+this.offset);if(adlink.IEwordNumber<=count){return this.range}else{this.offset=count;this.root++;this.isNewRange=true;this.doMove=true}}}else{return this.range}return -1};this.stackRootWords()}function JParseDao(){this.node;this.rootsSelection;this.getHTMLCycle=0;this.startTime={};this.initTimer=function(iMode){this.startTime[iMode]=(new Date()).getTime()};this.isThereTime=function(iMode){var now=(new Date()).getTime();if("undefined"==typeof(this.startTime[iMode])){konalog.info("Trying to check if there is time to parse the pages, with no parsing start time defined.");return true}if(GET_KEY_MODE==iMode){return true}if(GET_HTML_MODE==iMode){return(now-this.startTime[iMode]<JQUERY_GET_HTML_TIMEOUT)}if(DO_MARKUP_MODE==iMode){return(now-this.startTime[iMode]<JQUERY_DO_MARKUP_TIMEOUT)}};this.getNode=function(){return this.node};this.setNode=function(node){this.node=node};this.getRootsSelection=function(){if((typeof(this.rootsSelection)!="undefined")&&(this.rootsSelection!=null)){return this.rootsSelection}var publisher_specific_root_selector="";if("undefined"!=typeof(infoUnit)&&"undefined"!=typeof(infoUnit.dc_contentTag)){publisher_specific_root_selector+=infoUnit.dc_contentTag;if(("undefined"!=infoUnit.dc_contentTagAttr)&&("undefined"!=infoUnit.dc_contentTagAttrVal)){publisher_specific_root_selector+="["+infoUnit.dc_contentTagAttr+"='']"}}var roots_selection="[id^='KonaBody'], div.KonaBody"+((""==publisher_specific_root_selector)?"":", "+publisher_specific_root_selector);jRoots=kona_jQuery(roots_selection);if(0==jRoots.length){jRoots=kona_jQuery("body")}this.rootsSelection=jRoots;return this.rootsSelection};this.isInLink=function(){return false};this.duplicate=function(){var dao=new JParseDao();dao.node=this.node;dao.rootsSelection=this.rootsSelection;return dao}}function newWalkTheTree(iMode){if(typeof(this.runDao)=="undefined"){this.runDao=new JParseDao()}this.runDao.initTimer(iMode);switch(iMode){case GET_KEY_MODE:pageInfo.setDoMode(GET_KEY_MODE);var jRoots=this.runDao.getRootsSelection();var text=jRoots.konText(null,GET_KEY_MODE,this.runDao);var wordsWithDigits=new RegExp("\\S*\\d+\\S*","g");var spaces=new RegExp("\\s","g");text=text.replace(wordsWithDigits,"").replace(spaces,"");sKey="jp_"+resizeKey(text);break;case GET_HTML_MODE:this.run_num=(typeof(this.run_num)=="undefined")?0:this.run_num+1;if(0==this.run_num){pageInfo.setDoMode(GET_HTML_MODE);var jRoots=this.runDao.getRootsSelection();var text=jRoots.konText(null,GET_HTML_MODE,this.runDao);text=urlEncode(text);pageInfo.initChunks();pageInfo.getChunk().resetStr(text);this.new_chunk=pageInfo.getChunk().append("");if(this.new_chunk==null){pageInfo.pageDone=true}}else{if(this.new_chunk==null&&pageInfo.cur==run_num){pageInfo.pageDone=true}while(this.new_chunk!=null){var this_chunk=this.new_chunk;this.new_chunk=this_chunk.append("");if(this.new_chunk==null&&pageInfo.cur==run_num){pageInfo.pageDone=true}pageInfo.aheadCur++;pageInfo.chunks[pageInfo.aheadCur]=this_chunk}}break;case DO_MARKUP_MODE:pageInfo.reset();pageInfo.setDoMode(DO_MARKUP_MODE);var jRoots=this.runDao.getRootsSelection();var text=jRoots.konText(null,DO_MARKUP_MODE,this.runDao);break}}function jGetRootsSelection(){var publisher_specific_root_selector="";if("undefined"!=typeof(infoUnit)&&"undefined"!=typeof(infoUnit.dc_contentTag)){publisher_specific_root_selector+=infoUnit.dc_contentTag;if(("undefined"!=infoUnit.dc_contentTagAttr)&&("undefined"!=infoUnit.dc_contentTagAttrVal)){publisher_specific_root_selector+="["+infoUnit.dc_contentTagAttr+"='']"}}var roots_selection="[id^='KonaBody'], div.konabody"+((""==publisher_specific_root_selector)?"":", "+publisher_specific_root_selector);jRoots=kona_jQuery(roots_selection);if(0==jRoots.length){jRoots=kona_jQuery("body")}return jRoots}function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString()}else{var expires=""}document.cookie=name+"="+value+expires+"; path=/"}function eraseCookie(name){createCookie(name,"",-1)}function KonaImage(str,suffix,familyID){this.familyID=familyID;this.image=null;this.params=null;this.src=null;if(str!=null&&str!=""){this.src=STYLE_IMAGE_BASE+str+(suffix?"."+suffix:(bIE?".gif":".png"));konaImages.stackImage(this)}this.load=function(currentLayerID,xy,doUpdate,familyID,origLayerFamily){this.image=new Image();this.image.onload=function(){konaImages.SingleImageLoadingDone(currentLayerID,xy,doUpdate,familyID,origLayerFamily)};this.image.src=this.src};this.ImageCounterAdd=function(){var counter=konaImages.hImagesToLoadPerFamily.getItem(this.familyID);counter++;konaImages.hImagesToLoadPerFamily.setItem(this.familyID,counter)};this.ImageCounterAdd()}function KonaImages(){this.images=new Array();this.hImagesToLoadPerFamily=new KonaHash();this.init=function(){if(bIE&&!bAvant&&document.all){var agent=navigator.userAgent.toLowerCase();var place=agent.indexOf("msie")+1;if(place>=0){var version=agent.substr(place+"msie".length,3);version=parseFloat(version)}}this.hImagesToLoadPerFamily.setItem(FRAME_LAYER,0);this.hImagesToLoadPerFamily.setItem(SEARCH_LAYER,0);this.hImagesToLoadPerFamily.setItem(RM_FAMILY,0);this.hImagesToLoadPerFamily.setItem(SPECIAL_TYPE_NEW_YAHOO,0);this.hImagesToLoadPerFamily.setItem(SPECIAL_TYPE_SEARCH_INFO,0);this.hImagesToLoadPerFamily.setItem(SPECIAL_TYPE_SEARCH_WEBNARY,0);this.hImagesToLoadPerFamily.setItem(SPECIAL_TYPE_FREE_DICTIONARY,0);this.hImagesToLoadPerFamily.setItem(SPECIAL_TYPE_YAHOO_SHOPPING,0);this.hImagesToLoadPerFamily.setItem(SPECIAL_TYPE_YAHOO_SPONSORED,0);if(konaOuterLayerStyle==OUTER_LAYER_REG){this.box_bottom=new KonaImage("box_bottom","png",FRAME_LAYER);this.box_bottom_o=new KonaImage("box_bottom_o_rm","png",FRAME_LAYER);this.box_bottom_right=new KonaImage("box_bottom_right","png",FRAME_LAYER);this.box_bottom_right_o=new KonaImage("box_bottom_right_o_rm","png",FRAME_LAYER);this.box_bottom_drag=new KonaImage("box_bottom_drag","png",FRAME_LAYER);this.box_bottom_drag_o=new KonaImage("box_bottom_drag_o_rm","png",FRAME_LAYER)}else{if(konaOuterLayerStyle==OUTER_LAYER_JUP){this.box_bottom=new KonaImage("jp_box_bottom","png",FRAME_LAYER);this.box_bottom_o=new KonaImage("jp_box_bottom_o","png",FRAME_LAYER);this.box_bottom_right=new KonaImage("jp_box_bottom_right","png",FRAME_LAYER);this.box_bottom_right_o=new KonaImage("jp_box_bottom_right_o","png",FRAME_LAYER);this.box_bottom_drag=new KonaImage("jp_box_bottom_drag","png",FRAME_LAYER);this.box_bottom_drag_o=new KonaImage("jp_box_bottom_drag_o","png",FRAME_LAYER);this.jplogo=new KonaImage("jp_internetlogo","gif",FRAME_LAYER);this.poweredbyKontera=new KonaImage("poweredbyKontera","gif",FRAME_LAYER);this.poweredbyKontera_o=new KonaImage("poweredbyKontera_o","gif",FRAME_LAYER);var searchImageParts3=logoImageForJupStyle.split(".");this.logoForJup=new KonaImage(searchImageParts3[0],searchImageParts3[1],FRAME_LAYER)}}this.box=new KonaImage("box","gif",FRAME_LAYER);this.box_o=new KonaImage("box_o","gif",FRAME_LAYER);this.box_separator=new KonaImage("box_separator","gif",FRAME_LAYER);this.box_separator_o=new KonaImage("box_separator_o","gif",FRAME_LAYER);this.top_box=new KonaImage("top_box","gif",FRAME_LAYER);this.top_box_o=new KonaImage("top_box_o_rm","gif",FRAME_LAYER);this.top_curve=new KonaImage("top_curve","png",FRAME_LAYER);this.drop_top_curve=new KonaImage("drop_top_curve","png",FRAME_LAYER);this.drop_top_curve_right=new KonaImage("drop_top_curve_right","png",FRAME_LAYER);this.drop_box_top_drag=new KonaImage("drop_box_top_drag","png",FRAME_LAYER);this.close=new KonaImage("close_rm","gif",FRAME_LAYER);this.close_o=new KonaImage("close_o_rm","gif",FRAME_LAYER);this.contentlink=new KonaImage(contentlinkLogo,"gif",FRAME_LAYER);this.contentlink_o=new KonaImage(contentlinkLogoO,"gif",FRAME_LAYER);this.contentlink.params=contentlinkLogoParams;this.question=new KonaImage("question_rm","gif",FRAME_LAYER);this.question_o=new KonaImage("question_o_rm","gif",FRAME_LAYER);this.download_now=new KonaImage("download_btn","gif",FRAME_LAYER);var searchImageParts1=moreInfoImage.split(".");this.moreinfo=new KonaImage(searchImageParts1[0],searchImageParts1[1],FRAME_LAYER);this.moreinfo.params=moreInfoImageParams;var searchImageParts2=layerTitleImage.split(".");this.ad_title=new KonaImage(searchImageParts2[0],searchImageParts2[1],FRAME_LAYER);if(siteLogoImage!=""){if(siteLogoImage.charAt(0)=="/"){siteLogoImage=siteLogoImage.substring(1,siteLogoImage.length)}var searchImageParts4=siteLogoImage.split(".");this.specialLogo=new KonaImage(searchImageParts4[0],searchImageParts4[1],FRAME_LAYER)}this.tabs_bg=new KonaImage("tabs_bg","gif",SEARCH_LAYER);this.tab_selected_left=new KonaImage("tab_selected_left","gif",SEARCH_LAYER);this.tab_selected_right=new KonaImage("tab_selected_right","gif",SEARCH_LAYER);this.tab_left=new KonaImage("tab_left","gif",SEARCH_LAYER);this.tab_right=new KonaImage("tab_right","gif",SEARCH_LAYER);this.search_button_text=new KonaImage(searchButtonImage,"gif",SEARCH_LAYER);this.search_button_text_o=new KonaImage(searchButtonImageO,"gif",SEARCH_LAYER);this.search_button_text.params=searchButtonImageParams;if(searchLogoImage.charAt(0)=="/"){searchLogoImage=searchLogoImage.substring(1,searchLogoImage.length)}var searchImageParts=searchLogoImage.split(".");this.sitesearch=new KonaImage(searchImageParts[0],searchImageParts[1],SEARCH_LAYER);this.sitesearch.params=searchLogoImageParams;this.learn_more=new KonaImage("learn_more","gif",RM_FAMILY);this.learn_more_o=new KonaImage("learn_more_o","gif",RM_FAMILY);this.konaVisitSite=new KonaImage("konaVisitSite","png",SPECIAL_TYPE_NEW_YAHOO);this.info_header=new KonaImage("konaInfocom_header_trans","gif",SPECIAL_TYPE_SEARCH_INFO);this.info_search_area=new KonaImage("konaInfocom_search_area_trans","gif",SPECIAL_TYPE_SEARCH_INFO);this.info_search_btn=new KonaImage("konaInfocom_search_button","gif",SPECIAL_TYPE_SEARCH_INFO);this.info_search_btn_ovr=new KonaImage("konaInfocom_search_button_ovr","gif",SPECIAL_TYPE_SEARCH_INFO);this.info_world_icon=new KonaImage("konaInfocom_world_icon","gif",SPECIAL_TYPE_SEARCH_INFO);this.webnary_kona_grad=new KonaImage("konaWebnaryGrad","gif",SPECIAL_TYPE_SEARCH_WEBNARY);this.webnary_kona_header=new KonaImage("konaWebnaryHeader","gif",SPECIAL_TYPE_SEARCH_WEBNARY);this.webnary_kona_sub=new KonaImage("konaWebnarySub","gif",SPECIAL_TYPE_SEARCH_WEBNARY);this.webnary_kona_translate_button=new KonaImage("konaWebnaryTranslateButton","gif",SPECIAL_TYPE_SEARCH_WEBNARY);this.webnary_kona_translate_button_ovr=new KonaImage("konaWebnaryTranslateButton_ovr","gif",SPECIAL_TYPE_SEARCH_WEBNARY);this.konaFDbottom=new KonaImage("konaFDbottom","gif",SPECIAL_TYPE_FREE_DICTIONARY);this.konaFDHeader=new KonaImage("konaFDHeader","gif",SPECIAL_TYPE_FREE_DICTIONARY);this.konaFDSub=new KonaImage("konaFDSub","gif",SPECIAL_TYPE_FREE_DICTIONARY);this.konaFDTranslateButton=new KonaImage("konaFDTranslateButton","gif",SPECIAL_TYPE_FREE_DICTIONARY);this.konaFDTranslateButton_ovr=new KonaImage("konaFDTranslateButton_ovr","gif",SPECIAL_TYPE_FREE_DICTIONARY);this.konaYahooSbgMiddle2=new KonaImage("konaYahooSbgMiddle2","gif",SPECIAL_TYPE_YAHOO_SHOPPING);this.konaYahooSbuy_now=new KonaImage("konaYahooSbuy_now","gif",SPECIAL_TYPE_YAHOO_SHOPPING);this.konaYahooSbgBottom=new KonaImage("konaYahooSbgBottom","gif",SPECIAL_TYPE_YAHOO_SHOPPING);this.konaYahooSpoweredByYahoo=new KonaImage("konaYahooSpoweredByYahoo","gif",SPECIAL_TYPE_YAHOO_SHOPPING);this.konaYahooSbuy_now_mover=new KonaImage("konaYahooSbuy_now_mover","gif",SPECIAL_TYPE_YAHOO_SHOPPING);this.konaYahooSbgWhite=new KonaImage("konaYahooSbgWhite","gif",SPECIAL_TYPE_YAHOO_SHOPPING);this.konaYahooSbgYellow=new KonaImage("konaYahooSbgYellow","gif",SPECIAL_TYPE_YAHOO_SHOPPING);this.konaYSponsored_fon_w_text=new KonaImage("konaYSponsored_fon_w_text","gif",SPECIAL_TYPE_YAHOO_SPONSORED);this.konaYSponsoredSearch_out=new KonaImage("konaYSponsoredSearch_out","gif",SPECIAL_TYPE_YAHOO_SPONSORED);this.konaYSponsoredSearch_over=new KonaImage("konaYSponsoredSearch_over","gif",SPECIAL_TYPE_YAHOO_SPONSORED)};this.loadPerFamily=function(currentLayerID,xy,doUpdate,familyID,origLayerFamily){for(var i=0;i<this.images.length;i++){if(this.images[i].familyID==familyID){this.images[i].load(currentLayerID,xy,doUpdate,familyID,origLayerFamily)}}};this.isFamilyLoaded=function(familyID){return this.hImagesToLoadPerFamily.getItem(familyID)==0};this.load=function(currentLayerID,xy,doUpdate,familyID){var isLoadNeeded=false;if(!hProhibitSimLoading.getItem(FRAME_LAYER)&&!this.isFamilyLoaded(FRAME_LAYER)){hProhibitSimLoading.setItem(FRAME_LAYER,true);isLoadNeeded=true;logit("loading: FRAME_LAYER ~");this.loadPerFamily(currentLayerID,xy,doUpdate,FRAME_LAYER,familyID)}if(familyID&&!hProhibitSimLoading.getItem(familyID)&&!this.isFamilyLoaded(familyID)){hProhibitSimLoading.setItem(familyID,true);logit("loading:"+familyID+"~");isLoadNeeded=true;this.loadPerFamily(currentLayerID,xy,doUpdate,familyID,familyID)}if(!hProhibitSimLoading.getItem(SEARCH_LAYER)&&siteSearchUrl&&!this.isFamilyLoaded(SEARCH_LAYER)){hProhibitSimLoading.setItem(SEARCH_LAYER,true);isLoadNeeded=true;this.loadPerFamily(currentLayerID,xy,doUpdate,SEARCH_LAYER,familyID)}if(!isLoadNeeded){konaLinks.get(currentLayerID).status=IMAGE_DONE_LOADING}return !isLoadNeeded};this.SingleImageLoadingDone=function(currentLayerID,xy,doUpdate,familyID,origLayerFamily){var counter=this.hImagesToLoadPerFamily.getItem(familyID);counter--;this.hImagesToLoadPerFamily.setItem(familyID,counter);if(typeof(origLayerFamily)!="undefined"&&siteSearchUrl!=null){if(this.isFamilyLoaded(FRAME_LAYER)&&this.isFamilyLoaded(origLayerFamily)&&this.isFamilyLoaded(SEARCH_LAYER)){this.changeImagesLoadStatus(currentLayerID,xy,doUpdate)}}else{if(typeof(origLayerFamily)!="undefined"){if(this.isFamilyLoaded(FRAME_LAYER)&&this.isFamilyLoaded(origLayerFamily)){this.changeImagesLoadStatus(currentLayerID,xy,doUpdate)}}else{if(siteSearchUrl!=null){if(this.isFamilyLoaded(FRAME_LAYER)&&this.isFamilyLoaded(SEARCH_LAYER)){this.changeImagesLoadStatus(currentLayerID,xy,doUpdate)}}else{if(this.isFamilyLoaded(FRAME_LAYER)){this.changeImagesLoadStatus(currentLayerID,xy,doUpdate)}}}}};this.changeImagesLoadStatus=function(currentLayerID,xy,doUpdate){konaLinks.get(currentLayerID).status=IMAGE_DONE_LOADING;showListings(currentLayerID,xy,doUpdate)};this.stackImage=function(konaImage){this.images.push(konaImage)};this.onload=function(){};this.onerror=function(){};this.onabort=function(){}}function KonaBuilder(){this.styleRE=new RegExp("#STYLE#","g");this.descRE=new RegExp("#DESCRIPTION#","g");this.plateIndexRE=new RegExp("#PLATEINDEX#","g");this.layerIndexRE=new RegExp("#LAYERINDEX#","g");this.titleRE=new RegExp("#TITLE#","g");this.urlRE=new RegExp("#URL#","g");this.block1RE=new RegExp("#BLOCK1#","g");this.block2RE=new RegExp("#BLOCK2#","g");this.block3RE=new RegExp("#BLOCK3#","g");this.colspanRE=new RegExp("#COLSPAN#","g");this.linkInfo=null;this.adlinkCur=null;this.plateCur=null;this.layerType=null;this.tabs=null;this.isOneSearch=null;this.target=infoUnit.dc_open_new_win=="yes"?"_new":"_top";this.paintSearchInfo=false;this.getLayer=function(adlinkCur,plateCur,linkInfo){this.adlinkCur=adlinkCur;this.plateCur=plateCur;this.linkInfo=linkInfo?linkInfo:konaLinks.getInfo(adlinkCur,plateCur);this.layerType=this.linkInfo.getLayerType();this.tabs=konaLayers.getSearchInfos();this.isOneSearch=(this.tabs.length==1);this.paintSearchInfo=konaLayers.isShowSearch(this.adlinkCur);return this.getSuperDIV()};this.getRMBoxDimension=function(layerType,isWithButtons){var dim=null;switch(layerType){case LAYER_TYPE_SINGLE:case LAYER_TYPE_LOADING:dim=[0,0];break;case LAYER_TYPE_RM_TOP:dim=isWithButtons?[234,79]:[234,60];break;case LAYER_TYPE_RM_LEFT:dim=isWithButtons?[180,168]:[180,150];break;case LAYER_TYPE_RM_ONLY:dim=isWithButtons?[300,268]:[300,250];break}return dim};this.getContentBlock=function(){contextBlock="";if(infoUnit.dcAL_LY_descActive.toLowerCase()=="yes"){contextBlock+=this.getFrameBar();if(this.linkInfo.isSpecialType("SPECIAL_TYPE_SEARCH_INFO")){contextBlock+=this.getInfoDotComLayer()}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_SEARCH_WEBNARY")){contextBlock+=this.getWebnaryLayer()}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_NEW_YAHOO")){contextBlock+=this.getYahooDescBlock()}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_FREE_DICTIONARY")){contextBlock+=this.getFreeDictionaryDesc()}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_YAHOO_SHOPPING")){contextBlock+=this.getYahooShppingLayer()}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_YAHOO_SPONSORED")){contextBlock+=this.getYahooSponsoredSearchLayer()}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_MOTIFLAYER")){contextBlock+=this.getActionBlock()}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_KOSMIX")){contextBlock+=this.getActionBlock()}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_HP")){contextBlock+=this.getActionBlock()}else{if(this.linkInfo.thirdPartyIframeObject){contextBlock+=this.getIframeBlock()}else{if(this.linkInfo.isRM()){contextBlock+=this.getRMBlock()}else{contextBlock+=this.getDescBlock()}}}}}}}}}}}if(this.layerType!=LAYER_TYPE_RM_LEFT&&(this.linkInfo.adType!="LOAD")&&this.layerType!=LAYER_TYPE_RM_ONLY&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_SEARCH_INFO")&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_SEARCH_WEBNARY")&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_FREE_DICTIONARY")&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_YAHOO_SHOPPING")&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_YAHOO_SPONSORED")&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_MOTIFLAYER")&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_KOSMIX")&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_HP")&&!this.linkInfo.thirdPartyIframeObject){contextBlock+=this.getLinksBlock()}}return contextBlock};this.getFrameBar=function(){return"<table onclick='konaEventUnbubble(event);' cellpadding='0' cellspacing='0' border='0' class='frameBar'><tr>"+this.getTrademarkTD()+this.getHandleTD()+this.getQuestionTD()+"</tr></table>"};this.getTrademarkTD=function(){return"<td class='frameBarCell_left'>"+this.getTrademarkInnerTD()+"</td>"};this.getTrademarkInnerTD=function(){var result="";if(isExternalPublisher&&(extExternalType==EXTERNAL_TYPE_RTN)){result=""}else{if(konaOuterLayerStyle==OUTER_LAYER_REG){result=this.getRegularKonaImage()}else{if(konaOuterLayerStyle==OUTER_LAYER_JUP){result="<span style='position:relative;'><img src='"+konaImages.logoForJup.src+"' alt='Internet.Com'/></span>"}}}return result};this.getRegularKonaImage=function(){if(siteLogoImage==""){return"<a style='position:relative;' href='http://www.kontera.com/?sr=100000'><img src='"+konaImages.contentlink.src+"'"+konaImages.contentlink.params+"onmouseover='this.src = \""+konaImages.contentlink_o.src+"\"' onmouseout='this.src = \""+konaImages.contentlink.src+"\"' /></a>"}else{return"<span style='position:relative;'><img src='"+konaImages.specialLogo.src+"' /></span>"}};this.getHandleTD=function(){return"<td style='position:relative;"+handleTdParams+"' class='handleTd' ><div id='konaHandle"+this.plateCur+"-"+this.adlinkCur+"'>"+this.getHandleInnerTD()+"</div></td>"};this.getHandleInnerTD=function(){return"<img src='"+konaImages.ad_title.src+"' width='71' height='8' alt='' />"};this.getQuestionTD=function(){return"<td align='right' class='frameBarCell_right'><a style='position:relative;' href='#' onclick='whatsThisClick(this);'><img src='"+konaImages.question.src+"' border='0' width='13' height='16' alt='What&#39;s this?' onmouseover='this.src = \""+konaImages.question_o.src+"\"' onmouseout='this.src = \""+konaImages.question.src+"\"' /></a>&nbsp;<a style='position:relative;cursor:pointer;' onclick='closeKonaLayer(#LAYERINDEX#);'><img src='"+konaImages.close.src+"' border='0' width='13' height='16' alt='Close' onmouseout='this.src = konaImages.close.src' onmouseover='this.src = konaImages.close_o.src' /></a></td>"};this.getHref=function(html,isRelative){var content="<a href='#' {0} {1}>"+html+"</a>";content=String.format(content,this.linkInfo.isSpecialType("SPECIAL_TYPE_NEW_YAHOO")?"onclick='descriptionMouseClick(event,this,#PLATEINDEX#,#LAYERINDEX#);konaEventUnbubble(event)'":"",isRelative?"style='position:relative;'":"");return content};this.getLinksBlock=function(){var tableClass=this.layerType==LAYER_TYPE_RM_TOP?"table03_flv02":"table03";var linksClass=(this.layerType==LAYER_TYPE_RM_TOP?"konaLayerLinks_underFLV02":"konaLayerLinks");var str="<table style='position:relative;' class='"+tableClass+"' cellpadding='0' cellspacing='0' border='0' "+(this.linkInfo.isSpecialType("SPECIAL_TYPE_NEW_YAHOO")?" ":"onclick='descriptionMouseClick(event,this,#PLATEINDEX#,#LAYERINDEX#);'")+"><tr class='"+linksClass+"'>"+this.getLandingUrlTD()+this.getButtonTD()+"</tr></table>";return str};this.getLandingUrlTD=function(){var landingUrl=this.linkInfo.landingUrl;if(!bIE){landingUrl=this.htmlWordWrap(landingUrl,27)}return"<td colspan='2' style='position:relative;' class='site'>"+this.getHref(landingUrl)+"</td>"};this.htmlWordWrap=function(str,jumpBy){var output="";var count=0;while(count<str.length){output+=str.substring(count,count+jumpBy);count+=jumpBy;output+="<br/>"}return output};this.getButtonTD=function(){var sClass=null;switch(this.layerType){case LAYER_TYPE_SINGLE:case LAYER_TYPE_LOADING:sClass="buyNow";break;case LAYER_TYPE_RM_TOP:sClass="konaLayerLearnMore02";break;case LAYER_TYPE_RM_LEFT:sClass="konaLayerLearnMore";break}var img="";if(this.linkInfo.isSpecialType("SPECIAL_TYPE_NEW_YAHOO")){img="<img src='"+konaImages.konaVisitSite.src+"' width='109' height='22' alt='visit site' />"}else{if(this.linkInfo.isRM()){img="<img src='"+konaImages.learn_more.src+"' alt='Learn more' onmouseover='this.src = \""+konaImages.learn_more_o.src+"\"' onmouseout='this.src = \""+konaImages.learn_more.src+"\"' border='0' height='18' width='89'>"}else{if((this.linkInfo.isSpecialType("SPECIAL_TYPE_MICROSOFT_IE8"))||(this.linkInfo.isSpecialType("SPECIAL_TYPE_MICROSOFT_IE6"))){img="<img src='"+konaImages.download_now.src+"' width='132' height='25' alt='download' />";sClass="konaLayerDownload"}else{img="<img src='"+konaImages.moreinfo.src+"'"+konaImages.moreinfo.params+"/>"}}}return"<td class='"+sClass+"' align='right'>"+this.getHref(img,true)+"</td>"};this.getTitleBlock=function(){return titleLink};this.getTitleTD=function(){return"<td class='"+(this.linkInfo.isRM()?"konaLayerRMTitle":"konaLayerTitle")+"' colspan='2'><span class='konaLayerTitleText'>"+this.linkInfo.title+"</span></td>"};this.getDescTD=function(){var sClass=null;switch(this.layerType){case LAYER_TYPE_SINGLE:case LAYER_TYPE_LOADING:if((this.linkInfo.isSpecialType("SPECIAL_TYPE_MICROSOFT_IE8"))||(this.linkInfo.isSpecialType("SPECIAL_TYPE_MICROSOFT_IE6"))){sClass="konaLayerDescDownlod"}else{sClass="konaLayerDesc"}break;case LAYER_TYPE_RM_TOP:sClass="konaLayerDesc_underFLV";break;case LAYER_TYPE_RM_LEFT:sClass="konaLayerDesc_nearFLV";break}return"<td class='"+sClass+"'>"+this.linkInfo.description+"</td>"};this.getYahooLogoTD=function(){var html="<td rowspan='3'></td>";if(this.linkInfo.hasLogo()){html="<td class='imgBanner' id='konaLayerLogo#PLATEINDEX#-#LAYERINDEX#' rowspan='3'>   <img style='max-width:100px;max-height:100px;' src='"+this.linkInfo.getLogo()+"' alt='' /></td>"}return html};this.getLogoTD=function(){if(!this.linkInfo.hasLogo()&&!this.linkInfo.isSpecialType("SPECIAL_TYPE_DARTLAYER")){return"<td rowspan='3'></td>"}else{if(this.linkInfo.isDirect()&&this.linkInfo.isSpecialType("SPECIAL_TYPE_DARTLAYER")){return"<td class='imgBanner' id='konaLayerLogo#PLATEINDEX#-#LAYERINDEX#' rowspan='3'></td>"}else{if(this.linkInfo.isSpecialType("SPECIAL_TYPE_CATERPILAR")||this.linkInfo.isSpecialType("SPECIAL_TYPE_EDMUNDS")){return"<td class='imgBanner' id='konaLayerLogo#PLATEINDEX#-#LAYERINDEX#' rowspan='3'><img style='max-width:100px;max-height:100px;' src='"+this.linkInfo.getLogo()+"' alt='' /></td>"}else{return"<td class='imgBanner' id='konaLayerLogo#PLATEINDEX#-#LAYERINDEX#' rowspan='3'><img style='max-width:100px;max-height:100px;' src='"+this.linkInfo.getLogo()+"' alt='' /></td>"}}}};this.getFlashTD=function(){var tdClass,rowspan,embedClass,align;switch(this.layerType){case LAYER_TYPE_RM_TOP:tdClass="konaLayer_flvTD02";rowspan=1;embedClass="konaLayer_flvEmbed02";align="";break;case LAYER_TYPE_RM_LEFT:tdClass="konaLayer_flvTD01";rowspan=2;embedClass="konaLayer_flvEmbed01";align="left";break;case LAYER_TYPE_RM_ONLY:tdClass="";rowspan=1;embedClass="";align="left";break}var dim=this.getRMBoxDimension(this.layerType,this.linkInfo.isWithButtons());var id="konaFlash#LAYERINDEX#";var url;if(this.linkInfo.creativeType=="swf"){url=FLASH_PLAYER_URL}else{if(this.linkInfo.creativeType=="flv"){url=FLASH_FLV_PLAYER_URL}}return"<td  class='"+tdClass+"' rowspan="+rowspan+" onclick='konaEventUnbubble(event);'>"+getObjectTagHtml(id,url,dim,embedClass,align)+"</td>"};this.getRMBlock=function(){var sClass=null;var rows=null;switch(this.layerType){case LAYER_TYPE_RM_TOP:sClass="table02_flv02";break;case LAYER_TYPE_RM_LEFT:sClass="table02_flv";break;case LAYER_TYPE_RM_ONLY:sClass="table02_flv03";rows=this.getFlashTD();break}if(rows==null){rows=this.getTitleTD()+"</tr><tr>"+this.getFlashTD()+(this.layerType==LAYER_TYPE_RM_LEFT?this.getDescTD():"")+"</tr><tr>"+(this.layerType==LAYER_TYPE_RM_TOP?this.getDescTD():this.getButtonTD()+"</tr><tr class='konaLayerLinks_underFLV'>"+this.getLandingUrlTD())}return"<table class='"+sClass+"' border='0' cellpadding='0' cellspacing='0'><tr>"+rows+"</tr></table>"};this.getDescBlock=function(){var str="<div style='position:relative;' class='konaDescDiv' onclick='descriptionMouseClick(event,this,#PLATEINDEX#,#LAYERINDEX#);'><table cellpadding='0' cellspacing='0' border='0' class='table02'><tr>"+this.getTitleTD()+"</tr><tr>"+this.getLogoTD()+this.getDescTD()+"</tr></table></div>";return str};this.getMScashbackLayer=function(){return"<div id='konaFlashWrap#PLATEINDEX#-#LAYERINDEX#' class='konaFlashWrap' style='display:inline;width:320px;'><div id='konaFlashDrag#PLATEINDEX#-#LAYERINDEX#' class='konaFlashDrag'></div><div id='konaFlashContent#PLATEINDEX#-#LAYERINDEX#' class='konaFlashContent' style='width:320px;height:335px;'></div></div>"};this.getYahooDescBlock=function(){var content="<div style='position:relative;' class='konaDescDiv'><table cellpadding='0' cellspacing='0' border='0' class='table02'><tr><td onclick='descriptionMouseClick(event,this,#PLATEINDEX#,#LAYERINDEX#);konaEventUnbubble(event)' class='{0}' colspan='2'><span class='{4}'>{1}</span></td></tr><tr>{2}{3}</tr></table></div>";content=String.format(content,this.linkInfo.isRM()?"konaLayerRMTitle":"konaLayerTitle",this.linkInfo.title,this.getYahooLogoTD(),this.getYahooDescTD(),"konaLayerTitleText");return content};this.getYahooDescTD=function(){var sClass=null;switch(this.layerType){case LAYER_TYPE_SINGLE:case LAYER_TYPE_LOADING:sClass="konaLayerDesc";break;case LAYER_TYPE_RM_TOP:sClass="konaLayerDesc_underFLV";break;case LAYER_TYPE_RM_LEFT:sClass="konaLayerDesc_nearFLV";break}return"<td onclick='descriptionMouseClick(event,this,#PLATEINDEX#,#LAYERINDEX#);konaEventUnbubble(event)' class='"+sClass+"'>"+this.linkInfo.description+"</td>"};this.getFreeDictionaryDesc=function(){var content="<table class='konaWebnaryTable' width='300' height='112' border='0' cellpadding='0' cellspacing='0' ><tbody><tr><td class='konaFDHeadTD'><img src='{0}' width='300' height='55'  border='0' alt='Webnary' /></td></tr><tr><td class='konaFDSubTD'><img src='{1}' width='300' height='20' border='0' alt='Translate to 21 languages for FREE' /></td></tr><tr><td class='konaFDGradientTD'><table class='konaFDSearch' width='280' height='23' border='0' cellpadding='0' cellspacing='0' ><tbody><tr><td class='konaLineInputTD'><div class='konaFDInputContainer'><input id='konaSearchText_#LAYERINDEX#' type='text' class='konaFDInput' value='{2}'  onclick='konaEventUnbubble(event);' maxlength='40'/></div></td><td><img src='{3}' width='82' height='23' alt='Translate' border='0' onmouseover='this.src = \"{3}\"' onmouseout='this.src = \"{4}\"' class='konaFDSubmit'/></td></tr></tbody></table></td></tr></tbody></table>";content=String.format(content,konaImages.konaFDHeader.src,konaImages.konaFDSub.src,cutString(this.linkInfo.keyword,40),konaImages.konaFDTranslateButton_ovr.src,konaImages.konaFDTranslateButton.src);return content};this.getYahooShppingLayer=function(){var img=new Image();img.src=this.linkInfo.getLogo();while(bIE&&img.height==0){img.src=this.linkInfo.getLogo()}var finalHight=img.height;var finalWidth=img.width;if(img.height>img.width){finalWidth=85/img.height*img.width;finalHight=85}else{finalHight=85/img.width*img.height;finalWidth=85}var content="<table ID='konaYahooShoppingMainTable_#LAYERINDEX#' border='0' cellpadding='0' cellspacing='0' class='konaYahooShoppingTable' onmouseover='konaBuilder.overLayerYahooS(#LAYERINDEX#);' onmouseout='konaBuilder.outLayerYahooS(#LAYERINDEX#);' onmouseup=''><tr>   <td class='konaYahooShoppingHeader' colspan='0'>       <a onclick='konaEventUnbubble(event);' class='konaYahooShoppingTitle'>{0}</a>   </td></tr><tr>   <td>      <table cellpadding='0' cellspacing='0' width='100%' class='konaYahooShoppingContentTable'>           <tr>               <td  class='konaYahooShoppingImageTd'>                   <center><img src='{1}' height='{10}px' width='{11}px' class='konaYahooShoppingImg' alt='' />                   <span class='konaYahooShoppingPrice konrYahooShoppingFont' valign='top'><strong>${2}</strong></span></center>               </td>               <td  class='konaYahooShoppingText' valign='top'>                   <table cellpadding='0' cellspacing='0' class='konaYahooShoppingDescriptionTable'>                       <tr>                           <td class='konaYahooShoppingDescriptionTd'>                               <p class='konaYahooShoppingDescription konrYahooShoppingFont'>                               {3}                               </p>                           </td>                       </tr>                   </table>               </td>           </tr>       </table>   </td></tr></table><table border='0' cellpadding='0' cellspacing='0' class='konaYahooShoppingTable2' ><tr>   <td>       <table class='konaYahooSecondTable' cellpadding='0' cellspacing='0'>           <tr>               <td class='konaYahooSecondTableLinkTD'>                   <a href='{4}' class='konrYahooLink1' valign='top'>{5}</a>               </td>               <td align='right' class='konaYahooSecondTableButtonTD'>                   <img src='{6}' ID='konaYahooShoppingBuyNowImg' alt='Buy Now' class='konaYahooShoppingBuyNowImg' onmouseover='this.src = \"{7}\"' onmouseout='this.src = \"{6}\"' />               </td>           </tr>       </table>   </td></tr><tr>   <td class='konaYahooShoppingBottomTd'><img src='{8}' class='konaYahooShoppingBottomImg' /></td></tr><tr><td class='konaYahooShoppingPoweredTd'><center><img src='{9}' class='konaYahooShoppingPoweredImg' /></center></td></tr></table>";content=String.format(content,cutString(this.linkInfo.title,40),this.linkInfo.getLogo(),parseFloatString(this.linkInfo.price,2),cutString(this.linkInfo.description,120),this.linkInfo.landingUrl,cutString(this.linkInfo.landingUrl,24),konaImages.konaYahooSbuy_now.src,konaImages.konaYahooSbuy_now_mover.src,konaImages.konaYahooSbgBottom.src,konaImages.konaYahooSpoweredByYahoo.src,finalHight,finalWidth);return content};this.overLayerYahooS=function(curLink){var obj=kona$(String.format("konaYahooShoppingMainTable_{0}",curLink));obj.style.background=String.format("url({0})",konaImages.konaYahooSbgYellow.src)};this.outLayerYahooS=function(curLink){var obj=kona$(String.format("konaYahooShoppingMainTable_{0}",curLink));obj.style.background=String.format("url({0})",konaImages.konaYahooSbgWhite.src)};this.getYahooSponsoredSearchLayer=function(){var content="<div class='konaYahooSponsored_bckgr'>    <table class='konaYahooSponsored_table'>        <tr>            <td valign='top' class='konaYahooSponsored_td'>                <div class='konaYahooSponsored_inputContainor'>                   <input id='konaSearchText_#LAYERINDEX#' type='text' value='{0}' onclick='konaEventUnbubble(event);' class='konaYahooSponsored_input' maxlength='40' />                </div>            </td>            <td valign='top'>                <a href='#'>                    <img src='{2}' border='0' onmouseover='this.src = \"{1}\"' onmouseout='this.src = \"{2}\"' alt='Search'>                </a>            </td>        </tr>    </table></div>";content=String.format(content,cutString(this.linkInfo.keyword,40),konaImages.konaYSponsoredSearch_over.src,konaImages.konaYSponsoredSearch_out.src);return content};this.getInfoDotComLayer=function(){var content="<table width='270' border='0' cellpadding='0' cellspacing='0' class='konaInfocomTableContainer'><tbody>    <tr>        <td>            <table width='250' border='0' cellpadding='0' cellspacing='0'>            <tbody>                <tr>                    <td>                       <img src='{0}' width='56' alt='Info.com' height='44' border='0' />                    </td>                    <td>                       <img src='{1}' width='186' height='41' alt='Search Info.com' border='0' />                    </td>                </tr>            </tbody>            </table>    </tr>    <tr>        <td width='270' height='46' class='konaInfocomSearchTD'>            <table width='244' border='0' cellpadding='0' cellspacing='0' class='konaInfocomSearchTable'>                <tbody>                    <tr>                        <td class='konaLineInputTD'>                           <div class='konaInfocomInputContainer'>                               <input id='konaSearchText_#LAYERINDEX#' class='konaInfocomSearchField' type='text' value='{2}' onclick='konaEventUnbubble(event);' maxlength='40' />                           </div>                        </td>                        <td>					        <img onmouseover='this.src = \"{3}\"' onmouseout='this.src = \"{4}\"' src='{4}' width='69' height='23' border='0' alt='Search!' />                        </td>                    </tr>                </tbody>            </table>        </td>    </tr></tbody></table>";content=String.format(content,konaImages.info_world_icon.src,konaImages.info_header.src,cutString(this.linkInfo.keyword,40),konaImages.info_search_btn_ovr.src,konaImages.info_search_btn.src);return content};this.getWebnaryLayer=function(){var content="<table class='konaWebnaryTable' width='300' height='112' border='0' cellpadding='0' cellspacing='0' >    <tbody>        <tr>            <td class='konaWebnaryHeadTD'><img src='{0}' width='300' height='51' border='0' alt='Webnary' /></td>        </tr>        <tr>            <td class='konaWebnarySubTD'><img src='{1}' width='300' height='22' border='0' alt='Translate to 21 languages for FREE' /></td>        </tr>        <tr>            <td class='konaWebnaryGradientTD'>                <table class='konaWebnarySearch' width='280' height='23' border='0' cellpadding='0' cellspacing='0' >                <tbody>                    <tr>                        <td class='konaLineInputTD'>                           <div class='konaWebnaryInputContainer'>                               <input id='konaSearchText_#LAYERINDEX#' type='text' class='konaWebnaryInput' value='{2}' onclick='konaEventUnbubble(event);' maxlength='40' />                           </div>                        </td>			             <td><img src='{3}' width='71' height='23' alt='Translate' border='0' onmouseover='this.src = \"{4}\"' onmouseout='this.src = \"{3}\"' class='konaWebnarySubmit'/></td>                    </tr>                </tbody>                </table>            </td>        </tr>    </tbody></table>";content=String.format(content,konaImages.webnary_kona_header.src,konaImages.webnary_kona_sub.src,cutString(this.linkInfo.keyword,40),konaImages.webnary_kona_translate_button.src,konaImages.webnary_kona_translate_button_ovr.src);return content};this.getTable=function(innerHTML){return"<table  style='table-layout:auto;empty-cells:hide;'>"+innerHTML+"</table>"};this.getKonaBox=function(){var str="<div id='konaBox#PLATEINDEX#-#LAYERINDEX#' class='konaBox'>"+this.getImagePlate();str+="</div>";return str};this.getKonaPlate=function(){return"<div class='"+KONA_PLATE_CLASSNAME+"' id='"+KONA_PLATE_CLASSNAME+"#PLATEINDEX#-#LAYERINDEX#' "+((this.linkInfo.isSpecialType("SPECIAL_TYPE_MOTIFLAYER")||this.linkInfo.isSpecialType("SPECIAL_TYPE_KOSMIX")||this.linkInfo.isSpecialType("SPECIAL_TYPE_HP"))?"onmouseover='descriptionMouseOver(event,this,#PLATEINDEX#,#LAYERINDEX#);' onmouseout='descriptionMouseOut(event,this,#PLATEINDEX#,#LAYERINDEX#);'onclick='descriptionMouseClick(event,this,#PLATEINDEX#,#LAYERINDEX#);'>":this.getClickEvent()+">")+this.getTopCurve()+this.getKonaBox()+(this.paintSearchInfo?this.getPlateSeparator():this.getBottomBox())+"</div>"};this.getClickEvent=function(){var eventHtml="";if(!this.linkInfo.declareOuterOnClick()){eventHtml=""}else{eventHtml="onclick='descriptionMouseClick(event,this,#PLATEINDEX#,#LAYERINDEX#);'"}return eventHtml};this.getPlateSeparator=function(){return"<div class='konaBox_bottom' id='konaBoxSeparator#PLATEINDEX#-#LAYERINDEX#'></div>"};this.getTopCurve=function(){return"<div class='top_curve' id='konaTopCurve#PLATEINDEX#-#LAYERINDEX#'></div>"};this.getBottomBox=function(){return"<div id='konaBottom#PLATEINDEX#-#LAYERINDEX#' class='konaBottomBox'>"+((this.linkInfo.isSpecialType("SPECIAL_TYPE_MOTIFLAYER")||this.linkInfo.isSpecialType("SPECIAL_TYPE_KOSMIX")||this.linkInfo.isSpecialType("SPECIAL_TYPE_HP"))?"&nbsp;":this.getBottomBoxInner())+"</div>"};this.getBottomBoxInner=function(){if(konaOuterLayerStyle==OUTER_LAYER_REG){return"&nbsp;"}else{if(konaOuterLayerStyle==OUTER_LAYER_JUP){return"<center><a style='position:relative;' href='http://www.kontera.com/?sr=100000' onclick='konaEventUnbubble(event);'><img src='"+konaImages.poweredbyKontera.src+"' width='143' height='21' alt='Kontera' onmouseover='this.src = \""+konaImages.poweredbyKontera_o.src+"\"' onmouseout='this.src = \""+konaImages.poweredbyKontera.src+"\"' /></a></center>"}}};this.getActionBlock=function(){return"<div id='konaActionBlock#PLATEINDEX#-#LAYERINDEX#' onmouseover='descriptionMouseOver(event,this,#PLATEINDEX#,#LAYERINDEX#);' onmouseout='descriptionMouseOut(event,this,#PLATEINDEX#,#LAYERINDEX#);'>"+(this.linkInfo.isSpecialType("SPECIAL_TYPE_MS_CASHBACK")?this.getMScashbackLayer():(this.linkInfo.isSpecialType("SPECIAL_TYPE_MOTIFLAYER")||this.linkInfo.isSpecialType("SPECIAL_TYPE_KOSMIX")||this.linkInfo.isSpecialType("SPECIAL_TYPE_HP")?"<div id='konteraMotifWrap#LAYERINDEX#' style='position:relative;left:7px;top:3px;width:300px;height:250px;'></div>":this.getKonaPlate()))+"</div>"};this.getIframeBlock=function(){return"<div id='konaActionBlock#PLATEINDEX#-#LAYERINDEX#' onmouseover='descriptionMouseOver(event,this,#PLATEINDEX#,#LAYERINDEX#);' onmouseout='descriptionMouseOut(event,this,#PLATEINDEX#,#LAYERINDEX#);'><div id='konteraThirdPartyWrapper#LAYERINDEX#' style='border:0;position:relative;left:7px;top:3px;width:300px;height:250px;'></div></div>"};this.getHoverTD=function(innerHtml){return"<td onmouseover='this.className=\"konaHover\"' onmouseout='this.className=\"\"' >"+innerHtml+"</td>"};this.getTabTD=function(num,title,isSelected){return this.getHoverTD("<div style='position:relative;' class='"+(isSelected?"selected":"")+"' id='konaTab"+num+"-#LAYERINDEX#' onclick='konaTabMouseClick(event,this,"+num+",#LAYERINDEX#);'><span>"+title+"</span></div>")};this.getTabsBar=function(){var tabsStr="";for(var i=0;i<this.tabs.length;i++){tabsStr+=this.getTabTD(i,this.tabs[i].tabName,i==0)}return"<table cellpadding='0' cellspacing='0' border='0' id='konatabs_Table#LAYERINDEX#' class='konatabs_Table'><tr>"+tabsStr+"</tr></table>"};this.getTabBlock=function(){var value=this.linkInfo.keyword;return"<table class='searchTbContainer' cellpadding='0' cellspacing='0' border='0'><tr><td class='searchTransTb' "+searchTransTbParams+"></td><td class='searchLogoTb' valign='middle' "+searchLogoTbParams+"><img src='"+konaImages.sitesearch.src+"' "+konaImages.sitesearch.params+" border='0'  /></td><td class='searchInputTb' "+searchInputTbParams+" valign='middle' onclick='konaEventUnbubble(event);' ><div class='searchInputFieldTbDiv' "+searchInputFieldTbDivParams+"><input value='"+value+"' class='searchInputFieldTb' id='konaSearchInput#LAYERINDEX#' type='text' maxlength='40' /></div></td><td class='searchButtonTb' "+searchButtonTbParams+" valign='middle'><img src='"+konaImages.search_button_text.src+"' "+konaImages.search_button_text.params+" onclick='konaSearchClick(event,this,#LAYERINDEX#)' onmouseover='this.src = \""+konaImages.search_button_text_o.src+"\"' onmouseout='this.src = \""+konaImages.search_button_text.src+"\"' /></td></tr></table>"};this.getTabsBox=function(){return"<div class='konaBox02' id='konaTabsBox#LAYERINDEX#'>"+(!this.isOneSearch?"<div class='konatabs_Search'>"+this.getTabsBar()+"</div>":"")+this.getTabBlock()+"</div>"};this.getLowerPlate=function(plateNum){return"<div class='"+KONA_PLATE_CLASSNAME+"' id='"+KONA_PLATE_CLASSNAME+"#PLATEINDEX#-#LAYERINDEX#' onclick='descriptionMouseClick(event,this,#PLATEINDEX#,#LAYERINDEX#);' onmouseover='descriptionMouseOver(event,this,#PLATEINDEX#,#LAYERINDEX#);' onmouseout='descriptionMouseOut(event,this,#PLATEINDEX#,#LAYERINDEX#);'>"+this.getTabsBox()+this.getBottomBox()+"</div>"};this.getLayerPlates=function(){var res="";if(this.linkInfo.isSpecialType("SPECIAL_TYPE_MOTIFLAYER")||this.linkInfo.isSpecialType("SPECIAL_TYPE_KOSMIX")||this.linkInfo.isSpecialType("SPECIAL_TYPE_HP")){res+=this.getKonaPlate().replace(this.layerIndexRE,this.adlinkCur).replace(this.plateIndexRE,0)}res+=this.getActionBlock().replace(this.layerIndexRE,this.adlinkCur).replace(this.plateIndexRE,0);if(this.paintSearchInfo){res+=this.getLowerPlate().replace(this.layerIndexRE,this.adlinkCur).replace(this.plateIndexRE,1)}return res};this.getSuperDIV=function(){var layer=document.createElement("div");layer.id=KONA_LAYER_ID+this.adlinkCur;layer.className="konaLayer"+(this.linkInfo.konaLayerMode==LAYER_MODE_CLICK?" CBL":"");if(this.linkInfo.isSpecialType("SPECIAL_TYPE_MS_CASHBACK")){layer.style.width="320px";layer.innerHTML=this.getActionBlock().replace(this.layerIndexRE,this.adlinkCur).replace(this.plateIndexRE,0)}layer.innerHTML=this.getLayerPlates();return layer};this.getLogoPlate=function(titleBlock,descBlock,landingUrlBlock){return this.getTable("<tr><td>"+titleBlock+"</td></tr><tr><td>"+descBlock+"</td></tr><tr><td>"+landingUrlBlock+"</td></tr>")};this.getImagePlate=function(imgBlock,descBlock){var contentBlock=this.getContentBlock();return contentBlock}}function KonaLayers(){this.node=null;this.scrolls=null;this.scrollCur=-1;this.layers=new Array();this.doUpdate=false;this.zTopCur=dc_z_index;this.effectTimer=null;this.searchInfos=new Array();this.isExpandBigArr=new Array();this.expandTypeLinkClick=null;this.viewTime=0;this.SEARCH_INFOS_TABLE=[[1,"This site"],[2,"Web"]];this.hasLayersNode=function(){return this.node!=null};this.setLayersNode=function(layersNode){this.node=layersNode};this.getSelectedSearch=function(layerCur){return this.searchInfos[this.getLayerObj(layerCur).selectedTab]};this.getSearchInfos=function(){return this.searchInfos};this.addSearchInfo=function(sInfo){for(var i=0;i<this.SEARCH_INFOS_TABLE.length;i++){if(this.SEARCH_INFOS_TABLE[i][0]==sInfo.searchTypeId){sInfo.tabName=this.SEARCH_INFOS_TABLE[i][1]}}this.searchInfos.push(sInfo)};this.hasSearchInfo=function(num){return this.searchInfos.length>0};this.isMSLayer=function(layerCur){if(konaLinks.getInfo(layerCur).isSpecialType("SPECIAL_TYPE_MSLAYER")){return true}};this.isExpandBig=function(layerCur){if(typeof(this.isExpandBigArr[layerCur])!="undefined"){if(this.isExpandBigArr[layerCur]){return true}else{return false}}else{return false}};this.isMScashback=function(layerCur){if(konaLinks.getInfo(layerCur).isSpecialType("SPECIAL_TYPE_MS_CASHBACK")){return true}};this.IsMotifLayer=function(layerCur){if(konaLinks.getInfo(layerCur).isSpecialType("SPECIAL_TYPE_MOTIFLAYER")){return true}};this.IsDartLayer=function(layerCur){if(konaLinks.getInfo(layerCur).isSpecialType("SPECIAL_TYPE_DARTLAYER")){return true}};this.isKosmix=function(layerCur){if(konaLinks.getInfo(layerCur).isSpecialType("SPECIAL_TYPE_KOSMIX")){return true}};this.isHP=function(layerCur){if(konaLinks.getInfo(layerCur).isSpecialType("SPECIAL_TYPE_HP")){return true}};this.isShowSearch=function(layerCur){var info=konaLinks.getInfo(layerCur);return(konaLayers.hasSearchInfo(layerCur)&&!info.isRM()&&info.getLayerType()!=LAYER_TYPE_LOADING)};this.pushEffectParam=function(doUpdate){this.doUpdate=doUpdate};this.initEffects=function(layerCur){this.scrolls=layerCur;clearTimeout(this.effectTimer);var isUp=this.getLayerObj(layerCur).isUp;if(this.layers[this.scrolls].scrollDone||this.doUpdate){this.scrollCur=isUp?-1:this.layers[this.scrolls].node.offsetHeight}else{this.scrollCur=isUp?this.layers[this.scrolls].node.offsetHeight-1:0}this.scrollEffect(isUp,layerCur)};this.scrollEffect=function(isUp,layerCur){var rectStr="";if(isUp){if(!movieLayerIndex||layerCur!=movieLayerIndex){rectStr="rect("+this.scrollCur+"px 319px "+this.layers[this.scrolls].node.offsetHeight+"px 0px)"}else{rectStr="rect("+this.scrollCur+"px 470px "+this.layers[this.scrolls].node.offsetHeight+"px 0px)"}}else{if(!movieLayerIndex||layerCur!=movieLayerIndex){rectStr="rect(0px 319px "+this.scrollCur+"px 0px)"}else{rectStr="rect(0px 470px "+this.scrollCur+"px 0px)"}}if(!konaLinks.get(layerCur).IsNewExpandableLayer()){this.layers[this.scrolls].node.style.clip=rectStr}if(isUp&&(this.scrollCur>=0)){this.scrollCur-=layerEffectSpeed;this.effectTimer=setTimeout("konaLayers.scrollEffect("+isUp+","+layerCur+")",2)}else{if(!isUp&&this.scrollCur<=this.layers[this.scrolls].node.offsetHeight){this.scrollCur+=layerEffectSpeed;this.effectTimer=setTimeout("konaLayers.scrollEffect("+isUp+","+layerCur+")",2)}else{}}};this.imageLoaded=function(layerCur){if(this.layers[layerCur]){this.layers[layerCur].imageLoaded();if(this.layers[layerCur].isShown){var temp=this.layers[layerCur].scrollDone;this.layers[layerCur].scrollDone=true;this.initEffects(layerCur);this.layers[layerCur].scrollDone=temp}}};this.setLocation=function(layerCur,xy,isRight,isUp){this.getLayerObj(layerCur).setLocation(xy,isRight,isUp)};this.onDragStart=function(layerCur){this.setStick(layerCur,true);this.fadeLayer(layerCur,true);this.getLayerObj(layerCur).onDragStart()};this.onDragEnd=function(layerCur){this.fadeLayer(layerCur,false);this.getLayerObj(layerCur).onDragEnd()};this.tabSelected=function(layerCur,tabCur){this.getLayerObj(layerCur).tabSelected(tabCur)};this.adlinkMouseOver=function(adlinkCur){logit("KonaLayers adlinkMouseOver:"+((new Date()).getTime()-konaLinks.get(adlinkCur).linkHoverStartTime)+"~");var layer=this.getLayerObj(adlinkCur);if(!(layer&&layer.isStick)||layer.isByClick){mouseOverAdlinkTimer=window.setTimeout("showTimedTitle()",infoUnit.dc_delayTime);if(layer){layer.adlinkMouseOver()}}window.status=windowStatusBarCaptionOnAdLinkMouseOver};this.adlinkMouseOut=function(adlinkCur){window.clearTimeout(mouseOverAdlinkTimer);if(this.getLayerObj(adlinkCur)){this.getLayerObj(adlinkCur).adlinkMouseOut()}window.status=""};this.plateMouseOver=function(plateCur,layerIndex){this.setActive(layerIndex,true);this.getLayerObj(layerIndex).plateMouseOver(plateCur);window.status=windowStatusBarCaptionOnAdLinkMouseOver};this.plateMouseOut=function(plateCur,layerIndex){this.setActive(layerIndex,false);this.getLayerObj(layerIndex).plateMouseOut(plateCur);window.status=""};this.fadeLayer=function(layerIndex,state){if(konaLinks.get(layerIndex).IsNewExpandableLayer()){kona$("konaFlashBubble"+layerIndex).fadeLayer(state)}};this.setViewTime=function(layerCur,bigLayerOpenTime){this.layers[layerCur].expandViewTime=bigLayerOpenTime};this.show=function(xy,layerCur){this.getLayerObj(layerCur).show(xy);this.initEffects(layerCur);this.bringToTop(layerCur)};this.bringToTop=function(layerCur){this.layers[layerCur].node.style.zIndex=++this.zTopCur};this.hasLayer=function(cur){return this.layers[cur]?true:false};this.getLayerObj=function(cur){return this.layers[cur]};this.getLayerNode=function(cur){return this.layers[cur].node};this.getActionNode=function(plateCur,layerCur){return plateCur==1?kona$("konaTabsBox"+layerCur):this.layers[layerCur].actionNode};this.update=function(layerNode,layerCur){if(!this.layers[layerCur]||this.layers[layerCur]==null){this.node.appendChild(layerNode)}else{this.node.replaceChild(layerNode,this.layers[layerCur].node)}layerNode.onDragStart=function(){konaLayers.onDragStart(layerCur)};layerNode.onDragEnd=function(){konaLayers.onDragEnd(layerCur)};var layer=new KonaLayer(layerCur);this.layers[layerCur]=layer;if(adPreviewMode){return}this.layers[layerCur].adlinkMouseOut()};this.getTailPosition=function(layerCur){var isUp=this.getLayerObj(layerCur).isUp;var isRight=this.getLayerObj(layerCur).isRight;var tailPos="";if(isUp){tailPos+="B"}else{tailPos+="T"}if(isRight){tailPos+="R"}else{tailPos+="L"}return tailPos};this.isStick=function(layerCur){return this.layers[layerCur].isStick};this.setActive=function(layerCur,boolval){this.layers[layerCur].isActive=boolval};this.setStick=function(layerCur,boolval){this.layers[layerCur].isStick=boolval};this.hide=function(layerCur){if(konaLinks.getInfo(layerCur)){if(konaLinks.getInfo(layerCur).borderlessInfo||konaLinks.getInfo(layerCur).expandableInfo){var linkInfo=this.getLayerObj(layerCur).linkInfo;if(this.isExpandBig(layerCur)){setLayerSize(parseInt(linkInfo.expandableSmallWidth)+10,parseInt(linkInfo.expandableSmallHeight)+parseInt(linkInfo.expandableSmallTailHeight)+10,layerCur,"");konaFlashFunction(("konaFlashBubble"+layerCur),"js_stop_video",null,false)}else{try{kona$("konaFlashBubble"+layerCur).muteVideo(true)}catch(e){}}if(linkInfo.expandableIsImpression){impressions.reportImpression(layerCur)}}}if(this.layers[layerCur]){this.isExpandBigArr[layerCur]=false;this.layers[layerCur].hide();this.setStick(layerCur,false);this.setActive(layerCur,false)}window.status=""};this.close=function(layerCur){this.getLayerObj(layerCur).close();window.status=""};this.hideAll=function(adlink_ID){var loopTo=this.layers.length;if(movieLayerIndex==null){loopTo--}for(var i=0;i<loopTo;i++){if(this.layers[i]&&!this.layers[i].isStick){if(i!=adlink_ID){impressions.layerClosed(i)}this.hide(i)}}}}function IsKonaLayerExist(layerIndex){return konaLayers!=null&&konaLayers.getLayerObj(layerIndex)!=null}function FunctionCallProxy(eval_func){eval(eval_func)}var konaBaseFullyLoaded=true;