﻿







//function to write left bar
function upcoming_events(){
			
			document.write('' +
			'<font color=#000080 size=2 face=Verdana>Upcoming Events:</font><br>' +
			'<span lang=en-us><font color=#ff0000 size=2 face=Verdana> 12/19/09 - Santa Paws</font></span></b>'
			);
		}





function bc(){
var browser= navigator.appName;
var b_version= navigator.appVersion;
var version= parseFloat(b_version);




if (navigator.userAgent.indexOf('Safari') != -1) {
	document.write('<link rel="stylesheet" type="text/css" href="css/safaricss.css"  media="screen"/>')
}

if(navigator.appName == "Microsoft Internet Explorer")
{
	document.write('<link rel="stylesheet" type="text/css" href="css/styleindex.css"  media="screen"/>')

}

if (navigator.userAgent.indexOf('Firefox') !=-1){
	document.write('<link rel="stylesheet" type="text/css" href="css/firefoxcss.css"  media="screen"/>')
}

}










//function to write left bar
function write_menu(varLoc) {
var arrow= '<img src="images/arrow.gif" border="0" height="24" width="11">';
			
					if (varLoc == 'aboutus'){
			document.write('' +
			'<table cellpadding="0" cellspacing="0" class="moduletable">' +
			'<tr><td>' +
			'<tr align="left"><td><a href="http://www.awlshelter.org/aboutus.html" class="mainlevel" >About Us</a></td></tr>' +
			'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
			'<div style="padding-left: 4px"><img src="http://www.awlshelter.org/images/square.gif" alt="indent1" /><a href="http://www.awlshelter.org/contactus.html" class="sublevel" >Contact Us</a></div>' +
			'<div style="padding-left: 4px"><img src="http://www.awlshelter.org/images/square.gif" alt="indent1" /><a href="http://www.awlshelter.org/boardmembers.html" class="sublevel" >Board Members</a></div>' +
			'<div style="padding-left: 4px"><img src="http://www.awlshelter.org/images/bsquare.gif" alt="indent1" /></div>' +
			'</table>'
			);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/aboutus.html" class="mainlevel" >About Us</a></td></tr>' +
						'</table>'
						);
					}

		if (varLoc == 'adoptcats'){
			document.write('' +
				'<table cellpadding="0" cellspacing="0" class="moduletable">' +
				'<tr><td>' +
				'<tr align="left"><td><a href="adoptablecats.html" class="mainlevel" >Adoptable Cats</a></td></tr>' +
				'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/apolicycats.html" class="sublevel" >Adoption Policy</a></div>' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/lostandfound.html" class="sublevel" >Lost and Found</a></div>' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/sponsorapet.html" class="sublevel" >Sponsor a Cat</a></div>' +
				'</table>'
				);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/adoptablecats.html" class="mainlevel" >Adoptable Cats</a></td></tr>' +
						'</table>'
						);
					}


		if (varLoc == 'adoptdogs'){
			document.write('' +
				'<table cellpadding="0" cellspacing="0" class="moduletable">' +
				'<tr><td>' +
				'<tr align="left"><td><a href="http://www.awlshelter.org/adoptabledogs.html" class="mainlevel" >Adoptable Dogs</a></td></tr>' +
				'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/apolicydogs.html" class="sublevel" >Adoption Policy</a></div>' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/lostandfound.html" class="sublevel" >Lost and Found</a></div>' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/dogparks.html" class="sublevel" >Dog Parks</a></div>' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/happytails/happytails.html" class="sublevel" >Happy Tails</a></div>' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/sponsorapet.html" class="sublevel" >Sponsor a Dog</a></div>' +
				'</table>'
				);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/adoptabledogs.html" class="mainlevel" >Adoptable Dogs</a></td></tr>' +
						'</table>'
						);
					}


				
		if (varLoc == 'volunteer'){
			document.write('' +
			'<table cellpadding="0" cellspacing="0" class="moduletable">' +
			'<tr><td>' +
			'<tr align="left"><td><a href="volunteering.html" class="mainlevel" >Volunteering</a></td></tr>' +
			'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >C</a></div>' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >Cs</a></div>' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >N</a></div>' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >Pas</a></div>' +
			'</table>'
			);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="150%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/businessmember.html" class="mainlevel" >Business Members</a></td></tr>' +
						'</table>'
						);
					}	
	

		
				if (varLoc == 'calendar'){
			document.write('' +
			'<table cellpadding="0" cellspacing="0" class="moduletable">' +
				'<tr><td>' +
				'<tr align="left"><td><a href="http://www.awlshelter.org/calendar.html" class="mainlevel" >Calendar</a></td></tr>' +
				'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://www.awlshelter.org/pastevents.html" class="sublevel" >Past Events</a></div>' +
				'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/bsquare.gif alt="indent1" /></div>' +
				'</table>'
				);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/calendar.html" class="mainlevel" >Calendar</a></td></tr>' +
						'</table>'
						);
					}	
	
		
		

		
		
			
			if (varLoc == 'abou'){
			document.write('' +
			'<table cellpadding="0" cellspacing="0" class="moduletable">' +
			'<tr><td>' +
			'<tr align="left"><td><a href="http://www.awlshelter.org/aboutus.html" class="mainlevel" >About Us</a></td></tr>' +
			'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
			'<div style="padding-left: 4px"><img src="http://www.awlshelter.org/images/square.gif" alt="indent1" /><a href="http://www.awlshelter.org/contactus.html" class="sublevel" >Contact Us</a></div>' +
			'<div style="padding-left: 4px"><img src="http://www.awlshelter.org/images/square.gif" alt="indent1" /><a href="http://www.awlshelter.org/boardmembers.html" class="sublevel" >Board Members</a></div>' +
			'<div style="padding-left: 4px"><img src="http://www.awlshelter.org/images/bsquare.gif" alt="indent1" /></div>' +
			'</table>'
			);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/partyinthepark.html" class="mainlevel" >Party in the Park</a></td></tr>' +
						'</table>'
						);
					}

		
		
		if (varLoc == 'onlinestore'){
			document.write('' +
			'<table cellpadding="0" cellspacing="0" class="moduletable">' +
			'<tr><td>' +
			'<tr align="left"><td><a href="volunteering.html" class="mainlevel" >Volunteering</a></td></tr>' +
			'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >C</a></div>' +
			'</table>'
			);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/stonecrabs.html" target="_new" class="mainlevel" >Stone Crabs</a></td></tr>' +
						'</table>'
						);
					}	
		
		
		
		if (varLoc == 'onlinestore'){
			document.write('' +
			'<table cellpadding="0" cellspacing="0" class="moduletable">' +
			'<tr><td>' +
			'<tr align="left"><td><a href="volunteering.html" class="mainlevel" >Volunteering</a></td></tr>' +
			'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >C</a></div>' +
			'</table>'
			);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/workshops.html" target="_new" class="mainlevel" >Workshops</a></td></tr>' +
						'</table>'
						);
					}	
		
	
		
		if (varLoc == 'onlinestore'){
			document.write('' +
			'<table cellpadding="0" cellspacing="0" class="moduletable">' +
			'<tr><td>' +
			'<tr align="left"><td><a href="volunteering.html" class="mainlevel" >Volunteering</a></td></tr>' +
			'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >C</a></div>' +
			'</table>'
			);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/buyabrick.html" target="_new" class="mainlevel" >Buy a Brick</a></td></tr>' +
						'</table>'
						);
					}	
	
		
		
		
		
				
		if (varLoc == 'volunteer'){
			document.write('' +
			'<table cellpadding="0" cellspacing="0" class="moduletable">' +
			'<tr><td>' +
			'<tr align="left"><td><a href="volunteering.html" class="mainlevel" >Volunteering</a></td></tr>' +
			'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >C</a></div>' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >Cs</a></div>' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >N</a></div>' +
			'<div style="padding-left: 4px"><img src=http://www.awlshelter.org/images/square.gif alt="indent1" /><a href="http://" class="sublevel" >Pas</a></div>' +
			'</table>'
			);
		}
					else {
						document.write('' +
						'<table class="moduletable" width="100%"  border="0" cellspacing="0" cellpadding="0">' +
						'<tr align="left"><td><a href="http://www.awlshelter.org/volunteering.html" class="mainlevel" >Volunteering</a></td></tr>' +
						'</table>'
						);
					}	
	
				

	


	document.write('' +
		'<br>' + '<br>' + '<br>' +'<br>' +'<br>' +'<br>' +'<br>' +
		'</table>' 
		);

}

