
//=================================================
// IMAGE SWAP
//=================================================
// preload images
function swapimage(el,img) {

fade(myDiv,8,50,25);
pause(1250)
changeImage('myDiv','mainImg',img);

}
function preload(imgObj,imgSrc) {

	if (document.images) {

		eval(imgObj+' = new Image()')

		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}
// load new image into 
function changeImage(layer,imgName,imgObj) {
    // wait 
   // pause(1250)
	if (document.images) {
		if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
		else document.images[imgName].src = eval(imgObj+".src")
	}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//=================================================
// Show and Hide DIV Layers
//=================================================
	function show_hide(section,image)
	{
	var is = new Is(); 
	 //Netscape 4 specific code
	 formRef = document.getElementById(section);
	if (is.nav4)
	  alert("netscape 4 browser is not supported!Please update your browser");
    //Netscape 6 specific code
	if (is.nav)
       formRef = document.getElementById(section);
    //IE4+ specific code
    if (is.ie)
	  formRef = document.all[section];
   
    if (formRef) {
			if (formRef.style.display == "") {
				formRef.style.display = "none";
			}
			else {
				formRef.style.display = "";
			}
	}
}