<!--


	$(document).ready(function(){
		$("#stepBox > ul").tabs();
		
		$('.noSuggestions').each(function(){
			var id = this.id
				id = id.toLowerCase();
				id = id.replace('hide-','');
			$('#'+id).hide();
		});
		
		$('.tabpage').each(function(i){
			var h = $(this).html();
			if (h==''){
				var id = $(this).attr('rel')
				//$('#LI'+this.id).remove();
				//$('#LI'+id).remove();
				$('#LI'+id).css({'display':'none'});
				
				//-- inschrijf-buttons verwijderen --
			}
		});
						
		getTabSession();
		
		
		$('#printPage').click(function(){
			window.print();
			return false;
		});
		
		$('#pdfPage').click(function(){
			var dh 	= $(document).height();
			var dw 	= $(document).width();
			var div	= 'previewFrame'
			
			$('body').prepend('<div class="overlayFrame" id="' +div+ '"></div>');
			
			$('body').prepend('<div class="overlayBG"></div>');
			$('.overlayBG').height(dh).width(dw).css({
				'opacity':0.25	 
			});
			
			var height	= 400
			var width	= 500
			
			$('#'+div).css({
				'height': (height+'px'),
				'width': (width+'px')
			});
			relocateFrame('#'+div);
			
			var pid 		= $('#pID').val();
			var year 		= $('#pY').val();
			
			var sUrl 	= (_root + 'include/ajax/registerFile.asp')
			var sData	= 'pid=' +pid+ '&year=' +year
			
			data({
				id: '#'+div, 
				type: 'get', 
				dataType: 'html', 
				xml: false, 
				url: sUrl,
				data: sData,
				loading: true, 
				callback: function(data){
					return false;
				}
			});	
			return false;
		});
		
		$('.popuplink').click(function(){
			window.open('<%=sRoot%>popup/training.asp?id=487','','width=775,height=500,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
			return false;
		});

		
		//--- data & prijzen link ---
		var showDP = '(Toon de data en prijzen van <span>{year}</span>)'
		var hideDP = '(Verberg de data en prijzen van <span>{year}</span>)'
		$('a.showDP').click(function(){
			var id  = this.id.replace('show_','')
			var y	= $('#'+this.id+' span').html();
			var l	= $('#list_'+id)
			var lc	= l.hasClass('listDPhide');
			if (lc==true){
				l.removeClass('listDPhide');
				$(this).html(hideDP.replace('{year}',y));
			}
			else{
				l.addClass('listDPhide');
				$(this).html(showDP.replace('{year}',y));
			}
			return false;
		});
	});


//-->