$(document).ready(function(){
    $(".home .search label").inFieldLabels();
});

$(".list_options").ready(function(){    
	$(".list_options").jFlow({
		slides: "#hot_topics",
		controller: ".hot_topic_tab", // must be class, use . sign
		slideWrapper : "#jFlowSlide", // must be id, use # sign
		selectedWrapper: "selected",  // just pure text, no sign
		width: "191",
		height: "171px",
		duration: 400
	});
});
$(document).ready(function(){
    //Examples of how to assign the ColorBox event to elements

    $("#col1 .image .popup").colorbox({});

    $("#col1 .video .popup").colorbox({iframe:true, width:650, height:550});
    $(".help.popup").colorbox({iframe:true, width:650, height:500});

    

});

$(document).ready(function(){
    if(typeof(refreshUrl)!="undefined"){
        function update(){

            $.ajax({
                type: "GET",
                url: refreshUrl,
                dataType: "json",
                cache: false,
                success : function(datos){
                    if (datos==false){
                        setTimeout(update, 60000);
                    }
                    else{                       
                        $('.refresh').slideDown('slow');                       
                    }
                }
            });
        }
        $(document).ready(function(){
            setTimeout(update, 10000);
        });
    }
});
/*
var mymenu=new drilldownmenu({
    menuid: 'drillmenu1',
    menuheight: 'auto',
    breadcrumbid: 'drillcrumb',
    persist: {enable: true, overrideselectedul: true}
});
 */

