
// MOSNE FUNCTIONS

$(document).ready(function(){
    
     
     $("#mail").attr({"href":"mailto:"+"info"+"@"+"vittoriacrespimorbio.com"});
     
     
     var restoreq = $("#q").val();
      
     if ($.browser.msie) {
         if (parseInt($.browser.version)<=7){
            
                
         } //if ie6
      } //if ie*
      
     
     $("#q").bind("click",function(){ $(this).select();});
     $("#q").bind("focus",function(){ $(this).val("");});
     $("#q").bind("blur",function(){ $(this).val(restoreq); });
     
     $("#q").liveSearch({url: '/index.php?ajax=1&s=', loadingClass: 'ajax'});
     
    
	$(".bprint").click(function(){
	    
	    $("#ci, #tophd h2, #gallery img, #biography,#mypage, #foot").jqprint({ operaSupport: true, importCSS: true });
        $("#inprinting").slideDown("slow");
       
        setTimeout(function(){
        $("#inprinting").slideUp("slow");
        },(7*1000));

	   
	});
	
	$("#inprinting").click(function(){
	   $(this).slideUp("slow");
	})
	
	
	$("a.goback").click(function(){
	   
	   history.back();
	   
	});
	
	$("a.openvideo").click(function(){
	   
	   $(".video a:eq(0)").trigger("click");
	   
	});
	
	$("a.opengallery").click(function(){
	   
	   $(".pics a:eq(0)").trigger("click");
	   
	});
	
	
	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square',showTitle:true});
	
	
//	$('#intro').parent().parent().parent().css({backgroundColor:"transparent"});
	setTimeout(function(){
       
        $('#intro').hide().show("blind",{ direction: "vertical"}, 3000);
        
    },600);
    
    // $('#hd h1 a').hide().show("blind",{ direction: "horizontal"}, 2000);

    
/*
	$("#intro").crossSlide({fade: 1}, [
        { src:  '/wp-content/themes/mosne/images/vittoria.jpg',
        from: '100% 80%',
        to:   '30% 0% 1.7x',
        time: 5 },
        { src:  '/wp-content/themes/mosne/images/vittoria.jpg',
        from: 'top left',
        to:   'top right 1.7x',
        time: 5 }
    ]);
    
*/
/*
   $('#intro').crossSlide({
  speed: 20,
  fade: 1
}, [
  { src: '/wp-content/themes/mosne/images/vittoria.jpg', dir: 'up'   },
  { src: '/wp-content/themes/mosne/images/vittoria.jpg',   dir: 'up' }
]); 
 
 */   
    
}); //scope 
