/*
 * FUNCAO DO jquery.form PARA POST DE UPLOAD DE IMAGENS
 */
function fPost() {
    var options = { 
        target:        '#resposta',
        beforeSubmit:  postRequest,
        success:       postResponse 
    }; 
    $('#fContato').ajaxForm(options);
    //alert("oops!")
}
function postRequest(formData, jqForm, options) { 
	$("#resposta").html("Enviando...");
	/*$("#avisos").animate({top: 0, opacity: 'show'}, 300);*/
	return true; 
} 
function postResponse(responseText, statusText)  { 
	/*$("#avisos").html("Arquivo enviado com sucesso!");
	setTimeout(function(){
		$("#avisos").animate({top: -50, opacity: 'hide'}, 300);
	}, 3000);*/
}
function homeWebMail() {
	/*
	 * 	home - webmail e central do assinante assinante
	 *  esconde os titulos e exibe lista para trocar entre paineis
	 */
	$(".webmail h3").remove();
	$(".assinante h3").remove();
	
	lista  ="<div>"
	lista +="    <ul>"
    lista +="        <li class=\"l00\"><a href=\"#\">WEB Mail</a></li>"
    lista +="        <li class=\"l01\"><a href=\"#\">Central do Assinant</a></li>"
    lista +="    </ul>"
    lista +="</div>"
	
	$(".webmail").prepend(lista);
	$(".assinante").prepend(lista);
	
	$(".webmail li.l01 a").click(function(){
		$(".webmail").hide();
		$(".assinante").animate({opacity: 'show'}, 300);
		return false;
	})
	
	$(".assinante li.l00 a").click(function(){
		$(".webmail").animate({opacity: 'show'}, 300);
		$(".assinante").hide();
		return false;
	})
}





/*
 * ON LOAD DA PAGINA
 */
$(document).ready(function(){
/*	var Screen = screen.width;
	alert(Screen);
*/

});













