// JavaScript Document

//window.moveTo(0,0);
//window.resizeTo(screen.availWidth, screen.availHeight);


function openWinChelseaFlowerShow2010() {
	var popupWidth=760;
    var popupHeight=500;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/chelsea-flower-show-2010-award.html","ChelseaFlowerShow2010",windowFeatures);
    newWindow.focus();
}

function openWinGlasgowEventJun10() {
	var popupWidth=900;
    var popupHeight=520;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/glasgow-event_nina-campbell_jun10.html","glasgoweventninacampbelljun10",windowFeatures);
    newWindow.focus();
}


function openWinGiltyEventNov09() {
	var popupWidth=900;
    var popupHeight=520;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/Special-Event_Nina-Campbell_Nov09.html","SpecialEvent_NinaCampbell_Nov09",windowFeatures);
    newWindow.focus();
}

function openWinDistributors() {
	var popupWidth=520;
    var popupHeight=520;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/distributor-network.html","DistributorNetwork",windowFeatures);
    newWindow.focus();
}

function openWinAroundWorld() {
	var popupWidth=780;
    var popupHeight=565;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/smallbone-around-the-world.html","AroundWorld",windowFeatures);
    newWindow.focus();
}

function openWinBeaconsfieldShowroom() {
	var popupWidth=780;
    var popupHeight=565;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/beaconsfield-showroom-opening.html","Beaconsfield",windowFeatures);
    newWindow.focus();
}


function openWinHarrogateEventOct08() {
	var popupWidth=780;
    var popupHeight=565;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/macassar-harrogate-event.html","Harrogate",windowFeatures);
    newWindow.focus();
}




function openWinKnightsbridgeEventOct08() {
	var popupWidth=780;
    var popupHeight=565;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/macassar-knightsbridge-event.html","Knightsbridge",windowFeatures);
    newWindow.focus();
}



function openWinRaymondBlanc() {
	var popupWidth=780;
    var popupHeight=565;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/raymond-blanc/raymond-blanc_page1.html","raymondblanc",windowFeatures);
    newWindow.focus();
}

function openWinAwardShowcase() {
	var popupWidth=790;
    var popupHeight=465;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/award-showcase.html","awardshowcase",windowFeatures);
    newWindow.focus();
}

function openWinFloors() {
	var popupWidth=790;
    var popupHeight=465;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("floors-walls-and-work-surfaces/floors.html","floors",windowFeatures);
    newWindow.focus();
}

function openWinWorktopsSplashbacks() {
	var popupWidth=790;
    var popupHeight=465;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("floors-walls-and-work-surfaces/walls-and-work-surfaces.html","WorktopsSplashbacks",windowFeatures);
    newWindow.focus();
}

function openWinPropertyRights() {
	var popupWidth=400;
    var popupHeight=180;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/intellectual-property-rights.html","intellectualpropertyrights",windowFeatures);
    newWindow.focus();
}

function openWinDisabilityPolicy() {
	var popupWidth=400;
    var popupHeight=350;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/disability-discrimination-policy.html","disabilitydiscriminationpolicy",windowFeatures);
    newWindow.focus();
}

function openWinAlchemyShowcase() {
	var popupWidth=790;
    var popupHeight=465;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/alchemy-showcase.html","alchemyshowcase",windowFeatures);
    newWindow.focus();
}

function openWinShagreenShowcase() {
	var popupWidth=790;
    var popupHeight=465;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/shagreen-showcase.html","shagreenshowcase",windowFeatures);
    newWindow.focus();
}

function openWinMacassarShowcase() {
	var popupWidth=790;
    var popupHeight=465;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("http://www.smallbone.co.uk/UK-RoW/special-features-and-showcases/macassar-kitchens-showcase.html","macassarshowcase",windowFeatures);
    newWindow.focus();
}

function openWinWalnutSilverShowcase() {
	var popupWidth=790;
    var popupHeight=465;
    var leftPos = parseInt((screen.availWidth/2) - (popupWidth/2));
    var topPos = parseInt((screen.availHeight/2) - (popupHeight/2));
    var windowFeatures = "width=" + popupWidth + ",height=" + popupHeight + ",status=no,resizable=no,title=yes,toolbar=no,location=no,menubar=no,scrollbars=no,left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos;
    newWindow=window.open("../special-features-and-showcases/walnut-and-silver-showcase.html","walnutsilvershowcase",windowFeatures);
    newWindow.focus();
}


