try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}

$(document).ready(function() { 


        $("#thumb_select a").mouseover(function() 
        { 
			var largePath = $(this).attr("href"); 
			//var largePath2 = $(this).attr("rel");
			var largePath2 = largePath.replace('_500', '_750');
			var largeAlt = $(this).attr("title");
			$("#largeImg").attr({ src: largePath, alt: largeAlt });
			if( $("#ContentColumnRight").css("display") == "none" ) {
				$("#ContentColumnRight").css('display', 'block');
				$("#ContentColumnLeft").css('width', '500px');							
			}			  				
			$(".zoomImage").attr('href',largePath2); 				
        	return false; 
        }); 
        $("#thumb_select a").click(function() 
        { 		
        return false; 
        }); 
				
        $(".zoomImage").click(function() 
        { 
			if( $("#ContentColumnRight").css("display") == "none" ) {
				var KleinPad = $(this).attr("href");
				var GrootPad = $("#largeImg").attr("src");		
				$("#ContentColumnRight").css('display', 'block');
				$("#ContentColumnLeft").css('width', '500px');			 				
				$("#largeImg").attr({ src: KleinPad});	
				$(".zoomImage").attr('href',GrootPad); 		
			
			} else {
				var KleinPad =  $("#largeImg").attr("src");
				var GrootPad = $(this).attr("href");	
					
				$("#ContentColumnRight").css('display', 'none');
				$("#ContentColumnLeft").css('width', '100%');			 				
				$("#largeImg").attr({ src: GrootPad});	
				$(".zoomImage").attr('href',KleinPad); 		
			}					 							
        return false; 
        }); 

}); 


function issuu(id, naam){
	if (hasFlash){
	var wmode = 'opaque';
	if (navigator.userAgent.indexOf("Firefox") != -1 && navigator.appVersion.indexOf("Windows") > -1)
	{
		document.write("<style>ul ul{display:none}</style>"); 
		//wmode= '';
	}
		
	emb = '<embed src="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" wmode="'+ wmode + '" width="500" height="500" flashvars="mode=embed&amp;layout=http%3A%2F%2Fwww.ab-c.nl%2Fbeeld%2FbasicGrey%2Flayout.xml&&amp;oldRevisionRequested=true&amp;documentId=' + id + '&amp;docName=' + escape(naam) + '&amp;username=levievandermeer&amp;loadingInfoText=' + escape(naam + ' wordt geladen...') + '&amp;et=1241610039607&amp;er=88" />';	

	$("#ContentColumnLeft").html(emb);
	}
}


var hasFlash = function(){
	var isIE = (navigator.appName.indexOf("Microsoft") != -1 && navigator.appVersion.indexOf("Windows") > -1)+1-1;

	var nRequiredVersion = 8;
	if(isIE){
		document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & ' + nRequiredVersion + '))) \n</script\> \n');
		if(window.hasFlash != null){ return window.hasFlash;};
	};
	if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
		var flashDescription = (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description;
		var vr = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1)); if (vr < 4) vr += 10;	
		return vr >= nRequiredVersion;
	};
	return false;
}();