var overtureItem=function(J,L,D,C,G,I){var K=J;var E=L;var F=D;var H=C;var B=G;var A=I;this.setDescription=function(M){K=M};this.setUnused=function(M){E=M};this.setClickUrl=function(M){F=M};this.setTitle=function(M){H=M};this.setSitehost=function(M){B=M};this.setBidded=function(M){A=M};this.getDescription=function(){return K};this.getUnused=function(){return E};this.getClickUrl=function(){return F};this.getTitle=function(){return H};this.getSitehost=function(){return B};this.getBidded=function(){return A};this.printItem=function(){var M="<p>description = "+K+"<br>unused = "+E+"<br>clickUrl = "+F+"<br>title = "+H+"<br>sitehost = "+B+"<br>bidded = "+A+"</p>";document.writeln(M)}};var overtureLinkSpotItem=function(D,A){var C=D;var B=A.split(", ");this.setTitle=function(E){C=E};this.setKeywords=function(E){B=lkeywords};this.setKeywordsFromString=function(E){B=E.split(", ")};this.getTitle=function(){return C};this.getKeywords=function(){return B};this.getKeyword=function(E){return B[E]};this.printItem=function(){var E="<p>title = "+C+"<br>keywords = ";for(i=0;i<B.length;i++){if(i>0){E+=", "}E+=B[i]}document.writeln(E)}};var overtureLinks=function(){var A=new Array();this.addItem=function(C){var B=A.length;A[B]=C};this.getItems=function(){return A};this.setItems=function(B){this.listItems=B};this.getItem=function(B){return A[B]};this.length=function(){return A.length};this.printItems=function(){var C=0;while(C<A.length){var B=A[C];B.printItem();C++}}};var overtureSearchConf=function(){var F=g_baseOvertureSearchUrl;var A=g_overtureSearchPartner;var D;var G;var B;var H;var J;var I;var E;var C;this.setBaseUrl=function(K){F=K};this.setPartner=function(K){A=K};this.setKeywords=function(K){D=K};this.setType=function(K){G=K};this.setKeywordCharEnc=function(K){B=K};this.setOutputCharEnc=function(K){H=K};this.setUrlFilters=function(K){J=K};this.setTermFilters=function(K){I=K};this.setServeUrl=function(K){E=K};this.setMaxCount=function(K){C=K};this.getBaseUrl=function(){return F};this.getPartner=function(){return A};this.getKeywords=function(){return D};this.getType=function(){return G};this.getKeywordCharEnc=function(){return B};this.getOutputCharEnc=function(){return H};this.getUrlFilters=function(){return J};this.getTermFilters=function(){return I};this.getServeUrl=function(){return E};this.getMaxCount=function(){return C}};var overtureContentMatchConf=function(){var K=g_baseOvertureCMUrl;var A=g_overtureCMSource;var E=g_overtureCMConfig;var J;var F;var N;var H;var C;var O;var I;var M;var B;var D;var L;var G;this.setBaseUrl=function(P){K=P};this.setSource=function(P){partner=P};this.setCtxtId=function(P){J=P};this.setCtxtIdMap=function(P){F=P};this.setCtxtUrl=function(P){N=P};this.setCtxtCat=function(P){H=P};this.setCtxtCatMap=function(P){C=P};this.setCtxtKeywords=function(P){O=P};this.setMkt=function(P){I=P};this.setType=function(P){M=P};this.setTypeMap=function(P){B=P};this.setKeywordCharEnc=function(P){D=P};this.setOutputCharEnc=function(P){L=P};this.setConfig=function(P){E=P};this.setMaxCount=function(P){G=P};this.getBaseUrl=function(){return K};this.getSource=function(){return A};this.getCtxtId=function(){return J};this.getCtxtIdMap=function(){return F};this.getCtxtUrl=function(){return N};this.getCtxtCat=function(){return H};this.getCtxtCatMap=function(){return C};this.getCtxtKeywords=function(){return O};this.getMkt=function(){return I};this.getType=function(){return M};this.getTypeMap=function(){return B};this.getKeywordCharEnc=function(){return D};this.getOutputCharEnc=function(){return L};this.getConfig=function(){return E};this.getMaxCount=function(){return G}};var overtureLinkspotConf=function(){var B=g_baseOvertureLinkspotUrl;var E=g_overtureLinkspotSource;var A=g_overtureLinkspotConfig;var D;var G;var C;var F;this.setBaseUrl=function(H){B=H};this.setSource=function(H){E=H};this.setLinkspotId=function(H){D=H};this.setLinkspotIdMap=function(H){G=H};this.setConfig=function(H){A=H};this.setNGrp=function(H){C=H};this.setNKw=function(H){F=H};this.getBaseUrl=function(){return B};this.getSource=function(){return E};this.getLinkspotId=function(){return D};this.getLinkspotIdMap=function(){return G};this.getConfig=function(){return A};this.getNGrp=function(){return C};this.getNKw=function(){return F}};function populateOvertureLinks(J){var F=0;var E=0;var G=new overtureLinks();while(F<J.length){E++;var K=J[F++];var D=J[F++];var H=J[F++];var I=J[F++];var C=J[F++];var B=J[F++];if(E>1){var A=new overtureItem(K,D,H,I,C,B);G.addItem(A)}}return G}function populateOvertureLinkspots(B){var C=new overtureLinks();for(var D=0;D<B.length;D++){var A=new overtureLinkSpotItem(B[D].title,B[D].keywords);C.addItem(A)}return C}function showLinkData(D,H,F){if(H==undefined){H=0}var C=D.getItems();var B="<table border=1><tr><th>Description</th><th>Unused</th><th>ClickUrl</th><th>Title</th><th>SiteHost</th><th>Bidded</th></tr>";var G=C.length;if(F==undefined||F==0){F=G}else{if(F>G){F=G}}var E=H;while(E<F){var A=C[E];B+="<tr><td>"+checkEmpty(A.getDescription())+"</td><td>"+checkEmpty(A.getUnused())+"</td><td>"+checkEmpty(A.getClickUrl())+"</td><td>"+checkEmpty(A.getTitle())+"</td><td>"+checkEmpty(A.getSitehost())+"</td><td>"+checkEmpty(A.getBidded())+"</td></tr>\n";E++}B+="</table>";return B}function checkEmpty(A){if((A==undefined)||(A=="")){return"&nbsp;"}else{return A}}function createOvertureSearchLink(F){var H=F.getBaseUrl();var A=F.getPartner();var D=F.getKeywords();var I=F.getType();var B=F.getKeywordCharEnc();var J=F.getOutputCharEnc();var K=F.getUrlFilters();var G=F.getTermFilters();var E=F.getServeUrl();var C=F.getMaxCount();if(isEmpty(H)){H=g_baseOvertureSearchUrl}if(isEmpty(A)){A=g_overtureSearchPartner}if(isEmpty(E)){E=window.location.href}var L=H+"?Partner="+urlEncode(A);if(!isEmpty(B)){L+="&keywordCharEnc="+urlEncode(B)}if(!isEmpty(J)){L+="&outputCharEnc="+urlEncode(J)}if(!isEmpty(D)){L+="&Keywords="+urlEncode(D)}if(!isEmpty(I)){L+="&type="+urlEncode(I)}if(!isEmpty(K)){L+="&urlFilters="+K}if(!isEmpty(G)){L+="&termFilters="+G}if(!isEmpty(E)){L+="&serveUrl="+urlEncode(E)}if(!isEmpty(E)){L+="&maxCount="+urlEncode(C)}return L}function createOvertureCMLink(H){var N=H.getBaseUrl();var M=H.getSource();var E=H.getCtxtUrl();var I=H.getCtxtId();var P=H.getCtxtIdMap();var G=H.getCtxtCat();var B=H.getCtxtCatMap();var A=H.getCtxtKeywords();var F=H.getMkt();var C=H.getType();var Q=H.getTypeMap();var K=H.getKeywordCharEnc();var O=H.getOutputCharEnc();var R=H.getConfig();var J=H.getMaxCount();var L=randomnumber=Math.floor(Math.random()*100000);if(E==undefined){E="http://"+window.location.hostname+window.location.pathname}if(isEmpty(I)&&!isEmpty(P)){I=getMappingValue(P)}if(isEmpty(G)&&!isEmpty(B)){G=getMappingValue(B)}if(isEmpty(C)&&!isEmpty(Q)){C=getMappingValue(Q)}if(isEmpty(N)){N=g_baseOvertureCMUrl}if(isEmpty(M)){M=g_overtureCMSource}var D=N+"?source="+urlEncode(M);if(!isEmpty(K)){D+="&keywordCharEnc="+urlEncode(K)}if(!isEmpty(O)){D+="&outputCharEnc="+urlEncode(O)}if(!isEmpty(I)){D+="&ctxtId="+urlEncode(I)}if(!isEmpty(G)){D+="&ctxtCat="+urlEncode(G)}if(!isEmpty(A)){D+="&ctxtKeywords="+urlEncode(A)}if(!isEmpty(E)){D+="&ctxtUrl="+urlEncode(E)}if(!isEmpty(C)){D+="&type="+urlEncode(C)}if(!isEmpty(L)){D+="&cb="+urlEncode(L)}if(!isEmpty(R)){D+="&config="+urlEncode(R)}if(!isEmpty(J)){D+="&maxCount="+urlEncode(J)}if(!isEmpty(F)){D+="&mkt="+urlEncode(F)}return D}function createOvertureLinkspotLink(F){var H=F.getBaseUrl();var A=F.getSource();var B=F.getLinkspotId();var C=F.getLinkspotIdMap();var E=F.getConfig();var D=F.getNGrp();var G=F.getNKw();if((H==undefined)||(H=="")){H=g_baseOvertureLinkspotUrl}if((A==undefined)||(A=="")){A=g_overtureLinkspotSource}if(isEmpty(B)&&!isEmpty(C)){B=getMappingValue(C)}var I=H+"?config="+urlEncode(E);if(!isEmpty(B)){I+="&linkspotId="+urlEncode(B)}if(!isEmpty(G)){I+="&NKw="+urlEncode(G)}if(!isEmpty(D)){I+="&NGrp="+urlEncode(D)}if(!isEmpty(A)){I+="&source="+urlEncode(A)}return I}function loadOvertureLinks(){this.overturLinks;if(zSr!=undefined){this.overturLinks=populateOvertureLinks(zSr)}}function loadOvertureLinkspots(){if(!isEmpty(mapkey)){overturLinkspots=populateOvertureLinkspots(mapkey)}}function getMetaTagKeywords(){var D="";if(document.getElementsByName){var C=document.getElementsByName("keywords");var A=C.length;if(A>10){A=10}for(var B=0;B<A;B++){if(B>0){D+=" "}D+=C[B].content}}return D}function loadOvertureCMInclude(B,C){var A=createOvertureCMLink(B);if(C){document.writeln("<br />Overture ContentMatch url: "+A+"<br />")}printSrcInclude(A)}function loadOvertureSearchInclude(B,C){var A=createOvertureSearchLink(B);if(C){document.writeln("<br />Overture Search url: "+A+"<br />")}printSrcInclude(A)}function loadOvertureLinkspotInclude(B,C){var A=createOvertureLinkspotLink(B);if(C){document.writeln("<br />Overture LinkSpot url: "+A+"<br />")}printSrcInclude(A)}function printSrcInclude(A){document.write('<script language="Javascript" src="'+A+'"><\/script>')}function isEmpty(A){if((A==undefined)||(A=="")){return true}else{return false}}function urlEncode(A){return escape(A).replace(/\+/g,"%2B").replace(/\"/g,"%22").replace(/\'/g,"%27")}function getMappingValue(C,E){if(E==undefined){E=window.location.pathname}for(var A in C){var D="^"+A;var B=new RegExp(D,"i");if(B.test(E)){return C[A]}}return undefined};