function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }


//rollover images
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



function fadeInDiv(divId) {
	Effect.Appear(divId, { duration: 0.7 });
	if (divId == "changeableContent1") {
		var t=setTimeout("visibilityOn('changeableContent1')",700);
	} else if (divId == "changeableContent2") {
		var t=setTimeout("visibilityOn('changeableContent2')",700);
	} else if (divId == "changeableContent3") {
		var t=setTimeout("visibilityOn('changeableContent3')",700);
	} else if (divId == "changeableContent4") {
		var t=setTimeout("visibilityOn('changeableContent4')",700);
	} else if (divId == "changeableContent5") {
		var t=setTimeout("visibilityOn('changeableContent5')",700);
	} else if (divId == "mainPic0") {
		var t=setTimeout("visibilityOn('mainPic0')",700);
	} else if (divId == "mainPic1") {
		var t=setTimeout("visibilityOn('mainPic1')",700);
	} else if (divId == "mainPic2") {
		var t=setTimeout("visibilityOn('mainPic2')",700);
	} else if (divId == "mainPic3") {
		var t=setTimeout("visibilityOn('mainPic3')",700);
	} else if (divId == "mainPic4") {
		var t=setTimeout("visibilityOn('mainPic4')",700);
	} else if (divId == "mainPic5") {
		var t=setTimeout("visibilityOn('mainPic5')",700);
	} else if (divId == "mainCopy1") {
		var t=setTimeout("visibilityOn('mainCopy1')",700);
	} else if (divId == "mainCopy2") {
		var t=setTimeout("visibilityOn('mainCopy2')",700);
	} else if (divId == "mainCopy3") {
		var t=setTimeout("visibilityOn('mainCopy3')",700);
	} else if (divId == "mainCopy4") {
		var t=setTimeout("visibilityOn('mainCopy4')",700);
	} else if (divId == "mainCopy5") {
		var t=setTimeout("visibilityOn('mainCopy5')",700);
	} else if (divId == "insideMenu_selectedBkgd1") {
		var t=setTimeout("visibilityOn('insideMenu_selectedBkgd1')",700);
	} else if (divId == "insideMenu_selectedBkgd2") {
		var t=setTimeout("visibilityOn('insideMenu_selectedBkgd2')",700);
	} else if (divId == "insideMenu_selectedBkgd3") {
		var t=setTimeout("visibilityOn('insideMenu_selectedBkgd3')",700);
	} else if (divId == "insideMenu_selectedBkgd4") {
		var t=setTimeout("visibilityOn('insideMenu_selectedBkgd4')",700);
	} else if (divId == "insideMenu_selectedBkgd5") {
		var t=setTimeout("visibilityOn('insideMenu_selectedBkgd5')",700);
	} else if (divId == "mainPic1b") {
		var t=setTimeout("visibilityOn('mainPic1b')",700);
	} else if (divId == "mainPic2b") {
		var t=setTimeout("visibilityOn('mainPic2b')",700);
	} else if (divId == "mainPic3b") {
		var t=setTimeout("visibilityOn('mainPic3b')",700);
	} else if (divId == "mainCopy1b") {
		var t=setTimeout("visibilityOn('mainCopy1b')",700);
	} else if (divId == "mainCopy2b") {
		var t=setTimeout("visibilityOn('mainCopy2b')",700);
	} else if (divId == "mainCopy3b") {
		var t=setTimeout("visibilityOn('mainCopy3b')",700);
	} else if (divId == "outsideMenu_selectedBkgd1") {
		var t=setTimeout("visibilityOn('outsideMenu_selectedBkgd1')",700);
	} else if (divId == "outsideMenu_selectedBkgd2") {
		var t=setTimeout("visibilityOn('outsideMenu_selectedBkgd2')",700);
	} else if (divId == "outsideMenu_selectedBkgd3") {
		var t=setTimeout("visibilityOn('outsideMenu_selectedBkgd3')",700);
	} else if (divId == "mainPic6") {
		var t=setTimeout("visibilityOn('mainPic6')",700);
	} else if (divId == "mainPic7") {
		var t=setTimeout("visibilityOn('mainPic7')",700);
	} else if (divId == "mainPic8") {
		var t=setTimeout("visibilityOn('mainPic8')",700);
	} else if (divId == "mainPic9") {
		var t=setTimeout("visibilityOn('mainPic9')",700);
	} else if (divId == "mainPic10") {
		var t=setTimeout("visibilityOn('mainPic10')",700);
	} else if (divId == "mainPic11") {
		var t=setTimeout("visibilityOn('mainPic11')",700);
	} else if (divId == "caption6") {
		var t=setTimeout("visibilityOn('caption6')",700);
	} else if (divId == "caption7") {
		var t=setTimeout("visibilityOn('caption7')",700);
	} else if (divId == "caption8") {
		var t=setTimeout("visibilityOn('caption8')",700);
	} else if (divId == "caption9") {
		var t=setTimeout("visibilityOn('caption9')",700);
	} else if (divId == "caption10") {
		var t=setTimeout("visibilityOn('caption10')",700);
	} else if (divId == "caption11") {
		var t=setTimeout("visibilityOn('caption11')",700);
	}  else if (divId == "pageNb1") {
		var t=setTimeout("visibilityOn('pageNb1')",700);
	} else if (divId == "pageNb2") {
		var t=setTimeout("visibilityOn('pageNb2')",700);
	} else if (divId == "pageNb3") {
		var t=setTimeout("visibilityOn('pageNb3')",700);
	}  else if (divId == "pageNb4") {
		var t=setTimeout("visibilityOn('pageNb4')",700);
	} else if (divId == "pageNb5") {
		var t=setTimeout("visibilityOn('pageNb5')",700);
	} else if (divId == "pageNb6") {
		var t=setTimeout("visibilityOn('pageNb6')",700);
	}  else if (divId == "pageNb7") {
		var t=setTimeout("visibilityOn('pageNb7')",700);
	} else if (divId == "pageNb8") {
		var t=setTimeout("visibilityOn('pageNb8')",700);
	} else if (divId == "pageNb9") {
		var t=setTimeout("visibilityOn('pageNb9')",700);
	}  else if (divId == "pageNb10") {
		var t=setTimeout("visibilityOn('pageNb10')",700);
	} else if (divId == "pageNb11") {
		var t=setTimeout("visibilityOn('pageNb11')",700);
	}
}

