var slidespeed=3000;
var slideimages=new Array('image_1366810216.jpg', 'image_2144976306.jpg', 'image_1370504527.jpg', 'image_1473345719.jpg', 'image_2045866554.jpg', 'image_564446176.jpg', 'image_79041816.jpg', 'image_1551655483.jpg', 'image_1327538767.jpg', 'image_1930083917.jpg', 'image_858486626.jpg', 'image_1563077096.jpg', 'image_261124279.jpg', 'image_1122627028.jpg', 'image_1185139038.jpg', 'image_260686517.jpg', 'image_1669331999.jpg', 'image_416748405.jpg', 'image_275173578.jpg', 'image_1311455277.jpg', 'image_848001344.jpg', 'image_877667574.jpg', 'image_917542479.jpg', 'image_1653015521.jpg', 'image_1922228631.jpg', 'image_1365618662.jpg', 'image_755793406.jpg', 'image_1709215229.jpg', 'image_1590820322.jpg')
var slideimg=new Array('1366810216', '2144976306', '1370504527', '1473345719', '2045866554', '564446176', '79041816', '1551655483', '1327538767', '1930083917', '858486626', '1563077096', '261124279', '1122627028', '1185139038', '260686517', '1669331999', '416748405', '275173578', '1311455277', '848001344', '877667574', '917542479', '1653015521', '1922228631', '1365618662', '755793406', '1709215229', '1590820322')
var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
var slideimgPath=new Array('http://imgsvr1366810216.preferredhomesonline.com/components/com_pho/images/wb_images/image_1366810216.jpg', 'http://imgsvr2144976306.preferredhomesonline.com/components/com_pho/images/wb_images/image_2144976306.jpg', 'http://imgsvr1370504527.preferredhomesonline.com/components/com_pho/images/wb_images/image_1370504527.jpg', 'http://imgsvr1473345719.preferredhomesonline.com/components/com_pho/images/wb_images/image_1473345719.jpg', 'http://imgsvr2045866554.preferredhomesonline.com/components/com_pho/images/wb_images/image_2045866554.jpg', 'http://imgsvr564446176.preferredhomesonline.com/components/com_pho/images/wb_images/image_564446176.jpg', 'http://imgsvr79041816.preferredhomesonline.com/components/com_pho/images/wb_images/image_79041816.jpg', 'http://imgsvr1551655483.preferredhomesonline.com/components/com_pho/images/wb_images/image_1551655483.jpg', 'http://imgsvr1327538767.preferredhomesonline.com/components/com_pho/images/wb_images/image_1327538767.jpg', 'http://imgsvr1930083917.preferredhomesonline.com/components/com_pho/images/wb_images/image_1930083917.jpg', 'http://imgsvr858486626.preferredhomesonline.com/components/com_pho/images/wb_images/image_858486626.jpg', 'http://imgsvr1563077096.preferredhomesonline.com/components/com_pho/images/wb_images/image_1563077096.jpg', 'http://imgsvr261124279.preferredhomesonline.com/components/com_pho/images/wb_images/image_261124279.jpg', 'http://imgsvr1122627028.preferredhomesonline.com/components/com_pho/images/wb_images/image_1122627028.jpg', 'http://imgsvr1185139038.preferredhomesonline.com/components/com_pho/images/wb_images/image_1185139038.jpg', 'http://imgsvr260686517.preferredhomesonline.com/components/com_pho/images/wb_images/image_260686517.jpg', 'http://imgsvr1669331999.preferredhomesonline.com/components/com_pho/images/wb_images/image_1669331999.jpg', 'http://imgsvr416748405.preferredhomesonline.com/components/com_pho/images/wb_images/image_416748405.jpg', 'http://imgsvr275173578.preferredhomesonline.com/components/com_pho/images/wb_images/image_275173578.jpg', 'http://imgsvr1311455277.preferredhomesonline.com/components/com_pho/images/wb_images/image_1311455277.jpg', 'http://imgsvr848001344.preferredhomesonline.com/components/com_pho/images/wb_images/image_848001344.jpg', 'http://imgsvr877667574.preferredhomesonline.com/components/com_pho/images/wb_images/image_877667574.jpg', 'http://imgsvr917542479.preferredhomesonline.com/components/com_pho/images/wb_images/image_917542479.jpg', 'http://imgsvr1653015521.preferredhomesonline.com/components/com_pho/images/wb_images/image_1653015521.jpg', 'http://imgsvr1922228631.preferredhomesonline.com/components/com_pho/images/wb_images/image_1922228631.jpg', 'http://imgsvr1365618662.preferredhomesonline.com/components/com_pho/images/wb_images/image_1365618662.jpg', 'http://imgsvr755793406.preferredhomesonline.com/components/com_pho/images/wb_images/image_755793406.jpg', 'http://imgsvr1709215229.preferredhomesonline.com/components/com_pho/images/wb_images/image_1709215229.jpg', 'http://imgsvr1590820322.preferredhomesonline.com/components/com_pho/images/wb_images/image_1590820322.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.1197esalem.info/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.1197esalem.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.1197esalem.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('1366810216').style.borderColor = '#ffffff';
document.getElementById('2144976306').style.borderColor = '#ffffff';
document.getElementById('1370504527').style.borderColor = '#ffffff';
document.getElementById('1473345719').style.borderColor = '#ffffff';
document.getElementById('2045866554').style.borderColor = '#ffffff';
document.getElementById('564446176').style.borderColor = '#ffffff';
document.getElementById('79041816').style.borderColor = '#ffffff';
document.getElementById('1551655483').style.borderColor = '#ffffff';
document.getElementById('1327538767').style.borderColor = '#ffffff';
document.getElementById('1930083917').style.borderColor = '#ffffff';
document.getElementById('858486626').style.borderColor = '#ffffff';
document.getElementById('1563077096').style.borderColor = '#ffffff';
document.getElementById('261124279').style.borderColor = '#ffffff';
document.getElementById('1122627028').style.borderColor = '#ffffff';
document.getElementById('1185139038').style.borderColor = '#ffffff';
document.getElementById('260686517').style.borderColor = '#ffffff';
document.getElementById('1669331999').style.borderColor = '#ffffff';
document.getElementById('416748405').style.borderColor = '#ffffff';
document.getElementById('275173578').style.borderColor = '#ffffff';
document.getElementById('1311455277').style.borderColor = '#ffffff';
document.getElementById('848001344').style.borderColor = '#ffffff';
document.getElementById('877667574').style.borderColor = '#ffffff';
document.getElementById('917542479').style.borderColor = '#ffffff';
document.getElementById('1653015521').style.borderColor = '#ffffff';
document.getElementById('1922228631').style.borderColor = '#ffffff';
document.getElementById('1365618662').style.borderColor = '#ffffff';
document.getElementById('755793406').style.borderColor = '#ffffff';
document.getElementById('1709215229').style.borderColor = '#ffffff';
document.getElementById('1590820322').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;
}