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'})		

	}
			
			//$('.slideSingle img').css({height: browserheight})
			
			
			
	});
	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(){
  
  		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'})		

	}
			number = $('#page-wrap table tr td');
			
			$('#page-wrap').width(number.length*480);

	
	/*$(".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: "65px"})	
			//$(this).next('.box').children("div").hide();
		})
	}

	

	
$('.talkbutton').click(function(){
		$('.theinfo').hide();
				$('.thetalk').show();	
				
				$('.talkbutton').hide();
				$('.infobutton').show();
				//$('.scroll-pane').jScrollPane();
						  
	})
	$('.infobutton').click(function(){
		$('.thetalk').hide();
				$('.theinfo').show();
				
				$('.infobutton').hide();
				$('.talkbutton').show();
				//$('.scroll-pane').jScrollPane();
						  
				  
	})

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


		
		i=0;
		e=0;
		donoth= function(){}
		leftScrollInterval = setInterval(donoth,100);
		rightScrollInterval = setInterval(donoth,100);
		
		doScrollLeft = function(){
			i=i+3;
				$(document).scrollLeft($(document).scrollLeft() - (30+i));
		}
		
		$('.scrollingHotSpotLeft').bind('mouseover',function(){
				leftScrollInterval = setInterval(doScrollLeft, 6);
			});	

		

			// mouseout right hot spot
		$('.scrollingHotSpotLeft').bind('mouseout',function(){
				i=0;
				clearInterval(leftScrollInterval);
				if($(document).scrollLeft()<70){
					$('.scrollingHotSpotLeft').hide();
					}
			});
		
		
		doScrollRight = function(){
			e=e+3;

				$(document).scrollLeft($(document).scrollLeft() + (30+i));
		}	
		
		
		// mouseover right hot spot
		$('.scrollingHotSpotRight').bind('mouseover',function(){
				
				rightScrollInterval = setInterval(doScrollRight, 6);
					$('.scrollingHotSpotLeft').show();
					
				
			});	
		
		$('.scrollingHotSpotRight').bind('mouseout',function(){
				e=0
				clearInterval(rightScrollInterval);
			});
		
		
						clearInterval(leftScrollInterval);
						clearInterval(rightScrollInterval);



$('.scrollingHotSpotLeft').hide();

loadAjax = function (){

}

loadAjax();
});




});