function fadeOutDiv(divId) {
	Effect.Fade(divId, { duration: 0.7 });
	if (divId == "changeableContent1") {
		var t=setTimeout("visibilityOff('changeableContent1')",700);
	} else if (divId == "changeableContent2") {
		var t=setTimeout("visibilityOff('changeableContent2')",700);
	} else if (divId == "changeableContent3") {
		var t=setTimeout("visibilityOff('changeableContent3')",700);
	} else if (divId == "changeableContent4") {
		var t=setTimeout("visibilityOff('changeableContent4')",700);
	} else if (divId == "changeableContent5") {
		var t=setTimeout("visibilityOff('changeableContent5')",700);
	}
}
function fadeOutOtherDivs() {
	if (document.getElementById("mainPic1").style.display == "block") {
		Effect.Fade("mainPic1", { duration: 0.7 });
		Effect.Fade("mainCopy1", { duration: 0.7 });
		Effect.Fade("insideMenu_selectedBkgd1", { duration: 0.7 });
		var t=setTimeout("visibilityOff('mainPic1')",700);
		var t=setTimeout("visibilityOff('mainCopy1')",700);
		var t=setTimeout("visibilityOff('insideMenu_selectedBkgd1')",700);
	} else if (document.getElementById("mainPic2").style.display == "block") {
		Effect.Fade("mainPic2", { duration: 0.7 });
		Effect.Fade("mainCopy2", { duration: 0.7 });
		Effect.Fade("insideMenu_selectedBkgd2", { duration: 0.7 });
		var t=setTimeout("visibilityOff('mainPic2')",700);
		var t=setTimeout("visibilityOff('mainCopy2')",700);
		var t=setTimeout("visibilityOff('insideMenu_selectedBkgd2')",700);
	} else if (document.getElementById("mainPic3").style.display == "block") {
		Effect.Fade("mainPic3", { duration: 0.7 });
		Effect.Fade("mainCopy3", { duration: 0.7 });
		Effect.Fade("insideMenu_selectedBkgd3", { duration: 0.7 });
		var t=setTimeout("visibilityOff('mainPic3')",700);
		var t=setTimeout("visibilityOff('mainCopy3')",700);
		var t=setTimeout("visibilityOff('insideMenu_selectedBkgd3')",700);
	} else if (document.getElementById("mainPic4").style.display == "block") {
		Effect.Fade("mainPic4", { duration: 0.7 });
		Effect.Fade("mainCopy4", { duration: 0.7 });
		Effect.Fade("insideMenu_selectedBkgd4", { duration: 0.7 });
		var t=setTimeout("visibilityOff('mainPic4')",700);
		var t=setTimeout("visibilityOff('mainCopy4')",700);
		var t=setTimeout("visibilityOff('insideMenu_selectedBkgd4')",700);
	} else if (document.getElementById("mainPic5").style.display == "block") {
		Effect.Fade("mainPic5", { duration: 0.7 });
		Effect.Fade("mainCopy5", { duration: 0.7 });
		Effect.Fade("insideMenu_selectedBkgd5", { duration: 0.7 });
		var t=setTimeout("visibilityOff('mainPic5')",700);
		var t=setTimeout("visibilityOff('mainCopy5')",700);
		var t=setTimeout("visibilityOff('insideMenu_selectedBkgd5')",700);
	} else if (document.getElementById("mainPic1b").style.display == "block") {
		Effect.Fade("mainPic1b", { duration: 0.7 });
		Effect.Fade("mainCopy1b", { duration: 0.7 });
		Effect.Fade("outsideMenu_selectedBkgd1", { duration: 0.7 });
		var t=setTimeout("visibilityOff('mainPic1b')",700);
		var t=setTimeout("visibilityOff('mainCopy1b')",700);
		var t=setTimeout("visibilityOff('outsideMenu_selectedBkgd1')",700);
	}  else if (document.getElementById("mainPic2b").style.display == "block") {
		Effect.Fade("mainPic2b", { duration: 0.7 });
		Effect.Fade("mainCopy2b", { duration: 0.7 });
		Effect.Fade("outsideMenu_selectedBkgd2", { duration: 0.7 });
		var t=setTimeout("visibilityOff('mainPic2b')",700);
		var t=setTimeout("visibilityOff('mainCopy2b')",700);
		var t=setTimeout("visibilityOff('outsideMenu_selectedBkgd2')",700);
	}  else if (document.getElementById("mainPic3b").style.display == "block") {
		Effect.Fade("mainPic3b", { duration: 0.7 });
		Effect.Fade("mainCopy3b", { duration: 0.7 });
		Effect.Fade("outsideMenu_selectedBkgd3", { duration: 0.7 });
		var t=setTimeout("visibilityOff('mainPic3b')",700);
		var t=setTimeout("visibilityOff('mainCopy3b')",700);
		var t=setTimeout("visibilityOff('outsideMenu_selectedBkgd3')",700);
	} 
}

