function initSite ()
{
	if ( !document.getElementById ( 'Weather' ) )
	{
		return setTimeout ( 'initSite ()', 50 );
	}
	//var d = new Date ();
	//var t = d.getTime ();
	var r = document.getElementById ( 'Weather' );
	var camcontainer = document.createElement('div');
	camcontainer.className = "camcontainer";
	var i1 = document.createElement ( 'img' );
	/*var i2 = document.createElement ( 'img' );
	var i3 = document.createElement ( 'img' );*/
	
	/*/ Webcam 1 */
	i1.src = 'http://www.alsheia.no/webcam/aalsheia.jpg';
	i1.style.width = '130px';
	i1.style.height = '106px';
	i1.className = 'webcam';
	i1.style.cursor = navigator.userAgent.indexOf ( 'MSIE' ) >= 0 ? 'hand' : 'pointer';
	i1.onmouseup = function () 
	{ 
		var w = window.open ( this.src, "", "width=640, height=480, resize=noresize, status=no, topbar=no, scrolling=no" ); 
	}/**/
	
	/*/ Webcam 2
	i2.src = 'http://alsheia.dyndns-ip.com:81/jpg/image.jpg';
	i2.style.width = '130px';
	i2.style.height = '106px';
	i2.className = 'webcam';
	i2.style.cursor = navigator.userAgent.indexOf ( 'MSIE' ) >= 0 ? 'hand' : 'pointer';
	i2.onmouseup = function () 
	{ 
		var w = window.open ( this.src, "", "width=640, height=480, resize=noresize, status=no, topbar=no, scrolling=no" ); 
	}*/
	
	/*/ Webcam 3
	i3.src = 'http://alsheia.dyndns-ip.com:82/jpg/image.jpg';
	i3.style.width = '130px';
	i3.style.height = '106px';
	i3.style.left = '-271px';
	i3.className = 'webcam';
	i3.style.cursor = navigator.userAgent.indexOf ( 'MSIE' ) >= 0 ? 'hand' : 'pointer';
	i3.onmouseup = function () 
	{ 
		var w = window.open ( this.src, "", "width=640, height=480, resize=noresize, status=no, topbar=no, scrolling=no" ); 
	}*/
	
	// Append webcams til container
	camcontainer.appendChild ( i1 );
	/*camcontainer.appendChild ( i2 );
	camcontainer.appendChild ( i3 );*/
	
	// Append container til weather
	r.appendChild( camcontainer );
	
	var im = Math.floor ( Math.random () * 2 + 1 ) + "";
	if ( im.length < 2 ) im = "0"+im;
	im = "bg"+im+".jpg"; 
	var wh = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight;
	document.body.style.height = wh + "px";
	document.body.style.backgroundImage = 'url(upload/images-master/'+im+')';
	document.body.style.backgroundPosition = "top center fixed";
}
initSite ();
