/* lightbox */
$(document).ready(function() {
	//$('p.p-fotografie a').lightBox();
	//$('div.gallery a').lightBox();
	//$('div.detail-pojem a').lightBox();
	$("a[href$='.jpg']").lightBox();
	$("a[href$='.JPG']").lightBox();
	$("a[href$='.gif']").lightBox();
	$("a[href$='.GIF']").lightBox();
	$("a[href$='.png']").lightBox();
	$("a[href$='.PNG']").lightBox();
	$("a[href$='.jpeg']").lightBox();
	$("a[href$='.JPEG']").lightBox();
	// $('a[rel*=lightbox]').lightBox();
	// $('a').lightBox();
});
/* /lightbox */

/* nospam */
function nospamf(box, domain) {
 if(typeof(domain)=="undefined") domain="divadlovceletne.cz";
 var proto=String.fromCharCode(109,97,105,108,116,111,58)
 w=window.open(proto+box+String.fromCharCode(64)+domain);
 if (w!=null) w.close(); //FF
}
function nospam(box, domain, attr) {
 if(typeof(domain)=="undefined") domain="divadlovceletne.cz";
 if(typeof(attr)=="undefined") attr="";
 document.write("<a href=\"javascript:nospamf('"+box+"', '"+domain+"')\""+(attr.length>0?" ":"")+attr+">"+box+String.fromCharCode(64)+domain+"</a>");
}
function zavinac() {
 document.write(String.fromCharCode(64));
}
/* /nospam */

/* prettyPhoto */
$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto();
});
/* /prettyPhoto */

// kontrola proti SPAMU (formular)
window.onload = function ()
{
	if (document.getElementById('antispam'))
	{
	var antispam = document.getElementById('antispam');
	antispam.style.display = 'none';
	}
	if (document.getElementById('sbot'))
	{
    var antis = document.getElementById('sbot');
    antis.value = '11'+'1';
    }
    
	if (document.getElementById('antispam2'))
	{
	var antispam2 = document.getElementById('antispam2');
	antispam2.style.display = 'none';
	}
	if (document.getElementById('sbot2'))
	{
    var antis2 = document.getElementById('sbot2');
    antis2.value = '11'+'1';
    }
    
	if (document.getElementById('antispam3'))
	{
	var antispam3 = document.getElementById('antispam3');
	antispam3.style.display = 'none';
	}
	if (document.getElementById('sbot3'))
	{
    var antis3 = document.getElementById('sbot3');
    antis3.value = '11'+'1';
    }
    
	if (document.getElementById('antispam4'))
	{
	var antispam3 = document.getElementById('antispam4');
	antispam3.style.display = 'none';
	}
	if (document.getElementById('sbot4'))
	{
    var antis3 = document.getElementById('sbot4');
    antis3.value = '11'+'1';
    }
    
    return true;
}
