var W3CDOM = (document.createElement && document.getElementsByTagName && document.getElementById && Array.prototype.push);
var is_ie = (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent));
var is_ie5 = (is_ie && /msie 5\.0/i.test(navigator.userAgent));
var is_opera = /opera/i.test(navigator.userAgent);
var is_khtml = /Konqueror|Safari|KHTML/i.test(navigator.userAgent);

String.prototype.find=function(what){
	return(this.indexOf(what)>=0 ? true : false);
};

Array.prototype.each = function(f){
	for(var i=0;i<this.length;i++){
		f(this[i]);
	}
};

Array.prototype.inArray = function (value) {
	var i;
	for(i=0;i<this.length;i++){
		if(this[i] === value){
			return true;
		};
	};
	return false;
};

function CreateEl(x){
	return(document.createElement(x));
};

function $(selector){
	var i;
	var j;
	var selid = "";
	var selclass = "";
	var tag = selector;
	var tag2 = "";
	var v2;
	var k;
	var vf;
	var a;
	var s = [];
	var objlist = [];
	var c;
	if(selector.find("#")){
		if(selector.find(" ")){
			s = selector.split(" ");
			var fs = s[0].split("#");
			if(fs.length == 1)
				return(objlist);
			f = $$(fs[1]);
			if(f){
				v = f.getElementsByTagName(s[1]);
				for(i=0;i<v.length;i++)
					objlist.push(v[i]);
			};
			return(objlist);
		} else {
			s = selector.split("#");
			tag = s[0];
			selid = s[1];
			if(selid!=""){
				f = $$(selid);
				if(f)
					objlist.push(f);
				return(objlist);
			}
		}
	};
	if(selector.find(".")){
		s = selector.split(".");
		tag = s[0];
		selclass = s[1];
		if(selclass.find(" ")){
			s = selclass.split(" ");
			selclass = s[0];
			tag2 = s[1];
		}
	};
	var v = document.getElementsByTagName(tag);
	if(selclass==""){
		for(i=0;i<v.length;i++)
			objlist.push(v[i]);
		return(objlist);
	};
	for(i=0;i<v.length;i++){
		c = v[i].className.split(" ");
		for(j=0;j<c.length;j++){
			if(c[j] == selclass){
				if(tag2 == "")
					objlist.push(v[i]);
				else{
					v2 = v[i].getElementsByTagName(tag2);
					for(k=0;k<v2.length;k++)
						objlist.push(v2[k]);
				}
			}
		}
	};
	return(objlist);
};

function $$(id){
	var i;
	var elm;
	var arr;
	if(arguments.length>1){
		arr = [];
		arguments.each(function(n){
			arr.push(n);
		});
	};
	if(id instanceof Array){
		arr = id;
	};
	if(arr instanceof Array){
		elm = [];
		for(i=0;i<arr.length;i++)
			elm[i] = document.getElementById(arr[i]);
	} else {
		elm = document.getElementById(id);
	};
	return elm;
};

function addEvent(elm, evType, fn, useCapture) {
	if(elm.addEventListener){
		elm.addEventListener(evType, fn, useCapture);
		return true;
	} else if(elm.attachEvent){
		var r = elm.attachEvent('on' + evType, fn);
		return r;
	} else {
		elm['on' + evType] = fn;
	};
};

function remEvent(elm,evType,fn){
	if(document.detachEvent){
		elm.detachEvent('on'+evType,fn,true);
		return true;
	};
	if(elm.removeEventListener){
		elm.removeEventListener(evType,fn,true);
		return true;
	};
};

function addClass(elm,classe){
	if(!elm.className.find(classe))
		elm.className += " "+classe;
};

function remClass(elm,classe){
	elm.className = elm.className.replace(classe,"");
};

function addExtLinks() {
    if(W3CDOM){
        $('a.externo').each(function(n){
            if(n.getAttribute("href")){
                n.target='_blank';
                n.title += ' (Este link abre uma nova janela)';
            }
        });
    }
};

addEvent(window,"load",addExtLinks);

function $newTN(cont){
	if(typeof cont=="string"){
		return document.createTextNode(cont);
	} else {
		return false;
	};
};

