function newWindow() {
	searchWindow = window.open('http://IsellUtahRealEstate.utahrealestate.com','searchWin', 'menubar=yes,location=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=700,height=520')
	}

function newWindow2() {
	searchWindow = window.open('http://browse.IsellUtahRealEstate.utahrealestate.com/','searchWin', 'menubar=yes,location=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=700,height=520')
	}

function newWindow3() {
	searchWindow = window.open('http://www.isellutahrealestate.com/ad.asp','searchWin', 'menubar=yes,location=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=700,height=520')
	}
function newWindow4() {
	searchWindow = window.open('http://www.isellutahrealestate.com/inforequest.asp','searchWin', 'menubar=yes,location=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=550,height=650')
	}




/********************************************************
	Ad created 12/21/2004 rotator for Dan Walker
	Dan, this could also be used for a slide show maybe???
*********************************************************/

// create ad array...
var ads = new Array();
ads[0] = "http://www.isellutahrealestate.com/hardison/images/front (Custom).JPG|http://www.1076w1875n.info|Immacuate! 3 Bedroom 2 Bath, $214,900";
ads[1] = "http://www.isellutahrealestate.com/hemlock/images/FrontD (Custom).jpg|http://www.4643hemlock.info|Home business opportunity with attached 640 sq ft workshop/studio! $214,900";
ads[2] = "http://www.isellutahrealestate.com/springglen/images/front (Custom).jpg|http://www.3246springglen.info|3 Bed, 2 Bath, Open Plan, Hardwoods & Great Buy, $189,900";
//ads[3] = "http://www.isellutahrealestate.com/438249/frontA.jpg|http://www.isellutahrealestate.com/438249/|<b>SOLD - $159,900 Located in West Jordan</b>";
//ads[4] = "http://www.isellutahrealestate.com/images/415872.jpg|http://www.isellutahrealestate.com/415872|<b>SOLD - Suncrest - Vacant Land/Buildable Lot $110,000</b>";
//ads[5] = "http://www.isellutahrealestate.com/442563/442563.jpg|http://www.isellutahrealestate.com/442563/|<b>SOLD - West Jordan, $169,900</b>";
//ads[6] = "http://www.isellutahrealestate.com/images/427542/front.jpg|http://www.isellutahrealestate.com/427542|<b>SOLD - $169,900 Located in West Jordan</b>";
//ads[7] = "http://www.isellutahrealestate.com/462683/front.jpg|http://www.isellutahrealestate.com/462683/|<b>SOLD - Taylorsville, $134,900</b>";
//ads[8] = "http://www.isellutahrealestate.com/images/287173.jpg|http://www.isellutahrealestate.com/287173|<b> SOLD - Pine Mountain $27,000</b>";
//ads[9] = "http://www.isellutahrealestate.com/446595/446595.jpg|http://www.isellutahrealestate.com/446595|<b>SOLD - Crosspointe Condo, $85,500</b>";

// preload images...
for (i=0; i<ads.length; i++){
	var x = ads[i].split('|');
	var img = new Image();
	img.src = x[0];
}

// set the count...
var count = ads.length -1;

// this creates the html for the ad and places it into the 'rotate_content' div...
function getAd(){
	if (count < 0)
		count = ads.length -1;

	var obj = document.getElementById("rotate_content");
	var ad = new Array();
	ad = ads[count].split('|')
	var img = "<img src='" + ad[0] + "' alt='" + ad[2] + "' style='border:0;' />";
	var anchr = "<a href='" + ad[1] + "' target ='_blank'>" + img + "<\/a>";
	var adtxt = "<p><b>" + ad[2] + "<\/b><\/p>";
	output = anchr + adtxt;
	obj.innerHTML = output;

	// decrement the count...
	count--;
}

// set the interval for the rotation...
var theInterval;
function setInt(){
	theInterval = window.setInterval("getAd()",8000); // milliseconds...
}
	
////////////////////////////////////////////////////////