// <!--
// JavaScript Document
function set_cookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
}

function get_cookie(name) {
    var name_eq = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(name_eq) == 0) return c.substring(name_eq.length,c.length);
    }
    return null;
}


if(get_cookie("page_size") != null){   
    document.write('<style>');
    document.write('body{');
    document.write('font-size:'+ get_cookie("page_size") + '%');
    document.write('}');
    document.write('</style>')
}else{
    document.write('<style>');
    document.write('body{');
    document.write('font-size: 80%');
    document.write('}');
    document.write('</style>')   
}
    

// -->


// <!-- Javascript that lets users know they are leaving our site and we are not responsible for the external content 
function initAll() {
	function initAll() {
		document.getElementById("redirect").onclick = clickHandler;
	}

	function clickHandler() {
		if(this.toString().indexOf("pimahealth")<0) {
			alert("These links do not constitute an endorsement of these organizations or their programs by the Pima County Health Department. Pima County Health Department is not responsible for the content of the individual organization or external web page."); }
	}

// -->

// <!-- Javascript to see when page was last modified
// check that there is a lastModified date

if( Date.parse(document.lastModified) !=0)

//if so, write a message stating what that date is
document.write(document.lastModified);}
