function pp_ajax(ppurl,ppwidth,ppheight){
	$.fn.prettyPhoto({
		animation_speed:'fast',
		slideshow:10000, 
		hideflash: true,
		social_tools: false,
		deeplinking: false,
		show_title: false,
		overlay_gallery: false
	});
	$.prettyPhoto.open(ppurl+'ajax=true&width='+ppwidth+'&height='+ppheight,'','');
}

$(function(){
	$('#a a')
		.css( {backgroundPosition: "-20px 35px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(-20px 94px)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(40px 35px)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "-20px 35px"})
			}})
		});
		
    $("#propaganda").nivoSlider({
        effect:"fold",
        animSpeed:500,
        pauseTime:5000,
        startSlide:0,
        directionNav:true,
        directionNavHide:true,
        controlNav:true,
        controlNavThumbs:false,
        controlNavThumbsFromRel:false,
        keyboardNav:false,
        pauseOnHover:true,
        manualAdvance:false
    });
	
	$("div#pan_slider").codaSlider();
	
	$("div#not_slider").codaSlider({
		easeFunc: "easeOutBounce",
		titleImg:false
	});
	
	$("a[rel^='pp_youtube']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true, deeplinking: false, autoplay:false});
	
	$('#nudgeUs2 li a').nudge({
		property: 'margin',
		direction: 'left',
		amount: 30,
		duration: 400,
		toCallback: function() { $(this).css('color','#f00'); },
		fromCallback: function() { $(this).css('color','#000'); }
	});
	
	$('#servicos_opcoes').codaSliderscroll({
		dynamicArrows: false,
		dynamicTabs: false
		//autoHeightEaseDuration: 2500,
		//autoHeightEaseFunction: "easeInOutElastic",
		//slideEaseDuration: 2500,
		//slideEaseFunction: "easeInOutElastic"
	});	
});
