function dw_print_part_title(){ document.write("<div class='dagelijkswoordtitel' id=dagelijkswoordtitel>vrijdag 02 juni 2023 - 1 Tessalonicenzen 5:23-24</div>"); }
function dw_print_part_verse(){ document.write("<div class='dagelijkswoordtekst' id=dagelijkswoordtekst>Ik bid dat de God van de vrede jullie hele leven heilig maakt. Zodat jullie geest, jullie ziel, en jullie lichaam zuiver blijven. Dan zullen jullie volmaakt zijn als onze Heer Jezus Christus terugkomt. God wil dat jullie bij hem horen. Hij is trouw, en hij doet wat hij belooft.</div>"); }

document.write("<div class='dagelijkswoordbox' id='dagelijkswoordbox' style='cursor:pointer; display:none;'>");

if( (typeof window.dw_title_location === 'undefined') || (window.dw_title_location==='0') ){
    dw_print_part_title(); dw_print_part_verse();
}else{
    dw_print_part_verse(); dw_print_part_title();
}

try{ if(dw_subscr) document.write(
    '<div class="dagelijkswoordinschrijven" id="dagelijkswoordinschrijven"><br><form target="_blank" action="https://www.dagelijkswoord.nl/m/?m_action=subscribe" method="post"><center><span style="font-size:8pt;">Dagelijks Woord per mail? Schrijf u gratis in!</span><br>Email: <input type="text" style="width: 182px; font-size:9px;" maxlength="60" name="email"><br><select style="width: 182px; font-size:10px;" name="translation"><option value="0">Nieuwe Bijbelvertaling (NBV)</option><option value="1">NBG51</option><option value="2">Statenvertaling</option><option value="3">Willibrord</option><option value="4">Herziene Statenvertaling</option><option value="5">Naardense Bijbel</option></select><input style="font-size:10px;" type="submit" value="Inschrijven" name="submit"></center>'
	+'<in'+'put type="hi'+'dden" name="bo'+'tfi'+'lte'+'r" val'+'ue="'+rtt("fvyyl fcnzobg svygre")+'"></script>'
    +'</form></div>'
	); }catch(e){ 
}

document.write('</div>');

var dagelijkswoordbox=document.getElementById('dagelijkswoordbox');
var dagelijkswoordtitel=document.getElementById('dagelijkswoordtitel');
var dagelijkswoordtekst=document.getElementById('dagelijkswoordtekst');
var dagelijkswoordinschrijven=document.getElementById('dagelijkswoordinschrijven');

