PGX.js.push('http://www.tiypg.com/_pgx/shared/lightview/2.5.2/lightview.js');

var _class=Class.create({initialize:function(){typeof Lightview!="undefined"&&this.loaded();document.observe("lightview:loaded",this.loaded.bind(this))},loaded:function(){PGL.lightview=this.lightview},lightview:function(a){a=Object.extend({href:"#_lvajaxelement"},Object.clone(a));a.options=Object.extend({width:400,height:300},Object.clone(a.options));if(a.youtube){a.options.width=640;a.options.height=385;a.href="#_lvajaxelement";a.rel="set[inline]";if(typeof a.options.closeButton!="undefined"&&a.options.closeButton==
false)a.rel="inline"}if(a.href=="#_lvajaxelement"){var b=new Element("div",{id:"_lvajaxelement",style:"width:"+a.options.width+"px; height:"+a.options.height+"px; overflow:hidden;"});$("lightviewError").insert(b);a.youtube&&b.pgx("shared.youtube",{video:a.youtube,autoplay:true})}document.observe("lightview:hidden",function(){document.stopObserving("lightview:hidden");$("_lvajaxelement")&&$("_lvajaxelement").destroy()});Lightview.show(a);return a.href=="#_lvajaxelement"?b:Lightview[Lightview._contentPosition]}});
new _class;Element.addMethods({lightview:function(a,b){b=Object.clone(b);b.href="#"+$(a).identify();if(!b.rel){b.rel="set[inline]";if(b.options&&typeof b.options.closeButton!="undefined"&&b.options.closeButton==false)b.rel="inline"}return PGL.lightview(b)}});

PGX.js.push('http://www.tiypg.com/_pgx/shared/prototip/2.1.2/prototip.js');

var _class=Class.create({initialize:function(){PGL.prototip={};PGL.prototip.tip=this.tip},tip:function(a,b,c){if(typeof b=="object"){c=b;b=""}if(typeof b=="undefined")b="";if(typeof c=="undefined")c={};$(a).prototip_clone=$(a).prototip;tip=new Tip(a,b,c);$(a).prototip.remove_clone=$(a).prototip.remove;$(a).prototip.remove=function(){$(a).prototip.remove_clone();$(a).prototip=$(a).prototip_clone}.bind(a);$(a).prototip.show();$(a).prototip.hide();tip=$(tip.tip);tip.prototip=$(a).prototip;return tip}});
new _class;Element.addMethods({prototip:function(a,b,c){return PGL.prototip.tip(a,b,c)}});

PGX.js.push('/_templates/root/scripts/scripts.js');

//////////////////////////////////////////////////////////////////////////////////////
// Deze js wordt gebruikt voor scripts die voor beide roottemplates gebruikt worden //
//////////////////////////////////////////////////////////////////////////////////////
function gotoURL(element, playground) {
	if(typeof pgiEdit == 'undefined') {
		sHref = $(element).down(0).href
		if(sHref != '') {
			window.location=sHref;
		}
	}
}

function changeBow(action) {
	if($('menu_top_bow').className == 'menu_top_bow_true') {
	}else{
		if(action == true) {
			$('menu_top_bow').className='menu_top_bow_hover';
		}else{
			$('menu_top_bow').className='menu_top_bow_false';
		}
	}
}


function changeExternalLinks(){	
	links = $$('a');
	links.each(function(obj) {
		aExternal.each(function(external, index) {
			if(aExternalURL[index] != '') {
				external = PGX.path+'/'+external;
			}
			if (obj.href.indexOf(external) != -1 && obj.href.indexOf('@') == -1) {
				obj.onclick = function() {
					if(aExternalURL[index] != '') {
						obj.href = PGX.path+'/'+aExternalURL[index];
						Lightview.show({ href: obj.href, title: '', rel: 'iframe', options: { width:650, height:280 }});
					}else{
						Lightview.show({ href: obj.href, title: '', rel: 'iframe', options: { fullscreen:true, closeButton:false, topclose:true }});
					}				
					return false;
				}
			}
		});
	});
}

document.observe("dom:loaded", function() {
	changeExternalLinks();
	//lightview.delay(0.5); // Overlay aan/uitschakelen
});

swfobject.switchOffAutoHideShow();
swfobject.registerObject("_af66e31c", "9.0.0");

_gaq.push(['_setAccount', 'UA-9873204-2'], ['_trackPageview']);

var addthis_config = addthis_config || {}; addthis_config.data_ga_property = 'UA-9873204-2'; addthis_config.data_ga_social = true;

PGX.js.push('/js/a1acb8aecc16aa6c12bafae9c25005961c10928b.js'); PGX.js.push('http://www.tiypg.com/_pgx/shared/lightview/2.5.2/scripts/lightview.js'); PGX.js.push('http://www.tiypg.com/_pgx/shared/prototip/2.1.2/scripts/prototip.js'); 
PGX.css.push('http://www.tiypg.com/_pgx/shared/lightview/2.5.2/styles/lightview.css'); PGX.css.push('http://www.tiypg.com/_pgx/shared/prototip/2.1.2/styles/prototip.css'); PGX.css.push('/_templates/root/styles/portal.css'); 
PGX.track({"shared.loader":[],"shared.lightview":[],"shared.prototip":[],"play.site":[],"play.site.config":[],"play.site.tdk":{"p":"14143","c":"13743","r":"6892"},"play.site.content":{"p":"14143","c":"13743","r":"6892"},"play.site.menu":{"p":"14143","c":"13743","r":"6892"},"shared.google.analytics":{"p":"14143","c":"13743","r":"6892"}});

