var root = 0;
//						1									10										20										30										40										50										60										70										80
var BreedteString = "0,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,450,600,600,600,600,600,660,600,600,600,450,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,597,600,600,600,600,600,596,600,600,600,600,600,600,600,600,600,600,600,600,230,600,600,600,600,600,600,600,600,600,600,600";
var HoogteString = "0,450,450,450,450,450,450,450,450,450,450,450,450,450,450,450,450,450,450,450,450,600,450,450,450,450,450,200,450,450,450,600,450,450,450,450,450,450,450,450,450,450,450,450,450,450,450,450,384,450,450,450,450,450,398,450,450,450,450,450,450,450,450,450,450,450,450,307,450,449,450,450,450,450,450,450,450,399,707";
var Breedte = BreedteString.split(",");
var Hoogte = HoogteString.split(",");

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function Vergroot(foto, breed, hoog)
{
	var ImageWindow = null;
	var xPositie = 0;
	var yPositie = 0;
	var tempBreedte = breed;
	var tempHoogte = hoog;
	var Verschuiven = "no";
	
	if (tempBreedte > screen.availWidth) {
		tempBreedte = screen.availWidth - 10;
		Verschuiven = "yes";
		tempHoogte = Math.abs(tempHoogte) + 16;
	}
	if (tempHoogte > screen.availHeight) {
		tempHoogte = screen.availHeight - 40;
		Verschuiven = "yes";
		tempBreedte = Math.abs(tempBreedte) + 16;
	}
	
	xPositie = (screen.availWidth - tempBreedte) / 2;
	yPositie = (screen.availHeight - tempHoogte) / 2;
	ImageWindow = window.open(foto,"","height="+tempHoogte+",width="+tempBreedte+",screenX="+xPositie+",screenY="+yPositie+",scrollbars="+Verschuiven+",resizable=yes,noresize=no,toolbar=0,location=0,directories=0,status=0,menubar=0")
	// ImageWindow.moveTo(xPositie,yPositie);
}

function LaadPlaatje(Nummer)
{
var Naam = '';

	if (root < 1) {
		Naam = '../';
	}
	
	Naam = Naam + 'multimedia/photo.html?';
	
	if (Nummer < 10) {
		Naam = Naam + '0';
	}
	Naam = Naam + Nummer;

	Vergroot(Naam, Breedte[Nummer], Hoogte[Nummer]);
}

function blockError()
{
	return true;
}

// window.onerror = blockError;

// jquery functions
$(document).ready(function() {
	
	$('.round').corner({
		tl: { radius: 20 },
		tr: { radius: 20 },
		bl: { radius: 20 },
		br: { radius: 20 }});
});

/* Google Analytics */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21276716-1']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

