jq(document).ready(function(){
 jq(".portletserviceimageteaser .teaser_banner").each(function(index,element) {
   var bc = jq(this).find(".imageteaser_content");
   bc.hide();
   jq(this).mouseover(function() { if(bc.is(":hidden")) { bc.slideDown('fast') }; jq(this).parents().find(".imageteaser_content:visible").not(bc).slideUp('slow') } );
   jq(this).find(".button_close").click(function(){ if(bc.is(":visible")) { bc.slideUp('slow') } } );
   } )
} );

jq(document).ready(function(){
    jq(".showcase_homepagebild").hover(function() { jq(this).find(".showcase_imagetitle").fadeIn() }, function() { jq(this).find(".showcase_imagetitle").fadeOut() } )
})

jq(document).ready(function(){ 
    jQuery("#showcase_type_selector_select").change(function () {
          jQuery("select option:selected").each(function () {
                jQuery('div.showcase_homepagebild').find("img").fadeTo('fast',1);
                if(jq(this).val())
                {
                    jQuery('div.showcase_homepagebild:not(.'+jq(this).val()+')').find("img").fadeTo('fast',0.3);
                }
          });
    })
} );

jq(document).ready(function(){ 
    jq("div.showcase_homepagebild").hover(function() {
        jq(this).parent().css({'z-index' : '10'}); /*Add a higher z-index value so this image stays on top*/ 
        jq(this).css({'z-index' : '11'});
        jq(this).boxShadow( 2, 2, -2, 2, 5, "#bdbdbd");
        // jq(this).children(".showcase_bg").css({'z-index' : '11'});
        // jq(this).children(".showcase_bg").children().css({'z-index' : '11'});
        jq(this).addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
            .animate({
                top: '-4px',
                left: '-11px',
                width: '310px', /* Set new width */
                height: '150px' /* Set new height */
                /* padding: '10px 10px 40px 10px' */
            }, 200); /* this value of "200" is the speed of how fast/slow this hover animates */
        jq(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
            .animate({
                top: '-4px',
                left: '-11px',
                width: '310px', /* Set new width */
                height: '118px' /* Set new height */
            }, 200); /* this value of "200" is the speed of how fast/slow this hover animates */
        //jq(this).dropShadow();
        } , function() {
        //jq(this).removeShadow();
        jq(this).parent().css({'z-index' : '1'}); /* Set z-index back to 0 */
        jq(this).boxShadow( 0, 0, 0, 0, 0, "#FFFFFF");
        jq(this).find(".ieboxshadow").remove();
        jq(this).css({'z-index' : '2'});
        // jq(this).children(".showcase_bg").css({'z-index' : '2'});
        // jq(this).children(".showcase_bg").children().css({'z-index' : '2'});
        jq(this).removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
            .animate({
                top: '0',
                left: '0',
                width: '288px', /* Set width back to default */
                height: '110px' /* Set height back to default */
            }, 400);
        jq(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
            .animate({
                top: '0',
                left: '0',
                width: '288px', /* Set width back to default */
                height: '110px' /* Set height back to default */
            }, 400);
    });
} );