function toggleMenuItemsVisibility(menuItemId){
	if (menuItemId == 'menuItem1') {
		visibilityOff('menuItem1');
		visibilityOn('menuItem1selected');
		visibilityOff('menuItem2selected');
		visibilityOff('menuItem3selected');
		visibilityOff('menuItem4selected');
		visibilityOff('menuItem5selected');
		visibilityOn('menuItem2');
		visibilityOn('menuItem3');
		visibilityOn('menuItem4');
		visibilityOn('menuItem5');
	} else if (menuItemId == 'menuItem2') {
		visibilityOff('menuItem2');
		visibilityOn('menuItem2selected');
		visibilityOff('menuItem1selected');
		visibilityOff('menuItem3selected');
		visibilityOff('menuItem4selected');
		visibilityOff('menuItem5selected');
		visibilityOn('menuItem1');
		visibilityOn('menuItem3');
		visibilityOn('menuItem4');
		visibilityOn('menuItem5');
	} else if (menuItemId == 'menuItem3') {
		visibilityOff('menuItem3');
		visibilityOn('menuItem3selected');
		visibilityOff('menuItem2selected');
		visibilityOff('menuItem1selected');
		visibilityOff('menuItem4selected');
		visibilityOff('menuItem5selected');
		visibilityOn('menuItem2');
		visibilityOn('menuItem1');
		visibilityOn('menuItem4');
		visibilityOn('menuItem5');
	} else if (menuItemId == 'menuItem4') {
		visibilityOff('menuItem4');
		visibilityOn('menuItem4selected');
		visibilityOff('menuItem2selected');
		visibilityOff('menuItem3selected');
		visibilityOff('menuItem1selected');
		visibilityOff('menuItem5selected');
		visibilityOn('menuItem2');
		visibilityOn('menuItem3');
		visibilityOn('menuItem1');
		visibilityOn('menuItem5');
	} else if (menuItemId == 'menuItem5') {
		visibilityOff('menuItem5');
		visibilityOn('menuItem5selected');
		visibilityOff('menuItem2selected');
		visibilityOff('menuItem3selected');
		visibilityOff('menuItem4selected');
		visibilityOff('menuItem1selected');
		visibilityOn('menuItem2');
		visibilityOn('menuItem3');
		visibilityOn('menuItem4');
		visibilityOn('menuItem1');
	} else if (menuItemId == 'menuItem1b') {
		visibilityOff('menuItem1b');
		visibilityOn('menuItem1bselected');
		visibilityOff('menuItem2bselected');
		visibilityOff('menuItem3bselected');
		visibilityOn('menuItem2b');
		visibilityOn('menuItem3b');
	} else if (menuItemId == 'menuItem2b') {
		visibilityOff('menuItem2b');
		visibilityOn('menuItem2bselected');
		visibilityOff('menuItem1bselected');
		visibilityOff('menuItem3bselected');
		visibilityOn('menuItem1b');
		visibilityOn('menuItem3b');
	} else if (menuItemId == 'menuItem3b') {
		visibilityOff('menuItem3b');
		visibilityOn('menuItem3bselected');
		visibilityOff('menuItem2bselected');
		visibilityOff('menuItem1bselected');
		visibilityOn('menuItem2b');
		visibilityOn('menuItem1b');
	}
}


