function show_home(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_17', home_over); return true;
}}
function hide_home(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_17', home_sticky); return true;
}}

function show_about(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_19', about_over); return true;
}}
function hide_about(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_19', about_sticky); return true;
}}

function show_products(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_21', products_over); return true;
}}
function hide_products(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_21', products_sticky); return true;
}}

function show_purchase(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_23', purchase_over); return true;
}}
function hide_purchase(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_23', purchase_sticky); return true;
}}

function show_contact(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_25', contact_over); return true;
}}
function hide_contact(){if (preloadFlag == true){
if (document.images)
changeImg('ScentsPaws_25', contact_sticky); return true;
}}



function newImg(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImg() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImg.arguments.length; i+=2) {
			document[changeImg.arguments[i]].src = changeImg.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImg() {
	if (document.images) {
		ScentsPaws_17_over 		= newImg("/4paws/graphics_slices/ScentsPaws_17-over.gif");
		ScentsPaws_17_sticky 	= newImg("/4paws/graphics_slices/ScentsPaws_17-sticky.gif");
		ScentsPaws_19_over 		= newImg("/4paws/graphics_slices/ScentsPaws_19-over.gif");
		ScentsPaws_19_sticky 	= newImg("/4paws/graphics_slices/ScentsPaws_19-sticky.gif");
		ScentsPaws_21_over 		= newImg("/4paws/graphics_slices/ScentsPaws_21-over.gif");
		ScentsPaws_21_sticky 	= newImg("/4paws/graphics_slices/ScentsPaws_21-sticky.gif");
		ScentsPaws_23_over 		= newImg("/4paws/graphics_slices/ScentsPaws_23-over.gif");
		ScentsPaws_23_sticky 	= newImg("/4paws/graphics_slices/ScentsPaws_23-sticky.gif");
		ScentsPaws_25_over 		= newImg("/4paws/graphics_slices/ScentsPaws_25-over.gif");
		ScentsPaws_25_sticky 	= newImg("/4paws/graphics_slices/ScentsPaws_25-sticky.gif");
		
		if (sticky[0] == "true"){
		home_sticky 	= '/4paws/graphics_slices/ScentsPaws_17-sticky.gif';
		home_over		= '/4paws/graphics_slices/ScentsPaws_17-sticky.gif'
		}
		else {
		home_sticky 	= '/4paws/graphics_slices/ScentsPaws_17.gif';
		home_over		= '/4paws/graphics_slices/ScentsPaws_17-over.gif'
		};
		
		if (sticky[1] == "true"){
		about_sticky 	= '/4paws/graphics_slices/ScentsPaws_19-sticky.gif';
		about_over		= '/4paws/graphics_slices/ScentsPaws_19-sticky.gif'
		}
		else {
		about_sticky 	= '/4paws/graphics_slices/ScentsPaws_19.gif';
		about_over		= '/4paws/graphics_slices/ScentsPaws_19-over.gif'
		};
		
		if (sticky[2] == "true"){
		products_sticky = '/4paws/graphics_slices/ScentsPaws_21-sticky.gif';
		products_over	= '/4paws/graphics_slices/ScentsPaws_21-sticky.gif'
		}
		else {
		products_sticky = '/4paws/graphics_slices/ScentsPaws_21.gif';
		products_over	= '/4paws/graphics_slices/ScentsPaws_21-over.gif'
		};
		
		if (sticky[3] == "true"){
		purchase_sticky = '/4paws/graphics_slices/ScentsPaws_23-sticky.gif';
		purchase_over	= '/4paws/graphics_slices/ScentsPaws_23-sticky.gif'
		}
		else {
		purchase_sticky = '/4paws/graphics_slices/ScentsPaws_23.gif';
		purchase_over	= '/4paws/graphics_slices/ScentsPaws_23-over.gif'
		};
		
		if (sticky[4] == "true"){
		contact_sticky 	= '/4paws/graphics_slices/ScentsPaws_25-sticky.gif';
		contact_over	= '/4paws/graphics_slices/ScentsPaws_25-sticky.gif'
		}
		else {
		contact_sticky 	= '/4paws/graphics_slices/ScentsPaws_25.gif';
		contact_over	= '/4paws/graphics_slices/ScentsPaws_25-over.gif'
		};

		preloadFlag = true;
		hide_home();
		hide_about();
		hide_products();
		hide_purchase();
		hide_contact();
		setTabs();
	}
}

function setTabs() {if (preloadFlag == true){
		changeImg('ScentsPaws_17', home_sticky);
		changeImg('ScentsPaws_19', about_sticky);
		changeImg('ScentsPaws_21', products_sticky);
		changeImg('ScentsPaws_23', purchase_sticky);
		changeImg('ScentsPaws_25', contact_sticky);
}}


/***********************************************
* Required field(s) validation v1.10- By NavSurf
* Visit Nav Surf at http://navsurf.com
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function formCheck(formobj){

	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}


//Get cookie routine by Shelley Powers 
		function get_cookie(Name) {
  		var search = Name + "="
  		var returnvalue = "";
  			if (document.cookie.length > 0) {
    		offset = document.cookie.indexOf(search)
    		// if cookie exists
    			if (offset != -1) { 
     			offset += search.length
      		// set index of beginning of value
     			end = document.cookie.indexOf(";", offset);
      		// set index of end of cookie value
      			if (end == -1) end = document.cookie.length;
      			returnvalue=unescape(document.cookie.substring(offset, end))
      			}
   			}
  		return returnvalue;
		}
