//jQuery(document).ready(function(){
jQuery(function(){
        /*jQuery("#parallax .parallax-layer").parallax({
            mouseport: jQuery("#parallax")
        },
        {  yparallax: true, xparallax: true, width: 0},
        {  yparallax: true, xparallax: true, width: 0},
        {  yparallax: true, xparallax: true, width: -500},
        {  yparallax: false, xparallax: true, width: 0}
        
        );
        */
        
        
        /*$("#list").delegate("img", "hover", function(){
    		$(this).animate({ width: 130 }, 300, function() {
    				$(this).animate({ width: 115 },100);
  				});

			});
          */ 
          /*
        $('.fancybox').live('click', function(){   
    		$(this).fancybox ();
		});
        */
        
        $('.fancybox').livequery(function(){
            $(this).fancybox({
                'zoomSpeedIn'           :       500,
                'zoomSpeedOut'          :       500,
                'overlayOpacity': 0.8, 
                'overlayColor': '#fff'
            });
        }); 
        //$('.fancybox').fancybox();
		//JqDock
        /*
        var rosa_opts =  { align: 'middle', size: 206, flow: true };
        $('.rosa').jqDock(rosa_opts);
		*/
        
        /*
        $.address.init(function()
        	{
            	$('.nav').address();
			}).change(function(event){
            	$('#parallax').load(event.value+' #parallax');  
	        }); 
        */
            
	/*
    var hash = window.location.hash.substr(1);
	var href = $('#header a').each(function(){
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-4)){
			var toLoad = hash+'.php #parallax';
			$('#parallax').load(toLoad)
		}											
	});

	$('#header a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #parallax';
		$('#parallax').hide('fast',loadContent);
		$('#load').remove();
		$('#header').append('<span id="load">LOADING...</span>');
		$('#load').fadeIn('normal');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-4);
		function loadContent() {
			$('#parallax').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$('#parallax').show('normal',hideLoader());
		}
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		return false;
		
	});
    */

});
