jQuery(document).ready(function($) {
		
$(window).bind("resize", function(){
				if($(window).height()<650){
		$('.outermenu, #page-wrap, #menu').css({'position': 'relative'})
		$('#page-wrap').css({'top': '0', 'margin': '0'})
			}else{
			$('#page-wrap').css({'position': 'absolute'})
			$('.outermenu').css({'position': 'relative'})
			$('#menu').css({'position': 'fixed'})
			$('#page-wrap').css({'top': '50%', 'margin': '-300px 0 0 0'})		

	}
		
	});
	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(){
  
  			
			number = $('#page-wrap table tr td');
			
			$('#page-wrap').width(number.length*480);

	if($(window).height()<650){
		$('.outermenu, #page-wrap, #menu').css({'position': 'relative'})
		$('#page-wrap').css({'top': '0', 'margin': '0'})
		}else{
			$('#page-wrap').css({'position': 'absolute'})
			$('.outermenu').css({'position': 'relative'})
			$('#menu').css({'position': 'fixed'})
			$('#page-wrap').css({'top': '50%', 'margin': '-300px 0 0 0'})		

	}
	/*$(".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: "285px"})});
			$(this).next('.box').css({height: "285px"})		
			$(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'
	});



});

});

