window.addEvent("domready", function(){

          /* cufon START */
if (Cufon && Cufon.replace) {
	Cufon.replace('div.wysiwyg h1, div.wysiwyg h2, div.wysiwyg h3, div.wysiwyg h4, div.wysiwyg h5, div.wysiwyg h6, div#footer_left h3, div#termin p, div#termin h3, div#footer h3, div#box1 h2, div#box2 h2');
	/* -- all the changes? -- */
}
          /* cufon END */

            /* roll */
       
  if($("photos")){          
    var product_list = new Roll({
      id : "photos", 
      prev_id : "photo_right",
      next_id : "photo_left",
      crop_width : 416,
      item_width : 416,
      item_width_addend : 0,
      visible_items : 1,
      duration : 500,
      transition : "sine:out",
      stop_wheeling : "true"
    });
  } 

          /* brands */
if($("brands")){
    var brands = new Brands({
      image_width : 146,
      delay : 5000,
      duration : 3000
    });
  }


          /* xbox */
          
var x_box = new XBox(); 

          /* form-validation */
          
var form_validation = new FormValidation({
    default_border : "1px solid #C9C9C9"
});

          /* targetblanks */

$$("a.targetblank").addEvent("click", function(event){
  if(typeof window.open(this.href)=="object"){
    event.stop();
  }
});

         /* search-form */
  
if($("search")){

  $("search").onclick = function(){
    if($("search").value == "Hledaný výraz..."){
      $("search").value = "";
    }
  }
  
  $("search").onblur = function(){
    if($("search").value == ""){
      $("search").value = "Hledaný výraz...";
    }
  }
  
}




if($("naviz_content")){

(function(){
  
  $("naviz_content").setStyle("display", "block");
  
  var naviz_shops_ul_height = $("naviz_content_in").getHeight()-240;
  
  
  if(naviz_shops_ul_height > 0){
    $("shop_scroll").setStyle("display", "block");
    $("shop_bar").setStyle("display", "block");
    var shopsSlider = new Slider($("shop_scroll"), $("shop_bar"), {
            steps: naviz_shops_ul_height,
            mode: "vertical",
            wheel: "true",
            onChange: function(step){
               $("naviz_content_in").setStyle("top",-step);
            }
    }).set(0);
  } else {
    $("shop_scroll").addClass("disabled");
  }
}).delay(800);
}



});
