/*
	Definições de js do cliente
*/
$(document).ready(function(){

	/* Remove and highlighting the dialog boxes */
	/* succes */
	$(".del-x").click(function() {
				$(this).parents('#flashMessage').effect("highlight", {}, 400).animate({
					opacity: 0    
				},function () {
					$(this).remove();
				});
		return false;
	  });
	  
	  $("#fechar_banner").click(function() {
				$(this).parents('#banner').effect("highlight", {}, 400).animate({
					opacity: 0    
				},function () {
					$(this).remove();
				});
		return false;
	  });
	
});

function addFav(){
    var url      = "http://www.sindicomchapeco.com.br";
    var title    = "SINDICOM - Sindicato dos Empregados do Comércio de Chapecó";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}

function posicionar_abas(){
	//document.getElementById('abas');
	var w = screen.availWidth;
	//var h = screen.availHeight;
	var n = (w / 2) + (482);
	var explorer = (document.all) ? true : false;
	if (explorer){
		n = n - 2;
	}
	document.getElementById('abas').style.left=""+n+"px";
	document.getElementById('abas').style.display="block";
}

