var posx = 0;
var posy = 0;
var fonte = 12;

function MoveMouse(e){
    if(document.all){
          posx = event.clientX;
          posy  = event.clientY;
    } else {
          posx = e.clientX;
          posy = e.clientY;
    }
}

function ExibeBusca(){
	//document.getElementById('formbusca').style.display = 'block';	
	if(document.getElementById('formbusca').style.display == 'none'){
		document.getElementById('formbusca').style.display = 'block';
	}else{
			document.getElementById('formbusca').style.display = 'none';
	}	
}

function Fonte(tipo){
	if(parseInt(tipo) == 1){
		if(fonte < 20){ fonte = fonte + 2; }
		document.getElementById('texto').style.fontSize = fonte+ 'px';
	}else{
		if(fonte > 12){ fonte = fonte - 2; }
		document.getElementById('texto').style.fontSize = fonte+ 'px';
	}
}

function Mostra(id){
	if(document.getElementById(id).style.display == 'none'){
		document.getElementById(id).style.display = 'block';
	}else{
			document.getElementById(id).style.display = 'none';
	}	
}

function DesativaBot(id){
	document.getElementById(id).value = 'Aguarde...';	
}

function Mdata(id){
	//var conta = document.getElementById(id).value;
	var conta = id.value;
	qtd = conta.length;
	if(qtd == 2){
		id.value = conta+ '/';
	}
	if(qtd == 5){
		id.value = conta+ '/';
	}
}

function RadioPlay(){
	RadioStart();
	if(document.getElementById('Player')){
		document.getElementById('Player').url = "mms://windows.uranox.com.br/alternativa";
		document.getElementById('tocando').style.display = 'block';
	}
}
function RadioStop(){
	if(document.getElementById('Player')){
		document.getElementById('Player').controls.stop();	
		document.getElementById('tocando').style.display = 'none';
	}
}
function RadioStart(){
	if(document.all){ //IE	
		document.getElementById('radio').innerHTML = '<object id="Player" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="0" height="0"></object>';
	}else{
		document.getElementById('radio').innerHTML = '<object id="Player" type="application/x-ms-wmp" width="0" height="0"></object>';
	}	
}
document.onmousemove =  MoveMouse;