function left_bar(){
			document.write('' +
			
			'<div style=" width: 140px; z-index: 1;  margin-bottom: 15px" >' +
				'<div align="center">' +
				'<table width="170" border="0" cellspacing="0" cellpadding="0">' +
			'<tr>' +
				'<form name="ccoptin" action="http://visitor.constantcontact.com/d.jsp" target="_blank" method="post" style="margin-bottom:3;">' +
				'<font style="font-weight: bold; font-family:Arial; font-size:18px; color:#006699;">Join Our Email List</font><br>' +
				'<font style="font-weight: normal; font-family:Arial; font-size:10px; color:#000000;">Email:</font> <input type="text" name="ea" size="14" value="" style="font-family: Arial; font-size:10px; border:1px solid #999999;">&nbsp;<input type="submit" name="go" value="Join" class="submit"  style="font-family:Arial,Helvetica,sans-serif; font-size:11px;">' +
				'<input type="hidden" name="m" value="1102983386712">' +
				'<input type="hidden" name="p" value="oi">' +
				'</form>' +
				'</div></td>' +
				'</tr>' +
				'</table>' +
				'</div>' +
	
			'</div>' +
     		'<div style=" width: 120px; z-index: 1; margin-left: -0px" >' +
    		'<div id="newsletterheader">Paws for Thought</div>' +
    		'<img src="http://www.awlshelter.org/newsletter/current.jpg"><br>' +
    		'<a href="newsletter.html" >Read our latest newsletter</a>' +	
			'<a href="http://www.sheltercare.com/us/index.asp?CUID=FL453" target=_blank>' +
			'<img src="http://www.sheltercare.com/shelters/banner/i/sc_234x60_2a.jpg" width=120 height=60 border=0 alt="Protect your pet. ShelterCare Pet Insurance Programs" align="left"></a>' +
	   		'</div>' +
	   		'<div style=" width: 120px; z-index: 1; margin-left: -0px" >' +
    		'<a href="http://www.goodsearch.com/nonprofit/animal-welfare-league-of-charlotte-county.aspx"> <style type=text/css> div {border:0px solid green;} img {border:0px;} #badgewrapper { width:120px; font-family:arial,helvetica,verdana; } #badge_header { width:120px; height:130px; background-image: url(http://www.goodsearch.com/_gfx/badges/header-120.png); font-family:arial,helvetica,verdana; font-size:10px; } * html #badge_header { background: transparent none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://www.goodsearch.com/_gfx/badges/header-120.png"); } #badge_header_links { font-family:arial,helvetica,verdana; font-size:10px; font-weight:bold; text-align:center; color:#000; padding-top:8px; line-height:14px; position:relative; } #badge_header_links a, #badge_header_links a:visited { font-family:arial,helvetica,verdana; font-size:10px; color:#000; text-decoration:underline; } #badge_header_tagline { font-family:arial,helvetica,verdana; font-size:8px; color:#ffff00; text-align:center; padding-top:3px; line-height:10px; font-weight:normal; } #badge_content { font-family:arial,helvetica,verdana; font-size:10px; width:120px; background-image: url(http://www.goodsearch.com/_gfx/badges/bg-content-120.png); } #badge_content_text { font-family:arial,helvetica,verdana; font-size:10px; width:85%; margin:0px auto; line-height:16px; padding-bottom:5px; text-align:center; color:#333; } #badge_linkblock { font-family:arial,helvetica,verdana; font-size:9px; width:120px; height:70px; background-image: url(http://www.goodsearch.com/_gfx/badges/links-120.png); border:0px solid blue; } .badge_link { font-family:arial,helvetica,verdana; font-size:9px; width:85%; color:#003366; margin:0px auto; padding-top:8px; position:relative; left:3px; } #badge_linkblock a, #badge_linkblock a:visited { font-family:arial,helvetica,verdana; font-size:9px; color:#000000; line-height:12px; text-decoration:underline; } .badge_gobutton { width:16px; float:left; clear:left; } .badge_golink { margin-left:23px; line-height:9px; } #badge_shareblock { font-family:arial,helvetica,verdana; font-size:9px; width:120px; height:34px; background-image: url(http://www.goodsearch.com/_gfx/badges/footer-120.png); } * html #badge_shareblock { background: transparent none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://www.goodsearch.com/_gfx/badges/footer-120.png"); } #badge_shareblock_link { font-family:arial,helvetica,verdana; font-size:9px; width:100%; text-align:center; padding-top:7px; position:relative; } #badge_shareblock_link img { padding-right:5px; position:relative; top:2px; display:inline; } #badge_shareblock_link a, #badge_shareblock_link a:visited { font-family:arial,helvetica,verdana; font-size:9px; color:#fff; text-decoration:underline; } </style> <div id=badgewrapper> <div id=badge_header> <div id=badge_header_links><a href="http://www.goodsearch.com/" target=_blank>GoodSearch</a><br />&amp; <a href="http://www.goodsearch.com/goodshop.aspx" target=_blank>GoodShop</a> </div> <div id=badge_header_tagline>YOU SEARCH OR SHOP<br />WE GIVE! </div><a href="http://www.goodsearch.com/?charityid=911429" target=_blank><img style="POSITION: relative; WIDTH: 105px; DISPLAY: block; HEIGHT: 20px; TOP: 20px; LEFT: 7px" alt="Search the Web now" src="http://www.goodsearch.com/_gfx/spacer.gif" /></a> <a href="http://www.goodsearch.com/goodshop.aspx?charityid=911429" target=_blank><img style="POSITION: relative; WIDTH: 105px; DISPLAY: block; HEIGHT: 20px; TOP: 21px; LEFT: 7px" alt="Money-saving coupons" src="http://www.goodsearch.com/_gfx/spacer.gif" /></a> </div> <div id=badge_content> <div id=badge_content_text>Raise money for <span style="font-weight: bold; color: #fff;" id=badge120nameSpan><a href="http://www.goodsearch.com/nonprofit/animal-welfare-league-of-charlotte-county.aspx" style="font-weight: bold; color: #000;">Animal Welfare League of Charlotte County</a></span> just by searching the web and shopping online! </div></div> <div id=badge_linkblock> <div class=badge_link> <div class=badge_gobutton><a href="http://www.goodsearch.com/?charityid=911429" target=_blank><img alt="Search the Web now" src="http://www.goodsearch.com/_gfx/badges/button-go.png" /></a></div> <div class=badge_golink><a href="http://www.goodsearch.com/" target=_blank>Search the web now!</a></div></div> <div class=badge_link> <div class=badge_gobutton><a href="http://www.goodsearch.com/goodshop.aspx?charityid=911429" target=_blank><img alt="Money-saving coupons" src="http://www.goodsearch.com/_gfx/badges/button-go.png" /></a></div> <div class=badge_golink>' +
    		'<a href="http://www.goodsearch.com/goodshop.aspx" target=_blank>Money-saving coupons!</a></div></div></div> <div id=badge_shareblock> <div id=badge_shareblock_link><a href="http://www.goodsearch.com/getinvolved.aspx#badge" target=_blank><img alt="Add GoodSearch and GoodShop to your site" src="http://www.goodsearch.com/_gfx/badges/icon-email.png" /></a> <a href="http://www.goodsearch.com/getinvolved.aspx#badge" target=_blank>Add to your site</a> </div></div></div></a>' +
    		'</div>' 
	   			);

}

