function new_color(link_nr)
{
parent.frames.banner.document.getElementById("a101").style.color = "#E4FFE5";
parent.frames.banner.document.getElementById("a102").style.color = "#E4FFE5";
parent.frames.banner.document.getElementById("a103").style.color = "#E4FFE5";
parent.frames.banner.document.getElementById("a104").style.color = "#E4FFE5";
parent.frames.bottom.document.getElementById("a201").style.color = "#E4FFE5";
parent.frames.bottom.document.getElementById("a202").style.color = "#E4FFE5";
parent.frames.bottom.document.getElementById("a203").style.color = "#E4FFE5";
parent.frames.bottom.document.getElementById("a204").style.color = "#E4FFE5";
parent.frames.bottom.document.getElementById("a205").style.color = "#E4FFE5";
if (link_nr >= 201)
    var v1 = parent.frames.bottom
    else var v1 = parent.frames.banner;
link = "a" + link_nr;
v1.document.getElementById(link).style.color = "#78FF78";
}    

function init_gr()
{
if (screen.width > 800) 
   {document.getElementById("ind_table").style.top = 90;
    document.getElementById("ind_table").style.left = 130;
    document.getElementById("gr05").style.top = 210;
    document.getElementById("gr05").style.left = 262;   
   }
}

function preloadGallery() 
{ var d=document;
  if(d.images)
    {d.imageGallery=new Array();
     var i,j=d.imageGallery.length;
     a=preloadGallery.arguments;
     for(i=0; i<a.length; i++) 
         if(a[i].indexOf("#")!=0)
           {d.imageGallery[j]=new Image;
            d.imageGallery[j++].src=a[i];
           }      
     var load_stat=new Array(); 
     var k=j;
     for(i=0; i<j; i++)
         load_stat[i]=0;
     green_loader(0,j,k,load_stat);
    }             
}

function green_loader(curr_counter,j,k,load_stat)
{ jt=j;
  kt=k;
  load_statt=load_stat;
  counter = curr_counter + 1;
  if (counter > 3)
     {for (i=0; i<jt; i++)
           if (load_statt[i] == 0)
               if (document.imageGallery[i].complete == true)
                  {load_statt[i] = 1;
                   var green = document.imageGallery[i].src.lastIndexOf("dscn");
                   green_id = document.imageGallery[i].src.substr(green,8);
                   document.getElementById(green_id).src = "images/stat_g.gif";
                   i=jt;
                   kt--;
                  }
     if (kt>0)
         window.setTimeout('green_loader(3,jt,kt,load_statt)',500)      
     }          
     else window.setTimeout('green_loader(counter,jt,kt,load_statt)',1000);   
}
      
    

function init_photo()
{
new_color(102);
preloadpics ('images/stat_g.gif');
if (screen.width > 800) 
   {document.getElementById("photo_table").style.top = 90;
    document.getElementById("photo_table").style.left = 130}
preloadGallery('images/dscn0620m.jpg','images/dscn0220m.jpg','images/dscn0126m.jpg',
'images/dscn0625m.jpg','images/dscn0293m.jpg','images/dscn0267m.jpg','images/dscn0315m.jpg','images/dscn0141m.jpg','images/dscn0271m.jpg','images/dscn0253m.jpg','images/dscn0268m.jpg','images/dscn0685m.jpg','images/dscn0153m.jpg','images/dscn0623m.jpg','images/dscn0656m.jpg','images/dscn0691m.jpg','images/dscn0155m.jpg','images/dscn0161m.jpg','images/dscn0162m.jpg','images/dscn0617m.jpg','images/dscn0697m.jpg');
}

function init_surround()
{
new_color(103);
preloadpics ('images/stat_g.gif');
if (screen.width > 800) 
   {document.getElementById("surr_table").style.top = 90;
    document.getElementById("surr_table").style.left = 130}
preloadGallery('images/dscn0546m.jpg','images/dscn0525m.jpg','images/dscn0449m.jpg',
'images/dscn0569m.jpg','images/dscn0729m.jpg','images/dscn0514m.jpg','images/dscn0714m.jpg','images/dscn0108m.jpg','images/dscn0752m.jpg','images/dscn0145m.jpg','images/dscn0558m.jpg','images/dscn0516m.jpg','images/dscn0570m.jpg','images/dscn0591m.jpg','images/dscn0540m.jpg','images/dscn0518m.jpg','images/dscn0226m.jpg','images/dscn0544m.jpg','images/dscn0717m.jpg','images/dscn0566m.jpg','images/dscn0529m.jpg');
}

function preloadpics() 
{ var d=document;
  if(d.images)
    {d.imageGallery=new Array();
     var i,j=d.imageGallery.length;
     a=preloadpics.arguments;
     for(i=0; i<a.length; i++) 
         if(a[i].indexOf("#")!=0)
           {d.imageGallery[j]=new Image;
            d.imageGallery[j++].src=a[i];
           }
    }
}     

function init_acco()
{
new_color(202);
preloadpics ('accomodation/dionyssos/dscn0357m.jpg');
}

function init_rest()
{
new_color(203);
preloadpics ('restaurants/dionyssos/dscn0115m.jpg');
}

function init_cars()
{
new_color(204);
}

function init_serv()
{
new_color(205);
}


function restore(nr) 
{
if (nr == 1)
rest_name = "images/pg01" + "e.gif";
if (nr == 2)
rest_name = "images/pg02" + "e.gif";
if (nr == 3)
rest_name = "images/pg01" + "d.gif";
if (nr == 4)
rest_name = "images/pg02" + "d.gif";
if (nr == 5)
rest_name = "images/pg05" + "d.gif";
if (nr == 6)
 rest_name = "images/pg05" + "e.gif";
document.images.pgdummy.src = rest_name;
}

function ShowImage(name) 
{ 
document.getElementById("pgdummy").src = name;
if (navigator.appName == "Microsoft Internet Explorer")
	{
document.getElementById("pgdummy").style.display = "none";
document.getElementById("pgdummy").filters.revealTrans.Transition = 23;
document.getElementById("pgdummy").filters.revealTrans.Apply();
document.getElementById("pgdummy").style.display = "inline";
document.getElementById("pgdummy").filters.revealTrans.Play();
	}
}
