function linkTo(destination) {
	var href = destination.childNodes[0].href;
	window.location=href;
}

hoverClass = function() {
	var sfEls = document.getElementById("Menu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" Hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" Hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", hoverClass);

function sendEvent(swf,typ,prm) { 
  thisMovie(swf).sendEvent(typ,prm); 
}

function getUpdate(typ,pr1,pr2,swf) {};

function thisMovie(swf) {
  if(navigator.appName.indexOf("Microsoft") != -1) {
    return window[swf];
  } else {
    return document[swf];
  }
}

function loadFile(swf,obj) { 
  thisMovie(swf).loadFile(obj); 
}

function resetRotator() {
  loadFile('Rotator',{file:'imagelist.php'});
}

function init() {
	var so = new SWFObject('media/imagerotator.swf','Rotator','200','150','8');
	
	so.addParam('allowscriptaccess','always');
	so.addParam('allowfullscreen','true');
	so.addVariable('height','150');
	so.addVariable('width','200');
	so.addVariable('file','imagelist.php');
	so.addVariable('transition','flash');
	so.addVariable('overstretch','true');
	so.addVariable('shownavigation','false');
	so.addVariable('showicons','false');
	so.addVariable('repeat','true');
	so.addVariable('enablejs','true');
	so.addVariable('screencolor','0xFFFFFF');
	so.write('FlashContent');
}