window.addEvent('domready', function(){
	var obj = new Swiff('/templates/skallerup/swf/skallerup_top.swf', {
		id: 'skallerup_top_swf',
		width: 625,
		height: 170,
		params: {
			wmode: 'opaque',
			bgcolor: '#ffffff'
		}
	});
	//obj.inject($('home_pics'));
	
	if($('home_header') != null)
	{
		var obj = new Swiff('/templates/skallerup/swf/home_header_skallerup.swf', {
			id: 'skallerup_kaart_swf',
			width: 625,
			height: 200,
			params: {
				wmode: 'opaque',
				bgcolor: '#ffffff'
			}
		});
		obj.inject($('home_header'));
	}

	if($('skallerup_kaart') != null)
	{
		var obj = new Swiff('/templates/skallerup/swf/skallerup_kaart.swf', {
			id: 'skallerup_kaart_swf',
			width: 625,
			height: 300,
			params: {
				wmode: 'opaque',
				bgcolor: '#ffffff'
			}
		});
		obj.inject($('skallerup_kaart'));
	}

	if($('skallerup_video') != null)
	{
		var obj = new Swiff('/templates/skallerup/swf/skallerup_video.swf', {
			id: 'skallerup_video_swf',
			width: 300,
			height: 140,
			params: {
				wmode: 'opaque',
				bgcolor: '#ffffff'
			}
		});
		//obj.inject($('skallerup_video'));
	}
	
	if($('skallerupGoogle') != null)
	{
		var myOptions = {
			zoom: 15,
			center: new google.maps.LatLng(57.4950752258300780, 9.8386001586914062),
			mapTypeId: google.maps.MapTypeId.SATELLITE,
			mapTypeControl: true,
			mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
			navigationControl: true,
			navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
			scrollwheel: false
	
		}
		var map = new google.maps.Map(document.getElementById("skallerupGoogle"), myOptions);
		
	}
	
	
	
	if($('kite') != null)
	{
		//kite_fade();
	}
});

function kite_fade()
{
	var fx = new Fx.Tween($('kite'), {duration: (Math.random()*5000), onComplete: kite_fade});
	fx.start('opacity', Math.random());
}