/*
function resize(){
	getDimensions();
	getScroll();
}
function init(){
	initMenu();
}
function sortExpand(){
	if(document.getElementById('LogoffButton')){
		info.maintenance = document.getElementById('maintenance');
		info.editContent = document.getElementById('maintenanceContent');
		info.expandOut = document.getElementById('expandOut');
		info.expandIn = document.getElementById('expandIn');
		
		var doExpand = readCookie('expand');
		if(doExpand === 'yes'){
			info.expandIn.style.display = 'block';
			info.expandOut.style.display = 'none';
			info.editContent.style.display = 'block';
		}else{
			info.expandIn.style.display = 'none';
			info.expandOut.style.display = 'block';
			info.editContent.style.display = 'none';
		}
		
		if(document.getElementById('PageMaintenance_AddPanel')){
			info.pageEdit = document.getElementById('PageMaintenance_AddPanel');
			info.editContent.style.height = 210 +"px";
		}else{
			info.editContent.style.height = 30 +"px";
		}
		
		var slideOpen = function (){
			info.expandIn.style.display = 'block';
			info.expandOut.style.display = 'none';
			Effect.BlindDown('maintenanceContent', { scaleX: false , scaleContent:false , duration: 0.5 });
			createCookie('expand','yes',365)
		}
		var slideClose = function (){
			info.expandIn.style.display = 'none';
			info.expandOut.style.display = 'block';
			Effect.BlindUp('maintenanceContent', { scaleX: false , scaleContent:false , duration: 0.5});
			createCookie('expand','no',365)
		}
		addEventHandler( info.expandIn , 'click' , slideClose);
		addEventHandler( info.expandOut , 'click' , slideOpen);
		info.expandIn.style.cursor = 'pointer';
		info.expandOut.style.cursor = 'pointer';
	}
}
addEventHandler( window , 'load' , init);
addEventHandler( window , 'resize' , resize);

*/

/*----------------rewrite tags, this is hardcoded, only option to get different pages with tags--------------*/
$(document).ready(function() 
{
	/*---0-6---*/
	function edit_0_6_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl01_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl01_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=43"));
	}
	edit_0_6_tag();

	
	/*---6-12---*/
	function edit_6_12_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl02_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl02_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=744"));
	}
	edit_6_12_tag();	
	
	
	/*---12-18---*/
	function edit_12_18_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl03_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl03_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=743"));
	}
	edit_12_18_tag();		
	
	
	/*---Volwassenen---*/
	function edit_volwassenen_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl04_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl04_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=688"));
	}
	edit_volwassenen_tag();	
	
	
	/*---55+---*/
	function edit_55_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl05_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl05_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=687"));
	}
	edit_55_tag();	
		
	
	/*---Muziek---*/
	function edit_muziek_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl06_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl06_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=480"));
	}
	edit_muziek_tag();
	
	
	/*---Dans---*/
	function edit_dans_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl07_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl07_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=545"));
	}
	edit_dans_tag();

	
	/*---Beeldende kunst---*/
	function edit_beeldendeKunst_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl08_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl08_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=606"));
	}
	edit_beeldendeKunst_tag();
	
	
	/*---Theater---*/
	function edit_theater_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl09_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl09_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=410"));
	}
	edit_theater_tag();
	
	
	/*---Onderwijs---*/
	function edit_onderwijs_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl10_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl10_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=215"));
	}
	edit_onderwijs_tag();
	
	/* yoga wordt niet meer aangeboden...*/
	/*---Yoga en pilates---*/
	/*
	function edit_yoga_tag()
	{
		var tag = $('#TagCloud_RepeaterTagList_ctl11_HyperLinkTag').attr("href");
		$('#TagCloud_RepeaterTagList_ctl11_HyperLinkTag').attr("href",tag.replace("tabId=212", "tabId=592"));
	}
	edit_yoga_tag();
	*/
	
	/*---edit width of tag-results container div---*/
	$('.tagCloudShowItems').parent().css({"width" : "250px"});
}
);
