
//        window.document.style=backgroundImage="url("+bgs[Math.floor(Math.random()*bgs.length)] +")";
function l(v){
    if(console)
        console.log(v);
}
(function($){
    var bgs=[
    "http://www.devtics.com.mx/wp/wp-content/themes/ModernMagicDevTics/images/bg.jpg",
    "http://www.devtics.com.mx/imgs/bgs/c.gif",
    "http://www.devtics.com.mx/imgs/bgs/cc.gif",
    "http://www.devtics.com.mx/imgs/bgs/css.gif",
    "http://www.devtics.com.mx/imgs/bgs/java.gif",
    "http://www.devtics.com.mx/imgs/bgs/javascript.gif",
    "http://www.devtics.com.mx/imgs/bgs/php.gif",
    "http://www.devtics.com.mx/imgs/bgs/xhtml.gif",
    ];
    
    var loadBg=function(){
        var bg =bgs[Math.floor(Math.random()*bgs.length)];
        var imgBg=new Image();
        imgBg.onload=function(){
            $("body").css("background-image","url("+bg+")");
            setTimeout(loadBg, 30000);
        }();
        imgBg.src=bg;
    }
        
    initDevTics = function(){
        loadBg();
        $(".aFollowMeTwt").mouseover(function(){
            $(this).addClass("aFollowMeTwtOver");
        }).mouseout(function(){
            $(this).removeClass("aFollowMeTwtOver");
        });
//        var h = $("body").height()-$("#header-wrap").height();
//        var $conteiner=$("#container");
//        var $unaDiv=$("<div>").css({
//            display:'block',
//            'background-color':'red',
//            position:'absolute',
//            opacity:.2,
//            width:"100%",
//            height : h
//        });
//        $("#footer").css("opacity",0.3);
//        $("#container").before($unaDiv).css("opacity",0.99);
//        $("#container").css({"position":'relative','z-index':1000});
    }
})(jQuery);


