/* Wed 02/22/2012  6:12:24.22 */ 
(function(){var q="WNMenuCol1",g="gnmNav",c="level1",k="level2",f="level3",s="defaultTab",r="focus",i=100,p=null,j=null,b={wnNav:null,nav:null,level1:null,level2:null,level3:null,$l1Tabs:null,$l2Tabs:null,$l3Tabs:null},e=function(t){$(t).addClass(r)},d=function(t){$(t).removeClass(r)},l={blur:function(){d(b.$l3Tabs)},focus:function(t){l.blur();e(t)},hide:function(){l.blur();d(b.level3)},show:function(t){d(b.level3);l.blur();if(t!==null){e(t)}}},m={blur:function(){d(b.$l2Tabs)},focus:function(t){m.blur();e(t)},hide:function(){m.blur();d(b.level2)},show:function(t){d(b.level2);m.blur();if(t!==null){e(t)}}},n={blur:function(){d(b.$l1Tabs)},focus:function(t){n.blur();e(t)},fixPadding:function(){var z=b.level1.children.length,x=function(B){return b.level1.children[B].children[0]},y={},A={};y.used=0;for(var w=0;w<z;w++){y.used+=x(w).offsetWidth}y.remaining=b.level1.offsetWidth-y.used;A.available=Math.floor(y.remaining/z);A.first=A.available+y.remaining%z;for(var u=0,v,t;u<z;u++){t=(u===0)?A.first:A.available;v=x(u).style;v.paddingLeft=Math.floor(t/2)+"px";v.paddingRight=Math.ceil(t/2)+"px"}}},h={byDefault:[],reset:function(){for(var u=0,t=h.byDefault.length;u<t;u++){e(h.byDefault[u])}},homeFix:function(){if(window.location.hostname==="managekotv.worldnow.com"){b.$l1Tabs[0].href="/default.asp"}},trackDefault:function(){var u=wng_pageInfo.containerType+wng_pageInfo.containerId,z=$(b.nav).find('li[rel="'+u+'"]:first a'),v,y,t,A,x,w;if(z.length===1){z=z[0];v=z.parentNode.parentNode;y=v.parentNode.id;switch(y){case c:t=document.getElementById(z.rel||null);h.byDefault.push(z,t);break;case k:A=document.getElementById(z.rel||null);x=$(b.level1).find('a[rel="'+v.id+'"]:first')[0];h.byDefault.push(z,v,A,x);break;case f:w=$(b.level2).find('a[rel="'+v.id+'"]:first')[0];t=w.parentNode.parentNode;x=$(b.level1).find('a[rel="'+t.id+'"]:first')[0];h.byDefault.push(z,v,w,t,x);break}}h.reset()}},a={deals:{mouseover:function(v){var u=b.$l1Tabs.last()[0],t=document.getElementById(u.rel||null);n.focus(u);m.show(t);l.hide()}},level3:{mouseover:function(u){var t=u.currentTarget;l.focus(t);clearTimeout(a.level2.timer)}},level2:{timer:null,mousemove:function(v){if(a.nav.allowAction){var t=v.currentTarget,u=document.getElementById(t.rel||null);clearTimeout(a.level1.timer);clearTimeout(a.level2.timer);a.level2.timer=setTimeout(function(){m.focus(t);l.show(u)},25)}else{clearTimeout(a.level2.timer);a.level2.timer=setTimeout(function(){v.bypass=true;a.level2.mousemove(v)},25)}}},level1:{timer:null,mousemove:function(v){if(a.nav.allowAction){var u=$(v.target).parent()[0],t=document.getElementById(u.rel||null);clearTimeout(a.level1.timer);clearTimeout(a.level2.timer);if(v.bypass){n.focus(u);if(u.rel!=null){m.show(t)}l.hide()}else{a.level1.timer=setTimeout(function(){n.focus(u);if(u.rel!=null){m.show(t)}l.hide()},25)}}else{clearTimeout(a.level1.timer);a.level1.timer=setTimeout(function(){v.bypass=true;a.level1.mousemove(v)},25)}}},nav:{lastX:0,lastY:0,lastRead:0,allowAction:true,timer:null,mouseover:function(t){clearTimeout(j)},mouseout:function(t){j=setTimeout(function(){n.blur();m.hide();l.hide();h.reset();n.item="";clearTimeout(n.timer);if(typeof(GNM.navHoverTimeout)==="function"){GNM.navHoverTimeout(t)}},2000)},mousemove:function(v){var u=(new Date()).getTime()/1000,y=a.nav.lastX-v.clientX,w=a.nav.lastY-v.clientY,x=y*y+w*w,t=Math.abs(x/(u-a.nav.lastRead));a.nav.allowAction=t<i;a.nav.lastX=v.clientX;a.nav.lastY=v.clientY;a.nav.lastRead=u;clearTimeout(a.nav.timer);a.nav.timer=setTimeout(function(){a.nav.allowAction=true},15)}}},o=function(){b.wnNav=document.getElementById(q);if(b.wnNav!==null){b.wnNav.id="";b.wnNav.innerHTML=gnmNavData;b.nav=document.getElementById(g);b.level1=document.getElementById(c).children[0];b.level2=document.getElementById(k).children;b.level3=document.getElementById(f).children;b.$l1Tabs=$(b.level1).find("a");b.$l2Tabs=$(b.level2).find("a");b.$l3Tabs=$(b.level3).find("a");h.trackDefault();h.homeFix();n.fixPadding();$(b.nav).bind("mouseover",a.nav.mouseover);$(b.nav).bind("mouseout",a.nav.mouseout);$(b.nav).bind("mousemove",a.nav.mousemove);$(b.level1).delegate("a","mousemove",a.level1.mousemove);$(b.level2).delegate("a","mousemove",a.level2.mousemove);$(b.level3).delegate("a","mouseover",a.level3.mouseover);var t=$('<a id="dealDress" href="/category/210551/deals"><img src="http://ftpcontent.worldnow.com/kwtv/custom/deals.png" /></a>').appendTo(b.nav);t.bind("mouseover",a.deals.mouseover)}};if(typeof gnmNavData==="string"){$(o)}}());(function(r,q){function m(b){var s,i,h,g;q.documentMode>7?(s=q.createElement("font"),s.setAttribute("data-html5shiv",b.nodeName.toLowerCase())):s=q.createElement("shiv:"+b.nodeName);while(b.firstChild){s.appendChild(b.childNodes[0])}for(i=b.attributes,h=i.length,g=0;g<h;++g){i[g].specified&&s.setAttribute(i[g].nodeName,i[g].nodeValue)}s.style.cssText=b.style.cssText,b.parentNode.replaceChild(s,b),s.originalElement=b}function l(d){var c=d.originalElement;while(d.childNodes.length){c.appendChild(d.childNodes[0])}d.parentNode.replaceChild(c,d)}function k(i,h){h=h||"all";var w=-1,v=[],u=i.length,t,s;while(++w<u){t=i[w],s=t.media||h;if(t.disabled||!/print|all/.test(s)){continue}v.push(k(t.imports,s),t.cssText)}return v.join("")}function j(s){var i=new RegExp("(^|[\\s,{}])("+r.html5.elements.join("|")+")","gi"),h=s.split("{"),b=h.length,a=-1;while(++a<b){h[a]=h[a].split("}"),q.documentMode>7?h[a][h[a].length-1]=h[a][h[a].length-1].replace(i,'$1font[data-html5shiv="$2"]'):h[a][h[a].length-1]=h[a][h[a].length-1].replace(i,"$1shiv\\:$2"),h[a]=h[a].join("}")}return h.join("{")}var p=function(b){return b.innerHTML="<x-element></x-element>",b.childNodes.length===1}(q.createElement("a")),o=function(e,d,f){return d.appendChild(e),(f=(f?f(e):e.currentStyle).display)&&d.removeChild(e)&&f==="block"}(q.createElement("nav"),q.documentElement,r.getComputedStyle),n={elements:"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video".split(" "),shivDocument:function(b){b=b||q;if(b.documentShived){return}b.documentShived=!0;var t=b.createElement,s=b.createDocumentFragment,e=b.getElementsByTagName("head")[0],d=function(f){t(f)};p||(n.elements.join(" ").replace(/\w+/g,d),b.createElement=function(g){var f=t(g);return f.canHaveChildren&&n.shivDocument(f.document),f},b.createDocumentFragment=function(){return n.shivDocument(s())});if(!o&&e){var c=t("div");c.innerHTML=["x<style>","article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}","audio{display:none}","canvas,video{display:inline-block;*display:inline;*zoom:1}","[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}","mark{background:#FF0;color:#000}","</style>"].join(""),e.insertBefore(c.lastChild,e.firstChild)}return b}};n.shivDocument(q),r.html5=n;if(p||!r.attachEvent){return}r.attachEvent("onbeforeprint",function(){if(r.html5.supportsXElement||!q.namespaces){return}q.namespaces.shiv||q.namespaces.add("shiv");var s=-1,i=new RegExp("^("+r.html5.elements.join("|")+")$","i"),h=q.getElementsByTagName("*"),f=h.length,b,a=j(k(function(g,e){var u=[],t=g.length;while(t){u.unshift(g[--t])}t=e.length;while(t){u.unshift(e[--t])}u.sort(function(d,c){return d.sourceIndex-c.sourceIndex}),t=u.length;while(t){u[--t]=u[t].styleSheet}return u}(q.getElementsByTagName("style"),q.getElementsByTagName("link"))));while(++s<f){b=h[s],i.test(b.nodeName)&&m(b)}q.appendChild(q._shivedStyleSheet=q.createElement("style")).styleSheet.cssText=a}),r.attachEvent("onafterprint",function(){if(r.html5.supportsXElement||!q.namespaces){return}var h=-1,g=q.getElementsByTagName("*"),b=g.length,a;while(++h<b){a=g[h],a.originalElement&&l(a)}q._shivedStyleSheet&&q._shivedStyleSheet.parentNode.removeChild(q._shivedStyleSheet)})})(this,document);var GNM=GNM||{};GNM.errors=[];GNM.log=function(a){GNM.errors.push(a);if(typeof(console)==="object"&&typeof(console.log)==="function"){console.log(a)}};GNM.templates=(function(){var a={},c=function(f,e){var d=null;switch(typeof(f)){case"string":a[f]=e;break;case"object":for(d in f){if(f.hasOwnProperty(d)){a[d]=f[d]}}break}},b=function(d,h){var g=a[d],e=null;if(typeof(g)==="string"){for(e in h){if(h.hasOwnProperty(e)){var f=new RegExp("{"+e+"}","g");g=g.replace(f,h[e])}}}else{g=null}return g};return{render:b,add:c}}());GNM.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m=$wn.extend({},m);m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!==""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=$wn.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};GNM.Ajax=function(a,b){if(typeof(WNHttpRequestManager)!=="undefined"){WNHttpRequestManager.makeRequest(a,{onSuccess:function(){b(this.response.responseXML)}})}else{$wn.ajax({url:"/global/interface/httprequest/hrproxy.asp?url="+escape(a),dataType:"xml",success:b})}};GNM.Truncate=function(e,b){var a=true,f="";if(e.length<=b){f=e}else{var d=e.indexOf(" ",b);if(d>-1){f=e.substr(0,d);if(f.charAt(f.length-1)!=="."){f+="..."}}else{f=e}}return f};GNM.playcbslive=function(){var a=window.open("http://kotv.images.worldnow.com/images/incoming/livestreaming/09/CBSNews/cbspageKOTV.htm","cbsfeed","width=708, height=575, menubar=no, toolbar=no, location=no, status=no, resizable=no, scrollbars=no")};GNM.liveStream=function(b){var a=window.open(b,"livestream","width=770, height=720, menubar=no, toolbar=no, location=no, status=no, resizable=no, scrollbars=no")};GNM.wx4=function(b){var e=$wn,d={$:{wx:e("#wx4"),nav:null,location:e("#wx4location"),panels:null,current:null,hourly:null,zipChange:e(".locationswitch"),zipInput:e("#zipinput"),zipSubmit:e("#ziplookup"),modals:e(".modal"),modalMsg:e("#modalmsg"),modalZip:e("#modalzip"),modalMsgBox:e("#modalmsg span"),modalClose:e("#modalx"),loading:e("#loading"),infos:e("#wx4 .infos")},nav:{select:function(g){d.$.wx.find(".nav").removeClass("selected");g.addClass("selected")},mouseover:function(g){g.addClass("hover")},mouseout:function(g){g.removeClass("hover")},init:function(){d.$.nav.eq(0).click()}},panels:{show:function(g){d.$.panels.removeClass("selected");e(g).addClass("selected")},inject:function(g,i,h){d.$.location.html(g);d.$.current.html(i);d.$.hourly.html(h);d.radar.inject()}},radar:{inject:function(){d.$.current.find(".radar").html('<a href="'+b.radarUrl+'" target="_top"><img alt="Interactive Radar" title="Interactive Radar" src="'+b.radarImg+'" /></a>')}},zip:{focusIn:function(){var g=d.$.zipInput.val(),h=d.$.zipInput.attr("placeholder");d.$.zipInput.addClass("focus");if(g===h){d.$.zipInput.val("")}},focusOut:function(){var g=d.$.zipInput.val(),h=d.$.zipInput.attr("placeholder");d.$.zipInput.removeClass("focus");if(g===""){d.$.zipInput.val(h)}}},loading:{show:function(){d.$.loading.show()},hide:function(){d.$.loading.hide()}},modal:{message:function(g){d.$.modalMsgBox.html(g);d.$.modalMsg.show()},showZip:function(){d.$.modalZip.show()},hide:function(g){if(typeof g==="object"){g.preventDefault()}d.$.modals.hide()}}},c={cookie:{name:"wx_zip",expiration:90,bake:function(g){GNM.cookie(c.cookie.name,g,{expires:c.cookie.expiration})},eat:function(){return GNM.cookie(c.cookie.name)}},forecast:{validate:function(h){var g=h.error;d.loading.hide();d.$.infos.html(h.html);d.$.current=e("#wx4current");d.$.hourly=e("#wx4hourly");d.$.panels=d.$.wx.find(".panel");d.radar.inject();d.zip.focusOut()},load:function(g){if(/^\d{5}$/.test(g)){d.modal.hide();d.loading.show();e.ajax({url:b.feed+g,dataType:"jsonp",jsonpCallback:"feed",cache:true,success:c.forecast.validate})}}}},a={nav:{click:function(i){var h=e(i.target),g=h.attr("rel");d.nav.select(h);d.panels.show(g)},mouseMove:function(g){d.nav[g.type](e(g.currentTarget))}},zip:{change:function(g){d.modal.showZip()},keyUp:function(h){var g=d.$.zipInput.val();if(h.keyCode===13){c.forecast.load(g)}},submit:function(h){var g=d.$.zipInput.val();c.forecast.load(g)}}},f=(function(){d.$.wx.addClass("ok");c.forecast.load(c.cookie.eat()||b.zip);d.$.wx.delegate(".nav","click",a.nav.click);d.$.wx.delegate(".nav","mouseover mouseout",a.nav.mouseMove);d.$.wx.delegate(".locationswitch","click",a.zip.change);d.$.wx.delegate(".locationswitch","mouseover mouseout",a.nav.mouseMove);d.$.modalMsg.find("button").bind("click",d.modal.hide);d.$.modalClose.bind("click",d.modal.hide);d.$.zipInput.bind("keypress",a.zip.keyUp);d.$.zipInput.bind("focus",d.zip.focusIn);d.$.zipInput.bind("blur",d.zip.focusOut);d.$.zipSubmit.bind("click",a.zip.submit)}())};GNM.Banners=function(){var e=wng_pageInfo.affiliateName.toLowerCase(),b="http://kotv.com/api/getBanners.aspx?station="+e+"&"+(new Date()).getTime(),g='<a class="banner {0}" href="{1}" target="{2}"><span class="icon"></span><span class="title">{3} <span class="raquo">&raquo;</span></span> {4}<span class="readMore">More</span></a>',c=document.getElementById("gnmBanners"),d=function(k){var j=g;j=j.replace("{0}",k.Type);j=j.replace(/\{1\}/g,k.Link);j=j.replace("{2}",k.Target);j=j.replace("{3}",k.Title);j=j.replace("{4}",GNM.Truncate(k.Description,150));return j},a=function(m){var n="";for(var k=0,j=m.length;k<j;k++){n+=d(m[k])}if(n.length>0){c.innerHTML+=n;c.className="enabled"}},f=function(j){$wn.ajax({url:b,dataType:"jsonp",jsonpCallback:"feed",success:a})},h=function(){var j=[];$wn("#DisplaySizeId-30 h4.headline a").each(function(l,k){var m={},k=$wn(k);m.Title="Breaking News";m.Description=k.text();m.Link=k.attr("href");m.Target="_self";m.Type="breaking";j.push(m)});a(j);$wn("#DisplaySizeId-30").remove()},i=(function(){if(c!==null){h();f();c.parentNode.style.marginBottom="0"}}())};GNM.WebcamOverview=function(){var e=null,d=null,f=0,m=0,p=10,j=null,h=4,o=2,c=2,l=function(r){var q=[];q.length=5-r.toString().length+1;return q.join("0")+r},i=function(r,q){var s="";if(!q){q=1}switch(r.type){case"skycam":case"citycam":case"kotv":case"kwtv":q=l(q);s=r.file_path+q+".jpg";break;case"webcam":default:s=r.file_path+".jpg";break}return s+"?"+(new Date()).getTime()},k=function(t){var q=$wn(t.target).attr("rel"),r=($wn("#camRotator li").outerWidth(true))*o,s=r*q*-1;$wn("#camRotator").animate({left:s});$wn("#camPages .selected").removeClass("selected");$wn('#camPages [rel="'+q+'"]').parent().addClass("selected")},a=function(t){var q='<ul id="camRotator">',s=typeof(wng_pageInfo.affiliateName)==="string"?wng_pageInfo.affiliateName.toLowerCase():"webcam";e=t;s=s=="kotv"?"skycam":s=="kwtv"?"citycam":s;e.sort(function(w,v){var y=w.type==s?0:w.type=="webcam"?2:1;var x=v.type==s?0:v.type=="webcam"?2:1;return y<x?-1:y==x?0:1});for(var r in e){q+='<li class="thumb"><a href="/Global/Category.asp?C=197844#'+e[r].id+'" rel="'+r+'"><img src="'+i(e[r])+'" alt="'+e[r].cam_name+'" rel="'+r+'" /><span>'+e[r].cam_name+"</span></a></li>"}q+="</ul>";$wn("#camsOverview").append(q);b();var u=$("#camRotator li:first").position().top;$wn("#camRotator li").each(function(){if($wn(this).position().top==u){$wn(this).addClass("top")}})},g=function(){$wn("#camContainer").empty().append($wn("<div />").append(j))},b=function(){var w=$wn("#camRotator li"),u=w.outerWidth(true),v=w.length,q=Math.ceil(v/h);$wn("#camRotator").width(u*Math.ceil(w.length/c));var r='<ul id="camPages" class="gnmPages">';for(var t=0;t<q;t++){r+='<li class="page"><a href="javascript:void(0);" rel="'+t+'">'+(t+1)+"</a></li>"}r+="</ul>";var s=$wn("#camsOverview").append(r).find(".page:first").addClass("selected").outerWidth(true);$wn("#camPages").width(s*q);$wn("#camPages .page").bind("click",k)},n=(function(){if($wn("#camsOverview").length>0){$wn.ajax({url:"http://api.newson6.com/api/getLiveCams.aspx",dataType:"jsonp",success:a})}}())};GNM.CallToAction=function(b,a){$wn("#"+b+" .wnSummaryLink").html(a).addClass("rewritten")};$wn(document).ready(function(){(function(a){a.fn.analytics=function(b,c,e){var d=function(k){var g=a(k.currentTarget),f=g.attr("rel"),l=g.text(),j="/"+b+"/"+(e?"":c===true?f:l);try{var i=_gat._getTracker("UA-572554-10");i._setDomainName("none");i._setAllowLinker(true);i._trackPageview(j)}catch(h){}};return this.each(function(){a(this).click(d)})}}($wn));(function(b){var a=b("#WNAd47"),c=b("#WNAd52");if(c.length>0){b(".shoved:first").each(function(){var d=b(this).clone(true);b(this).remove();b("#WNAd52").addClass("shovedLeft").after(d.addClass("shovedRight"))})}if(a.length>0){b(".pushed").each(function(){var d=b(this).clone(true);b(this).remove();b("#WNAd47").before(d)})}})($wn);(function(b){var a="light";if(window.wxAlerts===true){a="dark"}$wn("#WNBranding").append('<div id="siteTabs">Digital Network:<iframe src="http://www2.newson6.com/sitetabs/2010/#'+a+'" scrolling="no" allowtransparency="yes" frameborder="0"></iframe></div>')})($wn);$('iframe[src*="quikmaps.com"]').detach().appendTo("#WNStoryBody");$(".squeeze").detach().appendTo("#WNStoryBody");(function(h){var n=wng_pageInfo.contentClassification,f=wng_pageInfo.containerType,b=wng_pageInfo.containerId,g=false;GNM.templates.add("iframeHeader",'<iframe src="{url}" width="{width}" height="{height}" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" style="margin-bottom:15px;"></iframe>');for(var k in injections){var l=f==injections[k].TypeId&&b==injections[k].PageId,c=injections[k].ContentClass.split(",");for(var e in c){l=l||c[e]==n}if(l){var d=[];for(var e in injections[k].Content){var m=injections[k].Content[e],a=m.Body;if(a.indexOf("http")==0){a=(GNM.templates.render("iframeHeader",{url:a,height:m.Height,width:m.Width}))}d.push(a)}switch(injections[k].Mode){case"Random":d.sort(function(){return 0.5-Math.random()});d=d.join("");break;case"Single Random":d=d[Math.floor(Math.random()*d.length)];break;case"Single":g=true;case"Ordered":default:d=d.join("");break}h(injections[k].Placement).prepend(d);if(g){break}}}})($wn);(function(a){var b=function(){a(".mostPopular").each(function(){var d=a(this),c=function(g){var f=a(g.target).attr("rel");a(".mpContainer",d).hide();a(".mpTabs a",d).removeClass("selected");a(g.target).addClass("selected");a("."+f,d).show()};d.find(".mpTabs a").bind("click",c).analytics("most-popular")})};a(b)})($wn);(function(){if(wng_pageInfo.containerType==="C"&&(wng_pageInfo.containerId==="112039"||wng_pageInfo.containerId==="112040"||wng_pageInfo.containerId==="112042")){setTimeout(function(){try{window.location.reload(true)}catch(a){}},900000)}})();(function(c){if(wng_pageInfo.containerType==="S"){var e=wng_pageInfo.containerId,a=escape(c('meta[name="WT.ti"]').attr("content")),b=wng_pageInfo.affiliateName,d=0;c("body").append('<img src="http://www2.newson6.com/beacon/?id='+e+"&s="+b+"&c="+d+"&t="+a+'" width="1" height="1" border="0">');c("#WNStoryUtils .wnSUEmail a").bind("click",function(){c("body").append('<img src="http://www2.newson6.com/beacon/email/?id='+e+"&s="+b+'" width="1" height="1" border="0">')})}})($wn);(function(d){var b=['<iframe width="224" height="90" frameborder="0" scrolling="no" id="gnmineedthis" src="http://www2.newson6.com/widgets/bizdir/wn/n6/" marginwidth="0" marginheight="0"></iframe>','<iframe width="224" height="90" frameborder="0" scrolling="no" id="gnmineedthis" src="http://www2.newson6.com/widgets/seizethedeal/2011/STD_Tulsa_top.html" marginwidth="0" marginheight="0"></iframe>'];var c=Math.floor(Math.random()*2);var a=d("#WNHeader #WNAd46");if(a.length===0){a=d("#WNHeader #WNAd41")}if(a.length===1){a.append(b[1])}})($wn);$wn("#WNStoryBody p:first").css("display","inline");(function(b){var a=b(".wnDVWxAlerts");a.find("h4").append('<span class="alertLink"><a href="/global/weatheralerts.asp">Click for details</a></span>');a.find("h5.wnWxAlertType-WARNING").not(":last").addClass("more");a.find("h5.wnWxAlertType-WATCH").not(":last").addClass("more");a.find("h5.wnWxAlertType-ADVISORY").not(":last").addClass("more")})($wn);(function(d){var b="",c='<input class="wnSubmit" type="image" src="http://ftpcontent.worldnow.com/kwtv/custom/2010/search.gif" />',e="http://ftpcontent.worldnow.com/kwtv/custom/2010/connect/",a='<div style="clear:both;"></div><div id="powerSearch"><a href="http://www.google.com"><img src="http://ftpcontent.worldnow.com/kwtv/custom/2010/google.png" width="104" height="21" border="0" /></a></div>';b+='<div id="connect">Connect:';b+='<span><a title="Facebook" href="http://www.facebook.com/NewsOn6"><img rel="facebook" src="http://ftpcontent.worldnow.com/kwtv/custom/2010/connect/facebook.gif" /></a></span>';b+='<span><a title="Twitter" href="http://twitter.com/newson6"><img rel="twitter" src="http://ftpcontent.worldnow.com/kwtv/custom/2010/connect/twitter.gif" /></a></span>';b+='<span><a title="RSS" href="http://www.newson6.com/Global/story.asp?S=7566626"><img rel="rss" src="http://ftpcontent.worldnow.com/kwtv/custom/2010/connect/rss.gif" /></a></span>';b+='<span><a title="E-mail" href="http://www.newson6.com/global/Category.asp?c=138127"><img rel="email" src="http://ftpcontent.worldnow.com/kwtv/custom/2010/connect/email.gif" /></a></span>';b+="</div>";d("#WNMemberCenter-cols2345top ul").after(b);d("#WNSearchBox-cols2345top form input.wnSubmit").remove();d("#WNSearchBox-cols2345top form").prepend(c);d("#WNContainerMemberSearch-cols2345top").append(a);d("#WNBranding").append('<div id="newMemberPosition"></div>');d("#newMemberPosition").append(d("#WNContainerMemberSearch-cols2345top"));d("#WNContainerMemberSearch-cols2345top").css("display","block");d("#connect span a").mouseover(function(){d(this).find("img").attr("src",e+d(this).find("img").attr("rel")+"_over.gif")}).mouseout(function(){d(this).find("img").attr("src",e+d(this).find("img").attr("rel")+".gif")})})($wn);(function(c){var b=c("#WNAd44");if(b.length){var a=b.find("td");a.eq(0).addClass("header");a.eq(1).addClass("pic");a.eq(2).addClass("links")}})($wn);$("#WNBrandingImage").click(function(){window.location.href="/"});$("poll").each(function(){var c=$(this),b=$("#WNDS8.wnDVPoll"),d=c.attr("title"),a=c.attr("move")==="true";if(typeof(d)==="string"&&d.length>0){b.find("h3 span").html(d)}if(a){b.detach().appendTo("#WNContainerStory")}});$wn("wings").each(function(){var c=$(this),e=c.attr("src"),b=c.attr("url"),d=c.attr("attachment")||"scroll",a=function(f){if(f.target.nodeName.toUpperCase()==="HTML"){window.location.href=b}};$("body").css({"background-image":"url("+e+")","background-attachment":d,"background-position":"center top",cursor:"default"});if(b){$("html").css("cursor","pointer").click(a)}});$("body").delegate("ul.gnmTabs li","click",function(c){var a=$(c.target);if(!a.hasClass("selected")){var b=a.parent().parent();b.find(".selected").removeClass("selected");a.addClass("selected");b.find(".tabContent."+a.attr("rel")).addClass("selected")}});(function(c){var b=function(h){var f,i,e,d,j,g;f=15;i=h.find("tfoot");e=h.find("tbody tr").each(function(k,l){l.rel=Math.floor(k/f)});j=0;d=Math.ceil(e.length/f);g={prev:c('<a href="#">&larr; Prev</a>'),next:c('<a href="#">Next &rarr;</a>'),current:c("<span></span>"),pages:c("<span></span>"),container:c("<div></div>")};if(d>1){g.container.append(g.prev," Page ",g.current," of ",g.pages,g.next);i.find("td").empty().append(g.container);e.hide().filter('[rel="'+j+'"]').show();g.current.text(j+1);g.pages.text(d);if(j===0){g.prev.hide()}else{if(j===d-1){g.next.hide()}}g.next.bind("click",function(k){k.preventDefault();if(j<d-1){j++;e.hide().filter('[rel="'+j+'"]').show();g.current.text(j+1);g.prev.show();if(j===d-1){g.next.hide()}}});g.prev.bind("click",function(k){k.preventDefault();if(j>0){j--;e.hide().filter('[rel="'+j+'"]').show();g.current.text(j+1);g.next.show();if(j===0){g.prev.hide()}}})}else{i.remove()}},a=function(e){var k,g,j,h;k=e.find("h3:first");g=e.find("table");h=c("<select></select>");g.hide().eq(0).show();for(var f=0,d=g.length;f<d;f++){j=g.eq(f);c("<option></option>").val(f).text(j.attr("summary")).appendTo(h);b(j)}k.prepend(h);h.bind("change",function(i){g.hide().eq(h.val()).show()})};a(c("#gnmSchedule"));a(c("#gnmRoster"))}($wn))});
