var slidespeed=3000;
var slideimages=new Array('image_432476704.jpg', 'image_1832628474.jpg', 'image_331135319.jpg', 'image_857518870.jpg', 'image_162170189.jpg', 'image_1606315064.jpg', 'image_674590014.jpg', 'image_2142515265.jpg', 'image_2094996147.jpg', 'image_543048416.jpg', 'image_1787534234.jpg', 'image_1713531859.jpg', 'image_1426256.jpg', 'image_1243259690.jpg', 'image_891566906.jpg', 'image_34743333.jpg', 'image_1145533458.jpg', 'image_710203706.jpg', 'image_636247451.jpg', 'image_1743570754.jpg', 'image_985235422.jpg', 'image_2032011528.jpg', 'image_1033662437.jpg', 'image_2067942350.jpg')
var slideimg=new Array('432476704', '1832628474', '331135319', '857518870', '162170189', '1606315064', '674590014', '2142515265', '2094996147', '543048416', '1787534234', '1713531859', '1426256', '1243259690', '891566906', '34743333', '1145533458', '710203706', '636247451', '1743570754', '985235422', '2032011528', '1033662437', '2067942350')
var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
var slideimgPath=new Array('http://imgsvr432476704.preferredhomesonline.com/components/com_pho/images/wb_images/image_432476704.jpg', 'http://imgsvr1832628474.preferredhomesonline.com/components/com_pho/images/wb_images/image_1832628474.jpg', 'http://imgsvr331135319.preferredhomesonline.com/components/com_pho/images/wb_images/image_331135319.jpg', 'http://imgsvr857518870.preferredhomesonline.com/components/com_pho/images/wb_images/image_857518870.jpg', 'http://imgsvr162170189.preferredhomesonline.com/components/com_pho/images/wb_images/image_162170189.jpg', 'http://imgsvr1606315064.preferredhomesonline.com/components/com_pho/images/wb_images/image_1606315064.jpg', 'http://imgsvr674590014.preferredhomesonline.com/components/com_pho/images/wb_images/image_674590014.jpg', 'http://imgsvr2142515265.preferredhomesonline.com/components/com_pho/images/wb_images/image_2142515265.jpg', 'http://imgsvr2094996147.preferredhomesonline.com/components/com_pho/images/wb_images/image_2094996147.jpg', 'http://imgsvr543048416.preferredhomesonline.com/components/com_pho/images/wb_images/image_543048416.jpg', 'http://imgsvr1787534234.preferredhomesonline.com/components/com_pho/images/wb_images/image_1787534234.jpg', 'http://imgsvr1713531859.preferredhomesonline.com/components/com_pho/images/wb_images/image_1713531859.jpg', 'http://imgsvr1426256.preferredhomesonline.com/components/com_pho/images/wb_images/image_1426256.jpg', 'http://imgsvr1243259690.preferredhomesonline.com/components/com_pho/images/wb_images/image_1243259690.jpg', 'http://imgsvr891566906.preferredhomesonline.com/components/com_pho/images/wb_images/image_891566906.jpg', 'http://imgsvr34743333.preferredhomesonline.com/components/com_pho/images/wb_images/image_34743333.jpg', 'http://imgsvr1145533458.preferredhomesonline.com/components/com_pho/images/wb_images/image_1145533458.jpg', 'http://imgsvr710203706.preferredhomesonline.com/components/com_pho/images/wb_images/image_710203706.jpg', 'http://imgsvr636247451.preferredhomesonline.com/components/com_pho/images/wb_images/image_636247451.jpg', 'http://imgsvr1743570754.preferredhomesonline.com/components/com_pho/images/wb_images/image_1743570754.jpg', 'http://imgsvr985235422.preferredhomesonline.com/components/com_pho/images/wb_images/image_985235422.jpg', 'http://imgsvr2032011528.preferredhomesonline.com/components/com_pho/images/wb_images/image_2032011528.jpg', 'http://imgsvr1033662437.preferredhomesonline.com/components/com_pho/images/wb_images/image_1033662437.jpg', 'http://imgsvr2067942350.preferredhomesonline.com/components/com_pho/images/wb_images/image_2067942350.jpg')
//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.4749pinebury.info/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.4749pinebury.info/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)
{
for (i = 0; i < slideimages.length; i++)
{
if (slideimages[i] == name) document.images.slide.src = slideimgPath[i];
}
document.getElementById('bigImg').href = 'http://www.4749pinebury.info/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;
//border start
document.getElementById('432476704').style.borderColor = '#ffffff';
document.getElementById('1832628474').style.borderColor = '#ffffff';
document.getElementById('331135319').style.borderColor = '#ffffff';
document.getElementById('857518870').style.borderColor = '#ffffff';
document.getElementById('162170189').style.borderColor = '#ffffff';
document.getElementById('1606315064').style.borderColor = '#ffffff';
document.getElementById('674590014').style.borderColor = '#ffffff';
document.getElementById('2142515265').style.borderColor = '#ffffff';
document.getElementById('2094996147').style.borderColor = '#ffffff';
document.getElementById('543048416').style.borderColor = '#ffffff';
document.getElementById('1787534234').style.borderColor = '#ffffff';
document.getElementById('1713531859').style.borderColor = '#ffffff';
document.getElementById('1426256').style.borderColor = '#ffffff';
document.getElementById('1243259690').style.borderColor = '#ffffff';
document.getElementById('891566906').style.borderColor = '#ffffff';
document.getElementById('34743333').style.borderColor = '#ffffff';
document.getElementById('1145533458').style.borderColor = '#ffffff';
document.getElementById('710203706').style.borderColor = '#ffffff';
document.getElementById('636247451').style.borderColor = '#ffffff';
document.getElementById('1743570754').style.borderColor = '#ffffff';
document.getElementById('985235422').style.borderColor = '#ffffff';
document.getElementById('2032011528').style.borderColor = '#ffffff';
document.getElementById('1033662437').style.borderColor = '#ffffff';
document.getElementById('2067942350').style.borderColor = '#ffffff';
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;
}