

//------|Function|----------------------------------------------//
//		Brief : 	Toggle between two DIV blocks.				//
//					Show objDiv01, hide objDiv02.				//
//																//
//		Attributes :	objDiv01 == DIV, objDiv02 == DIV		//
//						funToggleDiv('divFoo', 'divBar');		//
//--------------------------------------------------------------//
function funToggleDiv(strDiv01, strDiv02) {
	if(strDiv01 != strDiv02) {
		objDiv01 = document.getElementById(strDiv01);
		objDiv02 = document.getElementById(strDiv02);
		strCurrent = strDiv01;
		objDiv01.style.display = "";
		objDiv02.style.display = "none";
	}
}

//------|Function|----------------------------------------------//
//		Brief : 	Toggle one DIV block on & off.				//
//					Show objDiv01 or hide objDiv01.				//
//																//
//		Attributes :	objDiv01 == DIV, bolShow == boolean		//
//						funToggleDiv('divFoo', true);			//
//--------------------------------------------------------------//
function funSwitchDiv(strDiv01, bolShow) {
	if(bolShow == true) {
		objDiv01 = document.getElementById(strDiv01);
		objDiv01.style.display = "";
	} else {
		objDiv01 = document.getElementById(strDiv01);
		objDiv01.style.display = "none";
	}
}

// pre fill the variable
var strCurrent = "divContent1";

//------|Function|----------------------------------------------//
//		Brief : 	Swap images for rollover effect.			//
//					Replace objImage with objNewImage.			//
//																//
//		Attributes :	objImage == img, objNewImage == img		//
//						funSwapImages(this, arrImg[0]);			//
//--------------------------------------------------------------//
function funSwapImages(objImage, objNewImage) {
	objImage.src = objNewImage.src;
}

