var $J=jQuery.noConflict(),globalOnloads=[],globalOnunloads=[];function globalOnload(){for(var a=0;a<globalOnloads.length;a++)globalOnloads[a]()}function globalOnunload(){for(var a=0;a<globalOnunloads.length;a++)globalOnunloads[a]()}var adx_U_6476="",adx_D_6476="",adx_I_6476="";String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,"")};
function createRequestObject(){var a=null;if(window.XMLHttpRequest)a=new XMLHttpRequest;else try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}return a}function ajaxSendRequest(a,b,c,d,e){var f=!1;try{a.open(b==null?"get":b,c,e==null?!0:e),a.onreadystatechange=d,a.send(null),f=!0}catch(g){f=!1}return f}function ajaxRequestComplete(a){return a.readyState==4}function ajaxPopulateDiv(a,b){document.getElementById(a).innerHTML=b}
var shareLinksTimeout=null,shareLinksTarget=null;function showShareLinks(a,b){shareLinksTarget=null;clearTimeout(shareLinksTimeout);for(var c=a.parentNode,d=0;d<10&&c.tagName.toLowerCase()!="li";d++)c=c.parentNode;c.tagName.toLowerCase()=="li"&&(c=c.getElementsByTagName("div"),c.length>0&&(c=c[0].getElementsByTagName("ul"),c.length>0&&(shareLinksTarget=c[0],b=="false"?shareLinksTimeout=setTimeout("$J(shareLinksTarget).hide(100);",300):$J(shareLinksTarget).show(100))))}
function returnSBLink(a){var b=document.getElementById("articleHeadContainer");if(!b)return!1;var b=encodeURIComponent(b.innerHTML),c=encodeURIComponent(window.location.href),d=null;a=="digg"?d="http://digg.com/submit?phase=2&url="+c+"&title="+b:a=="newsvine"?d="http://www.newsvine.com/_wine/save?popoff=0&u="+c+"&h="+b:a=="delicious"?d="http://del.icio.us/post?url="+c+"&title="+b:a=="reddit"?d="http://reddit.com/submit?url="+c+"&title="+b:a=="facebook"?d="http://www.facebook.com/sharer.php?u="+c+
"&t="+b:a=="twitter"&&(d="http://twitter.com/home?status="+b+" - "+c);d!=null&&window.open(d,a+"_share")}function emailFriend(a){Floaters.createNew("emailfriend",null,"Email a Friend",'<br /><p style="text-align:center;">Loading email form...</p>',250,100);$J.ajax({url:a+"&title="+encodeURIComponent($J("#articleHeadContainer").html()),type:"GET",dataType:"text",success:function(a){Floaters.createNew("emailfriend",null,"Email a Friend",a,350,350)}})}
function emailFriendSubmit(a){$J("#floater-title-emailfriend").html("Processing form...");var b=$J(a).formSerialize();if(a.from.value.trim()=="")return alert("Please provide your name."),!1;else if(a.fromemail.value.trim()=="")return alert("Please provide your email address."),!1;else if(a.to.value.trim()=="")return alert("Please provide your friend's email address."),!1;$J.ajax({url:$J(a).attr("action"),type:$J(a).attr("method"),data:b,dataType:"text",success:function(a){a=/.*?location\.href='(.+?)'.*/i.exec(a);
a.length>1?$J.ajax({url:a[1],type:"GET",dataType:"text",success:function(a){Floaters.createNew("emailfriend",null,"Email a Friend",a,350,300)}}):(alert("There was an error while processing the form. Please try again later."),Floaters.close("emailfriend"))}});return!1}
function changeSearchPage(a){a=encodeURI(a);$J("#floater-content-searchresults").html('<br /><br /><p align="center"><br />Executing your search<br />Please wait ...<br /><br /></p>');try{$J.ajax({url:a,type:"GET",dataType:"html",success:function(a){document.getElementById("floater-content-searchresults").innerHTML=a}})}catch(b){$J("#floater-content-searchresults").html('<br /><br /><p align="center"><br />There was an error while executing your search. Please try again later.<br /><br /></p>')}}
function executeSearch(a){a=document.getElementById(a);Floaters.createNew("searchresults",null,"Search Results",'<br /><br /><p align="center"><br />Executing your search<br />Please wait ...<br /><br /></p>',500,350);try{var b=$J(a).formSerialize();$J.ajax({url:$J(a).attr("action"),type:$J(a).attr("method"),data:b,dataType:"html",success:function(a){document.getElementById("floater-content-searchresults").innerHTML=a}})}catch(c){$J("#floater-content-searchresults").html('<br /><br /><p align="center"><br />There was an error while executing your search. Please try again later.<br /><br /></p>')}return!1}
function enlargePhoto(a,b,c,d,e,f){Floaters.createNew("enlargedphoto",null,d,'<br /><p style="text-align:center;">Loading photo...</p>',250,100);var a=a.replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'")+"&maxw="+b+"&maxh="+c,d=d.replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'"),d=d.trim()==""?"&nbsp;":d,e=e.replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'"),f=f.replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'"),g=new Image;
g.onload=function(a,b,c,d,e,f,g){return function(){g.onload=null;var b=g.width,c=g.height,h="",m=document.getElementById("floater-content-enlargedphoto");if(e.trim()!=""||f.trim()!=""){h+='<div id="floaterphotocaption" style="width:'+b+'px;">';h+=e.trim()!=""?e:"";h+=e.trim()!=""&&f.trim()!=""?"<br /><br />":"";h+=f.trim()!=""?'<span style="font-style:italic;">'+f+"</span>":"";h+="</div>";var n=document.createElement("div");n.id="enlargedphoto";n.style.textAlign="left";n.style.margin="0px";n.innerHTML=
h;n.style.visibility="hidden";m.appendChild(n);c+=n.style.pixelHeight?n.style.pixelHeight:n.offsetHeight;n.style.display="none"}h='<img src="'+a+'" alt="Enlarged photo" />'+h;Floaters.createNew("enlargedphoto",null,d,'<div style="text-align:left; margin:0px;">'+h+"</div>",b+22,c+50)}}(a,b,c,d,e,f,g);g.src=a}
function parseXML(a){var b=null;window.DOMParser?b=(new DOMParser).parseFromString(a,"text/xml"):window.ActiveXObject&&window.GetObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async=!1,b.loadXML(a)):b=null;return b}
function setSearchParameters(a,b,c,d,e){c=="all"?(document[b+"searchForm"].SearchCategory.value="%",document[b+"searchForm"].SearchProfile.value="0"):(document[b+"searchForm"].SearchCategory.value=c,document[b+"searchForm"].SearchProfile.value="");if(typeof e!="undefined"&&e!=null&&e!="")document[b+"searchForm"].action=e;else if(typeof searchFormDefaultAction!="undefined"&&searchFormDefaultAction!=null&&searchFormDefaultAction!="")document[b+"searchForm"].action=searchFormDefaultAction;$J("#"+b+" .searchNav").find("li a").each(function(){$J(this).removeClass()});
a=a.split("|");for(c=0;c<a.length;c++)$J("#"+b+" .searchNav li:eq("+a[c]+") > a").addClass("activeNav")}var showSearchOptionsTimeout=null,showSearchOptionsTarget=null;function openMoreSearchOptions(a,b){clearTimeout(showSearchOptionsTimeout);(showSearchOptionsTarget=document.getElementById(a))&&(b=="false"?showSearchOptionsTimeout=setTimeout("$J(showSearchOptionsTarget).slideUp(250);",300):$J(showSearchOptionsTarget).slideDown(250))}
var morePicturesItems=[],showMorePicturesTimeout=null,showMorePicturesTarget=null;
function addMorePicturesItem(a,b,c,d,e,f,g,l){a=a.replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'");b=b.replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'");b=b.trim()==""?"&nbsp;":b;c=c.replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'");d=d.replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'");morePicturesItems.push({url:a,title:b,caption:c,byline:d,maxthumbw:e,maxthumbh:f,maxw:g,maxh:l});(new Image).src=a+"&maxw="+e+"&maxh="+
f;(new Image).src=a+"&maxw="+g+"&maxh="+l}function updateMorePicturesCount(){var a=document.getElementById("morePicturesLink");if(a&&morePicturesItems.length>1)a.innerHTML='<a href="javascript:showMorePictures();">More Photos ('+morePicturesItems.length+")</a>",a.style.display="block"}var showMorePicturesIndex=-1,showMorePicturesCurrentTarget=null,showMorePicturesActive=!1;
function showMorePictures(){var a=document.createElement("div"),b=morePicturesItems[0].maxw,c=morePicturesItems[0].maxh;a.style.width=b+"px";a.style.height=c+"px";a.style.overflow="hidden";a.style.position="relative";a.style.margin="0px auto";var d=document.createElement("div");d.id="showMorePicturesCaptions";d.style.width=Math.floor(b*4/5)+"px";d.style.textAlign="left";d.style.margin="0px auto";d.style.paddingTop="5px";d.style.height="95px";d.style.overflow="auto";for(var e=0;e<morePicturesItems.length;e++){var f=
morePicturesItems[e],g=document.createElement("div");g.style.position="absolute";g.style.display="none";g.id="morephotos-"+e;var l=document.createElement("div");l.position="relative";l.style.width=b+"px";l.style.height=c+"px";l.style.overflow="hidden";l.style.textAlign="center";l.style.verticalAlign="middle";l.style.lineHeight=c+"px";var h=new Image;h.onload=function(a,b){return function(){a.onload=null;a.style.marginTop=Math.floor((b-a.height)/2)}}(h,c);h.src=f.url+"&maxw="+f.maxw+"&maxh="+f.maxh;
h.alt=f.title;h.title=f.title;h.style.margin="0px auto";h.style.verticalAlign="middle";l.appendChild(h);g.appendChild(l);if(e==0)g.style.left="0px",g.style.display="block",g.style.opacity="1",showMorePicturesIndex=0,showMorePicturesCurrentTarget=g,d.innerHTML=buildPhotoCaption(f.title,f.caption,f.byline);a.appendChild(g)}e=document.createElement("div");e.className="morepicturesnextarrow";e.style.top=Math.floor(c/2)+30-22+"px";e.innerHTML='<a href="javascript:showNextPicture(\'next\');"><img src="/images/slides/bluearrowright.gif" alt="Next Image" title="Next Image" /></a>';
f=document.createElement("div");f.className="morepicturesprevarrow";f.style.top=Math.floor(c/2)+30-22+"px";f.innerHTML='<a href="javascript:showNextPicture(\'previous\');"><img src="/images/slides/bluearrowleft.gif" alt="Previous Image" title="Previous Image" /></a>';Floaters.createNew("morephotos",null,"More Photos","",b+80,c+150);document.getElementById("floater-content-morephotos").style.textAlign="center";document.getElementById("floater-content-morephotos").appendChild(a);document.getElementById("floater-content-morephotos").appendChild(d);
document.getElementById("floater-content-morephotos").appendChild(e);document.getElementById("floater-content-morephotos").appendChild(f);a=document.getElementById("floater-content-morephotos");for(b=0;!(a.className&&a.className=="floater-wrapper-default")&&b++<10;)a=a.parentNode;if(a.className&&a.className=="floater-wrapper-default")a.className="floater-wrapper-default ie-100-hack"}
function buildPhotoCaption(a,b,c){var d="";d+=a.trim()!=""?'<div style="font-weight:bold;">'+a+"</div>":"";d+=b.trim()!=""?b:"";d+=b.trim()!=""&&c.trim()!=""?"<br />":"";d+=c.trim()!=""?'<div style="font-style:italic;">'+c+"</div>":"";return d}
function showNextPicture(a){if(!showMorePicturesActive){a=a=="next"?"next":a=="previous"?"previous":"next";showMorePicturesIndex+=a=="next"?1:-1;if(showMorePicturesIndex<0&&a=="previous"||showMorePicturesIndex>=morePicturesItems.length&&a=="previous")showMorePicturesIndex=morePicturesItems.length-1;else if(showMorePicturesIndex<0&&a=="next"||showMorePicturesIndex>=morePicturesItems.length&&a=="next")showMorePicturesIndex=0;var b=showMorePicturesCurrentTarget;if(showMorePicturesCurrentTarget=document.getElementById("morephotos-"+
showMorePicturesIndex))if(b&&$J(b).animate({left:a=="next"?"-700px":"700px",opacity:"0.1"},500,"swing",function(a){return function(){a.style.display="none"}}(b)),showMorePicturesCurrentTarget)showMorePicturesActive=!0,showMorePicturesCurrentTarget.style.left=a=="next"?"700px":"-700px",showMorePicturesCurrentTarget.style.opacity="0.1",showMorePicturesCurrentTarget.style.display="block",$J(showMorePicturesCurrentTarget).animate({left:"0px",opacity:"1"},500,"swing",function(){var a=document.getElementById("showMorePicturesCaptions");
if(a.scrollTop)a.scrollTop=0;var b=morePicturesItems[showMorePicturesIndex];if(a&&b)a.innerHTML=buildPhotoCaption(b.title,b.caption,b.byline);showMorePicturesActive=!1})}}
function open_ors_window(a,b){var c="",d="",c=a!=null?"&u_mod="+a:"&u_mod=login";b!=null&&(d="&u_opt="+b);setTimeout("checkChild()",1E3);child_win=wnd=window.open(D_SRVR_SECURE_HOST+"index.php?u_page=1002"+c+"&u_dta="+encodeURIComponent(getCookie("D_SRVR_DTA"))+d,"wnd_mkt_login","width=860,height=695,resizable=1,toolbar=0,scrollbars=1");wnd.focus()}var child_win=null;
function checkChild(){child_win!=null&&child_win.closed==!0?(displayLoginLinks(),displayLoginLinksAutos(),window.location.reload(!0)):setTimeout("checkChild()",500)}function displayLoginLinks(){try{$J.ajax({url:"/section/exec?name=loginLinks.php5&omniture=0",type:"GET",dataType:"html",success:function(a){$J("#loginLinks").html(a)}})}catch(a){}}
function displayLoginLinksAutos(){try{$J.ajax({url:"/section/exec?name=loginLinksAutos.php5&omniture=0",type:"GET",dataType:"html",success:function(a){$J("#loginLinksAutos").html(a)}})}catch(a){}}
function attempt_logout(){var a=document.createElement("iframe");a.src=D_SRVR_SECURE_HOST+"index.php?u_page=1002&u_mod=logout&u_dta="+encodeURIComponent(getCookie("D_SRVR_DTA"));a.style.width="1px";a.style.height="1px";a.style.visibility="hidden";a.style.display="none";document.body.appendChild(a);try{$J.ajax({url:"/section/exec?name=orsClearLoginVars.php5&omniture=0",type:"GET",dataType:"html",success:function(){displayLoginLinks();displayLoginLinksAutos();window.location.reload(!0)}})}catch(b){}}
function popWin(a,b,c,d){b=b!=null?parseInt(b):640;c=c!=null?parseInt(c):480;d=String(d!=null?d:"").replace(/ /g,"_");wnd=window.open(a,d,"width="+b+",height="+c+",resizable=1,toolbar=0,scrollbars=0");wnd.focus()}function changeVideoPlaylist(a,b,c){var d=a.action;d+="&prodover=";d+=b!=null&&typeof b!="undefined"?b:a.viewplaylist.options[a.viewplaylist.selectedIndex].value;c&&(d+="&vidcount="+a.viewcount.options[a.viewcount.selectedIndex].value);window.location.href=d}
function launchapgallery(a,b,c){b==null&&(b=480);c==null&&(c=500);a!=""&&window.open("/apps/pbcs.dll/misc?URL=/templates/apgallery.pbs&omniture=0&swf="+encodeURIComponent(a),"apgalleryplayer","width="+b+",height="+c+",status=0,scrollbars=0,menubar=0,location=0,resizable=1").focus()}function enterKeyPressed(a){var b=0,c=!1;if(document.all)b=a.keyCode;else if(document.layers||document.getElementById)b=a.which;b==13&&(c=!0);return c}
function getCookie(a){if(document.cookie.length>0&&(c_start=document.cookie.indexOf(a+"="),c_start!=-1)){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return document.cookie.substring(c_start,c_end)}return""}function setCookie(a,b,c){var d=new Date;d.setDate(d.getDate()+c);b=escape(b)+(c==null?"":"; expires="+d.toUTCString())+"; path=/";document.cookie=a+"="+b}
function launchigallery(a,b,c,d){b==null&&(b=800);c==null&&(c=600);videoid=a!=void 0&&a!=null?a:"";var e="";if(screen&&(d===!0||d=="true"))b=screen.availWidth,c=screen.availHeight-35,e=",top=0,left=0";a=window.open("http://odc.omaha.com/index.php?u_page=5002&p="+a,"igalleryplayer","width="+b+",height="+c+",status=0,scrollbars=0,menubar=0,location=0,resizable=1"+e);a.focus();a.moveTo(0,0)}
var Floaters={startingZ:10001,floaterZ:this.startingZ,floaters:[],zCheck:function(){if(!Floaters.floaterZ)Floaters.floaterZ=Floaters.startingZ},swapFocus:function(a){Floaters.zCheck();Floaters.floaterZ=Floaters.startingZ;var b=!1;for(fcount=0;fcount<Floaters.floaters.length-1;fcount++)if(Floaters.floaters[fcount].getRootElem().id==a.getRootElem().id||b)Floaters.floaters[fcount]=Floaters.floaters[fcount+1],b=!0;Floaters.floaters.pop();Floaters.floaters.push(a);for(fcount=0;fcount<Floaters.floaters.length;fcount++)Floaters.floaters[fcount].getRootElem().style.zIndex=
Floaters.floaterZ,Floaters.floaterZ+=10},close:function(a){Floaters.zCheck();document.getElementById("floater-"+a)&&document.getElementById("floater-"+a).parentNode.removeChild(document.getElementById("floater-"+a));document.getElementById("floater-shim-"+a)&&document.getElementById("floater-shim-"+a).parentNode.removeChild(document.getElementById("floater-shim-"+a));var b=!1;for(fcount=0;fcount<Floaters.floaters.length-1;fcount++)if(Floaters.floaters[fcount].getRootElem().id=="floater-"+a||b)Floaters.floaters[fcount]=
Floaters.floaters[fcount+1],b=!0;Floaters.floaters.pop()},closeMostRecent:function(){Floaters.zCheck();Floaters.floaters.length>0&&Floaters.close(Floaters.floaters[Floaters.floaters.length-1].getName())},keyCheck:function(a){Floaters.zCheck();switch(window.event?event.keyCode:a.keyCode){case 27:Floaters.closeMostRecent()}},createNew:function(a,b,c,d,e,f,g,l,h,o,t,u,p,w,r){Floaters.zCheck();var a=a==null?"default":a,b=b==null?"default":b,e=isNaN(e)?500:e,f=isNaN(f)?300:f,h=isNaN(h)?null:h,o=isNaN(o)?
null:o,t=isNaN(t)?null:t,u=isNaN(u)?null:u,w=w===!1?!1:!0,p=w==!1?"window":p=="titlebar"||p=="window"?p:"titlebar",r=r===!1?!1:!0,k=null,v=null,m=null,n=null,x=null,s=null,q=null,A=null,y=null,z=null,m=null,e=e==null?500:e,f=f==null?300:f,g=g==null?Floaters.pageWidth()/2-Math.floor(e/2):g,l=l==null?Floaters.posTop()+(Floaters.pageHeight()/2-Math.floor(f/2)):l;document.getElementById("floater-"+a)&&Floaters.close(a);k=document.createElement("div");k.id="floater-"+a;k.className="floater-"+b+(r===!0&&
p=="window"?" floater-moveable-"+b:"");k.style.width=e+"px";k.style.height=f+"px";k.style.position="absolute";k.style.top=l+"px";k.style.left=g+"px";k.style.zIndex=Floaters.floaterZ;v=document.createElement("div");v.className="floater-outer-"+b;v.style.height=f+"px";v.style.width=e+"px";m=document.createElement("div");m.className="floater-inner-"+b;n=document.createElement("div");n.className="floater-wrapper-"+b;x=document.createElement("div");x.className="floater-title-wrapper-"+b+(r===!0&&p=="titlebar"?
" floater-moveable-"+b:"");s=document.createElement("div");s.className="floater-title-"+b;s.id="floater-title-"+a;s.innerHTML=c;q=document.createElement("div");q.className="floater-close-"+b;q.onmouseover=function(){this.className="floater-close-hover-"+b};q.onmouseout=function(){this.className="floater-close-"+b};q.onclick=function(){Floaters.close(a)};if(w!==!0)x.style.display="none";A=document.createElement("div");A.className="floater-spacer-"+b;y=document.createElement("div");y.className="floater-content-wrapper-"+
b;z=document.createElement("div");z.id="floater-content-"+a;z.className="floater-content-"+b;z.innerHTML=d;y.appendChild(z);x.appendChild(s);n.appendChild(x);n.appendChild(q);n.appendChild(A);n.appendChild(y);k.appendChild(v);k.appendChild(m);k.appendChild(n);document.body.appendChild(k);c=f-Floaters.getElementHeight(x)-9;y.style.height=c+"px";m.style.height=c+"px";m.style.width=e-6+"px";m.style.top=Floaters.getElementHeight(s)+6+"px";m.style.left="3px";m=document.createElement("iframe");m.id="floater-shim-"+
a;m.className="floater-shim-"+b;m.src="/images/blank.gif";m.style.position="absolute";m.style.top=l+"px";m.style.left=g+"px";m.style.height=f+"px";m.style.width=e+"px";m.style.border="0px";document.body.insertBefore(m,k);Floaters.floaterZ+=10;e=[];f=k;r===!0&&(e=[k,m],f=p=="titlebar"?x:k);h=new Floater(a,b,k,f,e,h,o,t,u);o=function(a){return function(){Floaters.swapFocus(a)}}(h);k.addEventListener?k.addEventListener("mousedown",o,!0):k.attachEvent("onmousedown",o);r===!0&&h.dragInit();Floaters.floaters.push(h)},
isArray:function(a){try{return a.constructor.toString().indexOf("Array")==-1?!1:!0}catch(b){return!1}},getElementHeight:function(a){return a.style.pixelHeight?a.style.pixelHeight:a.offsetHeight},getElementWidth:function(a){return a.style.pixelWidth?a.style.pixelWidth:a.offsetWidth},pageWidth:function(){return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null},
pageHeight:function(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null},posLeft:function(){return typeof window.pageXOffset!="undefined"?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft?document.body.scrollLeft:0},posTop:function(){return typeof window.pageYOffset!=
"undefined"?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0},posRight:function(){return Floaters.posLeft()+Floaters.pageWidth()},posBottom:function(){return Floaters.posTop()+Floaters.pageHeight()},getElementLeft:function(a,b){var c=a.offsetLeft;if(!b)for(var d=a.offsetParent;d!=null;)c+=d.offsetLeft,d=d.offsetParent;return c},getElementTop:function(a){for(var b=a.offsetTop,a=a.offsetParent;a!=
null;)b+=a.offsetTop,a=a.offsetParent;return b},getElementsByClass:function(a,b){var c=[];b==null&&(b=document);for(var d=0,e=0;d<b.childNodes.length;d++)b.childNodes[d].className==a&&(c[e]=b.childNodes[d],e++);return c},getChildNodes:function(a){var b=[];for(j=i=0;i<a.childNodes.length;i++)a.childNodes[i].tagName!=void 0&&(b[j]=a.childNodes[i],j++);return b}},Floater=function(a,b,c,d,e,f,g,l,h){function o(a){if(typeof a=="undefined")a=window.event;if(typeof a.layerX=="undefined")a.layerX=a.offsetX;
if(typeof a.layerY=="undefined")a.layerY=a.offsetY;return a}var t=0,u=0,p=null,w=null,r=null,k=null,v=this;this.getName=function(){return a};this.getClassName=function(){return b};this.getRootElem=function(){return c};this.getDragAnchor=function(){return d};this.getDragTargets=function(){return e};this.dragInit=function(){d.onmousedown=this.dragStart;for(var a=0;a<e.length;a++){if(isNaN(parseInt(e[a].style.left)))e[a].style.left="0px";if(isNaN(parseInt(e[a].style.top)))e[a].style.top="0px"}};this.dragStart=
function(a){document.body.onmousedown=function(){return!1};document.body.ondragstart=function(){return!1};document.body.onselectstart=function(){return!1};var a=o(a),b=0,d=0,d=parseInt(c.style.top),b=parseInt(c.style.left);t=a.clientX;u=a.clientY;f!=null&&(p=a.clientX-b+f);g!=null&&(w=p+g-f);l!=null&&(r=a.clientY-d+l);h!=null&&(k=r+h-l);document.onmousemove=v.drag;document.onmouseup=v.dragEnd;return!1};this.drag=function(a){document.body.onmousedown=function(){return!1};document.body.ondragstart=
function(){return!1};document.body.onselectstart=function(){return!1};var a=o(a),b=a.clientX,a=a.clientY,d=0,s=0,d=parseInt(c.style.left),s=parseInt(c.style.top);f!=null&&(b=Math.max(b,p));g!=null&&(b=Math.min(b,w));l!=null&&(a=Math.max(a,r));h!=null&&(a=Math.min(a,k));d+=b-t;s+=a-u;for(var q=0;q<e.length;q++)e[q].style.left=d+"px",e[q].style.top=s+"px",t=b,u=a;return!1};this.dragEnd=function(a){document.body.onmousedown=function(){return!0};document.body.ondragstart=function(){return!0};document.body.onselectstart=
function(){return!0};a=o(a);document.onmousemove=null;document.onmouseup=null}};document.addEventListener?document.addEventListener("keyup",Floaters.keyCheck,!0):document.attachEvent("onkeyup",Floaters.keyCheck);function getXmlHttpObject(){var a=null;if(window.XMLHttpRequest)a=new XMLHttpRequest;else try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}return a}
function showInfo(a,b,c){var d=getXmlHttpObject(),e="/html/"+a+".html";c==!0&&(e="http://www.omaha.com"+e);Floaters.createNew(a,null,"Loading: "+b,'<br /><div style="text-align:center;">Loading, please wait...</div>',250,100);d.onreadystatechange=function(a,b,c){return function(){a.readyState==4&&Floaters.createNew(b,null,c,a.responseText,500,400)}}(d,a,b);d.open("GET",e,!0);d.send(null)}
$J(document).ready(function(){$J(".mostPop a").click(function(){$J(this).css("background-position","top");$J(".mostEmailed a").css("background-position","bottom");$J(".hotTopics a").css("background-position","bottom");$J("#mostEmailedFeed").fadeOut(100,function(){$J("#hotTopicsFeed").fadeOut(200,function(){$J("#mostPopFeed").fadeIn(200)})})});$J(".mostEmailed a").click(function(){$J(this).css("background-position","top");$J(".mostPop a").css("background-position","bottom");$J(".hotTopics a").css("background-position",
"bottom");$J("#mostPopFeed").fadeOut(100,function(){$J("#hotTopicsFeed").fadeOut(200,function(){$J("#mostEmailedFeed").fadeIn(200)})})});$J(".hotTopics a").click(function(){$J(this).css("background-position","top");$J(".mostPop a").css("background-position","bottom");$J(".mostEmailed a").css("background-position","bottom");$J("#mostPopFeed").fadeOut(100,function(){$J("#mostEmailedFeed").fadeOut(200,function(){$J("#hotTopicsFeed").fadeIn(200)})})});$J("a.autos").click(function(){$J(this).css("background",
"url(/images/marketplace/mp_autos.gif) no-repeat top");$J("a.jobs").css("background","url(/images/marketplace/mp_jobs.gif) no-repeat bottom");$J("a.homes").css("background","url(/images/marketplace/mp_homes.gif) no-repeat bottom");$J("#jobsContent").fadeOut(100,function(){$J("#homesContent").fadeOut(200,function(){$J("#autosContent").fadeIn(200)})})});$J("a.jobs").click(function(){$J(this).css("background","url(/images/marketplace/mp_jobs.gif) no-repeat top");$J("a.autos").css("background","url(/images/marketplace/mp_autos.gif) no-repeat bottom");
$J("a.homes").css("background","url(/images/marketplace/mp_homes.gif) no-repeat bottom");$J("#autosContent").fadeOut(100,function(){$J("#homesContent").fadeOut(200,function(){$J("#jobsContent").fadeIn(200)})})});$J("a.homes").click(function(){$J(this).css("background","url(/images/marketplace/mp_homes.gif) no-repeat top");$J("a.jobs").css("background","url(/images/marketplace/mp_jobs.gif) no-repeat bottom");$J("a.autos").css("background","url(/images/marketplace/mp_autos.gif) no-repeat bottom");$J("#jobsContent").fadeOut(100,
function(){$J("#autosContent").fadeOut(200,function(){$J("#homesContent").fadeIn(200)})})});$J("#spotLight p:eq(0)").css("padding-top","50px");$J("#contentContainer #newsFeedBoxContent").each(function(){$J(this).after("<div id='newsFeedBoxBot'></div>")})});var bHasPollMini=!1;function checkPollMini(a){a=document.getElementById(a).innerHTML;a=new String(a);if(a.search("Sorry, no question available")<0&&a.trim().length>0)return bHasPollMini=!0;return!1}
var updateInProgress=!1,rootDivs=null,divIndex=-1,ajaxReq=null,ajaxDoc=null,ajaxDiv=null;function processAjax(){if(ajaxReq.readyState==4&&ajaxReq.status==200)ajaxDoc=ajaxReq.responseText,ajaxDiv.innerHTML=ajaxDoc,divIndex+=1,processPollMini()}
function processPollMini(){if(divIndex<rootDivs.length)try{ajaxDiv=rootDivs[divIndex].getElementsByTagName("div")[0];var a=rootDivs[divIndex].getElementsByTagName("form")[0].url.value;ajaxDiv.innerHTML='<img src="/images/ajax-loader.gif" border="0" alt="Loading, please wait..." />';ajaxReq=createRequestObject();ajaxReq.onreadystatechange=processAjax;ajaxReq.open("GET",a,!0);ajaxReq.send(null)}catch(b){alert(b)}else updateInProgress=!1}
function updatePollMini(){if(!updateInProgress){updateInProgress=!0;rootDivs=document.getElementsByName("pollMini");if(rootDivs.length==0){rootDivs=[];for(var a=document.getElementsByTagName("div"),b=0;b<a.length;b++)a[b].name=="pollMini"&&rootDivs.push(a[b])}rootDivs.length>0?(divIndex=0,bHasPoll=!0,processPollMini()):updateInProgress=!1}}function processAjaxPollResult(){if(ajaxReq.readyState==4)ajaxDoc=ajaxReq.responseText,ajaxDiv.innerHTML=ajaxDoc}
function processPollMiniResult(a,b,c){try{ajaxDiv=b,ajaxReq=createRequestObject(),ajaxReq.onreadystatechange=processAjaxPollResult,ajaxReq.open("POST",a,!0),ajaxReq.setRequestHeader("Content-type","application/x-www-form-urlencoded"),ajaxReq.setRequestHeader("Content-length",c.length),ajaxReq.send(c)}catch(d){alert(d)}}
function checkForm(a,b){formErrors=!0;aForm=document.getElementById(a);aDivTagToUpdate=document.getElementById(b);for(i=aForm.q1.length-1;i>-1;i--)if(aForm.q1[i].checked){formErrors=!1;break}if(formErrors)alert("You must choose an answer");else{var c="";for(i=0;i<aForm.elements.length;i++){aForm.elements[i].tagName=="INPUT"&&(aForm.elements[i].type=="text"&&(c+=aForm.elements[i].name+"="+aForm.elements[i].value+"&"),aForm.elements[i].type=="checkbox"&&(c+=aForm.elements[i].checked?aForm.elements[i].name+
"="+aForm.elements[i].value+"&":aForm.elements[i].name+"=&"),aForm.elements[i].type=="radio"&&aForm.elements[i].checked&&(c+=aForm.elements[i].name+"="+aForm.elements[i].value+"&"));if(aForm.elements[i].tagName=="SELECT"){var d=aForm.elements[i];c+=d.name+"="+d.options[d.selectedIndex].value+"&"}aForm.elements[i].type=="hidden"&&(c+=aForm.elements[i].name+"="+aForm.elements[i].value+"&")}d=aForm.PostUrl.value;aDivTagToUpdate.innerHTML='<img src="/images/ajax-loader.gif" border="0" alt="Loading, please wait..." />';
processPollMiniResult(d,aDivTagToUpdate,c)}}function loadJSON(a){var b=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript";c.onload=function(a,b){return function(){a.removeChild(b)}}(b,c);c.src=a;b.appendChild(c)}
function showInfoDoc(a,b){$J.ajax({dataType:"jsonp",jsonp:"callback",data:"infoName="+a,url:"http://www.omaha.com/section/exec?name=htmlread.php5&omniture=0",type:"get",success:function(c){Floaters.createNew(a,null,b,c,500,400)},error:function(a,b,e){alert(b+":"+e)}})}globalOnloads.push(updatePollMini);
