//====================================================================================================
// Aanpassen bij uploaden naar andere server
   baseUrl = "http://www.trilobiet.nl/sluis/";
//====================================================================================================

//====================================================================================================
// LokatieNet popup
/*
function Popup() {

var page = "http://free.lokatienet.nl/freemap.asp?postcode=3024se&amp;zoom=2";
var windowprops = "width=600,height=475,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";
window.open(page, "", windowprops);

}
*/


//=====================================================================================================
// Prikbord
function pop_prikbord() {

var page = "http://members2.boardhost.com/oudesluis/";
var windowprops = "width=700,height=500,location=no,toolbar=yes,menubar=no,scrollbars=yes,resizable=yes";
window.open(page, "", windowprops);

}

//=====================================================================================================
//deze is nog een probeersel voor de route planner maar werkt ook niet correct
//het script van de route planner staat in deze versie in pop_route.htm
//

function pop_route() {

var page = "../pops/pop_route.htm";
var windowprops = "width=200,height=150,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";
window.open(page, "", windowprops);

}

//=====================================================================================================
//deze zou voor de calculator kunnen zijn.
//

function pop_calculator() {

var page = "../info/bereken.htm";
var windowprops = "width=200,height=160,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";
window.open(page, "", windowprops);

}
//======================================================================================================


//=====================================================================================================

function pop_peet() {

var page = "../pops/pop_peet.htm";
var windowprops = "width=800,height=638,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";
window.open(page, "", windowprops);

}
//======================================================================================================


//=====================================================================================================
//deze zou voor de borrel reserveringen kunnen zijn.
//

function pop_reserveer() {

var page = "../pops/pop_reserveer.htm";
var windowprops = "width=510,height=520,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";
window.open(page, "", windowprops);

}
//======================================================================================================


//======================================================================================================
//=== opent popup voor flashclipje

function pop_feestvideo()
{
var page = "../pops/pop_feest2000.htm";
var windowprops = "width=220,height=170,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";
window.open(page, "", windowprops);
}


//======================================================================================================





//======================================================================================================
//=== opent popup voor grote plaatjes
//=== script by acdhirr@trilobiet.nl

function openView(imageName)
{
  viewwin= window.open(baseUrl + "view.htm?" + imageName, "newwin1", "width=800,height=638,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,screenX=0,screenY=0,left=0,top=0");
  viewwin.focus();
}


//======================================================================================================


//=====================================================================================================
//deze zou voor de borrel reserveringen kunnen zijn.
//

function pop_divers() {

var page = "../oja2000/sluis2/index.htm";
var windowprops = "width=600,height=520,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,screenX=50,screenY=50,left=50,top=50";
window.open(page, "", windowprops);

}
//=====================================================================================================


// =======================================================================
// ==                           swapImage                               == 
// ==                    (c) acdhirr@noumenon.nl                        ==
// ==                        www.noumenon.nl                            ==
// =======================================================================
// ===========================================================
//
// Swapt image onMouseover.
//
// ===========================================================

//=======================================================================
function swapset(cOverimage, cOffimage, cOnimage)
{

  // bij welke imagelocatie hoort hij?
  this.overImage = cOverimage;

  this.offImage = new Image();
  this.offImage.src = cOffimage;

  this.onImage = new Image();
  this.onImage.src = cOnimage;

}
//=======================================================================


//=======================================================================
//
function swap(nSetindex)
{

   var locOver = swappics[nSetindex].overImage;
   var cImage = swappics[nSetindex].onImage;
   document[locOver].src = cImage.src;

}
//=======================================================================


//=======================================================================
//
function restore(nSetindex)
{
   var currImage = swappics[nSetindex].overImage;
   var action = "document['" + currImage + "'].src = swappics[" + nSetindex + "].offImage.src"; 
   eval(action);
}
//=======================================================================