function visibilityOn(divId) {
	document.getElementById(divId).style.display = "block";
}
function visibilityOff(divId) {
	document.getElementById(divId).style.display = "none";
}

function previousButtonAction() {
	if ((document.getElementById('changeableContent1').style.display == "block")) {
		fadeOutDiv('changeableContent1');
		fadeInDiv('changeableContent5');
		visibilityOff('popup1Buttons');
		visibilityOn('popup5Buttons');
	} else if ((document.getElementById('changeableContent2').style.display == "block")) {
		fadeOutDiv('changeableContent2');
		fadeInDiv('changeableContent1');
		visibilityOff('popup2Buttons');
		visibilityOn('popup1Buttons');
	} else if ((document.getElementById('changeableContent3').style.display == "block")) {
		fadeOutDiv('changeableContent3');
		fadeInDiv('changeableContent2');
		visibilityOff('popup3Buttons');
		visibilityOn('popup2Buttons');
	} else if ((document.getElementById('changeableContent4').style.display == "block")) {
		fadeOutDiv('changeableContent4');
		fadeInDiv('changeableContent3');
		visibilityOff('popup4Buttons');
		visibilityOn('popup3Buttons');
	} else if ((document.getElementById('changeableContent5').style.display == "block")) {
		fadeOutDiv('changeableContent5');
		fadeInDiv('changeableContent4');
		visibilityOff('popup5Buttons');
		visibilityOn('popup4Buttons');
	}
}

function nextButtonAction() {
	if ((document.getElementById('changeableContent1').style.display == "block")) {
		fadeOutDiv('changeableContent1');
		fadeInDiv('changeableContent2');
		visibilityOff('popup1Buttons');
		visibilityOn('popup2Buttons');
	} else if ((document.getElementById('changeableContent2').style.display == "block")) {
		fadeOutDiv('changeableContent2');
		fadeInDiv('changeableContent3');
		visibilityOff('popup2Buttons');
		visibilityOn('popup3Buttons');
	} else if ((document.getElementById('changeableContent3').style.display == "block")) {
		fadeOutDiv('changeableContent3');
		fadeInDiv('changeableContent4');
		visibilityOff('popup3Buttons');
		visibilityOn('popup4Buttons');
	} else if ((document.getElementById('changeableContent4').style.display == "block")) {
		fadeOutDiv('changeableContent4');
		fadeInDiv('changeableContent5');
		visibilityOff('popup4Buttons');
		visibilityOn('popup5Buttons');
	} else if ((document.getElementById('changeableContent5').style.display == "block")) {
		fadeOutDiv('changeableContent5');
		fadeInDiv('changeableContent1');
		visibilityOff('popup5Buttons');
		visibilityOn('popup1Buttons');
	}
}

