document.write('')
// =======================================
// set the following variables
// =======================================
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000
var restartShowTime = 30000
// Duration of crossfade (seconds)
var crossFadeDuration = 3
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
var pauseButtons = new Array();
pauseButtons[pauseButtons.length] = "/images/off_play.gif";
pauseButtons[pauseButtons.length] = "/images/off_pause.gif";
pauseButtons[pauseButtons.length] = "/images/on_pause.gif";
pauseButtons[pauseButtons.length] = "/images/on_play.gif";
pauseButtons[pauseButtons.length] = "/images/on_next.gif";
pauseButtons[pauseButtons.length] = "/images/off_next.gif";
pauseButtons[pauseButtons.length] = "/images/on_prev.gif";
pauseButtons[pauseButtons.length] = "/images/off_prev.gif";
var preLoadButtons = new Array();
for (i = 0; i < pauseButtons.length; i++){
preLoadButtons[i] = new Image()
preLoadButtons[i].src = pauseButtons[i]
}
//Set the slide Text
slideCaptions = new Array()
slideDescriptions = new Array()
Pic[Pic.length] = "/common/ACCOUNTMEDIA/00000210/200511/1O80F20HN472.jpg";
slideCaptions[slideCaptions.length] = "Long Island Residence - Kitchen
Nicey Berkenfeld
Role: Interior Designer";
slideDescriptions[slideDescriptions.length] = "
";
Pic[Pic.length] = "/common/ACCOUNTMEDIA/00000210/200310/12E0IX8DO71.JPG";
slideCaptions[slideCaptions.length] = "Carnegie Hill Dining Room
Tonin Mac Callum
Role: Interior Designer, Project Manager";
slideDescriptions[slideDescriptions.length] = "";
Pic[Pic.length] = "/common/ACCOUNTMEDIA/00000210/200703/21510B6AC314.jpg";
slideCaptions[slideCaptions.length] = "SOUTH SHORE LIVING ROOM
Lynn Packer
Role: INTERIOR DESIGNER";
slideDescriptions[slideDescriptions.length] = "";
function get_random(ns)
{
var ranNum= Math.round(Math.random()*ns);
return ranNum;
}
var tSlideTimeout
var tPauseTimeout
var nSlideShowLength = Pic.length
var no = get_random(nSlideShowLength)
if (no == -1)
{
no = 0;
};
if (no == nSlideShowLength)
{
no = 0;
};
var nCurrSlide = no
var preLoad = new Array()
for (i = no; i < nSlideShowLength; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// do not edit anything below this line
// =======================================
function runSlideShow(){
displaySlide()
tSlideTimeout = setTimeout('nextSlide()', slideShowSpeed)
}
function pauseSlideShow(){
if (tSlideTimeout){
clearTimeout(tSlideTimeout);
tSlideTimeout=0;
pauseplay('play');
//var cSrc = pauseButtons[0].src
//document.images.pause.src = cSrc
}
else {
nextSlide(1);
pauseplay('pause');
//var cSrc = pauseButtons[1].src
//document.images.pause.src = cSrc
}
}
function displaySlide(){
if (document.all){
document.images.SlideShow.style.filter="blendTrans(duration=2)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()
}
document.images.SlideShow.src = preLoad[nCurrSlide].src
if (document.all){
document.images.SlideShow.filters.blendTrans.Play()
}
changeText(nCurrSlide);
}
function pauseplay(eventtype) {
var pausetxt = '
';
if (eventtype == 'play') {
pausetxt = '
';
}
writeLayer('playbutton',pausetxt);
}
function nextSlide(navclick){
if (navclick && tSlideTimeout){
clearTimeout(tSlideTimeout)
tSlideTimeout = setTimeout('runSlideShow()', restartShowTime);
}
else tSlideTimeout = setTimeout('nextSlide()', slideShowSpeed);
nCurrSlide = nCurrSlide + 1
if (nCurrSlide > (nSlideShowLength-1)) nCurrSlide=0
pauseplay();
displaySlide();
}
function previousSlide(navclick){
if (navclick && tSlideTimeout){
clearTimeout(tSlideTimeout)
tSlideTimeout = setTimeout('runSlideShow()', restartShowTime)
}
else tSlideTimeout = setTimeout('nextSlide()', slideShowSpeed)
nCurrSlide = nCurrSlide - 1
if (nCurrSlide < 0) nCurrSlide=nSlideShowLength-1
pauseplay();
displaySlide();
}
/**********************************************************************************
ChangeText
* Copyright (C) 2001 Thomas Brattli
* This script was released at DHTMLCentral.com
* Visit for more great scripts!
* This may be used and changed freely as long as this msg is intact!
* We will also appreciate any links you could give us.
*
* Made by Thomas Brattli
*********************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
var bw=new lib_bwcheck()
if(document.layers){ //NS4 resize fix...
scrX= innerWidth; scrY= innerHeight;
onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}
/****
Variables to set
****/
msgFont= "arial,helvetiva" // The font for the message
msgFontSize= 12 // Set the fontSize in px
msgFontColor="#000000" // Set the fontColor
msgWidth= "300" // Set the width of the messageblock here for netscape 4
/********************************************************************************
You don't have to change anything below this
********************************************************************************/
//ChangeText object constructor.
function makeChangeTextObj(obj){
this.css = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;
this.writeref = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0;
this.writeIt = b_writeIt;
}
function b_writeIt(text,num){
if (bw.ns4){
this.writeref.write(text)
this.writeref.close()
}
else this.writeref.innerHTML = text
}
//The change function. Calls the writeIt method to write the text to the div.
function changeText(num){
if(bw.bw){
oDescription.writeIt(slideDescriptions[num], num)
oCaption.writeIt(slideCaptions[num], num)
//oNavigator.writeIt('
',num)
}
}
//The init function. Calls the object constructor and initiates some properties.
function changeTextInit(){
//Fixing the browsercheck for opera... this can be removed if the browsercheck has been updated!!
bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
if (bw.opera5) bw.ns6 = 0
oCaption = new makeChangeTextObj('slideCaption')
oDescription = new makeChangeTextObj('slideDescription')
//oNavigator = new makeChangeTextObj('slideNavigator')
//Setting the style properties of the text layer.
if(bw.dom || bw.ie4){
with(oDescription.writeref.style){fontFamily=msgFont; fontSize=msgFontSize+"px"; color=msgFontColor}
with(oCaption.writeref.style){fontFamily=msgFont; fontSize=msgFontSize+"px"; color=msgFontColor}
}
//Both layers are hidden by default to prevent users from mousing over them and creating errors while the page loads.
oCaption.css.visibility= "visible"
oDescription.css.visibility= "visible"
//oNavigator.css.visibility= "visible"
}
if (!document.loadHandlers) {
document.loadHandlers=new Array();
document.loadHandlers[0]='runSlideShow()';
document.lastLoadHandler=0;
} else {
document.lastLoadHandler++;
document.loadHandlers[document.lastLoadHandler]='runSlideShow()';
}
function writeLayer(layerID,txt) {
if(document.getElementById) {
document.getElementById(layerID).innerHTML=txt;
} else if(document.all) {
document.all[layerID].innerHTML=txt;
} else if(document.layers) {
document.layers[layerID].document.open();
document.layers[layerID].document.write(txt);
document.layers[layerID].document.close();
document.layers[layerID].visibility = "visible";
document.layers[layerID].position = "relative";
}
}
document.write('')
document.write('')
document.write(' | ')
document.write('
')
document.write('')
document.write('| ')
document.write('')
document.write(' | ')
document.write(' | ')
document.write(' | ')
document.write('
')
document.write('')
document.write(' | ')
document.write('
')
document.write('')
document.write('| | ')
document.write(' | ')
document.write('')
document.write('')
document.write('')
document.write(' | ')
document.write(' | ')
document.write(' | ')
document.write(' ')
document.write(' ')
document.write(' | ')
document.write('
')
document.write('')
document.write(' | ')
document.write('
')
document.write('
')
if (bw.bw) changeTextInit()