
function isIE() {
	return (navigator.appName == "Microsoft Internet Explorer");
}

function hideDiv1 (thisDiv) {
	if (document.all) {
		document.all(thisDiv).innerHTML = "";
	}
	else if (document.getElementById) {
		document.getElementById(thisDiv).innerHTML = "";
	}
}


  function findPosX(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
  }

function closeWindow() {
	if (document.all) {
		document.all('window').style.display = "none";
		document.all('closeButton').style.display = "none";
		document.all('windowContentWrapper').style.display = "none";
	}
	else if (document.getElementById) {
		document.getElementById('window').style.display = "none";
		document.getElementById('closeButton').style.display = "none";
		document.getElementById('windowContentWrapper').style.display = "none";
	}
}
function cooseFunction(img) {
		var tmp = img.split("/");
		var count = tmp.length;
		if (tmp[count-1] == 'up.gif') {
			document.getElementById('cooseButton').src = 'images/down.gif';
			document.getElementById('chooseList').style.display = 'none';
		} else {
			document.getElementById('cooseButton').src = 'images/up.gif';
			document.getElementById('chooseList').style.display = 'block';
		}	
	}
function closeFunction() {

			document.getElementById('cooseButton').src = 'images/down.gif';
			document.getElementById('chooseList').style.display = 'none';
	
	}

	
// Pop up Photo
 function OpenNewWindow(photo,title,width,height)
	{
	var w = width + 30;
	var h = height + 70;
	var windowparameters = 'resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=' + w + ',height=' + h + ',left=0,top=0';
	NewWindow=window.open("","NewOne", windowparameters);
	NewWindow.document.write ("<HTML><HEAD><TITLE>");
	NewWindow.document.write ("monogram");
	NewWindow.document.write ("</TITLE>\r\n");
	NewWindow.document.write ("<meta http-equiv=\"Content-Type\" content=\"text/html;charset=iso-8859-7\">\r\n");
	NewWindow.document.write ("</HEAD>\r\n");
	NewWindow.document.write ("<BODY leftmargin=15 topmargin=15 rightmargin=15 bottommargin=10 marginwidth=15 STYLE='background-color:#431B85;'>\r\n");

	NewWindow.document.write ("<img src='");
	NewWindow.document.write (photo);
	NewWindow.document.write ("' border=0 alt='" + title + "'>");
	NewWindow.document.write ("<BR>\r\n<IMG SRC='images/d.gif' WIDTH=1 HEIGHT=10 BORDER=0><BR>\r\n");
	NewWindow.document.write ("<table border=0 cellpadding=0 cellspacing=0 width='100%'>\r\n");
	NewWindow.document.write ("<tr>\r\n");
	NewWindow.document.write ("<td><A HREF='javascript:void(window.close())'><IMG alt=' Κλείστε το παράθυρο ' SRC='images/previous.gif' BORDER=0></A></td>\r\n");
	NewWindow.document.write ("<td width='100%' align='center'><FONT FACE='Arial' SIZE=2 COLOR='#ffffff'><b>" + title + "</b></FONT></td>\r\n");
	NewWindow.document.write ("<td><A href='javascript:void(window.print())'><IMG alt=' Τυπώστε τη φωτογραφία ' SRC='images/print.gif' BORDER=0></A></td>\r\n");
	NewWindow.document.write ("</tr>\r\n");
	NewWindow.document.write ("</table>\r\n");
	NewWindow.document.write ("</BODY></HTML>");
	NewWindow.document.close();
	NewWindow.focus();
	return false;
}
