re = /^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,4}$/;
sstart=0;
$(document).ready(function(){

  $("li.hoverLi").hover(function () {
    /*$(this).find("div.subMenu").fadeIn("normal");*/
    $(this).find("div.subMenu").css("display","block");
    return false;
  },
  function () {
    /*$(this).find("div.subMenu").fadeOut("fast");*/
    $(this).find("div.subMenu").css("display","none");
    return false;
  });

	/* horizontalni scroller */
	$(".scroll-pane").each(function () {

		if ($(this).find(".blocksScroll li").length < 6) {
			$(this).find(".blocksScroll").css("margin", "0px auto");
			$(this).css("padding-bottom", "0px");
		}

		var sirkaBloku = $(this).find(".blocksScroll li").width();
		var sirkaScrollu = ($(this).find(".blocksScroll li").length)*sirkaBloku;
		$(this).find(".blocksScroll li:first").css("background", "none");
		$(this).find(".blocksScroll").css("width", sirkaScrollu);
		$(this).jScrollHorizontalPane({scrollbarHeight:15, scrollbarMargin:0, showArrows:true, resize:false, arrowSize: 24});

	});
	/* horizontalni scroller - konec */
	
	/* jCarousel - video nahledy */
	$("#videoCarousel").jcarousel({scroll:1});
	/* jCarousel - video nahledy - konec */
	
	/* jCarouselLite hlavicka - barvy + detaily */
	$("#headCarousel1").jCarouselLite({
		btnNext: "#headCarousel1 .hcNext",
		btnPrev: "#headCarousel1 .hcPrev",
		btnGo:
    ["#headCarousel1 .btn1", "#headCarousel1 .btn2",
    "#headCarousel1 .btn3", "#headCarousel1 .btn4",
    "#headCarousel1 .btn5", "#headCarousel1 .btn6",
    "#headCarousel1 .btn7", "#headCarousel1 .btn8"],
		auto: 0,
		speed: 350,
		visible: 1,
		mouseWheel: true,
		start: sstart
	});
	$("#headCarousel2").jCarouselLite({
		btnNext: "#headCarousel2 .hcNext",
		btnPrev: "#headCarousel2 .hcPrev",
		btnGo:
    ["#headCarousel2 .btn1", "#headCarousel2 .btn2",
    "#headCarousel2 .btn3", "#headCarousel2 .btn4",
    "#headCarousel2 .btn5", "#headCarousel2 .btn6",
    "#headCarousel2 .btn7", "#headCarousel2 .btn8"],
		auto: 4000,
		speed: 350,
		visible: 1,
		mouseWheel: true
	});
  /* jCarouselLite hlavicka - barvy + detaily - konec */
  
  /* technologie */
  $(".techBlock").hover(function () {
		/*parentId = $(this).parent().get(0).id;*/
		$(".techActive .techBtn span").fadeTo("fast", .5);
		$(".techActive .techDesc").css("display","none");
		$(".techActive").removeClass("techActive");
		$(this).addClass("techActive");
		$(this).find(".techDesc").css("display","block");
		$(this).find(".techBtn span").fadeTo("fast", 1);
  },
  function () {});
  /* technologie - konec */
	
	/* automaticka inicializace videa pokud v hlavicce neni flash banner */
	if ($("#flvPlayer").length > 0 && $("#mainFlash").length < 1) {
		flvPlayerInit();
	}
	/* automaticka inicializace videa - konec */
	
	/* greybox */
	$("a.greybox1").click(function(){
		var t = this.title || $(this).text() || this.href;
		GB_show(t,this.href,752,520);
		return false;
	});

	$("a.greybox2").click(function(){
		var t = this.title || $(this).text() || this.href;
		GB_show(t,this.href,752,1000);
		return false;
	});
  /* greybox - konec */
  
  $(".blockDownload .downloadText:odd").css("border-right", "none");
  $(".blockLinks .linksText:odd").css("border-right", "none");
  $(".blockLinks .linksText1:odd").css("border-right", "none");
  if ($.find(".iText").length > 0) {
		$(".iText").append("<div class='iTextLeft'></div><div class='iTextRight'></div>");
	}
  
  $("#listCart tr:even").css("background-color", "#f7f7f7");
  
  if ($.find("#containerPanelColors").length < 1) {
		$("#containerSliderThumb").css("left", "340px");
		$("#containerPanelDetails").css("left", "520px");
	}
	
	if ($.find("#panelRozmery").length < 1) {
		$("#panelPrednostiDetail").css("width", "445px");
	}
/*inicializace light boxu*/
	$(function(){
	  $("a[rel^='lightbox']").lightbox();
	});

	$("#headImage").append("<div id='topHeadShadow'></div>");
  
});


function iRemove (amtField) {
  amtField.value = 0;
  document.ProTab.submit();
}


function Jump(theSelect){
    selindex = theSelect.selectedIndex;
    selvalue = theSelect.options[selindex].value;
    window.location.href = selvalue;
}  

