/* PAGE RELOAD - milisecundumba megadhato: echo html::js("setTimeout('tolt()',10000);"); */  
function reload() { location.href=location.href;};
function loadMainPage() { location.href="";};
function loadFestPage() { location.href="festivals/inactives";};

$(document).ready(function(){
    
/* TIPTIP */ 
    $(".tipTag").tipTip();
    
/* H2 textshadow */      
      var h2option = {
      x:      1, 
      y:      1, 
      radius: 2,
      color:  "#000000"
    }

    $("h2").textShadow( h2option );  

    
/* LOGIN FORM TOGGLE */    
    $(".showlogin").click(function(){
        $("#loginform") .slideToggle("slow");
    });
    
/* ADMIN BUTTONS TOGGLE */    
   $(".showAdmin").hover(function(){
        $(this).find('.adminButtons') .slideToggle();
    });             

    
/* FORM TOGGED FORM LINK */    
    $(".showUserForm").click(function(){
        $(".toggledForm").slideToggle();
    });

    
/* NEW FORM TOGGLE */    
    $(".formButton").click(function(){
        $(".newForm") .slideToggle("slow");
        $(".closeForm") .slideToggle("slow");
        $("#form") .slideToggle("slow");
    });
   
/* E-MAIL PROTECT */ 
     $('a.vedett').each(function(){  
        var slash   = this.href.lastIndexOf('/');  
        var domain  = this.href.substring(7,slash);  
        var account = this.href.substr(slash+1);  
        var email   = account+'@'+domain;  
        this.href   = 'mailto:' + email;  
        $(this).text(email);  
        });    
});   
