// JavaScript Document

//Image Changer
function onImg(targetId,targetURL) {
		
	if (document.getElementById){
		document.getElementById(targetId).src = targetURL;
	
	}
	else if(document.all){
		document.all(targetId).src = targetURL;
	}
	else if(document.layers){
		document.layers[targetId].src = targetURL;
	}
}


/* head image change from wyndhamvacationresorts.com */
			var ic = 10;         
			var image = new Array(ic);  
			var altText = new Array(ic); 
			var width = new Array(ic); 
			var height = new Array(ic); 
			var randomValue = -1;
			image[0] = "common/images/hdr_1.jpg"; 
			image[1] = "common/images/hdr_2.jpg"; 
			image[2] = "common/images/hdr_3.jpg"; 
			image[3] = "common/images/hdr_4.jpg"; 
			image[4] = "common/images/hdr_5.jpg"; 
			image[5] = "common/images/hdr_6.jpg"; 
			image[6] = "common/images/hdr_7.jpg"; 
			image[7] = "common/images/hdr_8.jpg"; 
			image[8] = "common/images/hdr_9.jpg"; 
			image[9] = "common/images/hdr_10.jpg"; 
			 
					altText[0,1,2,3,4,5,6,7,8,9,10] = "WYNDHAM VACATION RESORTS"; 
					width[0,1,2,3,4,5,6,7,8,9,10] = "845"; 
					height[0,1,2,3,4,5,6,7,8,9,10] = "80"; 
			 
			 
			function getImageSource() { 
				randomValue = pickRandom(ic); 
				return image[randomValue]; 
			} 
			function getAltSource() { 
				return altText[randomValue]; 
			} 
			function getWidth() { 
				return width[randomValue]; 
			} 
			function getHeight() { 
				return height[randomValue]; 
			} 
			function pickRandom(range) { 
				if (Math.random) 
				return Math.round(Math.random() * (range-1)); 
				else { 
				var now = new Date(); 
				return (now.getTime() / 1000) % range; 
				} 
			} 


