// Newsletter

function openNewsletterned(){
	var w=560;
	var h=400;
	var l=(screen.availWidth-w)/2;
	var t=(screen.availHeight-h)/2;
	window.open('http://www.news4you.be/v2/frontend/subscription.aspx?code=9879616e&lang=NED','subscribe','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=yes, width='+w+', height='+h+', left='+l+', top='+t+', screenX=10,screenY=10');
}

// Selecteer regio

function ViewCrossReference (selSelectObject)
	{
	   if (selSelectObject.options[selSelectObject.selectedIndex].value != "")
	   { 
    	 location.href=selSelectObject.options[selSelectObject.selectedIndex].value
    	 //window.open(selSelectObject.options[selSelectObject.selectedIndex].value)
	   }
	}

// Breadcrumb trail

function breadcrumbs(){
	sURL = new String;
	bits = new Object;
	var x = 0;
	var stop = 0;
	var output = "<div id=breadcrumb>Je bent hier : <a href=\>home</a> &raquo; ";
	
	sURL = location.href;
	sURL = sURL.slice(8,sURL.length);
	chunkStart = sURL.indexOf("/");
	sURL = sURL.slice(chunkStart+1,sURL.length)
	
	while(!stop){
	  chunkStart = sURL.indexOf("/");
	  if (chunkStart != -1){
		bits[x] = sURL.slice(0,chunkStart)
		sURL = sURL.slice(chunkStart+1,sURL.length);
	  }else{
		stop = 1;
	  }
	  x++;
	}
	
	for(var i in bits){
	  output += "<a href=\"";
	  for(y=1;y<x-i;y++){
		output += "../";
	  }
	  output += bits[i] + "/\">" + bits[i] + "</a> &raquo; ";
	}
	document.write(output + document.title);
	document.write("</div>");
}


// Timestamp

function PageLastUpdated(){
   document.writeln("LAATSTE WIJZIGING : "+document.lastModified);   
 }


// MouseOver


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//////////////////////////////////////////////////////////////////////////////
//                         Nifty Breadcrumbs Script                         //
//////////////////////////////////////////////////////////////////////////////
// 
// This is a neat little script that takes your site's file/folder structure
// and converts it into breadcrumbs. As an added bonus, it forces you to
// create a structure that is optimal for search engines to index and rank!
//
// CONTRIBUTORS:
//
// Original Creator:
//     Paul Hirsch
//     www.paulhirsch.com
//
// Tested by:
//     International Web Developers Network (IWDN)
//     www.iwdn.net - home page
//     www.iwdn.net/index.php - forums/community where testing took place
//
// Other Contributors:
//     [INSERT YOUR NAME AND BRIEF DESCRIPTION OF YOUR CONTRIBUTION HERE]
//
// INSTRUCTIONS:
//
// 1.  Create your site structure using folders and files with useful names.
//     Use underscores to signify spaces when naming everything.
//
//     Example: http://www.squid.com/My_Pet_Squid/Meet_Rocky.html shows good
//     name choices to describe an area of content and the contents of a page.
//    
//     Alternatively, you can setup mod_rewrite to create friendly URLs such
//     as the one above.
//
//     Every folder *must* have a default document in it (such as index.html
//     or default.asp or whatever your host specifies).  You can also use
//     301/302 redirection to push the folder root to one of the pages within
//     that folder.  This will replace an index page, if you don't wish to
//     have one.
//
// 1a. If you want to use something other than underscores for spaces (such
//     as hyphens), you can make edits to the actual script to recognize
//     your preference.  A set of prewritten code lines have been inserted
//     below and commented out.  Feel free to use them, or to create your
//     own based on them.
//
// 2.  Fill in the settings for the variables in the next section of this
//     script.  They should be pretty self-explanatory.
//
// 3.  Add the following to your site wherever you want your breadcrumbs
//     to appear (change the path to point to wherever you put this script):
//
//     <div id="breadcrumbs"></div>
//     <script type="text/javascript" src="path/to/breadcrumbs.js"></script>
//
// LICENSE:
//
// This script is protected under General Public License (GPL).  Feel free to
// redistribute this script, so long as you do not alter any of the contents
// specifying authorship.  If you add to or modify this script, you may add
// your name to the "Other Contributors" list at the top of this script.  As
// a courtesy, please email me and let me know how you've improved my script!
// You may not profit from the direct sale of this script.  You may use this
// script in commercial endeavors however (i.e. as part of a commercial site).
//
// Email me here: http://www.paulhirsch.com/contact_me.php
//
// Copyright 2006, Paul Hirsch. All rights specified herein and within GPL
// documentation: http://www.gnu.org/licenses/gpl.txt
//
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
// Change the following variables as instructed                             //
//////////////////////////////////////////////////////////////////////////////

// Enter your domain name here, 
var url = "welzijnszorg.be";

// Enter the word you want to use to describe the home page of your site
var home = "home";

// Enter the character(s) you want to use to separate your breadcrumbs
var divide = "&gt;";

// Enter text you'd like to see.  You can make this blank as well - "";
var pre = "Je bent hier : ";

// Enter the extension you use for your pages
var ext = ".asp";

// Enter the default file name you use for the root file of your folders
var root = "default";

//////////////////////////////////////////////////////////////////////////////
// DO NOT TOUCH ANYTHING BELOW THIS LINE                                    //
// unless done in accordance with the instructions at the top of the page.  //
//////////////////////////////////////////////////////////////////////////////

function createBreadcrumbs(){
	
	divide = " " + divide + " ";
	var a = "" + window.location;
	var b = "";
	var bar = divide + root;
	var code = "";
	var foo = root + ext;
	var left = "";
	
	a = a.replace(ext,"");
	left = a.lastIndexOf("/");
	
	if (a.substring(a.lastIndexOf("/")) == "/") {
		a = a + root;
	}
	
	b = a.substring(left+1);
	b = b.replace(/_/g," ");
	b = b.replace(/#/g,divide);
	
	// Alternative spacer: hyphen. Remove comment tags in the next line to activate
	// b = b.replace(/-/g," ");
	
	code = divide + b;
	b = "/" + b
	b = b.replace(divide,"#");
	b = b.replace(/ /g,"_");
	
	// Alternative spacer: hyphen. Remove comment tags in the next line to activate
	// b = b.replace(/ /g,"-");
	
	a = a.replace(b,"");
	
	if (a.substring(left-1) != "/") {
		do  {
			left = a.lastIndexOf("/");
			b = a.substring(left+1);
			b = b.replace(/_/g," ");
			
			// Alternative spacer: hyphen. Remove comment tags in the next line to activate
			// b = b.replace(/-/g," ");
	
			code = divide + "<a href=\"" + foo + "\">" + b + "</a>" + code;
			foo = "../" + foo;
			b = "/" + b;
			b = b.replace(/ /g,"_");
			
			// Alternative spacer: hyphen. Remove comment tags in the next line to activate
			// b = b.replace(/ /g,"-");
	
			a = a.replace(b,"");
		} while (a.substring(left-1) != "/");
	}
	
	code = code.replace(url,home);
	code = code.replace(bar,"");
	code = (code.substring(code.indexOf("<")));
	code = pre + code;
	document.getElementById('breadcrumbs').innerHTML = code;
	
}

