<!--// This file contains functions which provide a workaround the the Eolas vs Microsoft patent dispute, // which has resulted in updated versions of IE6 and IE7 displaying a dialog before embedded content is loaded.function embedquicktime( filename, width, height, showcontroller ){	document.write('<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"' + width + '\" height=\"' + height + '\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">');	document.write('<param name=\"src\" value=\"' + filename + '\">');	document.write('<param name=\"controller\" value=\"' + showcontroller + '\">');	document.write('<param name=\"autoplay\" value=\"true\">');	document.write('<embed src=\"' + filename + '\" width=\"' + width + '\" height=\"' + height + '\" controller=\"' + showcontroller + '\" autoplay=\"true\" pluginspace=\"http://www.apple.com/quicktime/download/index.html\"></embed>');	document.write('</object>');}function createquicktime( filename, width, height, showcontroller ){	var html = '<div class="virtualtour"><object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"' + width + '\" height=\"' + height + '\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">'	html += '<param name=\"src\" value=\"' + filename + '\">'	html += '<param name=\"controller\" value=\"' + showcontroller + '\">'	html += '<param name=\"autoplay\" value=\"true\">'	html += '<param name=\"wmode\" value=\"transparent\">'	html += '<embed src=\"' + filename + '\" width=\"' + width + '\" height=\"' + height + '\" controller=\"' + showcontroller + '\" autoplay=\"true\" wmode=\"transparent\" pluginspace=\"http://www.apple.com/quicktime/download/index.html\"></embed>'	html += '</object></div>'	return html;}// -->function iotbs() {	switcher = new switchManager();};var switcher;//setup initialisation function//.. gecko, safari, konqueror and genericif(typeof window.addEventListener != 'undefined') {	window.addEventListener('load', iotbs, false);}//.. opera 7else if(typeof document.addEventListener != 'undefined') {	document.addEventListener('load', iotbs, false);}//.. win/ieelse if(typeof window.attachEvent != 'undefined') {	window.attachEvent('onload', iotbs);}//preferences managerfunction switchManager() {	//string for storing the overall custom classname	//I was originally storing it in the body class name directly	//but 1.7+ mozilla builds were not honouring the trailing whitespace we need	this.string  = '';	//store reference to body element	this.body = document.getElementsByTagName('body')[0];	//store the initial classname	this.initial = this.body.className;	//if the default classname is empty, add "iotbs"	//because we need there to be at least one classname already -	//the leading and trailing space in each custom classname is required,	//but you can't set the body classname as " something" (beginning with a leading space)	//because that may not work in Opera 7	if(this.initial == '') {		this.initial = 'itobs';	}	//look for a stored cookie	this.cookie = this.read();	//if it exists	if(this.cookie != null) {		//store cookie value to string		this.string = this.cookie;		//set new body class name		this.body.className = this.initial + ' ' + this.string;	}	//*** dev	//document.title = '<' + this.body.className.replace(/ /g,'+') + '>   [' + this.string.replace(/ /g,'+') + ']';};//set a cookie methodswitchManager.prototype.set = function(days) {	//format expiry date	this.date = new Date();	this.date.setTime(this.date.getTime() + ( days *24*60*60*1000));	//store the string, replacing spaces with '#' so that leading spaces are preserved	this.info = this.string.replace(/ /g,'#');	//if the value is empty, set its expiry in the past to delete the cookie	if(this.info == '') { this.date.setTime(0); }	//create the cookie	document.cookie = 'bodySwitcher=' + this.info		+ '; expires=' + this.date.toGMTString()		+ '; path=/';};//read a cookie methodswitchManager.prototype.read = function() {	//set null reference so we always have something to return	this.cookie = null;	//if a cookie exists	if(document.cookie) {		//if it's our cookie		if(document.cookie.indexOf('bodySwitcher')!=-1) {			//extract and store relevant information (turning '#' back into spaces)			this.cookie = document.cookie.split('bodySwitcher=');			this.cookie = this.cookie[1].split(';');			this.cookie = this.cookie[0].replace(/#/g,' ');		}	}	return this.cookie;};function changetoDefault() {	switcher.string = 'default'	switcher.body.className = " iotbs  ";	switcher.set(365);}function changetoMedium() {	switcher.string = 'medium';	switcher.body.className = " iotbs  " + switcher.string +' ';	switcher.set(365);}function changetoLarge() {	switcher.string = 'large';	switcher.body.className = " iotbs  " + switcher.string +' ';	switcher.set(365);}function openWindow(){	document.getElementById('movie_holder').className = 'flashDimensions';	document.getElementById('movie_swf').className = 'flashDimensions';}function closeWindow(){	document.getElementById('movie_holder').className = '';	document.getElementById('movie_swf').className = '';	var fo = new FlashObject("/flash/video.swf", "movie_swf", "183", "88", "7", "#FFFFFF");	fo.addParam("wmode", "transparent");	fo.addParam("allowScriptAccess", "always");	fo.write("movie_holder");}
