 $(document).ready(function(){
$(".quickmenu").slideDown("slow"); 
function adPostWidth() {
var ovWid = $('#header').width(); /*We use the header width with min-height of 700px in the style*/
var postN = Math.floor(ovWid / 250);
var widFix = Math.floor(ovWid / postN);
$(".post_cont").css({ 'width' : widFix});
}
function WidthHead() {
var ovWid = $('#header').width(); /*We use the header width with min-height of 700px in the style*/
var widFixHead = Math.floor(ovWid / 3);
$(".head_info").css({ 'width' : widFixHead - 2});
}
adPostWidth();
WidthHead();	
$(window).resize(function () {
adPostWidth();	
WidthHead();	
});
 //hide toolbar and make visible the 'show' button
$("ul#social li").hover(function() {
$(this).find("div").fadeIn("fast").show(); //add 'show()'' for IE
$(this).mouseleave(function () { //hide tooltip when the mouse moves off of the element
$(this).find("div").hide();
});
});
$(".facebook, .twitter, .buzz, .digg, .stumble, .menutit, span.downarr a, span.showbar a").click(function() {
return false;                                         
});
//show quick menu on click 
$("span.menu_title a").click(function() {
if($(".quickmenu").is(':hidden')){ //if quick menu isn't visible 
$(".quickmenu").fadeIn("fast"); //show menu on click
}
else if ($(".quickmenu").is(':visible')) { //if quick menu is visible 
$(".quickmenu").fadeOut("fast"); //hide menu on click
}
});
//hide menu on casual click on the page
$('.title').click(function() {
$(".quickmenu").fadeOut("fast");
$(".quickmenu").css({'vivibility': 'hidden'});
});
$('.quickmenu').click(function(event) { 
event.stopPropagation(); //use .stopPropagation() method to avoid the closing of quick menu panel clicking on its elements 
});

//$("#toolbar").prependTo($('body'));
  //  $("#toolbar").hover(function () {
    //    $(this).animate({
        //    bottom: '0'
      //  });
  //  }, function () {
    //    $(this).animate({
     //       bottom: '-10px'
     //   });
  //  });

});

