

function positionMain(){
	if($(window).height()>730){
		$('#container').css('top',(($(window).height()-730)/2)+"px");
												
	}else{
		$('#container').css('top','0px');
	}
	
}


$(window).resize(function(){
	positionMain();
});

$(document).ready(function(){

    $("img#Image1").mouseover(function(){
        $(this).fadeTo(250, .4);
    });
    $("img#Image1").mouseout(function(){
        $(this).fadeTo(250, 1);
    });
    
  $('a.scroll-to-element').bind('click',
     function(){
     $this = $(this);
        var destinationSelector = $(this).attr('rel');
        
        $('.scroll-pane', $this.parent().parent().parent()).each(
            function(){
                 this.scrollTo(destinationSelector);
            }
     );
    return false;
     }
   );
    if(typeof jQuery.jScrollPane != "undefined"){
 
 
	    $('.scroll-pane').jScrollPane({animateTo:true, animateInterval:50, animateStep:5});
	 }

    if($.fn.lightBox){
        $('a[rel="lightbox[group]"]').lightBox();
    }
    
    positionMain();
});



    
    
    