/**
 * Change images on rollover/js action
 * 
 * @param string: image name
 * @param string: new image src
 */
 function cI(imgName,imgSrc)
 {
	if (document.images)
		document[cI.arguments[0]].src = cI.arguments[1];
 }

/**
 * Popup window
 * 
 * @param string: URL to open
 * @param string: new window name
 * @param string: new window width
 * @param string: new window height
 */
 function pW(url,wN,w,h)
 {
	if (self.screenTop && self.screen.width)
	{
		l = ((self.screen.width/2)-1/2*w);
		t = (self.screenTop);
	}
	else if (screen.width)
	{
		l = ((self.screen.width/2)-((1/2)*w));
		t = ((self.screen.height/3)-((1/2)*h));
	}
	else
	{
		l = 0;
		t = 0;
	}
	winOpen = window.open(url,'wN','width='+w+',height='+h+',left='+l+',top='+t+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
 }
 
/**
 * Redirector
 * 
 * @param string: URL to redirect to
 */
 function redirect(url)
 {
	window.location.href = url;
 }

/**
 * Show hidden div layer
 * 
 * @param string: div to show
 */
function sD(whichId) 
{
	if (document.getElementById(whichId).style.display == 'none')
	{
		document.getElementById(whichId).style.display = 'block';
	}
	else
	{
		document.getElementById(whichId).style.display = 'none';
	}
}

/**
 * Hide div layer
 * 
 * @param string: div to hide
 */
function hD(whichId)
{
	document.getElementById(whichId).style.display = 'none';
}