function alertSize() {
  myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  return myWidth;
  return myHeight;
}

alertSize();

maxHeight = myHeight - 72;
maxWidth = myWidth - 63;

	
function show(obj) {
	var item = document.getElementById(obj);
	$(item).show("slow");
}
	
function hide(obj) {
	var item = document.getElementById(obj);
	$(item).hide("slow");
}

function toggle(obj) {
	var item = document.getElementById(obj);
	$(item).toggle("slow");
}

function fadeIn(obj) {
	var item = document.getElementById(obj);
	$(item).fadeIn("slow");
}

function fadeOut(obj) {
	var item = document.getElementById(obj);
	$(item).fadeOut("slow");
}

function fadeToggle(obj) {
	var item = document.getElementById(obj);
	
	if(item.style.display == 'block') {
		$(item).fadeOut("slow");
	}
	else {
		$(item).fadeIn("slow");
	}
}

function slideToggle(obj) {
	var item = document.getElementById(obj);
	$(item).slideToggle("slow");
}




	
//innerhtmlfunctie die dmv eval ook javascript uit zal voeren
function setAndExecute(divId, innerHTML)
		{
		   var div = document.getElementById(divId);
		   div.innerHTML = innerHTML;
		   var x = div.getElementsByTagName("script"); 
		   for(var i=0;i<x.length;i++)
		   {
		       eval(x[i].text);
		   }
		}
		
		
$(document).ready(
				function(){
					$('#images').innerfade({
						animationtype: 'fade',
						speed: 2000,
						timeout: 5200,
						type: 'sequence',
						containerheight: '262'
					});
			});
	
	

