/* nospam */
function nospamf(box, domain) {
 if(typeof(domain)=="undefined") domain="sachs-bikes.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="sachs-bikes.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 */

/* slider */
$().ready(function() {  
    $('#slider ul').kwicks({  
        max : 565,      
        sticky : true    
    });  
});
/* /slider */

/* easyslider */
$(document).ready(function(){	
	$("#news").easySlider({
		speed: 800,
		pause: 3500,
		controlsShow: false,
		vertical: true,
		auto: true,
		continuous: true 
	});
});
/* /easyslider */

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

// 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';
    }
    return true;
}
/* /kontrola */