<!-- custom javascript by Design By Eve | http://designbyeve.com

function swapImage(whichBtn,whichImg) {
	document[whichBtn].src=whichImg;
}

function popMusic(url) {
window.open(url,'popmusic','width=300,height=660,resizable=1');
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1; 
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return "";
}

function checkCookie() {
	visited = getCookie('visited');
	if (visited == 1) {
		return;
	} else {
		visited = 1;
		setCookie('visited', visited, 1);
		checkBrowser();
	}
}

aolerror = "You are viewing the site with an AOL browser. Some of the site's functions do not work properly when using this browser. It is recommended you view the site in Firefox, Internet Explorer, Safari, or Opera. If you are having difficulties placing your online order, you may contact us at 877-881-1248 or service@cinderblock.com.";

function checkBrowser(){
	if (navigator.appVersion.indexOf("AOL") != -1) {
 		alert(aolerror);
 	} else {
 		return;
	}
}

var bannerArray = new Array();
bannerArray[0] = "index.aspx?products=tab5#start";
bannerArray[1] = "content.aspx?page=tour-supply";
bannerArray[2] = "http://myspace.com/cinder_block";
bannerArray[3] = "content.aspx?page=rock-stars";
bannerArray[4] = "search-results-products.aspx?search=cinder+block";
bannerArray[5] = "search-results-products.aspx?search=premium";
			
function AdRand() {
	i = Math.floor(Math.random()*bannerArray.length);
	document.getElementById('adBanner').innerHTML = '<a href="'+ bannerArray[i] + '"><img src="images/CB-banner' + i + '.jpg"></a><br>';
	window.setTimeout("AdRand()",8000);
}

-->