	var menuNew = new Array();
	/* var a = new ip_layers("m1","m1_list",500,0,"div_m1")
		m1		=>	anchor tag
		m1_list	=>	detail layer
		500		=>	animate Speed
		0			=>	Initial State	(Default=>Close)
		div_m1	=>	layer that have the "anchor"
	*/
	function ip_layers(aID,divID,animateTime,initialState,layerID,allowMultipleF){
		this.anchor = document.getElementById(aID);
		this.animateTime = animateTime;
		this.initialState = initialState;
		this.rel = String(this.anchor.getAttribute('rel'));
		this.divObj = document.getElementById(divID);
		this.divH = parseInt(this.divObj.offsetHeight);
		this.divObj.style.height = this.divH + "px";
		this.playEffect = true;
		this.onclickF = allowMultipleF || null;
		this.divObj.style.overflow = "hidden";
		if(layerID) this.layerObj = document.getElementById(layerID); else this.layerObj = new Object();
		this.layerObj.style.cursor = "pointer";
		if(initialState==1){
			this.status = "open";
			this.strClass = "expand";
		}else{
			this.divObj.style.height=0+"px";
			this.status = "close";
			this.strClass = "collapse";
		}
		this.layerObj.className = this.strClass;
		var thisObj = this;
		if(this.rel !=""){
			this.onclickF = thisObj.anchor.getAttribute("onclick");
			/*ip.print("click F = "+this.onclickF);*/
			thisObj.anchor.onclick = function(){
				hideAll(thisObj);
				thisObj.showEffect();
				if(ie){
					var startFrom = String(thisObj.onclickF).indexOf("{");
					eval(String(thisObj.onclickF).substr(startFrom,String(thisObj.onclickF).length - 1));
				}else{
					eval(thisObj.onclickF);
				}
			};
		}
	};
	ip_layers.prototype.showEffect = function(){
		this.startTime=new Date().getTime();
		this.runEffect();
	};
	ip_layers.prototype.runEffect = function(){
		var elapsed = new Date().getTime() - this.startTime;
		var thisobj =  this;
		if (elapsed < this.animateTime){
			var distancepercent=(this.status=="close") ? this.curveInc(elapsed/this.animateTime) : 1 - this.curveInc(elapsed/this.animateTime);
			this.divObj.style.height = distancepercent * this.divH +"px";
			this.runtimer= setTimeout(function(){thisobj.runEffect();}, 10 );
		}else{
			this.divObj.style.height =(this.status=="close") ? this.divH +"px" : "0px";
			this.runtimer=null;
			clearTimeout(this.runtimer);
			this.status = (this.status=="close") ? "open" : "close";
			this.strClass = (this.status=="close") ? "collapse" : "expand";
			this.layerObj.className = this.strClass;
		}
	};
	ip_layers.prototype.hideLayer = function(Obj){
		if(this.status=="open" && Obj.divObj != this.divObj) this.showEffect();
	};
	ip_layers.prototype.openLayer = function(callMultipleF,functions){
		this.showEffect();
		if(callMultipleF){functions;}
	};
	ip_layers.prototype.curveInc = function(percent){return (1-Math.cos(percent*Math.PI)) / 2;};
	function ipNextPrev(arrList,divID,leftImg,leftObj,rightImg,rightObj){
		this.curLayer=0;
		this.divObj = d.getElementById(divID);
		this.leftObj = $ip(leftObj);
		this.rightObj = $ip(rightObj);
		this.leftImg = leftImg;
		this.rightImg = rightImg;
		this.arrList = arrList;
		try{this.goTo();}catch(e){ip.traceErr(e,"ipPrevNext","ip_layers.js");}
		try{if(this.arrList.length==1){this.leftObj.style.display="none";this.rightObj.style.display="none";}}catch(e){}/* if there is only 1 record to show then hide both LEFT / RIGHT Objects*/
	};
	ipNextPrev.prototype.goTo = function(Method,fromObj){
		if(this.curLayer==0 && Method=="prev") this.curLayer=this.arrList.length;/*first to last*/
		if(this.curLayer==parseInt(this.arrList.length) - 1 && Method=="next") this.curLayer=-1;/*last to first*/
		if(Method=="next"){++this.curLayer;}/*move to next*/
		else if(Method=="prev"){--this.curLayer;}/*move to prev*/
		this.divObj.innerHTML = this.arrList[this.curLayer][0];
	};
	ipNextPrev.prototype.showIndex  = function(Index){
		if(this.arrList[Index][0]){
			this.divObj.innerHTML = this.arrList[Index][0];
			this.curLayer = Index;
		}
	};
	function hideAll(Obj){for(var i=0; i<menuNew.length; i++){menuNew[i].hideLayer(Obj);}}