//Javascript bestand gemaakt door DM Webdesign (www.dmwebdesign.nl)
//Code mag worden gebruikt o.v.v. brongegevens
//Originele code beschikbaar gesteld door Anouk (www.anouksweb.nl)

//Begin WalkText Functions
	var layers = document.layers, style = document.all, both = layers || style, idme=908601;
	if (layers) { layerRef = 'document.layers'; styleRef = ''; } if (style) { layerRef = 'document.all'; styleRef = '.style'; }

	function writeOnText(obj, str) {
	  if (layers) with (document[obj]) { document.open();  document.write(str); document.close(); }
	  if (style) eval(obj+'.innerHTML= str');
	}
	
	var overMe=0;

	function txtTyper(str, idx, idObj, spObj, clr1, clr2, delay) {
	  var tmp0 = tmp1 = '', skip = 0;
	    if (both && idx <= str.length) {
		if (str.charAt(idx) == '<') { while (str.charAt(idx) != '>') idx++; idx++; }
		if (str.charAt(idx) == '&' && str.charAt(idx+1) != ' ') { while (str.charAt(idx) != ';') idx++; idx++; }
		tmp0 = str.slice(0,idx);
		tmp1 = str.charAt(idx++);

		writeOnText(idObj, "<span class="+spObj+"><font color='"+clr1+"' size='2'>"+tmp0+"</font><font color='"+clr2+"'>"+tmp1+"</font></span>");
		setTimeout("txtTyper('"+str+"', "+idx+", '"+idObj+"', '"+spObj+"', '"+clr1+"', '"+clr2+"', "+delay+")",delay);
	  }
	}

	function init() {
	var kleurA = "#E698E7"; //hier kun je de begin kleur geven 
	var kleurB = "#FF00FF"; //hier kun je de tweede kleur geven
	var snelheid = 30; //geef hier de snelheid
		txtTyper(dispStr[0], 0, 'ttl0', 'ttl1', kleurA, kleurB, snelheid);
	}
//Einde WalkText Functions

//Begin RightClick to Favorits Functions
function rctf() {
if (event.button==2)
  window.external.AddFavorite('http://www.jennyparanormaal.nl','Jenny Paranormaal Medium');
}


//Einde RightClick to Favorits Functions

//Begin Afsluitbanner Functions
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(GetCookie("sid") == "999"){return;}
document.cookie="sid=999; Path=/; Expires= " + getFuture(999);
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}

function getFuture(f){
var d = new Date();
d.setTime(d.getTime() + (86400000 * f));
return d;
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
  var j = i + alen;
  if (document.cookie.substring(i, j) == arg)
  return getCookieVal (j);
  i = document.cookie.indexOf(" ", i) + 1;
  if (i == 0) break;
  }
  return null;
  }

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
  endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
//Einde Afsluitbanner Functions
