/* START  ** **  Barebones Browser Detect */
var browserVersion = parseInt(navigator.appVersion);
var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_safari = ((agt.match(/safari/)) ? true : false);
var is_ns4 = (document.layers) ? true : false;
/* END ** Barebones Browser Detect */

/* START  ** ** Core DOM object property "Homogenization" */
var hidden = (document.layers) ? "hide" : "hidden";
var visible = (document.layers) ? "show" : "visible";
var toggle = "toggle";
var px = (document.layers) ? "" : "px";
var style = (document.layers) ? "" : ".style";
/* END  ** ** Core DOM object property "Homogenization" */

/* START  ** **  Macromedia scripts */
/* NOTE:  (renamed from default 'MM_findObj', MM_findObj() provided as an "alias" */
function findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
MM_findObj = findObj;
/* END ** ** Copyright 2002-2006 Adobe */

/* START  ** ** Object/Object.style referencing */
function getObjRef(objId)
{
	objRef = false;
	objRef = (document.layers) ? findObj(objId) : (document.getElementById) ? eval("document.getElementById(\"" + objId + "\")") : (document.all) ? eval("document." + objId) : false;
	if(document.layers && !objRef) { objRef = (typeof document[objId] != "undefined") ? document[objId] : false; };
	if(!objRef)
		objRef = findObj(objId);
	return objRef;
}
function getStyRef(objId)
{
	styRef = false;
	styRef = (document.layers) ? findObj(objId) : (document.getElementById) ? eval("document.getElementById(\"" + objId + "\").style") : (document.all) ? eval("document." + objId + ".style") : false;
	if(document.layers && !styRef) { styRef = (typeof document[objId] != "undefined") ? document[objId] : false; };
	return styRef;
}
/* END  ** ** Object/Object.style referencing */

/* START  ** ** Simple Image Rollover */
function swapImg(imgName,fullPath)
{
	if(!imgName)
		return false;
	imgObj = findObj(imgName);
	if(!imgObj)
		imgObj = getObjRef(imgName);
	if(!imgObj)
		return false;
	fullPath = (fullPath) ? fullPath : "";
	imSrc = imgObj.src.toString();
	imgObj.src = (fullPath != "") ? fullPath : imSrc;
	return imgObj.src;
}
/* END  ** ** Simple Image Rollover */

/* START  ** ** "Easy-Bake" Image Rollover */
/* NOTE:  REQUIRES ALL FUNCTIONS ABOVE */
function rollOver(obj,oldSuffix,suffix)
{
	if(!obj)
		return;
	suffix = (typeof suffix != "undefined") ? suffix : null;
	oldSuffix = (typeof oldSuffix != "undefined") ? oldSuffix : null;
	obj.rollId = obj.id.toString().replace(/_a/,'');
	obj.oldSrc = getObjRef(obj.rollId).src;
	obj.rollRe = new RegExp(obj.rollId + ((oldSuffix != null) ? oldSuffix : "") + '(\\.[a-z0-9]{3,4})','i');
	swapImg(obj.rollId,getObjRef(obj.rollId).src.toString().replace(obj.rollRe,(obj.rollId + suffix + '$1')));
}

function rollOut(obj)
{
	if(!obj)
		return;
	imgObj = getObjRef(obj.id.toString().replace(/_a/,''));
	imgName = (typeof imgObj.name != "undefined" && imgObj.name != "") ? imgObj.name : ((typeof imgObj.id != "undefined" && imgObj.id != "") ? imgObj.id : null);
	if(!imgName)
		imgObj.name, imgName = obj.id.toString().replace(/_a/,'');
	swapImg(imgName,obj.oldSrc);
}
/* END  ** ** "Easy-Bake" Image Rollover */

/* START  ** ** IE Browser Check */
function checkForIE()
{
    if(!document.all)
    {
        prompt('This site uses ActiveX Controls and requires\nthe use of the Internet Explorer browser\n\nPlease come back using Internet Explorer and\ncut and past the URL below.',document.location);
    }
}
/* END ** ** IE Browser Check */