if (dagelijkswoordbox && dagelijkswoordtitel && dagelijkswoordtekst ){
	dagelijkswoordtekst.onclick=function(){
		var url='https://www.dagelijkswoord.nl/?refer=dagelijks.js&dom=';
		if (window.location.host) url=url+window.location.host;
		if(!window.open(url)) {
			location=url; }
		return false;
	};
	dagelijkswoordtitel.onclick=function(){
		var url='https://www.dagelijkswoord.nl/?refer=dagelijks.js&dom=';
		if (window.location.host) url=url+window.location.host;
		if(!window.open(url)) {
			location=url; }
		return false;
	};


	if ( window.dw_fixed_style && (dw_fixed_style!=null) ) {
		if (dw_fixed_style==1){
			dagelijkswoordbox.style.margin='10px';
			dagelijkswoordbox.style.width='300px';
			dagelijkswoordbox.style.height='150px';
			dagelijkswoordbox.style.overflow='auto';
			dagelijkswoordbox.style.background='url(https://feed.dagelijkswoord.nl/js/footstepsbg.jpg)';
			dagelijkswoordbox.style.fontFamily='verdana';
			dagelijkswoordbox.style.fontSize='12px';
			dagelijkswoordbox.style.color='000';
			dagelijkswoordtitel.style.fontWeight='bold';
		}
	}else{
		try{ if ( window.dw_titel_font && (dw_titel_font!=null) && (dw_titel_font.length) ){ dagelijkswoordtitel.style.fontFamily=dw_titel_font; } }catch(err){}
		try{ if ( window.dw_titel_color && (dw_titel_color!=null) && (dw_titel_color.length) ){ dagelijkswoordtitel.style.color=dw_titel_color; } }catch(err){}
		try{ if ( window.dw_titel_bgcolor && (dw_titel_bgcolor!=null) && (dw_titel_bgcolor.length) ){ dagelijkswoordtitel.style.backgroundColor=dw_titel_bgcolor; } }catch(err){}
		try{ if ( window.dw_titel_decoration && (dw_titel_decoration!=null) && (dw_titel_decoration.length) ){ dagelijkswoordtitel.style.textDecoration=dw_titel_decoration; } }catch(err){}
		try{ if ( window.dw_titel_size && (dw_titel_size!=null) && (dw_titel_size.length) ){ dagelijkswoordtitel.style.fontSize=dw_titel_size; } }catch(err){}
		try{ if ( window.dw_titel_padding && (dw_titel_padding!=null) && (dw_titel_padding.length) ){ dagelijkswoordtitel.style.padding=dw_titel_padding; } }catch(err){}
		try{ if ( window.dw_tekst_font && (dw_tekst_font!=null) && (dw_tekst_font.length) ){ dagelijkswoordtekst.style.fontFamily=dw_tekst_font; } }catch(err){}
		try{ if ( window.dw_tekst_color && (dw_tekst_color!=null) && (dw_tekst_color.length) ){ dagelijkswoordtekst.style.color=dw_tekst_color; } }catch(err){}
		try{ if ( window.dw_tekst_bgcolor && (dw_tekst_bgcolor!=null) && (dw_tekst_bgcolor.length) ){ dagelijkswoordtekst.style.backgroundColor=dw_tekst_bgcolor; } }catch(err){}
		try{ if ( window.dw_tekst_size && (dw_tekst_size!=null) && (dw_tekst_size.length) ){ dagelijkswoordtekst.style.fontSize=dw_tekst_size; } }catch(err){}
		try{ if ( window.dw_tekst_padding && (dw_tekst_padding!=null) && (dw_tekst_padding.length) ){ dagelijkswoordtekst.style.padding=dw_tekst_padding; } }catch(err){}
		try{ if ( window.dw_box_width && (dw_box_width!=null) && (dw_box_width.length) ){ if(dw_box_width<60) {dw_box_width=60;} if(dw_box_width.match(/%/)){dagelijkswoordbox.style.width=dw_box_width;}else{ dagelijkswoordbox.style.width=dw_box_width+'px';} } }catch(err){}
		try{ if ( window.dw_box_height && (dw_box_height!=null) && (dw_box_height.length) ){ if(dw_box_height<48) {dw_box_height=48;}  dagelijkswoordbox.style.maxHeight=dw_box_height+'px'; } }catch(err){}
		try{ if ( window.dw_box_overflow && (dw_box_overflow!=null) && (dw_box_overflow.length) ){ dagelijkswoordbox.style.overflow=dw_box_overflow; } }catch(err){}
		try{ if ( window.dw_inschrijven_bgcolor && (dw_inschrijven_bgcolor!=null) && (dw_inschrijven_bgcolor.length) ){ dagelijkswoordinschrijven.style.backgroundColor=dw_inschrijven_bgcolor; } }catch(err){}
	}
	if ( window.dw_box_margin && (dw_box_margin!=null) && (dw_box_margin.length) ){ dagelijkswoordbox.style.margin=dw_box_margin; }
	if ( window.dw_box_float && (dw_box_float!=null) && (dw_box_float.length) ){ dagelijkswoordbox.style.cssFloat=dw_box_float; }

	try {
		if( window.dw_clean_title==1 ){
			x=document.getElementById("dagelijkswoordtitel");
			if(x)
				x.innerHTML=x.innerHTML.replace(/^[^-]* *- */,"");
		}
	} catch(err) { }

	dagelijkswoordbox.style.display='block'; //Show after setting styles
}

function rtt(src){
		var dst=new String('') ;
		var len=src.length ;
		var b ;
		var t=new String('') ;
		if(len > 0) {
				for(var ctr=0; ctr<len ; ctr++) {
						b=src.charCodeAt(ctr)
								if( ( (b>64) && (b<78) ) || ( (b>96) && (b<110) ) ) {
										b=b+13
								} else {
										if( ( (b>77) && (b<91) ) || ( (b>109) && (b<123) ) ) { b=b-13 }
								}
						t=String.fromCharCode(b) ;
						dst=dst.concat(t) ;
				}
		}
		return dst;
} 
