﻿//if screen resolution is smaller than the page then don't centre the screen as it doesnt scroll left or up.
if ( screen.availWidth < 976) {
        document.write('<style type="text/css"> #global{position:absolute;left: 0;width: 920px;margin-left:0;} </style>');
        }
        if ( screen.availHeight < 800) {
        document.write('<style type="text/css"> #global{position:absolute;top: 0;height: 662px;margin-top:0;} </style>');
        }
function RunFlash_el()
{
// used to embed the flash without the 'click to activate' message
    // document.write('<embed height="191px" src="../Flash/header.swf" width="920px"></embed>');
    
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="191" width="920">');
    document.write('<param name="movie" value="http://www.perseusgroup.gr/Flash/header.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent"/>\n');
    document.write('<embed src="../Flash/header.swf" height="191" width="920" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\n');
    document.write('</object>\n');   
}
function RunFlash_en()
{
// used to embed the flash without the 'click to activate' message
    //document.write('<embed height="191px" src="../Flash/header_en.swf" width="920px"></embed>');
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="191" width="920">');
    document.write('<param name="movie" value="http://www.perseusgroup.gr/Flash/header_en.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent"/>\n');
    document.write('<embed src="../Flash/header_en.swf" height="191" width="920" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\n');
    document.write('</object>\n');
}
function switchlanguage_el()
{
// This function gets the current url and redirects the user to the same page in the el folder
    var s = new String(self.location);
    s = s.replace(/\?Article=/,"?");
    s = s.replace(/\/en/,"/el");
    document.write("")  // don't ask.  In ie6 it didn't do the redirect without this!
    document.location.href = s
}
function switchlanguage_en()
{
// This function gets the current url and redirects the user to the same page in the en folder
    var s = new String(self.location);
    s = s.replace(/\?Article=/,"?");
    s = s.replace(/\/el/,"/en");
    document.write("") // don't ask.  In ie6 it didn't do the redirect without this!
    document.location.href=s
}