// JavaScript Document
//------------------------------------Start Preload Script---------------------------------------
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		mouse_over = newImage("images/mouseover.gif");
		preloadFlag = true;
	}
}

preloadImages();
//------------------------------------End Preload Script---------------------------------------

//--------------------------------Start Image Replace Script-----------------------------------
var bdis1 = "<img src=\"";
var edis1 = " width=\"173\" height=\"155\" border=\"0\" alt=\"Happy, well taken care of pet.\" title=\"Happy, well taken care of pet.\">";
var rnumb = "";
var img = "";

rnumb += Math.floor(Math.random()*12);
img = rnumb;

function imageReplace ()
{
	if (img == "0") {
	document.write(bdis1+ "images/index_02_a.jpg\"" +edis1);
	}
	if (img == "1") {
	document.write(bdis1+ "images/index_02_b.jpg\"" +edis1);
	}
	if (img == "2") {
	document.write(bdis1+ "images/index_02_c.jpg\"" +edis1);
	}
	if (img == "3") {
	document.write(bdis1+ "images/index_02_d.jpg\"" +edis1);
	}
	if (img == "4") {
	document.write(bdis1+ "images/index_02_e.jpg\"" +edis1);
	}
	if (img == "5") {
	document.write(bdis1+ "images/index_02_f.jpg\"" +edis1);
	}
	if (img == "6") {
	document.write(bdis1+ "images/index_02_g.jpg\"" +edis1);
	}
	if (img == "7") {
	document.write(bdis1+ "images/index_02_h.jpg\"" +edis1);
	}
	if (img == "8") {
	document.write(bdis1+ "images/index_02_i.jpg\"" +edis1);
	}
	if (img == "9") {
	document.write(bdis1+ "images/index_02_j.jpg\"" +edis1);
	}
	if (img == "10") {
	document.write(bdis1+ "images/index_02_k.jpg\"" +edis1);
	}
	if (img == "11") {
	document.write(bdis1+ "images/index_02_l.jpg\"" +edis1);
	}
}
function imageReplaceSub ()
{
	if (img == "0") {
	document.write(bdis1+ "../images/index_02_a.jpg\"" +edis1);
	}
	if (img == "1") {
	document.write(bdis1+ "../images/index_02_b.jpg\"" +edis1);
	}
	if (img == "2") {
	document.write(bdis1+ "../images/index_02_c.jpg\"" +edis1);
	}
	if (img == "3") {
	document.write(bdis1+ "../images/index_02_d.jpg\"" +edis1);
	}
	if (img == "4") {
	document.write(bdis1+ "../images/index_02_e.jpg\"" +edis1);
	}
	if (img == "5") {
	document.write(bdis1+ "../images/index_02_f.jpg\"" +edis1);
	}
	if (img == "6") {
	document.write(bdis1+ "../images/index_02_g.jpg\"" +edis1);
	}
	if (img == "7") {
	document.write(bdis1+ "../images/index_02_h.jpg\"" +edis1);
	}
	if (img == "8") {
	document.write(bdis1+ "../images/index_02_i.jpg\"" +edis1);
	}
	if (img == "9") {
	document.write(bdis1+ "../images/index_02_j.jpg\"" +edis1);
	}
	if (img == "10") {
	document.write(bdis1+ "../images/index_02_k.jpg\"" +edis1);
	}
	if (img == "11") {
	document.write(bdis1+ "../images/index_02_l.jpg\"" +edis1);
	}
}
//--------------------------------End Image Replace Script-----------------------------------