//var HitCnt;
var MouseInCnt = 0;
var imgPath = "images/";
var wpgImages = new Array(
						imgPath + "error.gif",
						imgPath + "words2.jpg",
						imgPath + "words3.jpg",
						imgPath + "words4.jpg",
						imgPath + "words1.jpg"
						);
var wpgImagesCnt = wpgImages.length;
var ImageCnt = 4;

//var expireDate = new Date;
//expireDate.setMonth(expireDate.getMonth()+1);

//HitCnt = eval(cookieVal("pageDisplay"));
//HitCnt++;
//if (HitCnt > ImageCnt)
//	HitCnt = 1;
//document.cookie = "pageDisplay=" + HitCnt + "; expires=" + expireDate.toGMTString();

/*
 * Change Image on mouse entry to something in the image list.
 */
function mouseImage()
{
	if (document.images)
	{	
		MouseInCnt++;
		if (MouseInCnt > ImageCnt)
			MouseInCnt = 1;
		document.headWords.src = wpgImages[MouseInCnt];
	}
}

function scpopup()
{
	promoWin = window.open('scpopup.html', 'SonoranCreative', 'width=250,height=350,left=200,top=200');
	promoWin.focus();
}
/* from IAOM index.html
if (showPromo)
{
	promoWin = window.open('iaom_us/misc/spDeals.html', 'promoWindow', 'width=430,height=380,left=100,top=100');
	promoWin.focus();
}
//			displayPromo(showPromo, 'iaom_us/misc/spDeals.html');
*/
/*
function cookieVal(cookieName)
{
	thisCookie = document.cookie.split("; ")
	for (i=0; i < thisCookie.length; i++)
	{
		if (cookieName == thisCookie[i].split("=")[0])
		{
			return (thisCookie[i].split("=")[1]);
		}
	}
	return 0;
}
function pickImage()
{
	if (document.images)
	{
		document.scsLogo.src = scsImages[HitCnt];
	}
}
*/