
//<SCRIPT language="JavaScript">

<!--

//breakout script
if (top.frames.length!=0) {
    if (window.location.href.replace)
        top.location.replace(self.location.href);
    else
        top.location.href=self.document.href;
}

function todayStr()
{
   daysOfWeek = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
   month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
   var today=new Date();
   var myYear=today.getYear();
   if (myYear<2000) myYear=myYear+1900;
//   return (daysOfWeek[today.getDay()] + ", ");
   return (month[today.getMonth()] + " " + today.getDate() + ", "+ myYear);
}

function bookMark()
{
if ((navigator.platform!="MacPPC") && (navigator.appName=="Microsoft Internet Explorer") && (navigator.appVersion>="4"))
	{
	window.external.AddFavorite('http://www.scottcountyiowa.com','Scott County, Iowa');
	}
else
	{
	alert("you do not have Internet Explorer");
	}
}	// end function



function emailPage()
{
alert ("This feature uses your own Email setup on this computer. If your email is not setup properly, this feature may not work.  Just enter Email address(es) and send.")
window.location="mailto:?subject=Visit www.ScottCountyIowa.com&body=%0AHello:%0A%0AYou may find something of interest at the following Web Page:%0A" + document.title + " (" + window.location.href + ")";
}

function daysBetween(earlyDate,laterDate){
   //-- Returns number of days between two date objects.
   var earlySecs=earlyDate.getTime()
   var laterSecs=laterDate.getTime()
   return Math.floor ((((((laterSecs-earlySecs)/1000)/60)/60)/24))
}


<!-- Begin Javascript chalanged browser hide 
function TimeStamp()
{
var dateObj = new Date(document.lastModified) 
var month = dateObj.getMonth() + 1 
var day = dateObj.getDate() 
var year = dateObj.getYear() 
if (year < 1000 ) var year = year + 1900 
var hours = dateObj.getHours() 
var minutes = dateObj.getMinutes() 
var seconds = dateObj.getSeconds() 
Hours = (hours < 10 ? "0" : "") + hours 
Minutes = (minutes < 10 ? "0" : "") + minutes 
Seconds = (seconds < 10 ? "0" : "") + seconds 
document.writeln("<b /><font face='arial, helvetica' size='1' color='red'>"); 
document.write("Last update: "); 
document.write(month + "/" + day +"/" + year); 
document.write(" @ " + Hours + ":" + Minutes + ":" + Seconds); 
document.writeln("</font></b>"); 
document.writeln("<br />"); 
}
// End Javascript chalanged browser hide --> 

// <SCRIPT language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
// -->

<!-- 
//breakout script seems to only work in IE.
//   if (parent.frames.length > 0) {
//    parent.location.href = location.href
//    }
//-->
/* </SCRIPT> */


/*******************************************************************
* JavaScript/CSS Font Size Changer (Persistent Between Pages)
* (c) DB Design, All rights are reserved
* http://phpscriptindex.com, phpsales@gmail.com
********************************************************************
* Script will allow user to visually change font size. Font size 
* will persist thru page change using a cookie.
********************************************************************
* Directions: Change fontElementId var to the element id you wish to
* allow users to change font sizes. 
********************************************************************
* Tip: Next span element inside normal div to inherit parent style
* but enable use to change font size.
*******************************************************************
* FireFox 2.0.0.3 Tested
* MS IE 7 Tested
* Netscape 8.1.2 Tested
* Opera 9.1 Tested
******************************************************************/

/* Module Set Default Font Size (void) */
function setDefaultFontSize(){
	var fontSize = getCookie("fontSize")
	if(fontSize){
	var element = document.getElementsByTagName('body')[0];
	element.className = fontSize;
//	document.write(fontSize);		
	}
}

/* Module Change Font (string) */
function changeFont(fontClass){
	var element = document.getElementsByTagName('body')[0];
	element.className = fontClass;
	setCookie("fontSize", fontClass, 5);
}		

/* Module Set Cookie (string, string, int) -- http://www.w3schools.com/js/js_cookies.asp */
function setCookie(c_name,value,expiredays){
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
/* Module Get Cookie (string) -- http://www.w3schools.com/js/js_cookies.asp */
function getCookie(c_name){
	if(document.cookie.length>0){
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1){ 
			c_start=c_start + c_name.length+1;
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) c_end=document.cookie.length;
			return unescape(document.cookie.substring(c_start,c_end));
		}
	}
	return false;
}

//	  function changetext() {
//		select = document.getElementById('selectSize');
//		text = document.getElementById('text');
//		text.style.fontSize = select.value;
//	  }




