function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

MM_reloadPage(true);

var timer;
function show_div(div_name) {
	clearTimeout(timer);
	MM_showHideLayers('gen_div','','hide');
	MM_showHideLayers('Acc_div','','hide');
	MM_showHideLayers('fac_div','','hide');
	MM_showHideLayers('pre_div','','hide');
	MM_showHideLayers(div_name,'','show');
}

function hide_div(div_name) {
	timer = setTimeout("MM_showHideLayers('"+div_name+"','','hide')", 350);
}



function enlarge(img) {
	var my_win = window.open('','image','width=400,height=296,resizable,scrollbars=no');
	my_win.document.open();
	my_win.document.write('<html><head><title>Elounda Gulf Villas & Suites - Luxury Boutique Villa Hotel, Luxurious Villas and Elegant Suites with their own private pool with Jacuzzi, Elounda, Crete, Greece</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor="#FFFFFF">');
	my_win.document.write("<img src='gfx/"+img+"'></body></html>");
	my_win.document.close();
	my_win.focus();
}

function enlarge1(img) {
	var my_win = window.open('','image','width=400,height=201,resizable,scrollbars=no');
	my_win.document.open();
	my_win.document.write("<html><head><title>Elounda Gulf Villas & Suites - Luxury Boutique Villa Hotel, Luxurious Villas and Elegant Suites with their own private pool with Jacuzzi, Elounda, Crete, Greece</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor='#FFFFFF'>");
	my_win.document.write("<img src='gfx/"+img+"'></body></html>");
	my_win.document.close();
	my_win.focus();
}

function enlarge_pg(img) {
	var my_win = window.open('','image','width=480,height=550,resizable,scrollbars=no');
	my_win.document.open();
	my_win.document.write("<html><head><title>Elounda Gulf Villas & Suites - Luxury Boutique Villa Hotel, Luxurious Villas and Elegant Suites with their own private pool with Jacuzzi, Elounda, Crete, Greece</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor='#FFFFFF'>");
	my_win.document.write("<img src='pgs/"+img+"'></body></html>");
	my_win.document.close();
	my_win.focus();
}

function show_map(img) {
	var my_win = window.open('','map','width=500,height=505,resizable,scrollbars=no');
	my_win.document.open();
	my_win.document.write("<html><head><title>Elounda Gulf Villas & Suites - Luxury Boutique Villa Hotel, Luxurious Villas and Elegant Suites with their own private pool with Jacuzzi, Elounda, Crete, Greece</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor='#FFFFFF'>");
	my_win.document.write("<img src='"+img+"'></body></html>");
	my_win.document.close();
	my_win.focus();
}

function open_win(pg) {
	var my_win = window.open(pg,'page','width=500,height=515,resizable,scrollbars=yes');
	my_win.focus();
}

function open_win1(pg) {
	var my_win = window.open(pg,'page1','width=500,height=515,resizable,scrollbars=yes');
	my_win.focus();
}

function ph_enlarge(img,w,h) {
	
	var my_win = window.open('','image','width='+w+',height='+h+',resizable,scrollbars=no');
	if (parseInt(navigator.appVersion)>3) {
   	if (navigator.appName=="Netscape") {
    	my_win.outerWidth=w+15;
    	my_win.outerHeight=h+45;
   	}
	   else my_win.resizeTo(w+10,h+32);
	}
	my_win.document.open();
	my_win.document.write("<html><head><title>Elounda Gulf Villas & Suites - Luxury Boutique Villa Hotel, Luxurious Villas and Elegant Suites with their own private pool with Jacuzzi, Elounda, Crete, Greece</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor='#FFFFFF'>");
	my_win.document.write("<table width=100% height=100% cellspacing=0 cellpadding=0><tr><td align='center' valign='middle'><img src='"+img+"' onClick='window.close();'></td></tr></table></body></html>");
	my_win.document.close();
	my_win.focus();
}
