function Set_Cookie( name, value, expires, path, domain, secure ) 

{

// set time, it's in milliseconds

var today = new Date();

today.setTime( today.getTime() );

 

/*

if the expires variable is set, make the correct 

expires time, the current script below will set 

it for x number of days, to make it for hours, 

delete * 24, for minutes, delete * 60 * 24

*/

if ( expires )

{

expires = expires * 1000 * 60 * 60 * 24;

}

var expires_date = new Date( today.getTime() + (expires) );

 

document.cookie = name + "=" +escape( value ) +

( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 

( ( path ) ? ";path=" + path : "" ) + 

( ( domain ) ? ";domain=" + domain : "" ) +

( ( secure ) ? ";secure" : "" );

}

 

// this fixes an issue with the old method, ambiguous values 

// with this test document.cookie.indexOf( name + "=" );

function Get_Cookie( check_name ) {

      // first we'll split this cookie up into name/value pairs

      // note: document.cookie only returns name=value, not the other components

      var a_all_cookies = document.cookie.split( ';' );

      var a_temp_cookie = '';

      var cookie_name = '';

      var cookie_value = '';

      var b_cookie_found = false; // set boolean t/f default f

      

      for ( i = 0; i < a_all_cookies.length; i++ )

      {

            // now we'll split apart each name=value pair

            a_temp_cookie = a_all_cookies[i].split( '=' );

            

            

            // and trim left/right whitespace while we're at it

            cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');

      

            // if the extracted name matches passed check_name

            if ( cookie_name == check_name )

            {

                  b_cookie_found = true;

                  // we need to handle case where cookie has no value but exists (no = sign, that is):

                  if ( a_temp_cookie.length > 1 )

                  {

                        cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );

                  }

                  // note that in cases where cookie is initialized but no value, null is returned

                  return cookie_value;

                  break;

            }

            a_temp_cookie = null;

            cookie_name = '';

      }

      if ( !b_cookie_found )

      {

            return null;

      }

}                       

 

// this deletes the cookie when called

function Delete_Cookie( name, path, domain ) {

if ( Get_Cookie( name ) ) document.cookie = name + "=" +

( ( path ) ? ";path=" + path : "") +

( ( domain ) ? ";domain=" + domain : "" ) +

";expires=Thu, 01-Jan-1970 00:00:01 GMT";

}







function getURLVar(urlVarName) {
//divide the URL in half at the '?'
var urlHalves = String(document.location).split('?');
var urlVarValue = '';
if(urlHalves[1]){
//load all the name/value pairs into an array
var urlVars = urlHalves[1].split('&');
//loop over the list, and find the specified url variable
for(i=0; i<=(urlVars.length); i++){
if(urlVars[i]){
//load the name/value pair into an array
var urlVarPair = urlVars[i].split('=');
if (urlVarPair[0] && urlVarPair[0] == urlVarName) {
//I found a variable that matches, load it's value into the return variable
urlVarValue = urlVarPair[1];
}
}
}
}
return urlVarValue;   
}
bank=getURLVar("s");

if(bank >''){
	Set_Cookie('style',bank,365)
//document.cookie = 'style=' + bank;
}else {
//	alert(Get_Cookie('style'));
	 bank=Get_Cookie('style');
//bank = document.cookie.charAt(7);
}
if(bank==null){//!(bank==0||bank==1||bank==2||bank==3||bank==4||bank==5||bank==6)){
bank=0;
}
//alert(bank);
var StyleFile = "style" + bank + ".css";
document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
var bankNaam;
var bordercolor;
var bgcolor;
bank=bank+'';

if(bank=='0'){
bankNaam='Betaalversneller';
bordercolor='#114660'
bgcolor='#7da9c1'
}
if(bank=='1'){
bankNaam='DAS';
bordercolor='#0170a9'
bgcolor='#008dcb'
}
if(bank=='2'){
bankNaam='Fortis';
bordercolor='#0f6190'
bgcolor='#003366'
}
if(bank=='3'){
bankNaam='BOS';
bordercolor='#c54a00'
bgcolor='#f8833d'
}
if(bank=='4'){
bankNaam='Reaal';
bordercolor='#b4cbe9'
bgcolor='#f8833d'
}
if(bank=='5'){
bankNaam='Deltalloyd';
bordercolor='#bcc0d2'
bgcolor='#00a6d6'
}
if(bank=='6'){
bankNaam='EVO';
bordercolor='#007ece'
bgcolor='#49bdee'
}
if(bank=='7'){
bankNaam='DeWitVissers';
bordercolor='#a67503'
bgcolor='#fcb510'
}
if(bank=='8'){
bankNaam='RMC';
bordercolor='#001947'
bgcolor='#4567a1'
}

if(bank=='9'){
bankNaam='WELNESS';
bordercolor='#007ece'
bgcolor='#49bdee'
}







function ShowLayerById(id)
{   
	document.getElementById(id).style.visibility = "visible";
	if ( (document.getElementById(id).tagName=="tr") && (navigator.userAgent.toLowerCase().indexOf("msie")<0) )
	{
	   document.getElementById(id).style.display = "table-row";
	}
	else
	{
	   document.getElementById(id).style.display = "block";
	}	
}
function HideLayerById(id)
{
	document.getElementById(id).style.visibility = "hidden";
	document.getElementById(id).style.display = "none";
}