var overtureItem=function(k,m,d,c,g,j){var l=k;var e=m;var f=d;var h=c;var b=g;var a=j;this.setDescription=function(n){l=n};this.setUnused=function(n){e=n};this.setClickUrl=function(n){f=n};this.setTitle=function(n){h=n};this.setSitehost=function(n){b=n};this.setBidded=function(n){a=n};this.getDescription=function(){return l};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 n="<p>description = "+l+"<br>unused = "+e+"<br>clickUrl = "+f+"<br>title = "+h+"<br>sitehost = "+b+"<br>bidded = "+a+"</p>";document.writeln(n)}};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.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 k;var j;var e;var c;this.setBaseUrl=function(l){f=l};this.setPartner=function(l){a=l};this.setKeywords=function(l){d=l};this.setType=function(l){g=l};this.setKeywordCharEnc=function(l){b=l};this.setOutputCharEnc=function(l){h=l};this.setUrlFilters=function(l){k=l};this.setTermFilters=function(l){j=l};this.setServeUrl=function(l){e=l};this.setMaxCount=function(l){c=l};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 k};this.getTermFilters=function(){return j};this.getServeUrl=function(){return e};this.getMaxCount=function(){return c}};var overtureContentMatchConf=function(){var l=g_baseOvertureCMUrl;var a=g_overtureCMSource;var e=g_overtureCMConfig;var k;var f;var o;var h;var c;var p;var j;var n=g_type;var b;var d;var m;var g;this.setBaseUrl=function(q){l=q};this.setSource=function(q){partner=q};this.setCtxtId=function(q){k=q};this.setCtxtIdMap=function(q){f=q};this.setCtxtUrl=function(q){o=q};this.setCtxtCat=function(q){h=q};this.setCtxtCatMap=function(q){c=q};this.setCtxtKeywords=function(q){p=q};this.setMkt=function(q){j=q};this.setType=function(q){n=q};this.setTypeMap=function(q){b=q};this.setKeywordCharEnc=function(q){d=q};this.setOutputCharEnc=function(q){m=q};this.setConfig=function(q){e=q};this.setMaxCount=function(q){g=q};this.getBaseUrl=function(){return l};this.getSource=function(){return a};this.getCtxtId=function(){return k};this.getCtxtIdMap=function(){return f};this.getCtxtUrl=function(){return o};this.getCtxtCat=function(){return h};this.getCtxtCatMap=function(){return c};this.getCtxtKeywords=function(){return p};this.getMkt=function(){return j};this.getType=function(){return n};this.getTypeMap=function(){return b};this.getKeywordCharEnc=function(){return d};this.getOutputCharEnc=function(){return m};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(k){var f=0;var e=0;var g=new overtureLinks();while(f<k.length){e++;var l=k[f++];var d=k[f++];var h=k[f++];var j=k[f++];var c=k[f++];var b=k[f++];if(e>1){var a=new overtureItem(l,d,h,j,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 j=f.getType();var b=f.getKeywordCharEnc();var k=f.getOutputCharEnc();var l=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 m=h+"?Partner="+urlEncode(a);if(!isEmpty(b)){m+="&keywordCharEnc="+urlEncode(b)}if(!isEmpty(k)){m+="&outputCharEnc="+urlEncode(k)}if(!isEmpty(d)){m+="&Keywords="+urlEncode(d)}if(!isEmpty(j)){m+="&type="+urlEncode(j)}if(!isEmpty(l)){m+="&urlFilters="+l}if(!isEmpty(g)){m+="&termFilters="+g}if(!isEmpty(e)){m+="&serveUrl="+urlEncode(e)}if(!isEmpty(c)){m+="&maxCount="+urlEncode(c)}return m}function createOvertureCMLink(h){var o=h.getBaseUrl();var n=h.getSource();var e=h.getCtxtUrl();var j=h.getCtxtId();var q=h.getCtxtIdMap();var g=h.getCtxtCat();var b=h.getCtxtCatMap();var a=h.getCtxtKeywords();var f=h.getMkt();var c=h.getType();var r=h.getTypeMap();var l=h.getKeywordCharEnc();var p=h.getOutputCharEnc();var s=h.getConfig();var k=h.getMaxCount();var m=randomnumber=Math.floor(Math.random()*100000);if(e==undefined){e="http://"+window.location.hostname+window.location.pathname}if(isEmpty(j)&&!isEmpty(q)){j=getMappingValue(q)}if(isEmpty(g)&&!isEmpty(b)){g=getMappingValue(b)}if(isEmpty(c)&&!isEmpty(r)){c=getMappingValue(r)}if(isEmpty(o)){o=g_baseOvertureCMUrl}if(isEmpty(n)){n=g_overtureCMSource}var d=o+"?source="+urlEncode(n);if(!isEmpty(l)){d+="&keywordCharEnc="+urlEncode(l)}if(!isEmpty(p)){d+="&outputCharEnc="+urlEncode(p)}if(!isEmpty(j)){d+="&ctxtId="+urlEncode(j)}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(m)){d+="&cb="+urlEncode(m)}if(!isEmpty(s)){d+="&config="+urlEncode(s)}if(!isEmpty(k)){d+="&maxCount="+urlEncode(k)}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 j=h+"?config="+urlEncode(e);if(!isEmpty(b)){j+="&linkspotId="+urlEncode(b)}if(!isEmpty(g)){j+="&NKw="+urlEncode(g)}if(!isEmpty(d)){j+="&NGrp="+urlEncode(d)}if(!isEmpty(a)){j+="&source="+urlEncode(a)}return j}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){var a=createOvertureCMLink(b);printSrcInclude(a)}function loadOvertureSearchInclude(b){var a=createOvertureSearchLink(b);printSrcInclude(a)}function loadOvertureLinkspotInclude(b){var a=createOvertureLinkspotLink(b);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,"%2F").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};