var slidespeed=3000;
var slideimages=new Array('image_1252265768.jpg', 'image_1143225499.jpg', 'image_1852099651.jpg', 'image_382190892.jpg', 'image_77218201.jpg', 'image_1017645845.jpg', 'image_1357515783.jpg', 'image_775037769.jpg', 'image_1229744606.jpg', 'image_985688692.jpg', 'image_1970949587.jpg', 'image_998097757.jpg', 'image_93767123.jpg', 'image_585712180.jpg', 'image_92252705.jpg', 'image_2056011863.jpg', 'image_1578516876.jpg', 'image_850897951.jpg', 'image_225098704.jpg', 'image_334165937.jpg', 'image_3436478.jpg', 'image_540585182.jpg', 'image_1942956810.jpg', 'image_1581927149.jpg', 'image_2029749614.jpg')
var slideimg=new Array('1252265768', '1143225499', '1852099651', '382190892', '77218201', '1017645845', '1357515783', '775037769', '1229744606', '985688692', '1970949587', '998097757', '93767123', '585712180', '92252705', '2056011863', '1578516876', '850897951', '225098704', '334165937', '3436478', '540585182', '1942956810', '1581927149', '2029749614')
var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
var slideimgPath=new Array('http://imgsvr1252265768.preferredhomesonline.com/components/com_pho/images/wb_images/image_1252265768.jpg', 'http://imgsvr1143225499.preferredhomesonline.com/components/com_pho/images/wb_images/image_1143225499.jpg', 'http://imgsvr1852099651.preferredhomesonline.com/components/com_pho/images/wb_images/image_1852099651.jpg', 'http://imgsvr382190892.preferredhomesonline.com/components/com_pho/images/wb_images/image_382190892.jpg', 'http://imgsvr77218201.preferredhomesonline.com/components/com_pho/images/wb_images/image_77218201.jpg', 'http://imgsvr1017645845.preferredhomesonline.com/components/com_pho/images/wb_images/image_1017645845.jpg', 'http://imgsvr1357515783.preferredhomesonline.com/components/com_pho/images/wb_images/image_1357515783.jpg', 'http://imgsvr775037769.preferredhomesonline.com/components/com_pho/images/wb_images/image_775037769.jpg', 'http://imgsvr1229744606.preferredhomesonline.com/components/com_pho/images/wb_images/image_1229744606.jpg', 'http://imgsvr985688692.preferredhomesonline.com/components/com_pho/images/wb_images/image_985688692.jpg', 'http://imgsvr1970949587.preferredhomesonline.com/components/com_pho/images/wb_images/image_1970949587.jpg', 'http://imgsvr998097757.preferredhomesonline.com/components/com_pho/images/wb_images/image_998097757.jpg', 'http://imgsvr93767123.preferredhomesonline.com/components/com_pho/images/wb_images/image_93767123.jpg', 'http://imgsvr585712180.preferredhomesonline.com/components/com_pho/images/wb_images/image_585712180.jpg', 'http://imgsvr92252705.preferredhomesonline.com/components/com_pho/images/wb_images/image_92252705.jpg', 'http://imgsvr2056011863.preferredhomesonline.com/components/com_pho/images/wb_images/image_2056011863.jpg', 'http://imgsvr1578516876.preferredhomesonline.com/components/com_pho/images/wb_images/image_1578516876.jpg', 'http://imgsvr850897951.preferredhomesonline.com/components/com_pho/images/wb_images/image_850897951.jpg', 'http://imgsvr225098704.preferredhomesonline.com/components/com_pho/images/wb_images/image_225098704.jpg', 'http://imgsvr334165937.preferredhomesonline.com/components/com_pho/images/wb_images/image_334165937.jpg', 'http://imgsvr3436478.preferredhomesonline.com/components/com_pho/images/wb_images/image_3436478.jpg', 'http://imgsvr540585182.preferredhomesonline.com/components/com_pho/images/wb_images/image_540585182.jpg', 'http://imgsvr1942956810.preferredhomesonline.com/components/com_pho/images/wb_images/image_1942956810.jpg', 'http://imgsvr1581927149.preferredhomesonline.com/components/com_pho/images/wb_images/image_1581927149.jpg', 'http://imgsvr2029749614.preferredhomesonline.com/components/com_pho/images/wb_images/image_2029749614.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.1550grantland.info/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.1550grantland.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.1550grantland.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('1252265768').style.borderColor = '#000000';
document.getElementById('1143225499').style.borderColor = '#000000';
document.getElementById('1852099651').style.borderColor = '#000000';
document.getElementById('382190892').style.borderColor = '#000000';
document.getElementById('77218201').style.borderColor = '#000000';
document.getElementById('1017645845').style.borderColor = '#000000';
document.getElementById('1357515783').style.borderColor = '#000000';
document.getElementById('775037769').style.borderColor = '#000000';
document.getElementById('1229744606').style.borderColor = '#000000';
document.getElementById('985688692').style.borderColor = '#000000';
document.getElementById('1970949587').style.borderColor = '#000000';
document.getElementById('998097757').style.borderColor = '#000000';
document.getElementById('93767123').style.borderColor = '#000000';
document.getElementById('585712180').style.borderColor = '#000000';
document.getElementById('92252705').style.borderColor = '#000000';
document.getElementById('2056011863').style.borderColor = '#000000';
document.getElementById('1578516876').style.borderColor = '#000000';
document.getElementById('850897951').style.borderColor = '#000000';
document.getElementById('225098704').style.borderColor = '#000000';
document.getElementById('334165937').style.borderColor = '#000000';
document.getElementById('3436478').style.borderColor = '#000000';
document.getElementById('540585182').style.borderColor = '#000000';
document.getElementById('1942956810').style.borderColor = '#000000';
document.getElementById('1581927149').style.borderColor = '#000000';
document.getElementById('2029749614').style.borderColor = '#000000';
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;
}