function $new(elm,attr,cont){
	var i;
	var novo = CreateEl(elm);
	var attrs;
	if(typeof cont=="undefined"){
		cont = attr;
		attr=null;
	};
	if(attr instanceof Array){
		for(i=0;i<attr.length&&(attrs=attr[i].split("="));i++){
			novo[attrs[0]] = attrs[1];
		};
	} else {
		if(typeof attr=="string"&&(attrs=attr.split("="))){
			novo[attrs[0]] = (attrs.length==2) ? attrs[1] : "";
		};
	};
	if(cont instanceof Array){
		for(i=0;i<cont.length;i++){
			(typeof(cont[i])=="string") ? $append($newTN(cont[i]),novo) : $append(cont[i],novo);
		};
	} else {
		$append(cont,novo);
	};
	return novo;
}

function $before(elm,pai){
	return pai.parentNode.insertBefore(elm,pai);
};

function $after(elm,pai){
	return pai.parentNode.insertBefore(elm,pai.nextSibling);
};

function $replace(novo,old){
	if(old.parentNode){
		return old.parentNode.replaceChild(novo,old);
	} else {
		return false;
	};
};

function $append(elm,pai){
	var i;
	if(typeof pai=="undefined"){
		pai=document.body;
	};
	if(elm==""||elm==null){
		return true;
	};
	if(elm instanceof Array){
		elm.each(function(n){
			$append(n,pai);
		});
	} else {
		if(typeof elm=="string"){
			pai.appendChild($newTN(elm));
		} else {
			pai.appendChild(elm);
		};
	};
	return pai.childNodes.length;
};

function $remove(elm){
	if(elm && elm.parentNode){
		elm.parentNode.removeChild(elm);
	};
};

function getSrc(_1){
	if(typeof _1=="undefined"){
		_1=window.event;
	};
	var _2 = _1.target ? _1.target : _1.srcElement;
	if(_2.nodeType == 3){
		_2 = _2.parentNode;
	};
	return _2;
};

function cEvt(_1){
	try{
		_1.preventDefault();
	} catch(e){
		event.returnValue = false;
	};
	return false;
}

function getPosition(e){
    e = e||window.event;
	var arrPos = {x:0,y:0};
    if(e.pageX||e.pageY){
		arrPos.x=e.pageX;
		arrPos.y=e.pageY;
	} else {
        arrPos.x=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;
        arrPos.y=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop;
    };
    return arrPos;
};

