$(document).ready(function() {

// BLACKBOARD

//    jQuery('#leftboard,#rightboard,#push').toggle(function(){
//        if(!jQuery('#menutophalf').hasClass("enable")){
//            jQuery('#menutophalf').animate({'height': '320px'}, 'slow').addClass("enable");
//        }else{
//	        jQuery('#menutophalf').animate({'height': '0px'}, 'slow').removeClass("enable");
//        }
//    },function(){
//        if(!jQuery('#menutophalf').hasClass("enable")){
//            jQuery('#menutophalf').animate({'height': '320px'}, 'slow').addClass("enable");
//        }else{
//	        jQuery('#menutophalf').animate({'height': '0px'}, 'slow').removeClass("enable");
//        }
//    });


    jQuery('#fff000,#push').toggle(function(){
        if(!jQuery('#push2').hasClass("enable")){
            jQuery('#push2').animate({'top': '0px'}, 'slow').addClass("enable");
        }else{
	        jQuery('#push2').animate({'top': '-320px'}, 'slow').removeClass("enable");
        }
    },function(){
        if(!jQuery('#push2').hasClass("enable")){
            jQuery('#push2').animate({'top': '0px'}, 'slow').addClass("enable");
        }else{
	        jQuery('#push2').animate({'top': '-320px'}, 'slow').removeClass("enable");
        }
    });


// LEFTBUTTON

    jQuery('#leftbtn').toggle(function(){
        jQuery('#leftmenu').animate({'left': '15%','margin-left': '0'}, 'slow');
    },function(){
	    jQuery('#leftmenu').animate({'left': '-70%','margin-left': '-25px'}, 'slow');
    });

 // RADIOBUTTON
     jQuery("#radio").hover(function () {
//        setInterval(function() {
//            // Do something every 2 seconds
//        }, 2000);


        jQuery("#musicn").animate({'top':'-100px'});
        for (var i=0; i<=3; i++) {
            jQuery("#radioicon").animate({'top': '-5px'}, 200).animate({'top': '0'}, 200);
        }
    },function(){jQuery("#radioicon").stop(false,false);jQuery("#musicn").animate({'top':'5px'});});

// ALBUMBUTTON

    jQuery("#album").hover(function () {
        jQuery("#albumleft").animate({'left': '-40px'}, 200);
        jQuery("#albumright").animate({'left': '40px'}, 200);
    },function(){
        jQuery("#albumleft").animate({'left': '0'}, 200);
        jQuery("#albumright").animate({'left': '0'}, 200);
    });

// BULL

    jQuery("#bull").hover(function () {
        jQuery("#bullsballs").animate({'top': '180px'}, 500);
    },function(){
        jQuery("#bullsballs").animate({'top': '160'}, 500);
    });

// TOOLTIP

    jQuery(function(){
        jQuery(".map li img").tooltip({
        	track: true,
        	delay: 0,
        	showURL: false,
        	fixPNG: false,
        	showBody: " - ",
        	top: 0,
        	left: 3,
        	extraClass: "tt"
        });
    });

    
    


//    jQuery('#slide-show').cycle({
//		fx: 'scrollLeft',
//        speed:   300,
//        timeout: 3000,
//        next:   '.next',
//        pause:   1
//         // choose your transition type, ex: fade, scrollUp, shuffle, etc...
//	});
});

function dellcomment(id) {
        jQuery("#comm"+id).hide();
        jQuery.get('body/includes/library/comment.php?id='+id);
        
        return false;
    }
