// Functie reacties
function ShowReactie(obj) {
   if (document.getElementById(obj).style.display == "none")
   {document.getElementById(obj).style.display = "block";}
   else 
   {document.getElementById(obj).style.display = "none";}
}
// Functie info
function ShowInfo(obj) {
   if (document.getElementById(obj).style.display == "none")
   {document.getElementById(obj).style.display = "block";}
   else 
   {document.getElementById(obj).style.display = "none";}
}

// Smilies
function smileynieuws(iconCode) {	
	reactienieuws.reactie_bericht.value += iconCode + " ";
}
function smileyfoto(iconCode) {	
	reactiefotoalbum.reactie_bericht.value += iconCode + " ";
}
function smileygastenboek(iconCode) {	
	gastenboek.gastenboek_bericht.value += iconCode + " ";
}


function showPic( imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor ) {
	if(imgWidth<=100)imgWidth=100
	if(imgHeight<=100)imgHeight=100
	winHeight=imgHeight+20;
	w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+imgWidth+',height='+winHeight);
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<STYLE TYPE='text/css'>" );
	w.document.write( "A {font-family: verdana; font-size: 10px; color: "+textColor+"; text-decoration : none;}" );
	w.document.write( "A:Visited {font-family: verdana;font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "A:Active { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "A:Hover { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "IMG {border-color : "+textColor+";}" );
	w.document.write( "BODY { font-family: verdana; font-size : 10px; font-weight: normal; color : "+textColor+"; background-color : "+bgColor+"; }" );
	w.document.write( "</STYLE>" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true\n");
	w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31+20)\n");
	w.document.write( "	else if(NN6) self.sizeToContent()\n");
	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+20)\n");
	w.document.write( "	self.focus()\n");
	w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<table cellpadding=0 cellspacing=0 border=0><tr><td colspan=3><a href='javascript:window.close();'><img src='"+imgName+"' border=0 alt='"+imgCaption+"' alt='Scherm Sluiten'></td></tr>" );
	w.document.write( "<tr><td align='left'>&nbsp;&nbsp;<a>&copy; <a href='http://www.excellentgroepfriesland.nl/' target='_blank'>www.excellentgroepfriesland.nl</a></td>" );
	w.document.write( "<td align='right'><a href='javascript:top.window.close();'>sluit scherm</a>&nbsp;&nbsp;</td></tr>" );
	w.document.write( "</table></body></html>" );
	w.document.close();
}
	function rotate(mode)
	{
		
		var sSpeed    = 5;
		var sWidth    = '100%';
		var sHeight   = '400px';
		var direction = 'up'; // up|down|left|right
		var splitter  = '<br>'; // <br>| 
		var sElem  = document.getElementById('rotation');

		if(mode == 'stop')
		{
			sElem.scrollAmount = 0;
			return;
		}		
		else if(mode == 'start')
		{
			sElem.scrollAmount = sSpeed;
			return;
		}
		
		var rotations = new Array();
		rotations[0]  = '<a href="images/folder1.jpg" target="_blank"><img src="images/folderklein_1.jpg" border="0" ></a>'
		rotations[1]  = '<a href="images/folder2.jpg" target="_blank"><img src="images/folderklein_2.jpg" border="0" ></a>'
		rotations[2]  = '<a href="images/folder3.jpg" target="_blank"><img src="images/folderklein_3.jpg" border=0 ></a>'
		rotations[3]  = '<a href="images/folder4.jpg" target="_blank"><img src="images/folderklein_4.jpg" border=0 ></a>'
		rotations[4]  = '<a href="images/folder5.jpg" target="_blank"><img src="images/folderklein_5.jpg" border=0 ></a>'
		rotations[5]  = '<a href="images/folder6.jpg" target="_blank"><img src="images/folderklein_6.jpg" border=0 ></a>'
		rotations[6]  = '<a href="images/folder7.jpg" target="_blank"><img src="images/folderklein_7.jpg" border=0 ></a>'
		rotations[7]  = '<a href="images/folder8.jpg" target="_blank"><img src="images/folderklein_8.jpg" border=0 ></a>'
		rotations[8]  = '<a href="images/folder9.jpg" target="_blank"><img src="images/folderklein_9.jpg" border=0 ></a>'
		rotations[9]  = '<a href="images/folder10.jpg" target="_blank"><img src="images/folderklein_10.jpg" border=0 ></a>'
		rotations[10] = '<a href="images/folder11.jpg" target="_blank"><img src="images/folderklein_11.jpg" border=0 ></a>'
		rotations[11] = '<a href="images/folder12.jpg" target="_blank"><img src="images/folderklein_12.jpg" border=0 ></a>'
		
		document.writeln('<marquee id="rotation" direction="'+ direction +'"></marque>');
		
		with(document.getElementById('rotation'))
		{		
			scrollAmount = sSpeed;
			style.width  = sWidth;
			style.height = sHeight;
			onmouseover  = new Function("rotate('stop')");
			onmouseout   = new Function("rotate('start')");
			for(i=0; i<rotations.length;++i)
				innerHTML += rotations[i] + splitter;
		}
	}
