//<!--
/////////////////////////////////////////////////////////////////////////////////////////////////

//Functions for collapsible boxes

function changeClass (oldClassName, elementID, cookieName)
{
    var newClassName = (oldClassName == 'closeBox' ? 'open' : 'close') + 'Box';
    var newCookieState = (oldClassName == 'closeBox' ? 'isClosed' : 'isOpen');
    setCookie(cookieName, newCookieState);
    document.getElementById(elementID).className = newClassName;
}

function setCookie(cookieName,value)
{
    var expireDays = 15;
    var expireDate = new Date();
    expireDate.setDate(expireDate.getDate() + expireDays);
    document.cookie = cookieName + "=" + escape(value) + ";expires=" + expireDate.toGMTString();
}

/////////////////////////////////////////////////////////////////////////////////////////////////

//Function for popup window

function NewWindow(mypage, myname, w, h, scroll)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=0,toolbar=0,location=0,statusbar=0,menubar=0'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

/////////////////////////////////////////////////////////////////////////////////////////////////

//Functions used in LookingFor

function HideElement(elementID)
{
    document.getElementById(elementID).style.display = "none";
}

//-->
