// Μενώ       
jQuery(document).ready(function(){
    jQuery('.topmenu ul li').hover(
        function() {
            jQuery(this).addClass("active");
            jQuery(this).find('ul').stop(true, true);
            jQuery(this).find('ul').slideDown();
        },
        function() {
            jQuery(this).removeClass("active");
            jQuery(this).find('ul').slideUp('slow');
        }
    );
});
 
jQuery(document).ready(function(){
 
    jQuery("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
    
    jQuery("ul.topnav li span").click(function() { //When trigger is clicked...
        
        //Following events are applied to the subnav itself (moving subnav up and down)
        jQuery(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
 
        jQuery(this).parent().hover(function() {
        }, function(){    
            jQuery(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
        });
 
        //Following events are applied to the trigger (Hover events for the trigger)
        }).hover(function() { 
            jQuery(this).addClass("subhover"); //On hover over, add class "subhover"
        }, function(){    //On Hover Out
            jQuery(this).removeClass("subhover"); //On hover out, remove class "subhover"
    });
 
});

function ShowTime()
{
    today=new Date();
    jQuery(".clock").html(today.toLocaleTimeString());
    setTimeout('ShowTime()',500);
}

function openNewWin(url, name, scr, w, h)
{
    var w1 = window.open(url, name, 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width='+w+',height='+h+'');
    w1.focus();
}

function openNewWin1(url, name, scr, w, h)
{
    var w1 = window.open(url, name, 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=yes,width='+w+',height='+h+'');
    w1.focus();
}

function showImage(myurl,wi,he){
        focusWindow = window.open(myurl,'', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=100,left=140,width='+wi+',height='+he);
        if (getAppVersion()) focusWindow.focus();
}
