/**
 * @author alex
 * Arquivo responsável por definir funções para o site
 */

Cufon.replace("#site-title",{ fontFamily : "Myriad Pro" });

$(function(){
	
	$("#links a:eq(0)").addClass("jq");
	
	$("#links a:eq(1)").addClass("wp");
	
	$("#social-media a, #w3c-validation a, .wp, .jq, .open").click(function(){
		window.open(this.href);
		return false;
	})
	
	$(".single, textarea").focus(function(){
		$(this).css("background","#f8f8f8")
	});
	$(".single, textarea").blur(function(){
		$(this).css("background","#f0f0f0")
	});
	
	$("#sendbutton").parents("p").css("padding","0");
	
	$("ul#social-media li a").qtip({
        style: {
			fontFamily:'Verdana',
			fontWeight:"bold",
			color: "#ffffff",
            background: '#FF6600',
			fontSize:12,
            border: {
                radius: 10,
				color: "#FF6600"
            },
            tip: true
        },
        position: {
            target: 'mouse',
            adjust: {
                x: 0, y: 10
            }
        }
	});
/*
	DD_roundies.addRule('.sub-text', '0 20px 0 0', true);
	DD_roundies.addRule('.contato', '0 20px 0 0', true);

	DD_roundies.addRule('.ngg-navigation a', '100px', true);
	DD_roundies.addRule('#ngg-next-2', '0', true);
	
	DD_roundies.addRule('.visite', '50px', true);
*/
})
