// JavaScript Document
//
// Function list and description
// function openInter(type)     Open layer on Mouseover with language menu
//
// my Msg används i funktion scrollMsg()
// function Mail(box)           Function to hide email adress for address sniffers
// function Posta(box, domain)  Similar as Mail() 
// function formHandler1(form1) Handle language list scroll menu (to be pensioned)
// function printSimple()       Print function (not used)
// function apriimmagine(foto,larghezza,altezza) Show photo in small window
// function showphoto(photo)	Show photo in small window
// function chkframe()          Check that the fram is the main frame (not used)

NN6=false;
if(navigator.appVersion.indexOf('MSIE')!=-1) MSIE=true; 
  else MSIE=false;
if (navigator.userAgent.indexOf('Netscape6')!==-1) NN6=true;

function openInter(type){

  if (document.getElementById)
  if(type=='web')
    {
	document.getElementById("web").style.visibility="visible";
	document.getElementById("intranet").style.visibility="hidden";
	document.getElementById("kireus").style.visibility="hidden";
	}
   if(type=='intranet')
    {
	document.getElementById("web").style.visibility="hidden";
	document.getElementById("intranet").style.visibility="visible";
	document.getElementById("kireus").style.visibility="hidden";
	}
  if(type=='kireus')
    {
	document.getElementById("web").style.visibility="hidden";
	document.getElementById("intranet").style.visibility="hidden";
	document.getElementById("kireus").style.visibility="visible";
	} 
  if(type=='off')
	{
	document.getElementById("web").style.visibility="hidden";
	document.getElementById("intranet").style.visibility="hidden";
	document.getElementById("kireus").style.visibility="hidden";
	}

  return false;
}

function getDate(){
		  var brow = navigator.appName;
		  var x = 0;
		  if(brow=="Netscape"){
		    var x = 1900;
		  }

		  monthsArray = new Array();
		  monthsArray[0] = "January";
		  monthsArray[1] = "February";
		  monthsArray[2] = "March";
		  monthsArray[3] = "April";
		  monthsArray[4] = "May";
		  monthsArray[5] = "June";
		  monthsArray[6] = "July";
		  monthsArray[7] = "August";
		  monthsArray[8] = "September";
		  monthsArray[9] = "October";
		  monthsArray[10] = "November";
		  monthsArray[11] = "December";
		  now = new Date();
		  document.write(now.getDate() + "&nbsp;" + monthsArray[now.getMonth()] + "&nbsp;" + (now.getYear()+ x));
	}

function Mail(box) {
   domain="kireus.com";
   document.writeln("<a href=\"mailto:"+box+"@"+domain+"\" class=\"kireustextlink\">"+box+"@"+domain+"</a>"); }
   
function Posta(box, domain) {
   document.writeln("<a href=\"mailto:"+box+"@"+domain+"\" class=\"kireustextlink\">"+box+"@"+domain+"</a>"); }

function apriimmagine(foto,larghezza,altezza)  {
	var MyWidth = (window.screen.width-580)/2 - 10;
	var MyHeight = (window.screen.height-406)/2 - 40;
	w1=window.open("", "crs1", "width=" + larghezza + ",height=" + altezza + ",left=" + MyWidth + ",top=" + MyHeight + ",scrollbars=no,resizable=no");
    w1.document.writeln("<html><head><title>-- HOTEL CARASCO --</title></head>");
    w1.document.writeln("<body bgcolor='#FFFFFF' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
    w1.document.writeln("<a href='' onclick='window.close()'><img src='http://www.carasco.com/photos/"+ foto + "' border='0' alt='Click to close the Window...'></a>");
    w1.document.writeln("</body></html>");
    w1.document.close();
    w1.focus();
}

function showCategory(val)
{
  if (document.all)
  {
      eval("document.all('"+val+"HCL').style.display='none'");
      eval("document.all('"+val+"HEX').style.display=''");
      eval("document.all('"+val+"EX').style.display=''");
  } else if (document.getElementById)
  {
      eval("document.getElementById('"+val+"HCL').style.display='none'");
      eval("document.getElementById('"+val+"HEX').style.display=''");
      eval("document.getElementById('"+val+"EX').style.display=''");
  }
  return;
}

function hideCategory(val)
{
  if (document.all)
  {
      eval("document.all('"+val+"HCL').style.display=''");
      eval("document.all('"+val+"HEX').style.display='none'");
      eval("document.all('"+val+"EX').style.display='none'");
  } else if (document.getElementById)
  {
      eval("document.getElementById('"+val+"HCL').style.display=''");
      eval("document.getElementById('"+val+"HEX').style.display='none'");
      eval("document.getElementById('"+val+"EX').style.display='none'");
  }
  return;
}

