
function exibeFash(swf, width, height, flvar, wmode, cache)
{
	noCache  = cache || cache == undefined ? ""       : new Date();
	wmode    = wmode || wmode == undefined ? "transparent" : "opaque";
	monta_swf  = "";
	monta_swf += "<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=\""+ width +"\" height=\""+ height +"\">";
	monta_swf += "<param name=\"movie\" value=\""+ swf + "?" + flvar +"&"+ noCache + "\" />";
	monta_swf += "<param name=\"quality\" value=\"high\" />";
	monta_swf += "<param name=\"menu\" value=\"false\" />";
	monta_swf += "<param name=\"wmode\" value=\""+ wmode +"\" />";
	monta_swf += "<embed src=\""+ swf + "?" + flvar +"&"+ noCache + "\" menu=\"false\" quality=\"high\" wmode=\""+ wmode +"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
	monta_swf += "</object>";
	document.write(monta_swf);
}


function muda(src)
{
	//pasta = src.substr(src.indexOf("portifolio/"), (src.indexOf("portifolio/")-src.lastIndexOf("/"))*(-1)+1)
	arquivo = src.substr(src.lastIndexOf("/")+1, src.length)
	foto = document.getElementById('amplia').src = "../images/portifolio/"+arquivo
}

function slideshow(url) 
{
	w = 700
	h = 500
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open(url, 'slideshow', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+'status=yes,scrollbars=no,resizable=no');
}