function km_extendedOnload() {
	if (km_getBrowser()[0] == 'IE')
		get_object('header').style.position='absolute';
//		get_object('footer').style.position='absolute';
	switch (scrollToThis) {//set in "general script setting" from km
		case '':
		break;
		case 'auto':
			doScroll();
		break;
		default:
			doScroll(scrollToThis);
	}
	if (window.loadGoogleMap)
		loadGoogleMap();
	if (get_object('bandpopup')) {
		//move bandpopup to body root in dom
		var bandpopup=get_object('bandpopup');
		bandpopup.parentNode.removeChild(bandpopup);
		document.body.appendChild(bandpopup);
	}
	if (pg == 17 && bandIdToOpen != 0)
		band.openId(bandIdToOpen);
}
function km_onFullLoad() {
}
function openPoster() {
	var width=396;
	var height=560;
	var content='<img src="km/graphic/poster/poster_big.jpg">';
	var style_array='';
	km_createModalPopup(width,height,content,style_array);
}
function buyTickets() {
	window.open('http://www.tickster.com/c/swedenrock/');
}
function launchRadio() {
	var popupWidth=500; 
	var popupHeight=260;
	if (window.screen) {
		w=window.screen.availWidth;
		h=window.screen.availHeight;
		popupLeft=Math.round(w/2-(popupWidth/2));
		popupTop=Math.round(h/2-(popupHeight/2));
	} else {
		popupLeft=0;
		popupTop=0;
	}
	radioWindow=window.open('http://www.swedenrock.com/wwebradio/radio.cfm','WebRadio','top='+popupTop+',left='+popupLeft+',width='+popupWidth+',height='+popupHeight+',directories=no,menubar=no,scrollbars=no,resizable=no,toolbar=no,status=yes,location=no');
	window.radioWindow.focus();
	top.rightFrame.location.href='http://www.swedenrock.com/pageVisit.cfm?id=3';
}
/*
function doScroll() {
	if (doScroll.arguments[0])
		var destinationLink=get_object(doScroll.arguments[0]);
	else
		var destinationLink=get_object('scrollHere');
	var desty=destinationLink.offsetTop;
	var thisNode=destinationLink;
	while (thisNode.offsetParent && (thisNode.offsetParent != document.body)) {
		thisNode=thisNode.offsetParent;
		desty+=thisNode.offsetTop;
	}
	get_object('content').scrollTop=desty;
}
*/
function doFlashBanner(id) {
	if (window.location.href.indexOf('index.cfm'))
		hiddenFrame.location.href='bannerClick.cfm?bnc_id='+id;
	else
		window.location.href='bannerClick.cfm?bnc_id='+id;
}
function tickster() {
	var w=800; var h=600; var l = (screen.width - w) / 2; var t = (screen.height - h) / 2;  window.open('https://secure.tickster.com/Intro.aspx?ERC=V093PTW35YMC50R', '', 'width='+w+', height='+h+', scrollbars=yes, left='+l+', top='+t+'');
}
function kalender() {
	km_popup(11,'http://www.swedenrockproductions.com/index.cfm?pg=11','scrollbars=1,resizable=0,status=0,toolbar=0,location=0,menubar=0,directories=0,width=640,height=800',640,800);
}
function km_popup(id,url,settings,width,height) {
	var screenSize_array=getScreenSize();
	var left=parseInt(screenSize_array[0]/2)-parseInt(width/2);
	var top=parseInt(screenSize_array[1]/2)-parseInt(height/2);
	settings+=',left='+left+',top='+top;
	if (eval("window.km_popupWindow_"+id))
		eval("km_popupWindow_"+id+".close();");
	eval("km_popupWindow_"+id+"=window.open(url,'',settings);");
	eval("km_popupWindow_"+id+".focus();");
}
function getScreenSize() {
	var myWidth=0, myHeight=0;
	myWidth=screen.availWidth;
	myHeight=screen.availHeight;
	return [myWidth,myHeight];
}

