/*--=============================================================================================================
Ag. Dotes - Otimizando seus dons - http://www.dotes.com.br - +55(62)3514.1227 | url: http://www.tudoin.com.br  
Criado por : Luiz Jr. Fernandes | email: contato@dotes.com.br / luizbox@msn.com
=============================================================================================================-*/
window.addEvent("domready",function(){
var fxcorpo = new Fx.Morph('corpo', {duration: 1200, wait:false, unit:"pt"});
$("zoom_in").addEvents({
	"click":function(){
		fxcorpo.start({'font-size': 12,'line-height':18});	
	},					   
	"mouseenter":function(){
		this.src = "../images/portal/zoom_in_on.png";
	},
	"mouseleave":function(){
		this.src = "../images/portal/zoom_in.png"
	}
});

$("zoom_out").addEvents({
	"click":function(){
		fxcorpo.start({'font-size': 7.5,'line-height':13});		
	},					   
	"mouseenter":function(){
		this.src = "../images/portal/zoom_out_on.png";
	},
	"mouseleave":function(){
		this.src = "../images/portal/zoom_out.png"
	}
});

/*
$("printpage").addEvents({
	"click":function(){
		window.print();	
	},					   
	"mouseenter":function(){
		this.src = "../images/portal/print_on.png";
	},
	"mouseleave":function(){
		this.src = "../images/portal/print.png";	
	}
});

$("mail_send").addEvents({
	"click":function(){
		showForm('M');
	},					   
	"mouseenter":function(){
		this.src = "../images/portal/mail_send_on.png";	
	},
	"mouseleave":function(){
		this.src = "../images/portal/mail_send.png";	
	}
});

$("recomend").addEvents({
	"click":function(){
		showForm('R');
	},					   
	"mouseenter":function(){
		this.src = "../images/portal/user_on.png";	
	},
	"mouseleave":function(){
		this.src = "../images/portal/user.png";	
	}
});

$("corrija").addEvents({
	"click":function(){
		showForm('C');
	},					   
	"mouseenter":function(){
		this.src = "../images/portal/corrija_on.png";	
	},
	"mouseleave":function(){
		this.src = "../images/portal/corrija.png";	
	}
});
$("rss_feed").addEvents({
	"mouseenter":function(){
		this.src = "../images/portal/rss_feed_on.png";	
	},
	"mouseleave":function(){
		this.src = "../images/portal/rss_feed.png";	
	}
	
	
});
$("contacts").addEvents({		
	"mouseenter":function(){
		this.src = "../images/portal/mail_receive_on.png";	
	},
	"mouseleave":function(){
		this.src = "../images/portal/mail_receive.png";	
	}
	
	
});

	$$('#funcs img').each(function(element,index) {           var content = element.get('title').split('::');         element.store('tip:title', content[0]);           element.store('tip:text', content[1]);       });
	var myTips = new Tips('#funcs img',{     fixed:true,  offsets:{x:-50,y:65},    className: 'tipz',           hideDelay: 50,          showDelay: 50      }); 
	myTips.addEvent('show', function(tip){  tip.fade("in");});
	myTips.addEvent('hide', function(tip){  tip.fade("out");});

	var showForm = function(X){
		
			  new Element('div', {'id': 'formFuncs','styles': {'height':0,'opacity':0}}).inject("funcs","top");

		var fx = new Fx.Morph('formFuncs', {duration: 1200, wait:false, unit:"px"});
		var type = X;
		switch(X){
			case "M":
			break;
			case "R":
				fx.start({'height':[0, 160],'opacity':[0,1]});	
				$("formFuncs").set("html","<h2>Ajude-nos a melhorar!</h2><form><label>Seu Nome</label><br /><input type='text' size='75' /><br /><label>Seu Email</label><br /><input type='text'  size='75' /><br /><label>Erro encontrado</label><br /><textarea></textarea></form>");		
				
			break;
			case "C":
				$("formFuncs").set("html","<h2>Ajude-nos a melhorar!</h2><form><label>Seu Nome</label><br /><input type='text' size='75' /><br /><label>Seu Email</label><br /><input type='text'  size='75' /><br /><label>Erro encontrado</label><br /><textarea></textarea></form>");		
				fx.start({'height':[0, 160],'opacity':[0,1]});	
			break;
		}
		

		
		
		
	}
*/
}); //end domready