function pt(){

			document.write('' +
				'<table cellpadding="0" cellspacing="0" border=0 align=right class="pttable">' +
				'<tr><td><img src="http://www.awlshelter.org/images/print.png" alt="print"><a href="javascript:printerFriendlyView();" >Printable View</a></td>' +
				'<td><img src="http://www.awlshelter.org/images/normalview.png"><a href="javascript:normalView();" >Normal View</a></td>' +
				'<td><img src="http://www.awlshelter.org/images/email.png"><a href="javascript:emailPage();">E-mail</a></td>' +
				'<td><img src="http://www.awlshelter.org/images/bookmark.png"><a href="javascript:addToFavorites();">Bookmark</a></td></tr>' +
				'</table>'
			);
}

function header_menu(){

			document.write('' +
				'<div id=header_menucss>' +
				'<a href="http://www.awlshelter.org/index.html" >Home</a> | ' +
				'<a href="http://www.awlshelter.org/sitemap.html">Site map</a> | ' +
				'<a href="http://www.awlshelter.org/faq.html">FAQ</a> | ' +
				'<a href="http://www.awlshelter.org/contactus.html"> Contact Us</a> | ' +
				'<a href="http://www.awlshelter.org/donate.html">Donate</a>| ' +
				'<a href="http://www.awlshelter.org/donations.html">Donate</a>' +
				'</div>'
			);
}

