function Objfader(obj,opacity) {
	/* helper function to deal specifically with images and the cross-browser differences in opacity handling */
	//var obj=theObject;
	//alert(obj.style);
	if (obj.style.MozOpacity!=null) {
		/* Mozilla's pre-CSS3 proprietary rule */
		obj.style.MozOpacity = (opacity/100) - .001;
	} else if (obj.style.opacity!=null) {
		/* CSS3 compatible */
		obj.style.opacity = (opacity/100) - .001;
	} else if (obj.style.filter!=null) {
		/* IE's proprietary filter */
		obj.style.filter = "alpha(opacity="+opacity+")";
	}
}

var theT;


function FadeDownObj(theObjName,opacity,finalOpacity) {
		if (opacity > finalOpacity) {
			//alert(theObjName);
           objId=xDOM(theObjName,0);
			
			Objfader(objId,opacity); 
			opacity -= 3; /* was 10 */
			clearTimeout(theObjName.theT);
			theObjName.theT=window.setTimeout("FadeDownObj('"+theObjName+"',"+opacity+","+finalOpacity+");", 2);  /* wae 30 */
		} else {
				clearTimeout(theObjName.theT);
				/*hde*/
				setObjVis(theObjName,'hidden');
		}
		

}


function FadeUpObj(theObjName,opacity,finalOpacity) {
		if (opacity < finalOpacity) {
			//alert(theObjName);
		   setObjVis(theObjName,'visible');
           objId=xDOM(theObjName,0);
			
			Objfader(objId,opacity); 
			opacity += 3; /* was 10 */
			//clearTimeout(theT);
			theObjName.theT=window.setTimeout("FadeUpObj('"+theObjName+"',"+opacity+","+finalOpacity+");", 2);  /* wae 30 */
		} else {
				clearTimeout(theObjName.theT);
				/*hde*/
		}
		

}


function FadeOutIntroBits(opacity,finalOpacity) {

        introObj=xDOM('intro_text',0);
        introTintObj=xDOM('tint_overlay',0);

		if (opacity > finalOpacity) {

			
			Objfader(introObj,opacity); 
			Objfader(introTintObj,opacity); 
			opacity -= 3; /* was 10 */
			clearTimeout(theT);
			theT=window.setTimeout("FadeOutIntroBits("+opacity+","+finalOpacity+");", 2);  /* wae 30 */
		} else {
			
			
			if (theT){clearTimeout(theT)};
			/*hde*/
			setObjVis('intro_text','hidden');
			setObjVis('tint_overlay','hidden');
		}
		

}

var gZUTotalLoop=20;

function ZoomUp(obj,zULoop,startSizeWidth,startSizeHeight,startPosLeft,startPosTop,endSizeWidth,endSizeHeight,endPosLeft,endPosTop,startFade,endFade,endLayer,holdingDiv,thePage,endFunc)
		{

			gZUDone=false;
			if (zULoop<1){moveObjLayer(holdingDiv,endLayer); setObjVis(holdingDiv,'visible'); };

			zULoop+=1;

		  if (zULoop <= gZUTotalLoop)
		  	{


            loopF=zULoop/gZUTotalLoop;
            oneMinus=(1-(loopF));
              
  			posLeft=oneMinus*startPosLeft+loopF*endPosLeft;
			posHeight=oneMinus*startPosTop+loopF*endPosTop;
//alert(holdingDiv+" "+posLeft);			
			//window.status="val "+posLeft;

			moveObjTo(holdingDiv,posLeft,posHeight);
			
			//alert(document.getElementById(holdingDiv).width);
			
			setObjVis(holdingDiv,'visible');
//			/setObjVis('next_content_pane_pic','visible');

			
			//if (zULoop==2){setObjVis(holdingDiv,'hidden');}
			
			/*
			setObjWidth('next_content_pane',oneMinus*startSizeWidth+loopF*endSizeWidth);
			setObjHeight('next_content_pane',oneMinus*startSizeHeight+loopF*endSizeHeight);
			*/
			
			
			/*
			var obj=xDOM('next_content_pane',1);
			
			
			
			if (obj.width)
			{
				obj.width=oneMinus*startSizeWidth+loopF*endSizeWidth;
				obj.height=oneMinus*startSizeHeight+loopF*endSizeHeight;
			    someObjId=obj.id;
	  		}
	  		else
			{
			  document.getElementById(obj).width=oneMinus*startSizeWidth+loopF*endSizeWidth;
			  document.getElementById(obj).height=oneMinus*startSizeHeight+loopF*endSizeHeight;
			  someObjId=obj;
			}
			*/

			someObjId=holdingDiv;

			window.setTimeout("ZoomUp('"+someObjId+"',"+zULoop+","+startSizeWidth+","+startSizeHeight+","+startPosLeft+","+startPosTop+","+endSizeWidth+","+endSizeHeight+","+endPosLeft+","+endPosTop+","+startFade+","+endFade+","+endLayer+",'"+holdingDiv+"','"+thePage+"','"+endFunc+"')",20);
			

	  	    return false;
	  		}
		else
			{
	  		//clearTimeout(theTimer);

	  		zULoop=0;
	  		gZUDone=true;
	  		if (thePage!=""){window.location=thePage;}
	  		if (endFade<=1){setObjVis(holdingDiv,'hidden');}
			if (endFade>10){setObjVis(holdingDiv,'visible');}
			eval(endFunc);

			//moveObjLayer(holdingDiv,endLayer);
			
	  		return true;
			}

  		}


