			var old_page_id = 1;
			var old_page_img_id = 1;
			
			function popup(url, wheight, wwidth, params){
				if (!params)
					params = 'toolbars=no';
				window.open(url, '', 'width=' + wwidth + ', height=' + wheight + ', ' + params);
			
			}
			
			function popup_img(url, wname, wheight, wwidth, params){
				
				if (params)
					params += ',toolbars=no';
				else
					params = 'toolbars=no';
					
				params += ', width=' + wwidth + ', height=' + wheight;
					
				win = window.open(url, wname, params);
				
				return win;
			
			}
			
			function show_hide(div_id){
				
				obj = document.getElementById(div_id);
				
				if (obj.style.display == 'none')
					obj.style.display = '';
				else
					obj.style.display = 'none';
					
			}
			
			function foldout_img(img_id){
				
				if (document.getElementById('foldout' + img_id).style.display == 'none')
					document.getElementById('foldout_img_' + img_id).src = '/gfx/foldoutpoint_1.gif';
				else
					document.getElementById('foldout_img_' + img_id).src = '/gfx/foldoutpoint_2.gif';
				
			}
				
			
			function page_turn(page_id){
				
				if (old_page_id){
					document.getElementById('page_turn_' + old_page_id).style.display = 'none';
//					document.getElementById('page_turn_link_' + old_page_id).style.fontWeight = 'normal';
					document.getElementById('page_turn_link_' + old_page_id).style.color = '#779dc0';
				}
				if (old_page_id == 1)
					document.getElementById('page_img_' + old_page_id).src = '/gfx/level3_none.gif';
				else if (document.getElementById('page_img_' + old_page_id))
					document.getElementById('page_img_' + old_page_id).src = '/gfx/level3_dot.gif';
				
				document.getElementById('page_turn_' + page_id).style.display = '';
//				document.getElementById('page_turn_link_' + page_id).style.fontWeight = 'bold';
				document.getElementById('page_turn_link_' + page_id).style.color = '#183761';
				document.getElementById('page_img_' + page_id).src = '/gfx/level3_arrow.gif';
			
				old_page_id = page_id;
					
			}
			
			function bookmark()
			{
				var title="Osteoporosedoktor.dk";
				var url="http://www.osteoporosedoktor.dk";
				
				if (window.sidebar) 
					window.sidebar.addPanel(title, url,"");
				
				else if( window.opera && window.print )
				{
					var mbm = document.createElement('a');
					mbm.setAttribute('rel','sidebar');
					mbm.setAttribute('href',url);
					mbm.setAttribute('title',title);
					mbm.click();
				}
				
				else if( document.all ) 
					window.external.AddFavorite( url, title);
			}