function right_bar(){
			document.write('' +
     		'<div style=" width: 130px; z-index: 1;  margin-bottom: 20px; margin-left: 10px; " >' +
     		'<div id="searchsiteheader">Search Site</div>' +
    		'<form method="get" action="http://www.awlshelter.org/search.html">' +
			'<input type="text" name="zoom_query" size="10" class="formbutton"/>' +
			'<input type="submit" value="Go" class="searchsignupbutton"/>' +
			'</form></div>'
	   			);

}




function footer(){
			document.write('' +
     		'<div style=" width: 120px; z-index: 1; margin-left: -0px" >' +
    		'</div>'
	   			);

}





/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 * collective initialization routines
 * -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */

window.onload = function() {	
	loadStyle();
	init();
}


/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 * style switcher functions written by Paul Sowden
 * details @ ALA: http://www.alistapart.com/stories/alternate/
 * -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */

var largerText = false;
 
function toggleText(linkObj) {
	if (! largerText) {
		largerText = true;
		if (linkObj)

			linkObj.innerHTML = 'shrink type';
		createCookie('style', 'larger', 365);
		setActiveStyleSheet('Larger text');
	} else {
		largerText = false;
		if (linkObj)
			linkObj.innerHTML = 'enlarge type';
		createCookie('style', 'normal', 365);
		setActiveStyleSheet('');
	}
}