function previousButtonAction_fourPics() {
	if ((document.getElementById('changeableContent1').style.display == "block")) {
		fadeOutDiv('changeableContent1');
		fadeInDiv('changeableContent4');
		visibilityOff('popup1Buttons');
		visibilityOn('popup4Buttons');
	} else if ((document.getElementById('changeableContent2').style.display == "block")) {
		fadeOutDiv('changeableContent2');
		fadeInDiv('changeableContent1');
		visibilityOff('popup2Buttons');
		visibilityOn('popup1Buttons');
	} else if ((document.getElementById('changeableContent3').style.display == "block")) {
		fadeOutDiv('changeableContent3');
		fadeInDiv('changeableContent2');
		visibilityOff('popup3Buttons');
		visibilityOn('popup2Buttons');
	} else if ((document.getElementById('changeableContent4').style.display == "block")) {
		fadeOutDiv('changeableContent4');
		fadeInDiv('changeableContent3');
		visibilityOff('popup4Buttons');
		visibilityOn('popup3Buttons');
	}
}

function nextButtonAction_fourPics() {
	if ((document.getElementById('changeableContent1').style.display == "block")) {
		fadeOutDiv('changeableContent1');
		fadeInDiv('changeableContent2');
		visibilityOff('popup1Buttons');
		visibilityOn('popup2Buttons');
	} else if ((document.getElementById('changeableContent2').style.display == "block")) {
		fadeOutDiv('changeableContent2');
		fadeInDiv('changeableContent3');
		visibilityOff('popup2Buttons');
		visibilityOn('popup3Buttons');
	} else if ((document.getElementById('changeableContent3').style.display == "block")) {
		fadeOutDiv('changeableContent3');
		fadeInDiv('changeableContent4');
		visibilityOff('popup3Buttons');
		visibilityOn('popup4Buttons');
	} else if ((document.getElementById('changeableContent4').style.display == "block")) {
		fadeOutDiv('changeableContent4');
		fadeInDiv('changeableContent1');
		visibilityOff('popup4Buttons');
		visibilityOn('popup1Buttons');
	}
}

function previousButtonAction_threePics() {
	if ((document.getElementById('changeableContent1').style.display == "block")) {
		fadeOutDiv('changeableContent1');
		fadeInDiv('changeableContent3');
		visibilityOff('popup1Buttons');
		visibilityOn('popup3Buttons');
	} else if ((document.getElementById('changeableContent2').style.display == "block")) {
		fadeOutDiv('changeableContent2');
		fadeInDiv('changeableContent1');
		visibilityOff('popup2Buttons');
		visibilityOn('popup1Buttons');
	} else if ((document.getElementById('changeableContent3').style.display == "block")) {
		fadeOutDiv('changeableContent3');
		fadeInDiv('changeableContent2');
		visibilityOff('popup3Buttons');
		visibilityOn('popup2Buttons');
	}
}

function nextButtonAction_threePics() {
	if ((document.getElementById('changeableContent1').style.display == "block")) {
		fadeOutDiv('changeableContent1');
		fadeInDiv('changeableContent2');
		visibilityOff('popup1Buttons');
		visibilityOn('popup2Buttons');
	} else if ((document.getElementById('changeableContent2').style.display == "block")) {
		fadeOutDiv('changeableContent2');
		fadeInDiv('changeableContent3');
		visibilityOff('popup2Buttons');
		visibilityOn('popup3Buttons');
	} else if ((document.getElementById('changeableContent3').style.display == "block")) {
		fadeOutDiv('changeableContent3');
		fadeInDiv('changeableContent1');
		visibilityOff('popup3Buttons');
		visibilityOn('popup1Buttons');
	}
}

function tnAction(divId) {
	document.getElementById(divId).style.display = "block";
	if ((document.getElementById('changeableContent1').style.display == "block")) {
		visibilityOn('popup1Buttons');
	} else if ((document.getElementById('changeableContent2').style.display == "block")) {
		visibilityOn('popup2Buttons');
	} else if ((document.getElementById('changeableContent3').style.display == "block")) {
		visibilityOn('popup3Buttons');
	} else if ((document.getElementById('changeableContent4').style.display == "block")) {
		visibilityOn('popup4Buttons');
	} else if ((document.getElementById('changeableContent5').style.display == "block")) {
		visibilityOn('popup5Buttons');
	}
	//document.getElementById(buttonsId).style.display = "block";
	fadeInDiv('popupContainer');
}


