
function picWin(im,wi,he,titl,mess,winpars){
	var wL = (screen.width-wi) / 2;
	var wT = (screen.height-he) / 2;
	var wp;
	var img=new Image();
	img.src=im;
	wp="width="+wi+",height="+he+",left="+wL+",top="+wT+(typeof(winpars)=="undefined"?"":winpars);
	var vokno=window.open("","",wp);
	vokno.document.open();
	vokno.document.write('<html><head><title>'+(typeof(titl)=="undefined"?"":titl)+'</title><meta http-equiv="content-type" content="text/html; charset=iso-8859-2"></head><body style="margin:0;padding:0;background:#fff"><img src="'+im+'" alt="'+(typeof(mess)=="undefined"?"Kliknutím zavřete okno":mess)+'" onclick="window.close()" style="display:block;cursor:pointer;cursor:hand"></body></html>');
	vokno.document.close();
	return typeof(vokno)=="object"?false:true;
}

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

          /* targetblanks */

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

var x_box = new XBox(); 

          /* form-validation */

if($$("html").get("lang") == "en"){
  var form_validation = new FormValidation({
    default_border : "1px solid #C9C9C9",
    error_message : "You have to fill out all the fields marked with asterisk!!",
    error_mail_message : "Enter E-mail in a correct form!!",
    error_phone_message : "Enter Phone Number in a correct form!!",
    error_zipcode_message : "Enter ZIP code in a correct form!!",
    error_mail_or_phone_message : "Enter an E-mail or a Phone number!!"  
  });
} else {
  var form_validation = new FormValidation({
    default_border : "1px solid #C9C9C9"  
  });
}

          /* ring */

if($("ring")){
  var ring = new Ring({
    id : "ring_slider",
    navi_id : "ring_navi",
    delay : 5000,
    crop_width : 968
  });      
}

   
});  


