// JavaScript Document
function formatTitle(title, currentArray, currentIndex, currentOpts) {
    return '<div id="tip7-title"><span><a href="javascript:;" onclick="$.fancybox.close();"><img src="global/images/fancybox/fancy_close.png" /></a></span>' + (title && title.length ? '<b>' + title + '</b>' : '' ) + 'Imagem ' + (currentIndex + 1) + ' de ' + currentArray.length + '</div>';
}

function OnFocus(id, cor, valor_atual){
	var obj = document.getElementById(id);
	if (obj.value==valor_atual){
		obj.value='';
		obj.style.color = cor;
	}
}
function OnBlur(id, cor, valor_atual){
	var obj = document.getElementById(id);
	if (obj.value==''){
		obj.style.color = cor;
		obj.value=valor_atual;
		
	}
}

// JavaScript Document
// CSS Browser Selector   v0.2.5
// Documentation:         http://rafael.adm.br/css_browser_selector
// License:               http://creativecommons.org/licenses/by/2.5/
// Author:                Rafael Lima (http://rafael.adm.br)
// Contributors:          http://rafael.adm.br/css_browser_selector#contributors

var css_browser_selector = function() {
	var 
		ua=navigator.userAgent.toLowerCase(),
		is=function(t){ return ua.indexOf(t) != -1; },
		h=document.getElementsByTagName('html')[0],
		b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):is('gecko/')? 'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',
		os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';
	var c=b+os+' js';
	h.className += h.className?' '+c:c;
}();

function setActiveTab(tabID) {
	var currTabElem = document.getElementById(tabID);
	var classe = document.getElementById(tabID).className;
	currTabElem.setAttribute("class", "atual");
//	currTabElem.setAttribute("className", classe+" atual");
	return;
}
