// menu
jQuery(document).ready(function(){
     jQuery(".h-menu .rel").hover(
          function () 
          {
				jQuery(this).parents('td:first').addClass("online");				
				jQuery(this).find('.sub-menu0').css('display', 'block');
          },
          function () 
          {
				jQuery(this).find('.sub-menu0').css('display', 'none');
			   jQuery(this).parents('td:first').removeClass("online");               
          }
     ); 
});


jQuery(document).ready(function(){
	
	if ( jQuery('#my-dropdown_three').length )
	{
		jQuery('#my-dropdown_three').sSelect({ddMaxHeight: '200px'});
		jQuery('#my-dropdown_threeChange').sSelect().change(function(){alert('changed')});
		jQuery('#addOptions').click(function(){
			jQuery('#my-dropdown_three6').append('<option value="newOpt">New Option</option>').resetSS();
		});
	}
});	

jQuery(document).ready(function(){
	
	if (jQuery('#my-dropdown_three1').length)
	{
		jQuery('#my-dropdown_three1').sSelect();	
		
		//alert change event
		jQuery('#my-dropdown_threeChange').sSelect().change(function(){alert('changed')});

		//add options to select and update
		jQuery('#addOptions').click(function(){
			jQuery('#my-dropdown_three6').append('<option value="newOpt">New Option</option>').resetSS();
		});
	}
});	

jQuery(document).ready(function(){
	
	if (jQuery('#my-dropdown_three2').length)
	{
		jQuery('#my-dropdown_three2').sSelect();	
		
		//alert change event
		jQuery('#my-dropdown_threeChange').sSelect().change(function(){alert('changed')});

		//add options to select and update
		jQuery('#addOptions').click(function(){
			jQuery('#my-dropdown_three6').append('<option value="newOpt">New Option</option>').resetSS();
		});
	}		
});	

jQuery(document).ready(function(){
	
	if (jQuery('#my-dropdown_three3').length)
	{
		jQuery('#my-dropdown_three3').sSelect();	
		
		//alert change event
		jQuery('#my-dropdown_threeChange').sSelect().change(function(){alert('changed')});

		//add options to select and update
		jQuery('#addOptions').click(function(){
			jQuery('#my-dropdown_three6').append('<option value="newOpt">New Option</option>').resetSS();
		});
	}		
});	

jQuery(document).ready(function(){
	
	if (jQuery('#my-dropdown_three4').length)
	{
		jQuery('#my-dropdown_three4').sSelect();	
		
		//alert change event
		jQuery('#my-dropdown_threeChange').sSelect().change(function(){alert('changed')});

		//add options to select and update
		jQuery('#addOptions').click(function(){
			jQuery('#my-dropdown_three6').append('<option value="newOpt">New Option</option>').resetSS();
		});
	}		
});	

jQuery(document).ready(function(){
	
	if (jQuery('#my-dropdown_three5').length)
	{
		jQuery('#my-dropdown_three5').sSelect();	
		
		//alert change event
		jQuery('#my-dropdown_threeChange').sSelect().change(function(){alert('changed')});

		//add options to select and update
		jQuery('#addOptions').click(function(){
			jQuery('#my-dropdown_three6').append('<option value="newOpt">New Option</option>').resetSS();
		});
	}		
});	

jQuery(document).ready(function(){
	
	if (jQuery('#my-dropdown_three6').length)
	{
		jQuery('#my-dropdown_three6').sSelect();	
		
		//alert change event
		jQuery('#my-dropdown_threeChange').sSelect().change(function(){alert('changed')});

		//add options to select and update
		jQuery('#addOptions').click(function(){
			jQuery('#my-dropdown_three6').append('<option value="newOpt">New Option</option>').resetSS();
		});
	}		
});	




jQuery(document).ready(function() { 
    jQuery('#enter').click(function() { 
        jQuery.blockUI({ message: jQuery('#popups') }); 
 
        setTimeout(jQuery.unblockUI, 50000); 
    }); 
});


// ch-style
jQuery(document).ready(function(){
    jQuery('#close_btn_enter').click(
        function() {
            jQuery('#popups').css({display: 'none'});
			jQuery('.blockUI').css({display: 'none'});
        });
});
