/*  Based on V-NewsTicker v1.2, (c)2003 VASIL DINKOV- PLOVDIV, BULGARIA, http://www.smartmenus.org/other.php */
v_font='verdana,arial,sans-serif';
v_fontSize='12px';
v_fontSizeNS4='12px';
v_fontWeight='normal';
v_fontColor='#FFFFCC';
v_textDecoration='none';
v_fontColorHover='#FFFFCC';
v_textDecorationHover='none';
v_bgColor='transparent';//set [='transparent'] for transparent
v_top=0; v_left=0; v_width=600; v_height=24;
v_paddingTop=1; v_paddingLeft=2;
v_timeout=5500; v_slideSpeed=40;
v_slideDirection=0; v_pauseOnMouseOver=true;

var timerID = null;
var timerRunning = false;
var i=0;
var speed = 5500;
var div_name = "weethet";
var coords = {x: 0, y: 0 };	
	
function change_nl() 
{ textpage=window.location.href;  
	if (textpage.indexOf('english')>-1) // Switch Language
	{ prefix=textpage.slice(0,textpage.indexOf('english'))+'dutch';
   	  suffix=textpage.substring(textpage.lastIndexOf('english')+7);
   	  window.open(prefix+suffix,'_self'); }
}
function setCounter(Counter) // Set counter images 
{ try {
	while (Counter.length<10) { Counter="x"+Counter; }
	document.digit0.src='../images/counter/'+Counter.charAt(0)+'.gif';
	document.digit1.src='../images/counter/'+Counter.charAt(1)+'.gif';
	document.digit2.src='../images/counter/'+Counter.charAt(2)+'.gif';
	document.digit3.src='../images/counter/'+Counter.charAt(3)+'.gif';
	document.digit4.src='../images/counter/'+Counter.charAt(4)+'.gif';
	document.digit5.src='../images/counter/'+Counter.charAt(5)+'.gif';
	document.digit6.src='../images/counter/'+Counter.charAt(6)+'.gif';
	document.digit7.src='../images/counter/'+Counter.charAt(7)+'.gif';
	document.digit8.src='../images/counter/'+Counter.charAt(8)+'.gif';
	document.digit9.src='../images/counter/'+Counter.charAt(9)+'.gif';
	}
catch(e) {}
}
function getCellPosition (cellId) 
{
	if (document.layers)
		return { x: document.layers[cellId].pageX, y: document.layers[cellId].pageY };
	else if (document.all || document.getElementById) {  
		var cell = document.all ? document.all[cellId] : document.getElementById(cellId);
		var coords = {x: 0, y: 0 };
		while (cell) { 
		coords.x += cell.offsetLeft;
		coords.y += cell.offsetTop;
		cell = cell.offsetParent; }
		return coords; }
}
function startTicker()
{	
	if(timerRunning) { 
		clearInterval(timerID);
		timerRunning = false;}
		timerRunning = true;
		if (getCookie("_menu")=="menu.htm") { setCookie ("_menu", "menu.htm"); }
		window.status="Welcome at WeetHet.nl - Website for tips, tricks and insight into computer technology !!!"; 
}
