Shadowbox.init();
$(document).ready(function() {
	$("#chained").scrollable({circular: true, mousewheel: false});
	$("#chained2").scrollable({circular: true, mousewheel: false });
	$(function() {
		$(".slidetabs").tabs(".images > div", {
			effect: 'fade',
			fadeOutSpeed: "slow"
		});
	});
	$("#chained4").scrollable({circular: true, mousewheel: false });
	$("#chained5").scrollable({circular: true, mousewheel: false });
	$("#chained6").scrollable({circular: true, mousewheel: false });
	$("#link").mouseover(function() {
        $("#ebis img").stop();
        $("#ebis img:first-child").animate({top:0, opacity: 0}, 250, function() {
            $(this).animate({top:15, opacity: 1}, 250);
            $("#ebis img + img").animate({top:35, opacity: 1}, 250);
        });
    });
    $("#link").mouseout(function() {
        $("#ebis img").stop();
        $("#ebis img + img").animate({top:45, opacity: 0}, 250);
        $("#ebis img:first-child").animate({top:0, opacity: 0}, 250, function() {
            $(this).animate({top:15, opacity: 1}, 250);
        });
    });
	
	$("#phone").mask("(99)9999-9999");
	$(".slidetabs a").live("click", function() {
		$(".images > div iframe").css("height", "330px");
	});

});

    function ExibeFlash(src, larg, alt, vars)
	{
	    var strHtml = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ larg +'" height="'+ alt +'">';
	    strHtml += '<param name="movie" value="'+ src +'" />'; 
	    strHtml += '<param name="wmode" value="transparent" />';    
	    strHtml += '<param name="flashvars" value="'+ vars +'" />';
	    strHtml += '<embed src="'+ src +'" wmode=transparent flashvars="'+ vars +'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ larg +'" height="'+ alt +'"></embed>';
	    strHtml += '</object>';
	    
	    document.write(strHtml);
	}

