/**
 * @author specktro
 */
window.onload = function(){
	/*var so = new SWFObject('http://openradiux.com/wp-content/themes/orx/mediaplayer.swf', 'streambaby', '300', '20', '7');
	so.addVariable('type', 'mp3');
	// Shoutcast stream - VOG FM
	//so.addVariable('file', 'http://IP:PUERTO/;stream.nsv');
	// Icecast stream - Proton Radio
	//so.addVariable('file', 'http://208.53.182.218:8056/;stream.nsv');
	so.addVariable('file', 'http://208.53.166.242:8056/;stream.nsv');
	so.addVariable('autostart', 'true');
	so.addVariable('backcolor', '0x000000');
	so.addVariable('frontcolor', '0xdfece6');
	so.addVariable('lightcolor', '0xdfece6');
	so.addVariable('screencolor', '0x000000');
	so.write('flash');*/
	
	clicksLocu();		//Clicks Locutores
	tooltip.init ();
}

function clicksLocu(){
	var lastLocuOver;
	
	$("apedron").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "apedron"){
			lastLocuOver = "apedron";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/apedron.html", "perfil");
		}
	}
	
	$("buho").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "buho"){
			lastLocuOver = "buho";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/buho.html", "perfil");
		}
	}
	
	$("djrohids").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "djrohids"){
			lastLocuOver = "djrohids";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/djrohids.html", "perfil");
		}
	}

	$("dyannah").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "dyannah"){
			lastLocuOver = "dyannah";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/dyannah.html", "perfil");
		}
	}
		
	$("fhidy").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "fhidy"){
			lastLocuOver = "fhidy";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/fhidy.html", "perfil");
		}
	}
	
	$("glory").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "glory"){
			lastLocuOver = "glory";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/glory.html", "perfil");
		}
	}
	
	$("iekc").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "iekc"){
			lastLocuOver = "iekc";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/iekc.html", "perfil");
		}
	}
	
	$("joshua007").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "joshua007"){
			lastLocuOver = "joshua007";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/joshua007.html", "perfil");
		}
	}
	
	$("karen").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if(lastLocuOver != "karen"){
			lastLocuOver = "karen";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/karen.html", "perfil");
		}
	}
	
	$("lalcaraz").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if(lastLocuOver != "lalcaraz"){
			lastLocuOver = "lalcaraz";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/lalcaraz.html", "perfil");
		}
	}
	
	$("lauradark").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if(lastLocuOver != "lauradark"){
			lastLocuOver = "lauradark";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/lauradark.html", "perfil");
		}
	}
	
	$("lolarocker").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if(lastLocuOver != "lolarocker"){
			lastLocuOver = "lolarocker";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/lolarocker.html", "perfil");
		}
	}
	
	$("lyo").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "lyo"){
			lastLocuOver = "lyo";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/lyo.html", "perfil");
		}
	}

	$("madeleine").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "madeleine"){
			lastLocuOver = "madeleine";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/madeleine.html", "perfil");
		}
	}
	
	$("mastropiero").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "mastropiero"){
			lastLocuOver = "mastropiero";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/mastropiero.html", "perfil");
		}
	}
	
	$("natsuki").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "natsuki"){
			lastLocuOver = "natsuki";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/natsuki.html", "perfil");
		}
	}
	
	$("rosh").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "rosh"){
			lastLocuOver = "rosh";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/rosh.html", "perfil");
		}
	}

	$("sangelle").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "sangelle"){
			lastLocuOver = "sangelle";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/sangelle.html", "perfil");
		}
	}
	
	$("sheila").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "sheila"){
			lastLocuOver = "sheila";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/sheila.html", "perfil");
		}
	}
	
	$("specktro").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "specktro"){
			lastLocuOver = "specktro";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/specktro.html", "perfil");
		}
	}
	
	$("steely").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "steely"){
			lastLocuOver = "steely";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/steely.html", "perfil");
		}
	}
	
	$("tanalasta").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "tanalasta"){
			lastLocuOver = "tanalasta";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/tanalasta.html", "perfil");
		}
	}
	
	$("twittera").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "twittera"){
			lastLocuOver = "twittera";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/twittera.html", "perfil");
		}
	}
	
	$("velkhan").onmouseover = function(){
		tooltip.show(this.getAttribute('tiptitle'))
		if (lastLocuOver != "velkhan"){
			lastLocuOver = "velkhan";
			manejaClick("http://openradiux.com/wp-content/themes/orx/doctos/locutores/velkhan.html", "perfil");
		}
	}
}

function manejaClick(liga, divR){
	$Ajax(liga, {
		cache: true,
		onfinish: function(html){
			new Effect.Fade(divR, {
				duration: 0.25,
				afterFinish: function(){
					$(divR).innerHTML = html;
					new Effect.Appear(divR,{duration: 0.25});
				}
			});
		}
	});
}