/*	update_head.js

	last updated: 20th December 2009
*/

//	create a CSS node and appends it to the <head> of the page
var $node=document.createElement('link');
$node.type='text/css';
$node.rel='stylesheet';
$node.href='http://www.tinemuller.dk/test_drupal/sites/all/maps/toilet_map_style.css';
document.getElementsByTagName('head')[0].appendChild($node);

//	update the page <body> adding event listeners for both load and unload
if(window.addEventListener){
	window.addEventListener('load', toiletMapLoad, false);
	window.addEventListener('unload', GUnload, false);
} else {
	window.attachEvent('onload', toiletMapLoad);
	window.attachEvent('onunload', GUnload);
}
