function SHPreloadImage(imgUrl){
	var img1 = new Image();

	img1.src = imgUrl;
}

function SHShowHide() {
	if (arguments[0] == '') return;

	var type = arguments[1];
	var itm = document.getElementById(arguments[0]);

	if(type==0) SHSetStyleVis(itm,false);
	else if(type==1) SHSetStyleVis(itm,true);
	else if(type==2) {
		if (SHGetStyleVis(itm) == 0) SHSetStyleVis(itm,true);
		else SHSetStyleVis(itm,false);
	}
}

function SHSetStyleVis(itm,showItem) {
	if (showItem) {
		itm.style.visibility = 'visible';
	} else {
		itm.style.visibility = 'hidden';
	}
}

function SHGetStyleVis(itm) {
	if (itm.style.visibility == 'hidden') {
		return 0;
	} else {
		return 1;
	}

}

function swapImage(imgId, imgPath) {

	document.getElementById(imgId).src = imgPath;

}
