/**
 * This file is autogenerated by Simplle
 * http://go.itcrowd.cz/?simplle
 * This file is under Simplle licence
 * For licence text see our webpage
 */

var changer={count:0,current:0,time:5000,effect:1,items:new Array(),init:function(){$$('.changer-image').each(function(elm){changer.insert(elm);elm.hide();elm.removeClassName('hide');});this.count=this.items.size();this.show();},insert:function(elm){this.items[this.items.size()]=elm;},next:function(){this.hide()
this.current++;if(this.current>=this.count){this.current=0;}
this.show();},show:function(){new Effect.Appear(this.items[this.current],{duration:this.effect,afterFinish:changer.wait()});},hide:function(){new Effect.Fade(this.items[this.current],{duration:this.effect});},wait:function(){setTimeout('changer.next();',this.time);}};var contact={form:'contact-',submit:function(){var vars='name='+encodeURIComponent($(this.form+'name').value)+'&email='+encodeURIComponent($(this.form+'email').value)+'&text='+encodeURIComponent($(this.form+'text').value);new Ajax.Request(root+'ajax.php?load=contact',{method:'post',parameters:vars,onSuccess:function(transport){if(transport.responseText.match(/success/))
$('contact-form').reset();$('contact-response').update(transport.responseText);}});}};var lists={show:function(elm){this.hideall();$(elm).show();},hideall:function(){$$('.lists-items').each(function(elm){elm.hide();});}};