
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();
}
MM_reloadPage(true);
 
function showRoute()	{window.open("route.html", "deMeervaartRoute", "width=693,height=546");}
function printRoute()	{window.open("printroute.html", "deMeervaartRoute", "width=693,height=546");}

function showPrint(page)	{window.open(page, "deMeervaartPrint", "width=720,height=546");}

function showOrderform()	{
	window.open("bestelformulier.html", "MeervaartBestelFormulier", "width=780,height=550,scrollbars=yes");
}


function scrollTo(anchor)	{
     if (document.layers)
        document.scrollTo(0,document.anchors[anchor].y); 
    else
        if (document.all)
            document.all[anchor].scrollIntoView(); 
}


function doPrint() {
	if (window.print){
	 	  	window.print();
		// window.top.close();
	   }
	   else {
	   alert("U kunt deze pagina afdrukken d.m.v. de toetsencombinatie Apple+P")}
	}
	
	var showsoftlink = 'https://212.129.243.13/showweb/';
	var showsoftlinkNS = 'showsoft.cfm';
	
	
	function openTicketBox(artist,show) {
		var thislink = showsoftlink + '?artist=' + artist + '&show=' + show;
			tempWin=window.open(thislink,"MVTicketBox","height=475,width=780,scrollbars=no,resize=no,status=yes")
		}
		
	function openTicketBoxNS(show,title) {
		var thislink = showsoftlinkNS + '?ssid=' + show + '&title=' + title;
			tempWin=window.open(thislink,"MVTicketBox","height=475,width=780,scrollbars=no,resize=no,status=yes")
		}
		
	function showPicture(picture,title) {
		var thislink = 'pic.cfm?picture=' + picture + '&title=' + title;
			tempWin=window.open(thislink,"MVTicketBox","height=475,width=780,scrollbars=no,resize=no,status=yes")
		}
		
		
	function openFAQ() {
		var thislink = 'faq.cfm';
			tempWin=window.open(thislink,"MVfaq","height=475,width=540,scrollbars=yes,resize=yes,status=yes")
		}
	function openTroubleShooter() {
		var thislink = 'troubleshooter.cfm';
			tempWin=window.open(thislink,"MVtroubleshooter","height=475,width=540,scrollbars=yes,resize=yes,status=yes")
		}

	function openMailing(which) {
		var thislink = 'popup.cfm?page='+which;
			tempWin=window.open(thislink,"MVpopup","height=550,width=720,scrollbars=yes,resizeable=yes,status=yes")
		}




function	closeBox(div)	{
	document.getElementById(div).innerHTML = '';
}

var Ewindow = ''; 

function eClick(page,type,id)	{
	mypage = 'http://cms.e-building.net/websites/www.podiummozaiek.nl/e.cfm?page='+page+'&type='+type+'&id='+ id ;
		
	if (!Ewindow.closed && Ewindow.location) {
		Ewindow.location.href = mypage;
	}
	else {
		Ewindow=window.open(mypage,'ebox','height=515,width=640');
		if (!Ewindow.opener) newwindow.opener = self;
	}
	if (window.focus) {Ewindow.focus()}
	// return false;
}


	

function popitup(url) {


//	toggleBox('e',status); 
//	document.forms.editform.snippet.value=id;
//	toggleBox('editbglayer',status); 
//	toggleBox('editlayer',status);
} 


function popitup(url,w,h)
	{
		newwindow=window.open(url,'name','height='+h+',width='+w+'');
		if (window.focus) {newwindow.focus()}
		return false;
	}

	var win = null;
	function NewWindow(mypage,myname,w,h,scroll){
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes'
		win = window.open(mypage,myname,settings)
	}
 	

//Highlight form element- � Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com

var highlightcolor="#C8CED8"
var highlightfontcolor="red"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous.style.Color=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
eventobj.style.fontColor=highlightfontcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
eventobj.style.fontColor=highlightfontcolor
previous=eventobj
}
}

/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


/* function to show detailed link & status info in statusbar */
	function stat(txt) {
	    window.status = txt;
	    } 
				
				
				

// standard eb-functions

function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}

function eClickX(status)	{
	toggleBox('e',status); 
	toggleBox('editbglayer',status); 
	toggleBox('editlayer',status);
} 



//Highlight form element- � Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com

var highlightcolor="#C8CED8"
var highlightfontcolor="red"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous.style.Color=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
eventobj.style.fontColor=highlightfontcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
eventobj.style.fontColor=highlightfontcolor
previous=eventobj
}
}

				
//-->