﻿//=============================================================================
// Primary javascript file for the web site wwww.pawsahead.com
//
// © Wild Hare Productions 2008. All rights reserved.
//
// Portions of this file are copyright their respective owners.
// Copyright notice for these sections is given as appropriate.
//=============================================================================


//=============================================================================
// This function masks e-mail addresses so spam-bots can't farm the addresses 
// This code is based on something I saw somewhere and modified for this use.
//=============================================================================
function makemail(name,domain)
{ 
	document.location.href = "mail" + "to:" + name + "@" + domain  + "?subject=Paws Ahead:"; 
}


//=============================================================================
//=============================================================================
function PopupPic(sPicURL)
{ 
	window.open( "popup.htm?" + sPicURL, "", "resizable=1,HEIGHT=240,WIDTH=320"); 
}



var menuImages = new Array()
menuImages[0]  = "images/menu/IMG_2512.jpg"
menuImages[1]  = "images/menu/IMG_6798.jpg"
menuImages[2]  = "images/menu/IMG_6858.jpg"
menuImages[3]  = "images/menu/IMG_6875.jpg"
menuImages[4]  = "images/menu/IMG_6882.jpg"
menuImages[5]  = "images/menu/IMG_6899.jpg"
menuImages[6]  = "images/menu/IMG_7070.jpg"
menuImages[7]  = "images/menu/IMG_7224.jpg"
menuImages[8]  = "images/menu/IMG_7446.jpg"
menuImages[9]  = "images/menu/IMG_7502.jpg"
menuImages[10] = "images/menu/IMG_7520.jpg"
menuImages[11] = "images/menu/IMG_7890.jpg"
menuImages[12] = "images/menu/IMG_7896.jpg"
menuImages[13] = "images/menu/IMG_8010.jpg"


// ======================================
// Do not change anything below this line
// ======================================
var cnt = menuImages.length;

var preBuffer = new Array()
for (i = 0; i < cnt; i++) {
   preBuffer[i] = new Image()
   preBuffer[i].src = menuImages[i]
}

function showImage(){
var whichImage = Math.round(Math.random()*(cnt - 1));
document.write('<img src="' + menuImages[whichImage] + '" style="margin: 10px 10px" />');
}




