// Built Tue Nov 27 12:06 // GENERIC VARIBALES /* This site */ var WWWSITE = document.location.hostname.replace(/template/,'www'); var SITENAME_GENNI = location.hostname.replace(/\.coxnewsweb\.com/,'.com').replace(/.*\.(.*)\.com/i,'$1'); // Show/Hide/-inline classes document.write('.daytondailynews.show,.middletownjournal.show,.journal-news.show,.springfieldnewssun.show,.pulsejournal.show,.fairfield-echo.show,.western-star.show,.oxfordpress.show{display:none;}.show.'+SITENAME_GENNI+',.show-block.'+SITENAME_GENNI+'{display:block !important;}.'+SITENAME_GENNI+'{display:inline !important;}.hide.'+SITENAME_GENNI+'{display:none !important;}<'+'/style'+'>'); /* Only include sortable tables script on non-homepage pages */ if(!location.href.match('content/homepage') && !location.href.match('^http...www\.'+SITENAME_GENNI+'\.com/$')) { document.write('<'+'/script'+'>'); } /* Let's declare this twice so IE doesn't freak out */ function resetnav(){ /* nothin' */ } /* Temporary for OSULSU.com */ if((location.hostname=='www.osulsu.com' || location.href.match('content/oh/osu-lsu'))) { location.href = "http://www.ohiostatetexas.com/"; /*var cxnt_tool = "OSU-LSU"; if(!location.href.match('photos_galleries')) { var cxnt_channel = ""; } else { var cxnt_channel = "slideshow"; } var cxnt_subchan1 = ""; var cxnt_subchan2 = ""; var cxnt_subchan3 = ""; var cxnt_subchan4 = ""; document.write('@import url("http://alt.coxnewsweb.com/daytondailynews/css/osulsu/global-addon.css");#ohnav,#ohsubnav,#ohlegal{display:none;}<\/'+'sty'+'le>'); document.title = 'osulsu.com'; */ } if(location.hostname=='www.osulsu.com' && location.href.match('content/oh/story')) { var newHref = location.href; newHref = newHref.replace(/^.*\/oh\/story/,''); newHref = newHref.replace(/\.html/,''); location.href = 'http://www.osulsu.com/s/content/oh/osu-lsu/story.html'+newHref; } if(location.hostname=='www.osulsu.com' && location.href.match('content/shared\-gen/ap')) { var newHref = location.href; newHref = newHref.replace(/^.*\/shared\-gen\/ap/,''); newHref = newHref.replace(/\.html/,''); location.href = 'http://www.osulsu.com/s/content/oh/osu-lsu/apstory.html'+newHref; } if(location.hostname=='www.osulsu.com' && location.href.match('content/gen/ap')) { var newHref = location.href; newHref = newHref.replace(/^.*\/content\/gen\/ap/,''); newHref = newHref.replace(/\.html/,''); location.href = 'http://www.osulsu.com/s/content/oh/osu-lsu/genapstory.html'+newHref; } // GENERIC FUNCTIONS function d(o){ return document.getElementById(o); } function getElementsById(oElm, strTagName, strClassName){ var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); var arrReturnElements = new Array(); strClassName = strClassName.replace(/\-/g, "\\-"); var oRegExp = new RegExp(strClassName); var oElement; for(var i=0; i'); }else{ document.write('<\/a>'); } } } /* Add dates to movie times */ function addMovieDates(){ return; // Deprecated } /* =================================== Automatic tab function =================================== */ function activateTabs(){ var ohtabs = getElementsByClassName(document, "div", "ohtabs"); for(x=0;x=.98) { clearInterval(crossFadeInterval); for(i=0;i (stories.length - 1)){ nextTopStory = 0; } fadeTopStory(currentTopStory,nextTopStory); } function goPrevTopStory(){ for(i=0;i tags with mediaplayer class */ function attachMP(){ for(i=0;i -1){ newLinkURL = newLinkURL.replace(oldap,"o/content"); document.links[i].href=newLinkURL; } } } /* =================================== MOVIE PAGE FIXES =================================== */ if(location.href.match('/movies/etc/')) { document.write('<'+'script type="text/javascript"'+' src="http://alt.coxnewsweb.com/activedayton/js/jquery.js"'+'><'+'/script'+'>'); document.write('<'+'script type="text/javascript"'+' src="http://alt.coxnewsweb.com/daytondailynews/js/moviefix.js"'+'><'+'/script'+'>'); } /* =================================== TRY FUNCTION, CATCH EXCEPTION =================================== */ function tryThis(func){ eval('try{'+func+'();}catch(err){if(sane_debug){alert("SANE DEBUG\\nTried function '+func+'\\nError: "+err.description);}}'); } /* =================================== FUNCTIONS TO RUN RIGHT NOW DANG IT! =================================== */ //tryThis('check_css'); /* =================================== FUNCTIONS TO RUN ONCE DOM IS LOADED =================================== */ function initFunctions(){ //tryThis('writeUsername'); tryThis('fixSlidingBillboard'); tryThis('searchBox'); //tryThis('createPlaybackButtons'); } /* =================================== DETECT WHEN DOM IS LOADED =================================== */ // Dean Edwards/Matthias Miller/John Resig function init() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); // do stuff initFunctions(); }; /* for Mozilla/Opera9 */ if (document.addEventListener) { document.addEventListener("DOMContentLoaded", init, false); } /* for Internet Explorer */ /*@cc_on @*/ /*@if (@_win32) document.write("