function openWindow(url, propriedades) {
  window.open(url,'_blank',"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no," + propriedades);
}

function goUrl(url) {
  parent.location = url;
}
function informativo(){
	if(document.getElementById("info_nome") && document.getElementById("info_email") && document.getElementById("info_botao")){
		var nome = document.getElementById("info_nome");
		var email = document.getElementById("info_email");
		var botao = document.getElementById("info_botao");
		if(nome.value == 'Seu nome'){
			nome.onfocus = function(){
				nome.value = '';
				botao.disabled = '';
			}
		}
		if(email.value == 'nome@provedor.com.br'){
			email.onfocus = function(){
				email.value = '';
				botao.disabled = '';
			}
		}
		if((nome.value == 'Seu nome') && (email.value == 'nome@provedor.com.br')){
			botao.disabled = 'disabled';
		}
	}
}



window.onresize = function (){
	var obj, lstObj, i, tamanhoJanela, estilo, ver;

	tamanhoJanela = pegaTamanhoJanela();

	lstObj = document.getElementsByTagName('head')[0];

	obj = lstObj.getElementsByTagName('link');

	ver = null;
	for (i=0; i < obj.length; i++ ){

		if (obj[i].href.indexOf('800.css') != -1){
			ver = obj[i]; break;
		}
	}
	obj = (ver != null) ? ver : null;

	if (tamanhoJanela[0] < 1024){

		if(!obj){
			obj = document.createElement('link');
			obj.rel = 'stylesheet';
			obj.type = 'text/css';
			lstObj.appendChild(obj);
		}

		ver = new Date();
		obj.href = 'f/c/800.css?' + ver.getTime();

	} else {
		if(obj){
			obj.parentNode.removeChild(obj);
		}
	}


}

function pegaTamanhoJanela() {
	var myWidth = 0, myHeight = 0;

	if(typeof( window.innerWidth ) == 'number') {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}

	return [myWidth, myHeight];

}
