// Controls for the The left column filter panels


/*************** collapse_Expand control *******************************************/

	var ids = ["panel1", "panel2", "panel3", "panel4", "panel5", "panel6"];
	var menuList = new Object();
	menuList.panel1 = true;
	menuList.panel2 = true;
	menuList.panel3 = true;
	menuList.panel4 = true;
	menuList.panel5 = true;
	menuList.panel6 = true;
			
	var MyTransitionLG = function(myID, H) {
		var expandAnim2 = new YAHOO.util.Anim(myID, { height: {to: H} }, 0.2 );
		var collapseAnim2 = new YAHOO.util.Anim(myID, { height: {to: 30} }, 0.2 );
		collapseAnim2.onStart.subscribe(function(){
											if(myID == "panel2"){
												YAHOO.util.Dom.setStyle(['sliderthumb'], 'visibility', 'hidden');
											}
										   }
		);
		expandAnim2.onComplete.subscribe(function(){
											if(myID == "panel2"){
												YAHOO.util.Dom.setStyle(['sliderthumb'], 'visibility', 'visible');
											}
										   }
		);
		if (menuList[myID]) {
		
			collapseAnim2.animate();
			//collapseAnim2.onComplete.subscribe(MyonComplete);
			menuList[myID] = false;
		
		} else {
		
			expandAnim2.animate();
			//expandAnim2.onComplete.subscribe(MyonComplete);
			menuList[myID] = true;
		}
		
		//return false;
	}
	
	var MyonComplete = function() {

		var myH = YAHOO.util.Dom.getStyle('rec_leftSide_container', 'height');
		
		YAHOO.util.Dom.setStyle(['rec_right_container'], 'height', myH);
		
		YAHOO.util.Dom.setStyle(['rec_middle_container'], 'height', myH);

	}
	
	

/*************** END collapse_Expand control *******************************************/
