/* *************************** */
/* BEGIN ZOOMSHOWCASE SETTINGS */
/* *************************** */
zoomShowcaseSettings = {
				
    /* The original image width */
    imageWidth: 565,
				
    /* The original image height */
    imageHeight: 377,
				
    /* The total alloted width for the banner */
    bannerWidth: 980,
				
    /* The speed of the shuffle animation in milliseconds */
    animationSpeed: 750,
				
    /* Options are "easeOutQuint", "easeInOutQuint", "easeOutQuad" and "easeInOutQuad",  */
    easing: "easeOutQuint",
				
    /* The opacity of the side items, 0-1 */
    sideOpacity: 0.5,
				
    /* Choose to set the Slideshow to auto-play, true/false */
    autoPlay: false,
				
    /* The autoPlay delay in milliseconds */
    autoPlayDelay: 4000,
				
    /* Choose to randomize the slide order everytime someone visits your web page, true/false */
    randomizeItems: false,
				
    /* The link target when a slide is linked, options are "_parent" and "_blank" */
    linkTarget: "_blank",
				
    /* The percentage to zoom out the sides, 0-1 */
    sideZoom: 0.75,
				
    /* The percentage to zoom out the back slide, 0-1 */
    backZoom: 0.5
				
}
$(function() {

    $('ul').each(function() {
        $(this).find('li:first').addClass('first');
        $(this).find('li:last').addClass('last');
    });
    
    if($('#zoom-gallery').length > 0){
        jQuery.zoomShowcase(zoomShowcaseSettings);
        zoomShowcaseSettings = null;
    }
    
    $(".slidetabs").tabs(".images > div", {

        // enable "cross-fading" effect
        effect: 'fade',
        fadeOutSpeed: "slow",
        
        // start from the beginning after the last tab
        rotate: true

    // use the slideshow plugin. It accepts its own configuration
    }).slideshow({autoplay: true});
           
    $("input:text").addClass("text-box");  
           
    $('.gallery-list li').hover(function() {
        var liSelected = $(this).closest("li");
        $(liSelected).find('.mouseover-mask').fadeIn();
    },function(){
        $('.mouseover-mask').fadeOut();
    });
});

function nextSlide(){
$("div#zoom-gallery ul").find("li").each(function() { 
        if ($(this).css("left") == '557px') {
            $(this).click();
        }
});
}
function previousSlide(){
$("div#zoom-gallery ul").find("li").each(function() { 
        if ($(this).css("left") == '0px') {
            $(this).click();
        }
});
}
