//function unloadUserJS() {
//	$(".exhibitorsList").unbind('click');
//}

//function loadUserJS() {
//	$(".exhibitorsList").click(function() {
//            $.myLoad("#exhibitorsContenido", "./index.php?method=user&letter=" + $(this).html() + "&section=motorEvents&year=" + $("input#eventYear").val() + "&url=" + $("input#eventUrl").val() + "&zone=loadExhibitors&AJAX=true&category=" + $("input#eventExhibitorCategory").val() + "&exhibitorType=" + $("input#eventExhibitorType").val());
//	});

//	$(".exhibitorsMarca").click(function() {
//            $.myLoad("#exhibitorsContenido", "./index.php?method=user&letter=Todas&section=motorEvents&year=" + $("input#eventYear").val() + "&url=" + $("input#eventUrl").val() + "&zone=loadExhibitors&AJAX=true&exhibitorType=marca&category=" + $("input#eventExhibitorCategory").val());
//	});
//	
//	$(".exhibitorsEmpresa").click(function() {
//            $.myLoad("#exhibitorsContenido", "./index.php?method=user&letter=Todas&section=motorEvents&year=" + $("input#eventYear").val() + "&url=" + $("input#eventUrl").val() + "&zone=loadExhibitors&AJAX=true&exhibitorType=empresa&category=" + $("input#eventExhibitorCategory").val());
//	});

//        $(".exhibitorsCategory").click(function() {
//            $.myLoad("#exhibitorsContenido", "./index.php?method=user&letter=Todas&section=motorEvents&year=" + $("input#eventYear").val() + "&url=" + $("input#eventUrl").val() + "&zone=loadExhibitors&AJAX=true&exhibitorType=marca&category=" + $(this).attr('title'));
//            $(".exhibitorsCategory").each(function() {
//                $(this).css("font-weight", "normal");
//            });
//            $(this).css("font-weight", "bold");
//        });
//}

$(document).ready(function() { 
 //   $(".align").center();

    $(".page").click(function() {
        $(document).scrollTop(0);
        $("#showContent").load($(this).attr('title'));
    });

    $(".roll").each(function() {
        rollsrc = $(this).attr("src");
        rollON = rollsrc.replace(/.(png|gif)$/ig, "_over.$1");
        $("<img>").attr("src", rollON);
    }); 

    $(".roll").mouseover(function() {
        imgsrc = $(this).attr("src");
        matches = imgsrc.match(/_over/);
        if (!matches) {
            imgsrcON = imgsrc.replace(/.(png|gif)$/ig, "_over.$1");
            $(this).attr("src", imgsrcON);
        }
    });

    $(".roll").mouseout(function() {
        $(this).attr("src", imgsrc);
    });

  //  $(".pirobox_gall").center();

	$(".more img.align").click(function() {
		window.location = $(this).attr('longdesc');
	});
	
    $().piroBox({
        my_speed: 600, //animation speed
        bg_alpha: 0.5, //background opacity
        radius: 4, //caption rounded corner
        scrollImage : false, // true == image follows the page, false == image remains in the same open position
        pirobox_next : 'piro_next', // Nav buttons -> piro_next == inside piroBox , piro_next_out == outside piroBox
        pirobox_prev : 'piro_prev',// Nav buttons -> piro_prev == inside piroBox , piro_prev_out == outside piroBox
        close_all : '.piro_close',// add class .piro_overlay(with comma)if you want overlay click close piroBox
        slideShow : 'slideshow', // just delete slideshow between '' if you don't want it.
        slideSpeed : 4 //slideshow duration in seconds(3 to 6 Recommended)
    });

});

