function setLocation( nodeID, pageLocation )
{
	document.location = pageLocation + "?page=" + nodeID;
}

function showChilds( nodeID )
{
	container = document.getElementById('childContainer_'+nodeID)
	
	if(container != null)
	{
		container.style.display		= 'block';
		container.style.visibility	= 'visible';
	}
}

function hideChilds( nodeID )
{
	container = document.getElementById('childContainer_'+nodeID)
	
	if(container != null)
	{
		container.style.display		= 'none';
		container.style.visibility  = 'hidden';
	}
}

function popUpPanorama( fotoUrl )
{
	popUpWindow = window.open('panoramapopup.htm','','resizable=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=400,height=250');
	popUpWindow.document.write("<html><body><img src='"+ fotoUrl +"'></body></html>");
}

function popUp()
{
//	window.open("enquete.aspx","","width=350,height=420")
}

function openpopup(){
	//window.open("popOut.aspx","","width=350,height=338")
	window.open("enquete.aspx","","width=350,height=530")
}

function get_cookie(Name) 
{
  var search = Name + "="
  var returnvalue = "";
  
  if (document.cookie.length > 0) 
  {
    offset = document.cookie.indexOf(search)
    if (offset != -1)
    { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      
      returnvalue=unescape(document.cookie.substring(offset, end))
    }
  }
  return returnvalue;
}

function loadpopup()
{
	if (get_cookie('popped')=='')
	{
		//openpopup()
		//document.cookie="popped=yes"
	}
}

// rightclick disablen
var closeWin="0"; // Do you want to close window (1 for yes 0 for no)
var alertVis="0"; // Do you want to alert the visitor (1 for yes 0 for no)
var message="You can NOT right click here"; // Your no right click message here

function detail(){
	  if(alertVis == "1") alert(message); 
          if(closeWin == "1") self.close();
          return false;
}
function IE() {
     if (event.button == "2" || event.button == "3"){ detail();}
}
function NS(e) {
     if (document.layers || (document.getElementById && !document.all))
     {
          if (e.which == "2" || e.which == "3"){ detail();}
     }
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");

