
	//	###################################
	//	ONLINE SELECT
	
		// new window-script
		function xxxonline_select(id)
		{
	
			document.getElementById('online_continue_none').style.display = 'none';
			
			if ( id == 'ordinary' )		{ document.getElementById('online_continue_ordinary').style.display = '';			document.getElementById('online_ordinary').className = 'selected' }
			else						{ document.getElementById('online_continue_ordinary').style.display = 'none';		document.getElementById('online_ordinary').className = 'normal' }
	
			if ( id == 'daytime' )		{ document.getElementById('online_continue_daytime').style.display = '';			document.getElementById('online_daytime').className = 'selected' }
			else						{ document.getElementById('online_continue_daytime').style.display = 'none';		document.getElementById('online_daytime').className = 'normal' }
	
			if ( id == 'student' )		{ document.getElementById('online_continue_student').style.display = '';			document.getElementById('online_student').className = 'selected' }
			else						{ document.getElementById('online_continue_student').style.display = 'none';		document.getElementById('online_student').className = 'normal' }
	
			if ( id == 'retired' )		{ document.getElementById('online_continue_retired').style.display = '';			document.getElementById('online_retired').className = 'selected' }
			else						{ document.getElementById('online_continue_retired').style.display = 'none';		document.getElementById('online_retired').className = 'normal' }		
	
		}
	
		// original script
		function online_select(id)
		{
			if ( id != 'ordinary' )		{ document.getElementById('online_ordinary').className = 'normal' }		else { document.getElementById('online_ordinary').className = 'selected' }
			if ( id != 'daytime' )		{ document.getElementById('online_daytime').className = 'normal' }		else { document.getElementById('online_daytime').className = 'selected' }

			if ( document.getElementById('online_retired') != null )
			{
				if ( id != 'retired' )	{ document.getElementById('online_retired').className = 'normal' }		else { document.getElementById('online_retired').className = 'selected' }
			}

			if ( document.getElementById('online_student') != null )
			{
				if ( id != 'student' )	{ document.getElementById('online_student').className = 'normal' }		else { document.getElementById('online_student').className = 'selected' }
			}

			document.getElementById('online_continue').className = 'normal';
		}
	
	
	//	###################################
	//	ONLINE CONTINUE
	
		function online_continue(language)
		{
			if ( language == 'se' )
			{
				if ( document.getElementById('online_continue').className == 'disabled' )	{ return; }
				
				if ( document.getElementById('online_ordinary').className == 'selected' )	{ var businessUnit = '648'; var product = '397'; }
				if ( document.getElementById('online_daytime').className == 'selected' )	{ var businessUnit = '648'; var product = '401'; }
				if ( document.getElementById('online_student').className == 'selected' )	{ var businessUnit = '648'; var product = '400'; }
				if ( document.getElementById('online_retired').className == 'selected' )	{ var businessUnit = '648'; var product = '399'; }
				
				window.location.href='?id=147&businessUnit='+businessUnit+'&product='+product+'&newSession=1';
			}

			if ( language == 'no' )
			{
				if ( document.getElementById('online_continue').className == 'disabled' )	{ return; }
				
				if ( document.getElementById('online_ordinary').className == 'selected' )	{ var businessUnit = '962'; var product = '627'; }
				if ( document.getElementById('online_daytime').className == 'selected' )	{ var businessUnit = '962'; var product = '626'; }
				
				window.location.href='?id=367&businessUnit='+businessUnit+'&product='+product+'&newSession=1';
			}
		}
		
				
	//	###################################
	//	BANNER CLICK
	
		function bannerClick(idname,id)
		{
			if ( idname == 'schedule' && document.getElementById('businessUnit') != null )
			{
				businessUnit = document.getElementById('businessUnit').value;

				if ( businessUnit != '' ) { window.location.href = '?id=' + id + '&label=' + document.getElementById('businessUnit').value; }
				else { window.location.href = '?id=' + id; }
			}
			else
			{
				window.location.href = '?id=' + id;
			}
		}
		
				
	//	###################################
	//	MOVIE
	
		function js_movie(title,height,image,autoplay)
    	{
			//	prepare
				var height_full = parseInt( height + 32 );
				document.getElementById('player_'+title).style.height = height_full + 'px';
    			//$('#player_'+title).css({ height : height_full + 'px' });

				document.getElementById('player_'+title).innerHTML = '';
    			
    		//	image
    			if ( image == true )
    			{
					var player = document.createElement('div');
					player.innerHTML = '<a href="javascript:js_movie_play(\''+title+'\','+height+','+image+',true);"><div class="play" style="height: '+height+'px"></div><img src="library/video/'+title+'.jpg"></a>';
					document.getElementById('player_'+title).appendChild(player);

    		//		$('#player_'+title).append('<a href="javascript:manuals_movie_play(\''+title+'\','+height+','+image+',true);"><div class="play"></div><img src="movies/'+title+'.jpg"></a>');
    		//		$('#player_'+title+' a div.play').css({ height : height + 'px' });
    			}
    			else
    			{
    				js_movie_play(title,height,image,autoplay);
    			}
    	}
    			
		function js_movie_play(title,height,image,autoplay)
		{
			//	size
				var width = 520;
				var height = parseInt( height + 32 );

			//	kick movie
	    		var so = new SWFObject('library/javascript/player/player.swf','mpl',width ,height ,'9');
    			so.addParam('allowscriptaccess','always');
    			so.addParam('allowfullscreen','true');
    			so.addParam('flashvars','&file=../../video/'+title+'.flv&skin=library/javascript/player/skins/modieus/modieus.swf&autostart='+autoplay);
	    		so.write('player_'+title);
    	}
		
				
	//	###################################
	//	MAP
	
		function js_map(view,src)
    	{
    		if ( view == 1 ) { document.getElementById('map_facility_1').className = 'selected' } else { document.getElementById('map_facility_1').className = 'normal' }
    		if ( view == 2 ) { document.getElementById('map_facility_2').className = 'selected' } else { document.getElementById('map_facility_2').className = 'normal' }
    		if ( view == 3 ) { document.getElementById('map_facility_3').className = 'selected' } else { document.getElementById('map_facility_3').className = 'normal' }
    		if ( view == 4 ) { document.getElementById('map_facility_4').className = 'selected' } else { document.getElementById('map_facility_4').className = 'normal' }
    		
    		map_facilities.location.href = src;
    	}

