window.defaultUrl = "";

_c(function(){
	
	if(!empty(s = $t("SCRIPT", document)))
	{
		window.defaultUrl = s[0].src.toString().split("js/")[0];
	}
	
	var a = document.links;
	for(var i=0; i<a.length; i++)
	{
		if(a[i].rel && a[i].rel == "thumb")
		{
			a[i].onclick = ampliaHandler;
		}
	}	
	
	document.body.setAttribute("scroll", "no");
	
	writeSWFs();
	
});

function ampliaHandler()
{	
	ampliarImg(this.href.toString());
	
	return false;
}

function ampliarImg(src)
{
	window.open(window.defaultUrl + "show/?src=" + src, "aw", "width=200, height=200, resizable=yes, status=yes");
}

function changeBG(t)
{
	if(document.body)
	{
		document.body.className = t;
	}
}

function writeSWFs()
{
	var s = new Flash(window.defaultUrl + "swf/site.swf", null, "100%", "100%");	
	s.addVariable("defaultUrl", window.defaultUrl);
	s.addParameter("wmode", "transparent");
	s.writeIn("corpo");
}
