function replace() {
	if(typeof sIFR == "function"){
	
	// This is the preferred "named argument" syntax
		sIFR.replaceElement(named({sSelector:"h1.sIFR", sFlashSrc:"/sifr/futura.swf", sColor:"#8B220D", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"offsetTop=0"}));
		
	//	sIFR.replaceElement(named({sSelector:"ul.sIFR li", sFlashSrc:"../sifr/futura.swf", sColor:"#8B220D", sLinkColor:"#A1A1A1", sBgColor:"#FFFFFF", sHoverColor:"#8B220D", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"offsetTop=0"}));
	
	};
}

function showHelp(classN,total,num,hHeight) {
	// sTop 	- margin-top with div#mainbody, set help's position of vertical
	// total 	- how many helps in this form
	// num 		- which help will be show
	// hHeight 	- the min height of help is 175, if the help content is not enough, set it's height	
	if (document.getElementById("helpbox")) {
		var hb = document.getElementById("helpbox");
		var tmpid = "help"+num;
		var tmphelp = document.getElementById(tmpid);
		if(hHeight){
			tmphelp.style.height = hHeight;
		}
		hideAllHelp(total);
		hb.className = classN;
		/*if(window.navigator.userAgent.indexOf("Firefox")>=1){
			var tmpTop = sTop.substring(0,3);
			//alert(tmpTop);
			hb.style.top = tmpTop-60+"px";
		}else {
			hb.style.top = sTop;
		}*/
		tmphelp.className = "enable";
	}
}
function closeHelp() {
	if (document.getElementById("helpbox")) {
		var hb = document.getElementById("helpbox");
		hb.className = "disable";
	}
}
function hideAllHelp(j) {
	for (var i =0;i<j;i++){
		var hc ="help"+i;
		var tmphelp = document.getElementById(hc);
		tmphelp.className ="disable";
		tmphelp.style.marginTop = "20px";
	}
}
window.load = replace();