function setActiveStyleSheet(title) {
	if (! document.getElementsByTagName) return;
	
	var i, a, main;
	for(i=0; (a = document.getElementsByTagName('link')[i]); i++) {
		if(a.getAttribute('rel').indexOf('style') != -1 && a.getAttribute('title')) {
			a.disabled = true;
			if (a.getAttribute('title') == title) a.disabled = false;
		}
		// alert(a.getAttribute('title') + ': ' + a.disabled);
	}
}

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = '; expires='+date.toGMTString();
	}
	else expires = '';
	document.cookie = name+'='+value+expires+'; path=/';
}

function readCookie(name) {
	var nameEQ = 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(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function loadStyle(e) {
	var cookie = readCookie("style");

	if (cookie == 'larger') {
		if (document.getElementById) {
			if (document.getElementById('toggleTextLink') != null) {
				if (! largerText) {
					toggleText(document.getElementById('toggleTextLink'));
				} else {
					document.getElementById('toggleTextLink').innerHTML = "shrink type"
				}
			}
		}
	}
}

function emailPage(){
   var loc =  top.location;
   var to = '';
   var subject = top.document.title;
  
   var body = 'Look at this page that I found on The Animal Welfare League\' website:\r\r';   

  	// BUILD MAIL MESSAGE COMPONENTS 
  	var doc = "mailto:" + to +  
    	"?subject=" + escape(subject) + 
    	"&body=" + escape(body) + escape(loc); 

  	// POP UP EMAIL MESSAGE WINDOW
  	window.location = doc;
}



function printPage(url, w,h){
window.open(url, 'webpage', 'toolbar=no,menubar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes, width= '+w+', height='+h+' ');

}


   function printerFriendlyView()
   {
      document.styleSheets[0].href = "css/print.css";

   }

   function normalView()
   {
      document.styleSheets[0].href = "css/style.css";
   }




 function addToFavorites()
 {
 	  var urlAddress = "http://www.awlshelter.org";
 var pageName = document.title;
  if (window.external)
  {
   window.external.AddFavorite(urlAddress,pageName)
  }
  else
  { 
   alert("Sorry! Your browser doesn't support this function.");
  }
 }
// -->

function init() {} 