function closePopup() {
	fadeOutDiv('popupContainer');
	var t=setTimeout("resetChangeableContents()",700);
}

function closePopup_threePics() {
	fadeOutDiv('popupContainer');
	var t=setTimeout("resetChangeableContents_threePics()",700);
}

function closePopup_fourPics() {
	fadeOutDiv('popupContainer');
	var t=setTimeout("resetChangeableContents_fourPics()",700);
}

function closeShowcase(divId) {
	fadeOutDiv(divId);
	var t=setTimeout("resetShowcaseContents()",700);
}
function resetShowcaseContents() {
	visibilityOff('mainPic1');
	visibilityOff('mainCopy1');
	visibilityOff('insideMenu_selectedBkgd1');
	visibilityOff('mainPic2');
	visibilityOff('mainCopy2');
	visibilityOff('insideMenu_selectedBkgd2');
	visibilityOff('mainPic3');
	visibilityOff('mainCopy3');
	visibilityOff('insideMenu_selectedBkgd3');
	visibilityOff('mainPic4');
	visibilityOff('mainCopy4');
	visibilityOff('insideMenu_selectedBkgd4');
	visibilityOff('mainPic5');
	visibilityOff('mainCopy5');
	visibilityOff('insideMenu_selectedBkgd5');
	visibilityOff('showcaseChelsea_insideMenu');
	visibilityOn('mainPic0');
}


function resetChangeableContents() {
	visibilityOff('popup1Buttons');
	visibilityOff('changeableContent1');
	visibilityOff('popup2Buttons');
	visibilityOff('changeableContent2');
	visibilityOff('popup3Buttons');
	visibilityOff('changeableContent3');
	visibilityOff('popup4Buttons');
	visibilityOff('changeableContent4');
	visibilityOff('popup5Buttons');
	visibilityOff('changeableContent5');
}

function resetChangeableContents_threePics() {
	visibilityOff('popup1Buttons');
	visibilityOff('changeableContent1');
	visibilityOff('popup2Buttons');
	visibilityOff('changeableContent2');
	visibilityOff('popup3Buttons');
	visibilityOff('changeableContent3');
}

function resetChangeableContents_fourPics() {
	visibilityOff('popup1Buttons');
	visibilityOff('changeableContent1');
	visibilityOff('popup2Buttons');
	visibilityOff('changeableContent2');
	visibilityOff('popup3Buttons');
	visibilityOff('changeableContent3');
	visibilityOff('popup4Buttons');
	visibilityOff('changeableContent4');
}



//Flash detection on index page
function detectFlash2(flashURL,noflashURL) {
	var MM_contentVersion = 9;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
	   && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	if ( MM_FlashCanPlay ) {
		window.location.replace(flashURL);
	} else{
		alert("noflash");
		window.location.replace(noflashURL);
	}

}

function slideshowBackBtn() {
	if ((document.getElementById('mainPic1').style.display == "block")) {
		return;
	} else if ((document.getElementById('mainPic2').style.display == "block")) {
		fadeOutDiv('mainPic2');
		fadeOutDiv('caption2');
		fadeOutDiv('pageNb2');
		fadeInDiv('mainPic1');
		fadeInDiv('caption1');
		fadeInDiv('pageNb1');
		visibilityOn('backBtn_disabled');
		visibilityOff('backBtn');
		visibilityOn('nextBtn');
		visibilityOff('nextBtn_disabled');
	} else if ((document.getElementById('mainPic3').style.display == "block")) {
		fadeOutDiv('mainPic3');
		fadeOutDiv('caption3');
		fadeOutDiv('pageNb3');
		fadeInDiv('mainPic2');
		fadeInDiv('caption2');
		fadeInDiv('pageNb2');
	} else if ((document.getElementById('mainPic4').style.display == "block")) {
		fadeOutDiv('mainPic4');
		fadeOutDiv('caption4');
		fadeOutDiv('pageNb4');
		fadeInDiv('mainPic3');
		fadeInDiv('caption3');
		fadeInDiv('pageNb3');
	} else if ((document.getElementById('mainPic5').style.display == "block")) {
		fadeOutDiv('mainPic5');
		fadeOutDiv('caption5');
		fadeOutDiv('pageNb5');
		fadeInDiv('mainPic4');
		fadeInDiv('caption4');
		fadeInDiv('pageNb4');
	} else if ((document.getElementById('mainPic6').style.display == "block")) {
		fadeOutDiv('mainPic6');
		fadeOutDiv('caption6');
		fadeOutDiv('pageNb6');
		fadeInDiv('mainPic5');
		fadeInDiv('caption5');
		fadeInDiv('pageNb5');
	} else if ((document.getElementById('mainPic7').style.display == "block")) {
		fadeOutDiv('mainPic7');
		fadeOutDiv('caption7');
		fadeOutDiv('pageNb7');
		fadeInDiv('mainPic6');
		fadeInDiv('caption6');
		fadeInDiv('pageNb6');
	} else if ((document.getElementById('mainPic8').style.display == "block")) {
		fadeOutDiv('mainPic8');
		fadeOutDiv('caption8');
		fadeOutDiv('pageNb8');
		fadeInDiv('mainPic7');
		fadeInDiv('caption7');
		fadeInDiv('pageNb7');
	} else if ((document.getElementById('mainPic9').style.display == "block")) {
		fadeOutDiv('mainPic9');
		fadeOutDiv('caption9');
		fadeOutDiv('pageNb9');
		fadeInDiv('mainPic8');
		fadeInDiv('caption8');
		fadeInDiv('pageNb8');
		visibilityOff('backBtn_disabled');
		visibilityOn('backBtn');
		visibilityOn('nextBtn');
		visibilityOff('nextBtn_disabled');
	}
}

