	function echoFont(param){
		var vText 	= param.vText;
		var vColor 	= param.vColor;
		var vSize 	= param.vSize;
		var vWidth 	= param.vWidth;
		var vHeight = param.vHeight;
		var vWmode 	= param.vWmode;
		var vBg 	= param.vBg;
		
		if(!vText) 		vText 		= 'Título teste título teste';
		if(!vColor) 	vColor 		= '156325';
		if(!vSize) 		vSize 		= 30;
		if(!vWidth) 	vWidth 		= '100%';
		if(!vHeight) 	vHeight 	= '40';
		if(!vWmode) 	vWmode 		= 'transparent';
		if(!vBg) 		vBg 		= 'ffffff';
			
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0',
			'width', vWidth,
			'height', vHeight,
			'wmode', 'transparent',
			'bgcolor', vBg,
			'src', 'swf/titulo',
			'quality', 'high',
			'pluginspage', 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash',
			'movie', 'swf/titulo',
			'FlashVars', 'vText=' + vText + '&vColor=' + vColor + '&vSize=' + vSize
		);
	}
	function echoH1(title){
		echoFont({vText:title, vColor:'201f1e', vSize:22, vHeight:'28'});
	}
	function echoH2(title){
		echoFont({vText:title, vColor:'201f1e', vSize:18, vHeight:'24'});
	}
	function echoTitle(title){
		echoFont({vText:title, vColor:'ffffff', vSize:27, vHeight:'40'});
	}
	
	function getPosition(e){
		e = e || window.event;
		var cursor = {x:0, y:0};
		if (e.pageX || e.pageY) {
			cursor.x = e.pageX;
			cursor.y = e.pageY;
		} 
		else {
			var de = document.documentElement;
			var b = document.body;
			cursor.x = e.clientX + (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
			cursor.y = e.clientY + (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
		}
		return cursor;
	}

	function showChatAlert(obj, msg){
		var newElement = document.createElement('div');
			newElement.id = "chatAlert";
			newElement.className = "chatAlert";
			newElement.innerHTML = msg;
			document.body.appendChild(newElement);
			
		document.onmousemove = function(event){
			var chatAlert = document.getElementById('chatAlert');
			chatAlert.style.left = getPosition(event).x + 'px';
			chatAlert.style.top = getPosition(event).y + 'px';
		};
		obj.onmouseout = function(){
			document.onmousemove = function(){}
			document.body.removeChild(document.getElementById('chatAlert'));
		}
	}
	
	function linkChat(str, prod){
		if(chat_status=='on'){
			var _link = "javascript:void(window.open('http://www.villebanheiras.com.br/mod_chat/livezilla.php?produto="+prod+"','','width=600,height=600,left=' + ((window.screen.width/2)-300) + ',top=' + ((window.screen.height/2)-300) + ',resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))";
			var msg = 'No momento estamos <span class=online>On-line</span>.<br /> Fale agora com um de nossos atendentes.';
		}else{
			if(chat_status=='off') var _link = "http://www.villebanheiras.com.br/fale_conosco.php";
			var msg = 'No momento estamos <span class=offline>off-line</span>.<br /> Veja os hor&aacute;rios de atendimento na p&aacute;gina <strong>Fale Conosco</strong>.';
		}
		document.write('<span> <a href="' + _link + '" onmouseover="showChatAlert(this, \'' + msg + '\')">' + str + '</a> </span>');
	}
	