function getPageScroll(){
	var yScroll = (self.pageYOffset) ? self.pageYOffset : (document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
	return arr = ['',yScroll];
};

function getPageSize(){
	var xScroll = (document.body.scrollWidth) ? document.body.scrollWidth : document.body.offsetWidth;
	var yScroll = (window.innerHeight + window.scrollMaxY) ? window.innerHeight + window.scrollMaxY : (document.body.scrollHeight) ? document.body.scrollHeight : document.body.offsetHeight;
	var windowWidth = (self.innerWidth) ? self.innerWidth : (document.body.clientWidth) ? document.body.clientWidth : document.documentElement.clientWidth;
	var windowHeight = (self.innerHeight) ? self.innerHeight : (document.body.clientHeight) ? document.body.clientHeight : document.documentElement.clientHeight;
	var pageHeight = (yScroll < windowHeight) ? windowHeight : yScroll;
	var pageWidth = (xScroll < windowWidth) ? windowWidth : xScroll;
	return arr = [pageWidth,pageHeight,windowWidth,windowHeight];
}

//ufo.js
var UFO={req:["movie","width","height","majorversion","build"],opt:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess","seamlesstabbing"],optAtt:["id","name","align"],optExc:["swliveconnect"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",ua:navigator.userAgent.toLowerCase(),pluginType:"",fv:[0,0],foList:[],create: function(FO,id){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac")){return;}UFO.getFlashVersion();UFO.foList[id]=UFO.updateFO(FO);UFO.createCSS("#"+id,"visibility:hidden;");UFO.domLoad(id);},updateFO: function(FO){if(typeof FO.xi!="undefined"&&FO.xi=="true"){if(typeof FO.ximovie=="undefined"){FO.ximovie=UFO.ximovie;}if(typeof FO.xiwidth=="undefined"){FO.xiwidth=UFO.xiwidth;}if(typeof FO.xiheight=="undefined"){FO.xiheight=UFO.xiheight;}}FO.mainCalled=false;return FO;},domLoad: function(id){var _t=setInterval(function(){if(($("body")[0]!=null||document.body!=null)&&$$(id)!=null){UFO.main(id);clearInterval(_t);}},250);addEvent(window,'load',function(){UFO.main(id);clearInterval(_t);});},main: function(id){var _7=UFO.foList[id];if(_7.mainCalled){return;}UFO.foList[id].mainCalled=true;$$(id).style.visibility="hidden";if(UFO.hasRequired(id)){if(UFO.hasFlashVersion(parseInt(_7.majorversion,10),parseInt(_7.build,10))){if(typeof _7.setcontainercss!="undefined"&&_7.setcontainercss=="true"){UFO.setContainerCSS(id);}UFO.writeSWF(id);}else{if(_7.xi=="true"&&UFO.hasFlashVersion(6,65)){UFO.createDialog(id);}}}$$(id).style.visibility="visible";},createCSS: function(_8,_9){var _s=$new("style",["type=text/css","media=screen"],"");if(!UFO.uaHas("ieWin")){$append(document.createTextNode(_8+" {"+_9+"}"), _s);}$append(_s,$("head")[0]);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var _c=document.styleSheets[document.styleSheets.length-1];if(typeof _c.addRule=="object"){_c.addRule(_8,_9);}}},setContainerCSS: function(id){var _e=UFO.foList[id];var _w=/%/.test(_e.width)?"":"px";var _h=/%/.test(_e.height)?"":"px";UFO.createCSS("#"+id,"width:"+_e.width+_w+";height:"+_e.height+_h+";");if(_e.width=="100%"){UFO.createCSS("body","margin-left:0;margin-right:0;padding-left:0;padding-right:0;");}if(_e.height=="100%"){UFO.createCSS("html","height:100%;overflow:hidden;");UFO.createCSS("body","margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;height:100%;");}},createObjParam: function(el,_13,_14){$append($new("param",["name="+_13,"value"+_14],""), el);},uaHas: function(ft){var _u=UFO.ua;switch(ft){case "w3cdom":return(typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined"));case "xml":var _m=$("meta");var _l=_m.length;for(var i=0;i<_l;i++){if(/content-type/i.test(_m[i].getAttribute("http-equiv"))&&/xml/i.test(_m[i].getAttribute("content"))){return true;}}return false;case "ieMac":return /msie/.test(_u)&&!/opera/.test(_u)&&/mac/.test(_u);case "ieWin":return /msie/.test(_u)&&!/opera/.test(_u)&&/win/.test(_u);case "gecko":return /gecko/.test(_u)&&!/applewebkit/.test(_u);case "opera":return /opera/.test(_u);case "safari":return /applewebkit/.test(_u);default:return false;}},getFlashVersion: function(){if(UFO.fv[0]!=0){return;}if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){UFO.pluginType="npapi";var _d=navigator.plugins["Shockwave Flash"].description;if(typeof _d!="undefined"){_d=_d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var _m=parseInt(_d.replace(/^(.*)\..*$/,"$1"),10);var _r=/r/.test(_d)?parseInt(_d.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[_m,_r];}}else{if(window.ActiveXObject){UFO.pluginType="ax";try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];_a.AllowScriptAccess="always";}catch(e){if(UFO.fv[0]==6){return;}}try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(typeof _a=="object"){var _d=_a.GetVariable("$version");if(typeof _d!="undefined"){_d=_d.replace(/^\S+\s+(.*)$/,"$1").split(",");UFO.fv=[parseInt(_d[0],10),parseInt(_d[2],10)];}}}}},hasRequired: function(id){var _l=UFO.req.length;for(var i=0;i<_l;i++){if(typeof UFO.foList[id][UFO.req[i]]=="undefined"){return false;}}return true;},hasFlashVersion: function(_25,_26){return (UFO.fv[0]>_25||(UFO.fv[0]==_25&&UFO.fv[1]>=_26))?true:false;},writeSWF: function(id){var _fo=UFO.foList[id];var _e=$$(id);if(UFO.pluginType=="npapi"){if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(_e.hasChildNodes()){$remove(_e.firstChild);}var _2a=$new("object",["type=application/x-shockwave-flash","data="+_fo.movie,"width="+_fo.width,"height="+_fo.height],"");var _l=UFO.optAtt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.optAtt[i]]!="undefined"){_2a.setAttribute(UFO.optAtt[i],_fo[UFO.optAtt[i]]);}}var _o=UFO.opt.concat(UFO.optExc);var _l=_o.length;for(var i=0;i<_l;i++){if(typeof _fo[_o[i]]!="undefined"){UFO.createObjParam(_2a,_o[i],_fo[_o[i]]);}}$append(_2a, _e);}else{var _30="";var _o=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);var _l=_o.length;for(var i=0;i<_l;i++){if(typeof _fo[_o[i]]!="undefined"){_30+=" "+_o[i]+"=\""+_fo[_o[i]]+"\"";}}_e.innerHTML="<embed type=\"application/x-shockwave-flash\" src=\""+_fo.movie+"\" width=\""+_fo.width+"\" height=\""+_fo.height+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+_30+" wmode=\"transparent\"></embed>";}}else{if(UFO.pluginType=="ax"){var _34="";var _l=UFO.optAtt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.optAtt[i]]!="undefined"){_34+=" "+UFO.optAtt[i]+"=\""+_fo[UFO.optAtt[i]]+"\"";}}var _37="";var _l=UFO.opt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.opt[i]]!="undefined"){_37+="<param name=\""+UFO.opt[i]+"\" value=\""+_fo[UFO.opt[i]]+"\" />";}}var _p=window.location.protocol=="https:"?"https:":"http:";_e.innerHTML="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""+_34+" width=\""+_fo.width+"\" height=\""+_fo.height+"\" codebase=\""+_p+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_fo.majorversion+",0,"+_fo.build+",0\"><param name=\"movie\" value=\""+_fo.movie+"\" />"+_37+"</object>";}}},createDialog:function(id){var _fo=UFO.foList[id];UFO.createCSS("html","height:100%;overflow:hidden;");UFO.createCSS("body","height:100%;overflow:hidden;");UFO.createCSS("#xi-con","position:absolute;left:0;top:0;z-index:1000;width:100%;height:100%;background-color:#fff;filter:alpha(opacity:75);opacity:0.75;");UFO.createCSS("#xi-dia","position:absolute;left:50%;top:50%;margin-left:-"+Math.round(parseInt(_fo.xiwidth,10)/2)+"px;margin-top:-"+Math.round(parseInt(_fo.xiheight,10)/2)+"px;width:"+_fo.xiwidth+"px;height:"+_fo.xiheight+"px;");$append($new("div","id=xi-con",$new("div","id=xi-dia","")),$("body")[0]);var _40=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari")){var _41=$("title")[0].firstChild.nodeValue=$("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation";}else{var _42=document.title=document.title.slice(0,47)+" - Flash Player Installation";}var _43=UFO.pluginType=="ax"?"ActiveX":"PlugIn";var _uc=typeof _fo.xiurlcancel!="undefined"?"&xiUrlCancel="+_fo.xiurlcancel:"";var _uf=typeof _fo.xiurlfailed!="undefined"?"&xiUrlFailed="+_fo.xiurlfailed:"";UFO.foList["xi-dia"]={movie:_fo.ximovie,width:_fo.xiwidth,height:_fo.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+_40+"&MMplayerType="+_43+"&MMdoctitle="+_42+_uc+_uf};UFO.writeSWF("xi-dia");},expressInstallCallback:function(){$removeChild($$("xi-con"));UFO.createCSS("body","height:auto;overflow:auto;");UFO.createCSS("html","height:auto;overflow:auto;");},cleanupIELeaks:function(){var _o=$("object");var _l=_o.length;for(var i=0;i<_l;i++){_o[i].style.display="none";for(var x in _o[i]){if(typeof _o[i][x]=="function"){_o[i][x]=null;}}}}};if(UFO.uaHas("ieWin")){addEvent(window,"unload",UFO.cleanupIELeaks);}

//flhome.js
if(typeof UFO != 'undefined'){
	var FO={movie:"flhome/home.swf",width:"740",height:"200",majorversion:"7",build:"0",wmode:"transparent"};UFO.create(FO,"flhome");
}

var loadingImage = '_skin/2007/rlb/loading.gif';var closeButton = '_skin/2007/rlb/close.gif';var rLBtag = 'a.rLB';function pause(numberMillis) {	var now = new Date();	var exitTime = now.getTime() + numberMillis;	while(true){		now = new Date();		if(now.getTime() > exitTime)			return;	}};function getKey(e){	if(e==null){ keycode = event.keyCode; }	else { keycode = e.which; };	key = String.fromCharCode(keycode).toLowerCase();	if(key == 'x'){ rLBhide(); }};function listenKey(){ document.onkeypress = getKey; };function rLBinit(){	if(!W3CDOM){ return; }	$(rLBtag).each(function(n){		if(n.getAttribute('href')){			n.onclick = function(){				rLBshow(this); return false;			}		}	});	rLBdoSkin();};function rLBdoSkin(){	var body = $('body')[0];	$before($new('div','id=overlay',			$new('a',['href=#','id=rLbloadLink'],				$new('img','id=rLBloading','')			)		), body.firstChild);	$$('overlay').onclick = function(){ rLBhide(); return false; };	var imgPreload = new Image();	imgPreload.onload=function(){		$$('rLbloadLink').onclick = function(){ rLBhide(); return false; }		$$('rLBloading').src = loadingImage;		imgPreload.onload = function(){};		return false;	};	imgPreload.src = loadingImage;	$after($new('div','id=rLB',[			$new('a',['id=rLBlink','href=#','title=Fechar'],[				$new('img','id=rLBclose',''),				$new('img','id=rLBimage','')			]),			$new('div','id=rLBswf',''),			$new('div','id=rLBdetails',[				$new('div','id=rLBcaption',''),				$new('div','id=rLBmsg','')			])		]), $$('overlay'));	$$('rLBlink').onclick = function(){ rLBhide(); return false; };	var imgFechar = new Image();	imgFechar.onload=function(){		$$('rLBclose').src = closeButton;		imgFechar.onload=function(){}		return false;	};	imgFechar.src = closeButton;	$$('rLBmsg').innerHTML = 'aperte <kbd>x</kbd> para fechar';};function rLBpos(width, height){	var box = $$('rLB');	var arrSize = getPageSize();	var arrScroll = getPageScroll();	var top = arrScroll[1] + ((arrSize[3] - 35 - height) / 2);	var left = ((arrSize[0] - 20 - width) / 2);	box.style.width = width + 'px';	box.style.top = (top < 0) ? '10px' : top + 'px';	box.style.left = (left < 0) ? '0px' : left + 'px';};function rLBshow(link){	var overlay = $$('overlay');	var imgLoading = $$('rLBloading');	var arrSize = getPageSize();	var arrScroll = getPageScroll();	if(imgLoading){		imgLoading.style.top = (arrScroll[1] + ((arrSize[3] - 35 - imgLoading.height) / 2) + 'px');		imgLoading.style.left = (((arrSize[0] - 20 - imgLoading.width) / 2) + 'px');		imgLoading.style.display = 'block';	}	overlay.style.height = (arrSize[1] + 'px');	overlay.style.width = (arrSize[0] + 'px');	$('select').each(function(n){		n.style.visibility = 'hidden';	});	overlay.style.display = 'block';	if(link.href.find('.jpg'||'.jpeg'||'.gif'||'.png')){		rLBdoImg(link);	} else if(link.href.find('.swf')){		rLBdoSwf(link);	} else if(link.href.find('.mp3')){		rLBdoMp3(link);	} else if(link.href.find('youtube')){		rLBdoYouTube(link);	} else {		rLBhide();		window.location = link.href;	}};function rLBflash(link,title){	var file = $new('a',['href='+ link,'title='+ title],'');	rLBshow(file);};function rLBdoImg(link){	var caption = $$('rLBcaption');	var imagem = $$('rLBimage');	var imgLoading = $$('rLBloading');	var arrSize = getPageSize();	imagem.style.display = 'block';	$$('rLBswf').style.display = 'none';	imgPreload = new Image();	imgPreload.onload=function(){		imagem.src = link.href;		rLBpos(imgPreload.width, imgPreload.height);		if(link.getAttribute('title')){			caption.style.display = 'block';			caption.innerHTML = link.getAttribute('title');		} else {			caption.style.display = 'none';		};		if (navigator.appVersion.find('MSIE')){			pause(250);		};		if(imgLoading){ imgLoading.style.display = 'none'; }		$$('rLB').style.display = 'block';		$$('overlay').style.height = (arrSize[1] + 'px');		listenKey();		return false;	}	imgPreload.src = link.href;};function rLBdoSwf(link){	var imgLoading = $$('imgLoading');	var rLBswf = $$('rLBswf');	var caption = $$('rLBcaption');	var arrSize = getPageSize();	var movie;	var swf;	var swfWidth;	var swfHeight;	$$('rLBimage').style.display = 'none';	rLBswf.style.display = 'block';	if(link.href.find('?') != -1){		movie = link.href.split('?');		swf = movie[0];		swfWidth = movie[1].split(',')[0];		swfHeight = movie[1].split(',')[1];	} else {		swf = link.href;		swfWidth = 720;		swfHeight = 400;	};	rLBswf.innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+swfWidth+"\" height=\""+swfHeight+"\""					+"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\">"					+"<param name=\"movie\" value=\""+swf+"\" />"					+"<param name=\"quality\" value=\"high\" />"					+"<param name=\"allowscriptaccess\" value=\"sameDomain\" />"					+"<param name=\"wmode\" value=\"transparent\" />"					+"<param name=\"scale\" value=\"noScale\" />"					+"<embed wmode=\"transparent\" allowscriptaccess=\"sameDomain\" src=\""+swf+"\" width=\""+swfWidth+"\" height=\""+swfHeight+"\" "					+"quality=\"high\" scale=\"noscale\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\">"					+"</embed></object>";	rLBpos(swfWidth, swfHeight);	if(link.getAttribute('title')){		caption.style.display = 'block';		caption.innerHTML = link.getAttribute('title');	} else {		caption.style.display = 'none';	};	if(navigator.appVersion.find('MSIE')){		pause(250);	};	if(imgLoading){		imgLoading.style.display = 'none';	};	$$('rLB').style.display = 'block';	$$('overlay').style.height = arrSize[1] +'px';	listenKey();	return false;};function rLBdoMp3(link){	var imgLoading = $$('rLBloading');	var rLBswf = $$('rLBswf');	var caption = $$('rLBcaption');	var arrSize = getPageSize();	$$('rLBimage').style.display = 'none';	rLBswf.style.display = 'block';	rLBswf.innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"200\" height=\"120\""					+"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\">"					+"<param name=\"movie\" value=\"_js/rlb/player.swf\" />"					+"<param name=\"quality\" value=\"high\" />"					+"<param name=\"allowscriptaccess\" value=\"sameDomain\" />"					+"<param name=\"wmode\" value=\"transparent\" />"					+"<param name=\"scale\" value=\"noScale\" />"					+"<param name=\"flashvars\" value=\"file="+link.href+"&nome="+link.title+"\" />"					+"<embed wmode=\"transparent\" allowscriptaccess=\"sameDomain\" src=\"_js/rlb/player.swf\" width=\"200\" height=\"120\" "					+"flashvars=\"file="+link.href+"&nome="+link.title+"\" quality=\"high\" scale=\"noscale\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\">"					+"</embed></object>";	rLBpos(200, 120);	if(link.getAttribute('title')){		caption.style.display = 'block';		caption.innerHTML = link.getAttribute('title');	} else {		caption.style.display = 'none';	};	if(navigator.appVersion.find('MSIE')){		pause(250);	};	if(imgLoading){		imgLoading.style.display = 'none';	};	$$('rLB').style.display = 'block';	$$('overlay').style.height = arrSize[1] +'px';	listenKey();	return false;};function rLBdoYouTube(link){	var imgLoading = $$('rLBloading');	var rLBswf = $$('rLBswf');	var caption = $$('rLBcaption');	var arrSize = getPageSize();	$$('rLBimage').style.display = 'none';	rLBswf.style.display = 'block';	var swf = link.href.replace('br.','www.').replace('watch?','').replace('v=','v/');	var swfWidth = 425;	var swfHeight = 355;	rLBswf.innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+swfWidth+"\" height=\""+swfHeight+"\""					+"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\">"					+"<param name=\"movie\" value=\""+swf+"\"></param>"					+"<param name=\"wmode\" value=\"transparent\" />"					+"<embed src=\""+swf+"\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\""+swfWidth+"\" height=\""+swfHeight+"\">"					+"</embed></object>";	rLBpos(swfWidth, swfHeight);	if(link.getAttribute('title')){		caption.style.display = 'block';		caption.innerHTML = link.getAttribute('title');	} else {		caption.style.display = 'none';	};	if(navigator.appVersion.find('MSIE')){		pause(250);	};	if(imgLoading){		imgLoading.style.display = 'none';	};	$$('rLB').style.display = 'block';	$$('overlay').style.height = arrSize[1] +'px';	listenKey();	return false;};function rLBhide(){	$$('overlay').style.display = 'none';	$$('rLB').style.display = 'none';	$$('rLBimage').src = '';	$$('rLBswf').innerHTML = '';	$('select').each(function(n){		n.style.visibility = 'visible';	});	document.onkeypress = '';};addEvent(window,'load',rLBinit);function addImgProds(){
    if(W3CDOM){
        $('a.cft').each(function(n){
			n.onclick = function(){
				$$('fprod').src = "img/"+ this.href.split('#')[1];;
				return false;
			}
        });
    }
}

addEvent(window,'load',addImgProds);