function class_littlefunctions(){

	this.actief = false;
	this.height = 0;

	this.onFocus = function (object){
		if (object.value == object.defaultValue)
			object.value = '';
	};

	this.onBlur = function (object){
		if (object.value == "")
			object.value = object.defaultValue;
	};

	this.slider	= function (This){
		var actieform = document.getElementById('actie_form');
			actieform.style.overflow = "hidden";
			actieform.style.display = '';

		if (this.actief == false){
			for(var i = 0; i <= 27; i++){
				setTimeout('' + this.animation(actieform) + '', 1000);
			}
			this.actief = true;
		} else {

			var height = 0;
			for(i = 0; i <= 27; i++){
				setTimeout('' + this.animation(actieform) + '', 500);
			}

			this.actief = false;
		}	

	};

	this.animation = function (object){
		if (this.actief == false){
			object.style.height = (this.height + 10) + 'px';
			this.height = this.height + 10;
		} else {
			object.style.height = (this.height - 10) + 'px';
			this.height = this.height - 10;
		}
	};

	this.linkproject = function (object){
		var classe = checkClass(object.id);

		if (classe == 'link') {

			window.location='#'+querystring()+'#getProjects=0';

			toggleLink(object.id);

			toggleLink('nieuwslink');

			obj_project.getProjects('content-rechts', 0);

		} else{

			window.location='#'+querystring()+'#getProjects=0';

			obj_project.getProjects('content-rechts', 0);

		}

	};

	this.linknieuws	= function (object){

		window.location='#getNieuws=0';

		toggleLink(object.id);

		toggleLink('projectlink');

		getNieuws('content-rechts', 0);

	};

	this.terugnaarhome = function (){

		obj_project.getProjects('content-rechts', 0);

		window.location='#pid=1&pagina=Over Green';	

	};

	this.safepdf = function (projectid){

		$.getJSON(baseUrl + 'init.php?class=mod_pdf&function=pdf&project='+ projectid, function(data){		});

	};

}

var functions = new class_littlefunctions();
