//<![CDATA[
$(document).ready(function(){

// fade in
	$("#page").css(
		{"opacity": "0"}
		);	
	$("#page").fadeTo(1000, 1);	

// img hover
	$("a img").hover(
		function(){
			$(this).fadeTo(300, 0.5);
		},
		function(){
			$(this).fadeTo(300, 1);
	});
	
// Cycle gallery
	$('#slideshow').cycle({ 
		speed: 1000,
		timeout: 3000
	});
	
// ie fadeTo fix
jQuery.fn.fadeTo = function(speed,to,callback) { 
    return this.animate({opacity: to}, speed, function() { 
        if (to == 1 && jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
};

}); //close doc ready
//]]>

