var slidespeed=3000;
var slideimages=new Array('image_1219867373.jpg', 'image_1806697673.jpg', 'image_609714396.jpg', 'image_690365231.jpg', 'image_1919912139.jpg', 'image_455513514.jpg', 'image_1896694365.jpg', 'image_1493148544.jpg', 'image_1540583964.jpg', 'image_1634792778.jpg', 'image_547645728.jpg', 'image_711443129.jpg', 'image_1236763864.jpg', 'image_368985653.jpg', 'image_575135483.jpg', 'image_1688999256.jpg', 'image_987921245.jpg', 'image_1213575686.jpg', 'image_364450055.jpg', 'image_79761283.jpg', 'image_257301011.jpg', 'image_1114027981.jpg', 'image_1800337626.jpg', 'image_919734447.jpg', 'image_1811231600.jpg', 'image_598090656.jpg', 'image_1560017852.jpg', 'image_115064340.jpg', 'image_857740862.jpg', 'image_1236920238.jpg')
var slideimg=new Array('1219867373', '1806697673', '609714396', '690365231', '1919912139', '455513514', '1896694365', '1493148544', '1540583964', '1634792778', '547645728', '711443129', '1236763864', '368985653', '575135483', '1688999256', '987921245', '1213575686', '364450055', '79761283', '257301011', '1114027981', '1800337626', '919734447', '1811231600', '598090656', '1560017852', '115064340', '857740862', '1236920238')
var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
var slideimgPath=new Array('http://imgsvr1219867373.preferredhomesonline.com/components/com_pho/images/wb_images/image_1219867373.jpg', 'http://imgsvr1806697673.preferredhomesonline.com/components/com_pho/images/wb_images/image_1806697673.jpg', 'http://imgsvr609714396.preferredhomesonline.com/components/com_pho/images/wb_images/image_609714396.jpg', 'http://imgsvr690365231.preferredhomesonline.com/components/com_pho/images/wb_images/image_690365231.jpg', 'http://imgsvr1919912139.preferredhomesonline.com/components/com_pho/images/wb_images/image_1919912139.jpg', 'http://imgsvr455513514.preferredhomesonline.com/components/com_pho/images/wb_images/image_455513514.jpg', 'http://imgsvr1896694365.preferredhomesonline.com/components/com_pho/images/wb_images/image_1896694365.jpg', 'http://imgsvr1493148544.preferredhomesonline.com/components/com_pho/images/wb_images/image_1493148544.jpg', 'http://imgsvr1540583964.preferredhomesonline.com/components/com_pho/images/wb_images/image_1540583964.jpg', 'http://imgsvr1634792778.preferredhomesonline.com/components/com_pho/images/wb_images/image_1634792778.jpg', 'http://imgsvr547645728.preferredhomesonline.com/components/com_pho/images/wb_images/image_547645728.jpg', 'http://imgsvr711443129.preferredhomesonline.com/components/com_pho/images/wb_images/image_711443129.jpg', 'http://imgsvr1236763864.preferredhomesonline.com/components/com_pho/images/wb_images/image_1236763864.jpg', 'http://imgsvr368985653.preferredhomesonline.com/components/com_pho/images/wb_images/image_368985653.jpg', 'http://imgsvr575135483.preferredhomesonline.com/components/com_pho/images/wb_images/image_575135483.jpg', 'http://imgsvr1688999256.preferredhomesonline.com/components/com_pho/images/wb_images/image_1688999256.jpg', 'http://imgsvr987921245.preferredhomesonline.com/components/com_pho/images/wb_images/image_987921245.jpg', 'http://imgsvr1213575686.preferredhomesonline.com/components/com_pho/images/wb_images/image_1213575686.jpg', 'http://imgsvr364450055.preferredhomesonline.com/components/com_pho/images/wb_images/image_364450055.jpg', 'http://imgsvr79761283.preferredhomesonline.com/components/com_pho/images/wb_images/image_79761283.jpg', 'http://imgsvr257301011.preferredhomesonline.com/components/com_pho/images/wb_images/image_257301011.jpg', 'http://imgsvr1114027981.preferredhomesonline.com/components/com_pho/images/wb_images/image_1114027981.jpg', 'http://imgsvr1800337626.preferredhomesonline.com/components/com_pho/images/wb_images/image_1800337626.jpg', 'http://imgsvr919734447.preferredhomesonline.com/components/com_pho/images/wb_images/image_919734447.jpg', 'http://imgsvr1811231600.preferredhomesonline.com/components/com_pho/images/wb_images/image_1811231600.jpg', 'http://imgsvr598090656.preferredhomesonline.com/components/com_pho/images/wb_images/image_598090656.jpg', 'http://imgsvr1560017852.preferredhomesonline.com/components/com_pho/images/wb_images/image_1560017852.jpg', 'http://imgsvr115064340.preferredhomesonline.com/components/com_pho/images/wb_images/image_115064340.jpg', 'http://imgsvr857740862.preferredhomesonline.com/components/com_pho/images/wb_images/image_857740862.jpg', 'http://imgsvr1236920238.preferredhomesonline.com/components/com_pho/images/wb_images/image_1236920238.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.4455fairmont.info/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.4455fairmont.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.4455fairmont.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('1219867373').style.borderColor = '#ffffff';
document.getElementById('1806697673').style.borderColor = '#ffffff';
document.getElementById('609714396').style.borderColor = '#ffffff';
document.getElementById('690365231').style.borderColor = '#ffffff';
document.getElementById('1919912139').style.borderColor = '#ffffff';
document.getElementById('455513514').style.borderColor = '#ffffff';
document.getElementById('1896694365').style.borderColor = '#ffffff';
document.getElementById('1493148544').style.borderColor = '#ffffff';
document.getElementById('1540583964').style.borderColor = '#ffffff';
document.getElementById('1634792778').style.borderColor = '#ffffff';
document.getElementById('547645728').style.borderColor = '#ffffff';
document.getElementById('711443129').style.borderColor = '#ffffff';
document.getElementById('1236763864').style.borderColor = '#ffffff';
document.getElementById('368985653').style.borderColor = '#ffffff';
document.getElementById('575135483').style.borderColor = '#ffffff';
document.getElementById('1688999256').style.borderColor = '#ffffff';
document.getElementById('987921245').style.borderColor = '#ffffff';
document.getElementById('1213575686').style.borderColor = '#ffffff';
document.getElementById('364450055').style.borderColor = '#ffffff';
document.getElementById('79761283').style.borderColor = '#ffffff';
document.getElementById('257301011').style.borderColor = '#ffffff';
document.getElementById('1114027981').style.borderColor = '#ffffff';
document.getElementById('1800337626').style.borderColor = '#ffffff';
document.getElementById('919734447').style.borderColor = '#ffffff';
document.getElementById('1811231600').style.borderColor = '#ffffff';
document.getElementById('598090656').style.borderColor = '#ffffff';
document.getElementById('1560017852').style.borderColor = '#ffffff';
document.getElementById('115064340').style.borderColor = '#ffffff';
document.getElementById('857740862').style.borderColor = '#ffffff';
document.getElementById('1236920238').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;
}