/* * * * * * * * * * * * * * /
/* DO NOT EDIT THIS FILE: FUNCTIONS ONLY */
/* * * * * * * * * * * * * **/
/* Sets the users homepage to the specified page */
// the homepage to make.  This is the current domain only
var d = _d=document;
var g_hpUrl = 'http://' + _d.domain + '/';
var hp = null; 
function _ge(a) {return _d.getElementById(a)}
function isHp() {
    var homePageObject = _ge('hps'); 
    return homePageObject ? homePageObject.isHomePage(g_hpUrl) : true; 
}
function setHp() {
	var homePageObject = _ge('hps');
	if(homePageObject) {
		homePageObject.setHomePage(g_hpUrl);
		if(isHp() && hp)
			// Hide the parent element to hide the seperator(|) next to the make home page div element
			hp.display = 'none';
	}
}

/* * * * * * * * * * * * * **/
/* DISPLAY 'MAKE HOME PAGE' IN IE(5+) & Firefox(2+) */
/* * * * * * * * * * * * * **/
if (window.attachEvent || window.Iterator){
	document.getElementById('makeHome').style.display='block';
	if (window.opera) {	document.getElementById('makeHome').style.display='none';}
}

/* * * * * * * * * * * * * **/
// IF JS, SHOW THE MAIN DIV
/* * * * * * * * * * * * * **/
document.getElementById('home').style.display = 'block';

/* * * * * * * * * * * * * **/
/* OMNITURE */
/* * * * * * * * * * * * * **/
var d = _d=document;
function _ge(a) {return _d.getElementById(a)}

/* * * * * * * * * * * * * **/
/* PRELOAD ROLLOVERS */
/* * * * * * * * * * * * * **/
if (document.images) {
    img1 = new Image();
    img1.src = "http://cdn.discoverbing.com/tour/images/home/column_E_on.jpg";
    img2 = new Image();
    img2.src = "http://cdn.discoverbing.com/tour/images/home/column_S_on.jpg";
    img3 = new Image();
    img3.src = "http://cdn.discoverbing.com/tour/images/home/column_H_on.jpg";
    img4 = new Image();
    img4.src = "http://cdn.discoverbing.com/tour/images/home/column_L_on.jpg";
    img5 = new Image();
    img5.src = "http://cdn.discoverbing.com/tour/images/home/column_E_on.jpg";
}
/* * * * * * * * * * * * * **/
/* CLEAR SESSION VARIABLE */
/* * * * * * * * * * * * * **/
function clearCookie(cvalue) {
	document.cookie = cvalue+'=';
	//retrieve value from cookie
	var sID, fID, result;
	//set begin index to 1st letter of value ("W")
	sID=document.cookie.substr(21,1);
	fID=document.cookie.substr(22,2);
}
