<!--

// the first three functions - createArray, product, and thisMinute
// are used to store and display an array of pics with description.
// They replace the script called ItemSelect.js

function createArray(n) {
	this.length = n;
	var i = 0;
	for (i = 1 ; i < n ; i++) 
		this[i] = null;	
	return this;
}


function product(a_itemURL,a_itemWidth,a_itemHeight,a_itemName,a_itemDesc) { 
	this.itemURL    = a_itemURL;
	this.itemWidth  = a_itemWidth;
	this.itemHeight = a_itemHeight;
	this.itemName   = a_itemName;
	this.itemDesc   = a_itemDesc;
	return this;
}


function thisMinute(totalAds) {
	btDate      = new Date();
	var itemNo  = (((btDate.getDate() - 1) * 1440) + (btDate.getHours() * 60) + (btDate.getMinutes())) % totalAds;  
	return itemNo;
}



// popup coupon window
function coupon(url) {
		window.open(url, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=350,left=0,top=0,screenX=0,screenY=0');
}



// new window for sites that window.name
function e2oWin(url) {
		window.open(url, '', 'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=350,left=0,top=0,screenX=0,screenY=0');
}




// goto Url
function gotoUrl() {
	args = gotoUrl.arguments;
	location.href = args[0];
}



// is browser IE or NS6.x
function iframesSupported() {
	if ((navigator.appName == 'Microsoft Internet Explorer') || (navigator.appName == 'Netscape' && navigator.appVersion.substring(0,1) >= 5)) { 
		return true;
	}
	else {
		return false;
	}
}


// contain MoreOver feed in iframe
function moreoverFeed(moFeed) {

	if (iframesSupported()) { 
		var sString = "<iframe name='mo_frame' src='" + moFeed + ".htm' valign=top width=487 height=300 marginwidth=0 marginheight=0 frameborder=1 scrolling=auto></iframe>";
		document.write(sString);
	}
	return true;
}


// set and return the number of Boomtown ads
function btAdCount() {
	return 20;
}



// -->
