//fancybox - skupina obrazku / iframe do okenka
$(document).ready(function() {
$("a[rel=gallery]").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return 'Obrázek ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '';
}
});
$("a[rel=image]").fancybox();
$("#iframe").fancybox({
'width' : '55%',
'height' : '55%',
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
$("a[rel=swf]").fancybox({
'width' : '55%',
'height' : '55%',
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
$("#flash").fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
});
function zkontroluj(formular)
{
if (formular.mail.value=="")
{
alert("E-mail musíte nejprve vyplnit!");
formular.mail.focus();
return false;
}
else if (window.RegExp)
{
re = new RegExp("^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$");
if (!re.test(formular.mail.value))
{
alert("Zadaná adresa není správnou adresou elektronické pošty!");
formular.mail.focus();
return false;
}
}
else
return true;
}
//Potvrzeni mazani cehokoli
function confirmDel(hlaska, adr){
if (hlaska=='' || hlaska==undefined) hlaska = "Skutečně chcete tento záznam smazat?";
if(confirm(hlaska)){
self.location.href = adr
//alert(adr)
}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i