jQuery(document).ready(function($) {
		
$(window).bind("resize", function(){
	var divheight = ($(window).height())-58;
	$('#page-wrap').css('height', divheight);							  
	
	resizenow();
});
	jQuery.fn.fadeToggle = function(speed, easing, callback) {
  	 return this.animate({opacity: 'toggle'}, speed, easing, callback);
	
	}; 
	
$(document).bind('keydown', function(e){
 document.onkeydown = function(event)
    {
        var keyCode;

        if (window.event) // IE/Safari/Chrome/Firefox(?)
        {
            keyCode = event.keyCode;
        }
        else if (event.which) // Netscape/Firefox/Opera
        {
            keyCode = event.which;
        }

        var keyChar = String.fromCharCode(keyCode).toLowerCase();

        if (keyChar == "c" && event.ctrlKey)
        {
            document.title = "copy is not permitted";
            return false;  // To prevent normal minimizing command
        }
    };

})


$(document).ready(function(){
  
  

	var divheight = ($(window).height())-58;
	$('#page-wrap').css('height', divheight);
	

	
	/*$(".uluv").click(function(){
		$("#pfs_postboxquickpost").fadeToggle("slow");					  
	});*/
	
	$('html').mousewheel(function (event, delta) {
		this.scrollLeft -= (delta * 50);
				
	});
	$('.slide').mouseover(function(){
	        hideall();
			$('.box').mouseover(function(){$(this).next().css({height: "155px"})});
			$(this).next('.box').css({height: "155px"})		
			$(this).next('.box').children("div").show();
    })
	hideall = function (){
		$('.slide').each(function(){
			$(this).next('.box').css({height: "45px"})	
			$(this).next('.box').children("div").hide();
		})
	}

	
	

	$("body").contextMenu({
			menu: 'myMenu'
	});



});

});
