/*
 * By Mario Zambon (http://www.urbangap.com)
 * Copyright (c) 2008 cody urbangap
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.jsp
*/

function q8() {	


	function fx(el, tmp, type) {el.set(type, {duration: tmp, transition: Fx.Transitions.linear})}	


	var mn = $$('.vox a', '.mnII a', '.mnIIleft a')
	mn.removeProperty('title')
	mn.each(function(item, index){
		if (item.hasClass('active')) {
			//item.addEvent('click', $lambda(false))
		} else {
			fx(item, 250, 'tween')
			item.addEvents({
				'mouseover': 	function(){ this.tween('opacity', 0.1) },
				'mouseleave': 	function(){ this.tween('opacity', 1) }
			})
		}
	})


	var mnLeftII = $$('.boxLeft a')
	mnLeftII.removeProperty('title')
	mnLeftII.each(function(item, index){
		if (item.hasClass('active')) {
			item.addEvent('click', $lambda(false))
		} else {
			fx(item, 250, 'morph')
			item.addEvents({
				'mouseover': 	function(){ this.morph('.boxLeftOver') },
				'mouseleave': 	function(){ this.morph('.boxLeftOut') }
			})
		}
	})



	var lnk = $$('a.blank', '.blank a')
	//var txt = ''
	
	lnk.addEvent('click', $lambda(false))
	lnk.each(function(item, index){
		//var title = item.getProperty('title')
		//item.setProperty('title', title+' '+txt)
		item.addEvent('click', function(event){
			window.open(this)
		})
	})
	
	
	
	
	// mninfo
	var premiElenco	= $$('#premiElenco a')
	fx(premiElenco, 250, 'tween')
	var opc = 0.40
	premiElenco.set('opacity', 1)
	premiElenco.addEvents({
		'mouseover': 	function(){ 
			premiElenco.tween('opacity', opc)
			this.tween('opacity', 1)
		},
		'mouseleave': 	function(){ 
			premiElenco.tween('opacity', 1)
			this.tween('opacity', 1)
		}
	})
	
}
window.addEvent('domready', q8)