var slidespeed=3000;
var slideimages=new Array('image_1188500334.jpg', 'image_1096182652.jpg', 'image_1200610069.jpg', 'image_273833776.jpg', 'image_891181453.jpg', 'image_98432834.jpg', 'image_108024806.jpg', 'image_882476790.jpg', 'image_1018916481.jpg', 'image_1674028199.jpg', 'image_366788228.jpg', 'image_917607963.jpg', 'image_250690814.jpg', 'image_302620093.jpg', 'image_1111659339.jpg', 'image_52462905.jpg', 'image_2056048822.jpg', 'image_187874920.jpg')
var slideimg=new Array('1188500334', '1096182652', '1200610069', '273833776', '891181453', '98432834', '108024806', '882476790', '1018916481', '1674028199', '366788228', '917607963', '250690814', '302620093', '1111659339', '52462905', '2056048822', '187874920')
var slideimgalt=new Array('Front Of Home', 'Living Room 1', 'Living Room 2', 'Entry', 'Family Room 1', 'Family Room 2', 'Built-In Custom BBQ', 'Kitchen 1', 'Kitchen 2', 'Laundry Room', 'Gym', 'Sauna', 'Guest Bathroom', 'Pool / Patio', 'Pool', 'Gated Pool / Backyard', 'Backyard', 'Backyard / Bar')
//specify corresponding links
//var slidelinks=new Array("","","")
var newwindow=1 //open links in new window? 1=yes, 0=no
var imageholder=new Array()
var ie=document.all
for (i=0;i';
return overlib(html, '', '', BELOW, RIGHT, WIDTH, 100, CSSCLASS, FGCLASS, 'fgClass', BGCLASS, 'bgClass', CELLPAD, 3)
}
function showTh2Reg(name)
{
imgSrc = 'http://www.5926dwight.com/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.5926dwight.com/images/login_to_view.gif';
html = '
';
return overlib(html, '', '', BELOW, RIGHT, WIDTH, 100, CSSCLASS, BGCLASS, 'bgClass', FGCOLOR, 'transparent', FGBACKGROUND, imgSrc, CELLPAD, 3)
}
var number;
var current = 0;
var prev = 0;
function changeImg(name, number)
{
document.images.slide.src = 'http://www.5926dwight.com/components/com_pho/images/wb_images/' + name;
document.getElementById('bigImg').href = 'http://www.5926dwight.com/components/com_pho/images/wb_images/' + name;
for(j=0;j 1)
{
whichimage = 1;
}
else if (whichimage == 0 && prev != 0)
{
whichimage = 0;
}
document.images.slide.src=imageholder[whichimage].src
document.images.slide.alt = imageholder[whichimage].alt;
document.getElementById('bigImg').href = imageholder[whichimage].src;
document.getElementById('imgAlt').innerHTML = imageholder[whichimage].alt;
//document.getElementById('email').href = 'http://www.5926dwight.com/index2.php?option=com_pho_js&task=email&img=' + imageholder[whichimage].name;
//document.getElementById('print').href = 'http://www.5926dwight.com/index2.php?option=com_pho_js&task=print&img=' + imageholder[whichimage].name;
//border start
document.getElementById('1188500334').style.borderColor = '#f6efde';
document.getElementById('1096182652').style.borderColor = '#f6efde';
document.getElementById('1200610069').style.borderColor = '#f6efde';
document.getElementById('273833776').style.borderColor = '#f6efde';
document.getElementById('891181453').style.borderColor = '#f6efde';
document.getElementById('98432834').style.borderColor = '#f6efde';
document.getElementById('108024806').style.borderColor = '#f6efde';
document.getElementById('882476790').style.borderColor = '#f6efde';
document.getElementById('1018916481').style.borderColor = '#f6efde';
document.getElementById('1674028199').style.borderColor = '#f6efde';
document.getElementById('366788228').style.borderColor = '#f6efde';
document.getElementById('917607963').style.borderColor = '#f6efde';
document.getElementById('250690814').style.borderColor = '#f6efde';
document.getElementById('302620093').style.borderColor = '#f6efde';
document.getElementById('1111659339').style.borderColor = '#f6efde';
document.getElementById('52462905').style.borderColor = '#f6efde';
document.getElementById('2056048822').style.borderColor = '#f6efde';
document.getElementById('187874920').style.borderColor = '#f6efde';
number = imageholder[whichimage].name;
document.getElementById(number).style.borderColor = 'red';
//border end
prev = whichimage - 1;
whichimage = whichimage + 1;
if (whichimage == slideimages.length)
{
whichimage = 0;
//prev = slideimages.length - 2;
}
}
function doLightBox()
{
var bigImg = document.getElementById('bigImg');
var image = document.images.slide.src;
var pos1 = image.lastIndexOf('image_');
var pos2 = image.lastIndexOf('.jpg');
var name = image.substring(pos1, pos2);
var number = name.substring(6);
var evt = 'click';
var fireOnThis = document.getElementById('photo' + number);
if( document.createEvent )
{
var evObj = document.createEvent('MouseEvents');
evObj.initEvent( evt, true, false );
fireOnThis.dispatchEvent(evObj);
}
else if( document.createEventObject )
{
fireOnThis.fireEvent('on'+evt);
}
return false;
}