VOOV.SlideShow.Construct({
  paused:false, 
  button_activeclass:"imagelink_active", 
  animate_interval: 25000, 
  animatable: true, 
  enable_friendlyuri: false
});
  
VOOV.SlideShow.PauseCallback = function(paused) {
  if (paused == true) {
    $("#pause_on").show();
    $("#pause_off").hide();
  } else {
    $("#pause_on").hide();
    $("#pause_off").show();
  }
}

VOOV.SlideShow.OnSwitchCallback = function(index) {
  $("a.SlideShowControlId").each(function() {
    if($(this).attr("rel") == index) {
      $(this).html("<img src=\"http://" + document.domain + "/images/buttons/btn_bubble_on.gif\" alt=\"\" />");
    } else {
      $(this).html("<img src=\"http://" + document.domain + "/images/buttons/btn_bubble.gif\" alt=\"\" />");
    }
  });
}

$(document).ready(function() {
  $(".boxes_two_left .boxes_two_more").hide();
  
  $("#news_02").show();
  $("#product_01").show();
  $("#news_nav_02").show();
});

var _current_info = '02';
function switchToInfo(i) {
  if (_current_info == i) return;
  $("#switches_info_menu_" + _current_info + "_on").attr("id","switches_info_menu_" + _current_info);
  $("#switches_info_menu_" + i).attr("id", "switches_info_menu_" + i + "_on");
  $("#news_" + _current_info).fadeOut(500);
  $("#news_" + i).fadeIn(500);
  $("#news_nav_" + _current_info).fadeOut(500);
  $("#news_nav_" + i).fadeIn(500);
  _current_info = i;
}

var _current_prod = '01';
function switchToProd(i) {
  if (_current_prod == i) return;
  $("#switches_products_menu_" + _current_prod + "_on").attr("id","switches_products_menu_" + _current_prod);
  $("#switches_products_menu_" + i).attr("id", "switches_products_menu_" + i + "_on");
  $("#product_" + _current_prod).fadeOut(500);
  $("#product_" + i).fadeIn(500);
  _current_prod = i;
}

function brandOn(o) {
  o.style.backgroundPosition = "left bottom";
  o.style.cursor = "pointer";
}

function brandOff(o) {
  o.style.backgroundPosition = "left top";
  o.style.cursor = "pointer";
}

var _current_brand = 1;
var src = "http://" + document.domain + "/images/btn_bubble.gif";
var src_on = "http://" + document.domain + "/images/btn_bubble_on.gif";

function switchBrands(i) {
  if (_current_brand == i) return;
  $("#brands_" + _current_brand).fadeOut("500");
  $("#brands_" + i).fadeIn("500");
  
  $("#brands_img_" + _current_brand).attr("src", src);
  $("#brands_img_" + i).attr("src", src_on);
  _current_brand = i;
}

function prevBrands() {
  if(_current_brand == 1) return;
  $("#brands_" + _current_brand).fadeOut("500");
  $("#brands_img_" + _current_brand).attr("src", src);
  
  _current_brand--;
  $("#brands_" + _current_brand).fadeIn("500");
  $("#brands_img_" + _current_brand).attr("src", src_on);
}

function nextBrands() {
  if(_max_brand == _current_brand) return;
  $("#brands_" + _current_brand).fadeOut("500");
  $("#brands_img_" + _current_brand).attr("src", src);
  
  _current_brand++;
  $("#brands_" + _current_brand).fadeIn("500");
  $("#brands_img_" + _current_brand).attr("src", src_on);
}

function dentavPopup() {
  window.open("http://dentavantgart.hu/dentav_radio", "myWindow", "status = 1, height = 164, width = 332, left = 100, top = 100, resizable = 0" )
}
