/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/* $(function() {
$(".small_image a.gallery").click(function(){
  alert("cos");
  return false;
});
 });
*/
 $(function() {
$(".small_image a.gallery").hover(
     function () {
       var img = $(this).find('img')
       var x = (img.width()*200)/133;
       var leftv = parseInt((133-x)/2);
       if($.browser["msie"]==true && $.browser.version=="6.0"){
       //  leftv=leftv-60;

       }
     
         $(this).parent().css({position:"relative"});
         img.css({height: "133px"});
         $(this).css({position:"absolute",top:"-20px", left: leftv+"px", 'z-index': "1000"});
         $(this).click(function(){
           $(this).parent().css({position:"static"});
            $(this).css({position:"static",top:"0px", left:"auto",'z-index': "1"});
            $(this).find('img').css({height: "86px"});
         });
      },
      function () {
        $(this).parent().css({position:"static"});
        $(this).css({position:"static",top:"0px", left:"auto",'z-index': "1"});
        $(this).find('img').css({height: "86px"});
        
      }

);

  $("img", $(".baner")).click(function(){
    
    if($(".banner_hidden", $(this).parents(".baner")).is(":visible")){
      
     $(".banner_hidden", $(this).parents(".baner")).hide("blind",[],500,function(){
       
      });
    }else{
      
     $(".banner_hidden", $(this).parents(".baner")).show("blind",[],500,function(){
       
      });
    }
  })


  var hash=location.hash;
if (hash){
    $(".banner_hidden",$(hash).parents(".baner")).slideDown("slow")
}

 });




