/* http://www.valleymorningstar.com/common/tools/load.php?js=common_nav,common_tabBox,common_contentslider */ function navLoad(E){if(typeof (E)=="undefined"){E="fi_nav_ul"}var D=document.getElementById(E);var C=D.getElementsByTagName("LI");for(var B=0;B-1){C[B].setAttribute("ulPos",A);if(C[B].parentNode==D){C[B].childNodes[A].setAttribute("drop","down")}else{C[B].className+=" hasSub"}break}}C[B].onmouseover=function(){if(this.className.indexOf(" over")==-1){this.className+=" over"}if(this.getAttribute("ulPos")){showAndPosition(this)}};C[B].onmouseout=function(){this.className=this.className=="over"?"":this.className.replace(" over","");if(this.getAttribute("ulPos")){this.childNodes[this.getAttribute("ulPos")].style.visibility="hidden"}}}}function showAndPosition(A){var B=A.childNodes[A.getAttribute("ulPos")];if(B.getAttribute("noPos")){B.style.visibility="visible"}else{if(B.getAttribute("drop")=="down"){B.style.left="0px";B.style.top=A.offsetHeight+"px";if(B.offsetWidth0){window[A+"timer"]=setTimeout(function(){ContentSlider.autoturnpage(A,H,E||0)},H)}}ContentSlider.buildpagination=function(E){var C=document.getElementById(E);var A=document.getElementById("paginate-"+E);var D="";for(var B=0;B'+(C.paginateText?C.paginateText[B]:B+1)+" "}D+='"+(C.nextText||"Next")+"";A.innerHTML=D;A.onclick=function(){if(typeof window[E+"timer"]!="undefined"){clearTimeout(window[E+"timer"])}}};ContentSlider.turnpage=function(E,A){var D=document.getElementById("paginate-"+E).getElementsByTagName("a");for(var B=0;B0){var C=document.getElementById(F);if(A==0){C.cyclecount=(typeof C.cyclecount!="undefined")?C.cyclecount+1:1}if(C.cyclecount&&C.cyclecount==E){return }}window[F+"timer"]=setTimeout(function(){ContentSlider.autoturnpage(F,B,E)},B)};function getCookie(A){var B=new RegExp(A+"=[^;]+","i");if(document.cookie.match(B)){return document.cookie.match(B)[0].split("=")[1]}return""}function setCookie(A,B){document.cookie=A+"="+B}ContentSlider.ajaxpage=function(A,C){var E=false;var D="";if(window.XMLHttpRequest){E=new XMLHttpRequest()}else{if(window.ActiveXObject){try{E=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{E=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){}}}else{return false}}C.innerHTML=csloadstatustext;E.onreadystatechange=function(){ContentSlider.loadpage(E,C)};if(csbustcachevar){D=(A.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime()}E.open("GET",A+D,true);E.send(null)};ContentSlider.loadpage=function(B,A){if(B.readyState==4&&(B.status==200||window.location.href.indexOf("http")==-1)){A.innerHTML=B.responseText}};ContentSlider.loadobjects=function(C){for(var B=0;B\n';if(imageSlide[i].width<230){htmlOut+='
'}if(parseInt(imageSlide[i].storyid)>0){htmlOut+=' "}else{htmlOut+=' '}htmlOut+=''+imageSlide[i].picturealt+'';htmlOut+="";if(imageSlide[i].width<230){htmlOut+="
"}if('"'+imageSlide[i].credit+'"'!=""){htmlOut+='
\n';htmlOut+=" "+imageSlide[i].credit+" \n";htmlOut+="
\n"}if(imageSlide[i].cutline!=""){htmlOut+='
\n';htmlOut+=imageSlide[i].cutline+" ";htmlOut+="
\n"}if(parseInt(imageSlide[i].storyid)>0){htmlOut+='
Click to Enlarge\n"}htmlOut+="\n"}htmlOut+="";htmlOut+='';return htmlOut}var imgCount,htmlOut,imgsSlider,imgMaxWidth,imgMaxHeight;imgCount=0;if(typeof (imgInfo)!="undefined"){if(imgInfo[0][0]!=""&&imgInfo[0][0]!="medium/"&&imgInfo[0][0]!="http://images.onset.freedom.com/"+imgInfo[0][7]+"/"){if(imgInfo[0][6]!=""){imgStoryId=imgInfo[0][6]}if(imgInfo[0][7]!=""){imgStoryDb=imgInfo[0][7]}imageSlide[0]=new imageSlide(imagePrefix+imgInfo[0][0],imgInfo[0][1],imgInfo[0][2],imgInfo[0][3],imgInfo[0][4],imgInfo[0][5],imgStoryId,imgStoryDb);imgMaxWidth=imgInfo[0][4];imgMaxHeight=imgInfo[0][5];imgCount++;imgMaxTotalHeight=parseInt(imgMaxHeight);imgMaxTotalHeight+=100}if(imgInfo[1][0]!=""&&imgInfo[1][0]!="medium/"&&imgInfo[1][0]!="http://images.onset.freedom.com/"+imgInfo[0][7]+"/"){imageSlide[1]=new imageSlide(imagePrefix+imgInfo[1][0],imgInfo[1][1],imgInfo[1][2],imgInfo[1][3],imgInfo[1][4],imgInfo[1][5],imgStoryId,imgStoryDb);if(imgMaxWidth1){document.getElementById(articleDivID).innerHTML=writeImageSlider();ContentSlider("slider1",3000,"","",1)};