function DT1()
{
var D=new Date(); var T = ""; var W = "";
if (D.getDay() == 0) {W="Κυριακή";} 
if (D.getDay() == 1) {W="Δευτέρα"; T="<BR> Καλή&nbsp;εβδομάδα!";} 
if (D.getDay() == 2) {W="Τρίτη";}
if (D.getDay() == 3) {W="Τετάρτη";}
if (D.getDay() == 4) {W="Πέμπτη";}
if (D.getDay() == 5) {W="Παρασκευή"; T="<BR> Καλό&nbsp;Σαββατοκύριακο!";}
if (D.getDay() == 6) {W="Σάββατο"; T="<BR> Καλό&nbsp;Σαββατοκύριακο!";}
if (D.getDate() == 1) {T="<BR> Καλό&nbsp;μήνα!";}
if ((D.getDate() == 1) && D.getMonth() == 0) {T="<BR> Καλή&nbsp;Χρονιά!";}
document.write( W + "&nbsp;" + D.getDate() + "/" + (D.getMonth() + 1) + "/" + D.getYear() + T ); 
}


function View(ifile,ix,iy,ititle)        //[Picture Viewer]
{
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
return;
}
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
}



function View1(ifile,ix,iy,ititle)        //[Picture Viewer]
{
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
return;
}
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body topmargin=0 leftmargin=0>");
win.document.write('<table width="100%" height="100%" border="0"><tr><td align="center" valign="middle">');
win.document.write("<img src="+ifile+"></td></tr></table></body></html>");
win.document.close();
}



function PopImg(imgURL,imgTitle){      //Auto-Sizing Image Popup Window. Script Source: CodeLifter.com

PositionX = 100; PositionY = 100; // Set the horizontal and vertical position for the popup
defaultWidth  = 830; defaultHeight = 630; // Set these value approximately 20 pixels greater than the size of the largest image to be used (needed for Netscape)
var AutoClose = true; // Set autoclose true to have the window close automatically or false to allow multiple popup windows

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=800 height=600,left='+PositionX+',top='+PositionY;

if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<s'+'cript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["PicName"].width;');writeln('window.innerHeight=document.images["PicName"].height;}}');
writeln('function doTitle(){document.title="'+imgTitle+'";}');writeln('</s'+'cript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="PicName" src="'+imgURL+'" style="display:block" onclick="javascript:self.close()" alt="'+imgTitle+' - Click to Close"></body></html>');
close();		
}}

