var $main = jQuery.noConflict();
$main(document).ready(function(){

    $main('#tweeps_li').hover(
      function () {
		//$main('.down_list1').stop().animate({ height: 'auto' }, {duration: 'slow', easing: 'easeOutBounce'});
        $main('.down_list1').slideDown(200);
      }, 
      function () {
        obj = this;
        $main('.down_list1').slideUp(200);
      }
    );
	
	$main('#tweets_li').hover(
      function () {
        $main('.down_list2').slideDown(100);
      }, 
      function () {
        obj = this;
        $main('.down_list2').slideUp(100);
      }
    );
	
	
	$main('#prints_li').hover(
      function () {
        $main('.down_list3').slideDown(100);
      }, 
      function () {
        obj = this;
        $main('.down_list3').slideUp(100);
      }
    );
	
	$main('#themes_li').hover(
      function () {
        $main('.down_list4').slideDown(100);
      }, 
      function () {
        obj = this;
        $main('.down_list4').slideUp(100);
      }
    );
	
	
	$main('#messages_li').hover(
      function () {
        $main('.down_list5').slideDown(100);
      }, 
      function () {
        obj = this;
        $main('.down_list5').slideUp(100);
      }
    );
	
	
		
		$main('#toggle-all').click(function(){
			//$main('input[type=checkbox]').checkBox('toggle');
			//return false;
			if(document.getElementById('toggle-all').checked)
			$main('input[type=checkbox]').checkBox('changeCheckStatus', true);
			else
			$main('input[type=checkbox]').checkBox('changeCheckStatus', false);
			
		});
		
		$main('#uncheck-all').click(function(){	
			if($main('.whole_che_fave_wrap').is(":visible") == true ){
				$main('.whole_che_fave_wrap').hide();	
			}		
			$main('input[type=checkbox]').checkBox('changeCheckStatus', false);	
		});
		
		$main('#uncheck-bot-all').click(function(){	
			if($main('.whole_che_fave_wrap').is(":visible") == true ){
				$main('.whole_che_fave_wrap').hide();	
			}		
			$main('input[type=checkbox]').checkBox('changeCheckStatus', false);	
		});
		
		$main('#bot-toggle-all').click(function(){
			if(document.getElementById('bot-toggle-all').checked)
			$main('input[type=checkbox]').checkBox('changeCheckStatus', true);
			else
			$main('input[type=checkbox]').checkBox('changeCheckStatus', false);
		});
		
		
});

	function remove_uncheck(tem_id){
		var chek = document.getElementById(tem_id).checked;
		if(chek){
			$main('#uncheck-all').checkBox('changeCheckStatus', true);	
			$main('#uncheck-bot-all').checkBox('changeCheckStatus', true);	
			if($main('.whole_che_fave_wrap').is(":visible") == false ){
				$main('.whole_che_fave_wrap').fadeIn('slow');
			}
		}
	}
	
	function remove_check(tem){
		var chek = document.getElementById(tem).checked;
		if(!chek){
			$main('#toggle-all').checkBox('changeCheckStatus', false);
			$main('#bot-toggle-all').checkBox('changeCheckStatus', false);
		}
	}
