//===================================================================================================================
// Cross Browser DHTML Functions
//===================================================================================================================



// Swap Image Src

function swapImg(imgObj, imgSrc) {
	document.images[imgObj].src = eval(imgSrc + '.src');
}



// Pop-up Window
function popUp(theURL,width,height,more)
{
		var popup=window.open(theURL,'popup','width='+width+',height='+height+','+more);
		popup.focus();
}


function showBlock(which,how) {
	if (isExp) {
		eval ('document.'+pre+which+suf+'.display="'+how+'"');
		return;
	}
	else if (isW3C || isOpera) {
		obj=document.getElementById(which);
		obj.style.display=how;
	}
}



function swapClass(which,name) {
	if (isExp) {
		eval ('document.'+pre+which+'.className="'+name+'"');
		return;
	}
	else if (isW3C || isOpera) {
		obj=document.getElementById(which);
		obj.className=name;
	}
}


function getwindowWidth() {
	if (isExp) {
		return document.body.clientWidth;
	}
	else if (isW3C || isOpera) {
		return window.innerWidth;
	}
	return;
}

function getwindowHeight() {
	if (isExp) {
		return document.body.clientHeight;
	}
	else if (isW3C || isOpera) {
		return window.innerHeight;
	}
	return;
}



//-->

