jQuery.preloadImages = function() {
      for(var i = 0; i<arguments.length; i++) {          
	  jQuery("<img>").attr("src", arguments[i]);
     }
}


/*jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        // Configuration goes here
		 scroll: 2,
        visible: 2
    });
});*/


    $(function(){
       
        $('#gallery-thumbs a').click( function() {
			$('#mirror-corner-image').addClass('loading');								   
            swapImg( $('#img2'), this.href, this.title );
            $('h2').text( this.title ); 
			var title = $(this).attr("title");
			var str = title.substring(0,3);
			$('.dynamic-text').fadeTo( 1, 0.0 ).text("" + $('.' + str).attr("alt") + "").fadeTo( 1500, 1.0 );
            return false; 
        });
       
        function swapImg( $img, src, alt ) {
            var actions = 2;
            var img = $('<img src="' + src + '" />').load( next ).removeClass('loading');
            $img.fadeTo( 1, 0.0, next );
           
            function next() {
                if( --actions ) return;
                $img.attr({ src: src, alt: alt }).fadeTo( 1500, 1.0 );
            }
        }
    });



// JavaScript Document
$(document).ready(function(){
	$("#gallery-thumbs a").fadeTo(400, 0.5);
	$("#gallery-thumbs a").hover(function(){
		$(this).fadeTo(300, 1.0);},
		function(){
		$(this).fadeTo(400, 0.5);

	
	});
	
	
	$(".nav-links a").hover(function(){ 
	$(this).fadeTo(300, 0.3);
	$(this).fadeTo(300, 1.0);},function(){ 
	$(this).fadeTo(300, 1.0);});
	
	$.preload( '#mirror-corner-image img', {
    placeholder:'/images/photos/home/14_scp.jpg',
    notFound:'notfound.jpg'
});
	


});
















						  
						  













