/**
 * @author flávio zantut nogueira
 */
/*
//#bloqueia seleção da página
function disabletext(e){
    return false
};
function reEnable(){
    return true
};
//if the browser is IE4+
document.onselectstart = new Function("return false")

//if the browser is NS6
if (window.sidebar) {
    document.onmousedown = disabletext
    document.onclick = reEnable
}
//#end
*/
window.onerror = erro;
function erro(msg, url, line){
    jQuery.post("admin/error.php", {
        msg: msg,
        url: url,
        line: line
    });
	//return true;
   // alert('erro');
    //window.location.reload();
};
$(window).error(function(e){
    erro;
    //alert('erro');
    //return true;
});

$(document).ready(function(){
	
    $.ajaxSetup({
        //cache: false
    });
	$("#atalhoCompet, #atalhoCatalog, #atalhoFusoNet, #atalhoVideo").hover(
			function(){
				$(this).find('.imagesAtHome').each(function(){$(this).stop().animate({width:'10px'}, 500)});
			},		
			function(){
				$(this).find('.imagesAtHome').each(function(){$(this).stop().animate({width:'150px'}, 500)});
			}
		);
    $.fn.createDialog.defaults = {
        progress: true,
        center: true,
        opacity: 0.7,
        bg: '#000'
    }
    $("#clipPlay").createDialog({
        addr: 'clip/dialog.php?clip=clip_Fusopar',
        opacity: 0.9
    });
    //end
	
    //menuefect

 $('#menu a').css({
        backgroundPosition: "0 0"
    }).mouseover(function(){
        $(this).stop().animate({
            backgroundPosition: "-160px 0",
            color: "#000"
        }, {
            duration: 200
        });
    }).mouseout(function(){
        $(this).stop().animate({
            backgroundPosition: "-300px 0",
            color: "#DAD8E4"
        }, {
            duration: 200,
            complete: function(){
                $(this).css({
                    backgroundPosition: "0 0"
                })
            }
        })
    });
    //end

});
function runEffect(){
    //$(".clip").stop().show('clip', 1000);
};
