/**
 * @author  Ivo Toby, Internet Voor Ondernemers (I-V-O), www.i-v-o.nl / blog.i-v-o.nl
 * @copyright I-V-O 2008
 * @requires Prototype.js (>1.61), Scriptaculous (> 1.81)
 */
	var gwps = '';
	
	document.observe("dom:loaded", 
		function startMe(){
			// set Content-height;
			//window.onresize = setContentHeight;
			//$$('body')[0].setStyle('padding-bottom:50px');
		}
	 )
	 
	setContentHeight = function(){

		

	}

	function increaseFontSize() {
	   var p = document.getElementsByTagName('p');
	   for(i=0;i<p.length;i++) {
	      if(p[i].style.fontSize) {
	         var s = parseInt(p[i].style.fontSize.replace("px",""));
	      } else {
	         var s = 18;
	      }
	      if(s!=max) {
	         s += 1;
	      }
	      p[i].style.fontSize = s+"px"
	   }
	}
	
	function decreaseFontSize() {
	   var p = document.getElementsByTagName('p');
	   for(i=0;i<p.length;i++) {
	      if(p[i].style.fontSize) {
	         var s = parseInt(p[i].style.fontSize.replace("px",""));
	      } else {
	         var s = 18;
	      }
	      if(s!=min) {
	         s -= 1;
	      }
	      p[i].style.fontSize = s+"px"
	   }   
	}
	
	moveImages = function(){
		var cnt = 0;
		var imgContainer = $('articleImages');
		$$('#mainContent img').each(
			function(img){
				imgContainer.insert(img);
				img.setStyle('cursor:pointer;');
//				img.removeAttribute('height');
				img.id = cnt + "_image";
				if (parseInt(img.getAttribute('width')) > 200){
					img.observe('click', function(e){
						var img = e.element();
						myLightWindow.activateWindow({
							href: img.src, 
							caption: img.getAttribute('alt'),
							title:''
						});					
					});
				}
				img.setStyle({'width':'200px', 'height':'auto'});
				var span = new Element('span', {className:'imgTitle'}).update(img.getAttribute('alt'));
				imgContainer.insert(span);
				cnt++;
			}
		)
		
	}
	
	var desPrototypereact = Class.create(prototypereact,{
		_buildThread : function($super, req,rpc){
			$super(req,rpc);
			startPage();
		},
		drawForm : function($super,e){
			$super(e);
			startPage();
		},
		toggle: function($super,e){
			$super(e);
			startPage();
		},
		reloadThread: function($super, req,rpc){
			$super(req,rpc);
			startPage();
		}
	})