﻿
 $(function() {
     
        
        if($(".phGalery").length > 0)
        $(".phGalery").colorbox({width:"830px;", height:"90%", iframe:true});

  if($("a[rel='lightbox']").length > 0)
        $("a[rel='lightbox']").colorbox({slideshow:true,transition:"fade"});

/* menu pt */
if($(".bt1_pt").length >0){
$(".bt1_pt").hover(
    function() { this.src = '../../images/layout/menu/mn_pt2_01.png' },
    function() { this.src = '../../images/layout/menu/mn_pt_01.png' }
);

 $(".bt2_pt").hover(
    function() { this.src = '../../images/layout/menu/mn_pt2_02.png' },
    function() { this.src = '../../images/layout/menu/mn_pt_02.png' }
);
 $(".bt3_pt").hover(
    function() { this.src = '../../images/layout/menu/mn_pt2_03.png' },
    function() { this.src = '../../images/layout/menu/mn_pt_03.png' }
);
 $(".bt4_pt").hover(
    function() { this.src = '../../images/layout/menu/mn_pt2_04.png' },
    function() { this.src = '../../images/layout/menu/mn_pt_04.png' }
);
 $(".bt5_pt").hover(
    function() { this.src = '../../images/layout/menu/mn_pt2_05.png' },
    function() { this.src = '../../images/layout/menu/mn_pt_05.png' }
);
}

/* menu us */
if($(".bt1_us").length >0){
$(".bt1_us").hover(
    function() { this.src = '../../images/layout/menu/mn_us2_01.png' },
    function() { this.src = '../../images/layout/menu/mn_us_01.png' }
);

 $(".bt2_us").hover(
    function() { this.src = '../../images/layout/menu/mn_us2_02.png' },
    function() { this.src = '../../images/layout/menu/mn_us_02.png' }
);
 $(".bt3_us").hover(
    function() { this.src = '../../images/layout/menu/mn_us2_03.png' },
    function() { this.src = '../../images/layout/menu/mn_us_03.png' }
);
 $(".bt4_us").hover(
    function() { this.src = '../../images/layout/menu/mn_us2_04.png' },
    function() { this.src = '../../images/layout/menu/mn_us_04.png' }
);
 $(".bt5_us").hover(
    function() { this.src = '../../images/layout/menu/mn_us2_05.png' },
    function() { this.src = '../../images/layout/menu/mn_us_05.png' }
);
}

/* menu es */
if($(".bt1_es").length >0){
$(".bt1_es").hover(
    function() { this.src = '../../images/layout/menu/mn_es2_01.png' },
    function() { this.src = '../../images/layout/menu/mn_es_01.png' }
);

 $(".bt2_es").hover(
    function() { this.src = '../../images/layout/menu/mn_es2_02.png' },
    function() { this.src = '../../images/layout/menu/mn_es_02.png' }
);
 $(".bt3_es").hover(
    function() { this.src = '../../images/layout/menu/mn_es2_03.png' },
    function() { this.src = '../../images/layout/menu/mn_es_03.png' }
);
 $(".bt4_es").hover(
    function() { this.src = '../../images/layout/menu/mn_es2_04.png' },
    function() { this.src = '../../images/layout/menu/mn_es_04.png' }
);
 $(".bt5_es").hover(
    function() { this.src = '../../images/layout/menu/mn_es2_05.png' },
    function() { this.src = '../../images/layout/menu/mn_es_05.png' }
);
}

});
    
    
  $(function(){
       
      
      $.fn.mbGallery.defaults={
        containment:"",
        galleryTop:100,
        galleryWidth: 300,
        galleryHeight: 300,
        galleryMaxWidth: 0,
        galleryMaxHeight: $("window").height()-120,
        galleryColor: "#333",
        galleryFrameBorder: 12,
        galleryFrameColor: "#fff",
        maskOpacity:.5,
        maskBgnd:"transparent",

        startFrom: "random",
        headerOpacity: 0.8,
        thumbsBorder: 4,
        thumbHeight: 50,
        thumbStripWidth:250,
        thumbStripColor: "#333333",
        thumbStripPos: "right",
        thumbSelectColor: "black",
        thumbOverColor: "#cccccc",
        imageSelector: ".imgFull",
        thumbnailSelector: ".imgThumb",
        descSelector: ".imgDesc",
        descriptionWidth:300,

        labelColor: "#333",
        labelColorDisactive: "#333",
        labelTextColor: "#fff",
        labelTextSize: "11px",
        labelHeight: 20,

        iconFolder: "../../css/elements/white",
        fadeTime: 500,
        autoSlide: true,
        slideTimer: 6000,
        autoSize: true,
        startTimer:0
      };
    
    });