function slideshowNextBtn() {
	if ((document.getElementById('mainPic1').style.display == "block")) {
		fadeOutDiv('mainPic1');
		fadeOutDiv('caption1');
		fadeOutDiv('pageNb1');
		fadeInDiv('mainPic2');
		fadeInDiv('caption2');
		fadeInDiv('pageNb2');
		visibilityOff('backBtn_disabled');
		visibilityOn('backBtn');
		visibilityOn('nextBtn');
		visibilityOff('nextBtn_disabled');
	} else if ((document.getElementById('mainPic2').style.display == "block")) {
		fadeOutDiv('mainPic2');
		fadeOutDiv('caption2');
		fadeOutDiv('pageNb2');
		fadeInDiv('mainPic3');
		fadeInDiv('caption3');
		fadeInDiv('pageNb3');
	} else if ((document.getElementById('mainPic3').style.display == "block")) {
		fadeOutDiv('mainPic3');
		fadeOutDiv('caption3');
		fadeOutDiv('pageNb3');
		fadeInDiv('mainPic4');
		fadeInDiv('caption4');
		fadeInDiv('pageNb4');
	} else if ((document.getElementById('mainPic4').style.display == "block")) {
		fadeOutDiv('mainPic4');
		fadeOutDiv('caption4');
		fadeOutDiv('pageNb4');
		fadeInDiv('mainPic5');
		fadeInDiv('caption5');
		fadeInDiv('pageNb5');
	} else if ((document.getElementById('mainPic5').style.display == "block")) {
		fadeOutDiv('mainPic5');
		fadeOutDiv('caption5');
		fadeOutDiv('pageNb5');
		fadeInDiv('mainPic6');
		fadeInDiv('caption6');
		fadeInDiv('pageNb6');
	} else if ((document.getElementById('mainPic6').style.display == "block")) {
		fadeOutDiv('mainPic6');
		fadeOutDiv('caption6');
		fadeOutDiv('pageNb6');
		fadeInDiv('mainPic7');
		fadeInDiv('caption7');
		fadeInDiv('pageNb7');
	} else if ((document.getElementById('mainPic7').style.display == "block")) {
		fadeOutDiv('mainPic7');
		fadeOutDiv('caption7');
		fadeOutDiv('pageNb7');
		fadeInDiv('mainPic8');
		fadeInDiv('caption8');
		fadeInDiv('pageNb8');
	} else if ((document.getElementById('mainPic8').style.display == "block")) {
		fadeOutDiv('mainPic8');
		fadeOutDiv('caption8');
		fadeOutDiv('pageNb8');
		fadeInDiv('mainPic9');
		fadeInDiv('caption9');
		fadeInDiv('pageNb9');
		visibilityOff('backBtn_disabled');
		visibilityOn('backBtn');
		visibilityOff('nextBtn');
		visibilityOn('nextBtn_disabled');
	} else if ((document.getElementById('mainPic9').style.display == "block")) {
		return;
	}
}
