/***********************************************************************/
/************************ functions.js *********************************/
/***********************************************************************/



/***********************************************************************/
/* SlideUp / SlideDown Product */
/***********************************************************************/
	
	function OpenProduct( sID, sIDLink )
	{		
		if (sID != null) {	
			
			
			if ( sOpenProductdetail != null ){		
						
				Ext.get(sOpenProductdetaillink).toggleClass('Active');							
								
				//$("#"+sOpenProductdetail).slideUp(1000);
				Ext.get(sOpenProductdetail).slideOut('t',{
					duration: 1,
					useDisplay: true,
					easing: 'easeOut'							   
				});									
			}
			
			
			
			if (sOpenProductdetail != sID )
			{																																												
				
				Ext.get(sIDLink).toggleClass('Active');	
								
				
				//$("#"+sID).slideDown(1000);	
				Ext.get(sID).slideIn('t',{
					duration: 1,
					useDisplay: true,
					easing: 'easeOut'
				});
				sOpenProductdetail = sID;
				sOpenProductdetaillink = sIDLink;
			}else {
				sOpenProductdetail = null;
				sOpenProductdetaillink = null;
			}
						
		
		}		
		return false;
	}
	
	
	
	
	function CloseProduct( sID, sIDLink )
	{		
		if ( sID != null )
		{			
		
			Ext.get(sIDLink).toggleClass('Active');	
		
			//$("#"+sID).slideUp(1000);	
			Ext.get(sID).slideOut('t',{
					duration: 1,
					useDisplay: true,
					easing: 'easeOut'							   
				});
			
			if ( sOpenProductdetail == sID ) {
				sOpenProductdetail = null;
				sOpenProductdetaillink = null
			}
			
			
		}		
		return false;
	}
	
	
	
/***********************************************************************/
/* */
/***********************************************************************/	
	



