	
	
// For the accordian style menu	
// makes a blinddown, also changes click behaviour so that open boxes fold again
function toggle_pagepart_blind(url){
	thisbox = $(url + '-content');
	if (thisbox.style.display == 'none'){
		Effect.BlindDown(url + '-content', { duration: 0.3, afterFinnish:$(thisbox).style.height='auto'})
	}
	else{
		Effect.BlindUp(url + '-content', { duration: 0.3})
	}
}

// For mouse over effect on pictures
function switchPic(img, src) {
	img.src = src;
}

//the following to functions lets javascript communicate with the spotviewer component [AndSan]
function getContainer(swfName) {
  if (navigator.appName.indexOf("Microsoft") != -1) {
    return window[swfName];
  } else {
    return document[swfName];
  }
}
var spotloaderCallInterval;
var intCounter = 0;
function initSpotViewer() {
       spotloaderCallInterval = setInterval("callAS()",500);
}
function callAS() {
      intCounter++;
     if(getContainer('sotester').sendToActionScript() || intCounter > 10)
      clearInterval(spotloaderCallInterval);
}

