var timenowrandimage85424 = 0;
var counttimerrandimage85424 = -1;
var counttimerlrandimage85424 = counttimerrandimage85424;
var timesetrandimage85424 = 5;
var nimagerandimage85424 = new Image;
var imagesrandimage85424 = new Array('http://www.cgiconnection.com/randimage4/images/home2.jpg','http://www.cgiconnection.com/randimage4/images/home5.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home3.jpg');
var urlsrandimage85424 = new Array('http://','http://','http://','http://','http://');
var timesrandimage85424 = new Array('','','','','');
var newwinsrandimage85424 = new Array('','','','','');
var footersrandimage85424 = new Array('house 2','house 5','house 1','house 4','house 3');
var timerrandimage85424;
var timerfrandimage85424;
var i = 0;
var preloadimgrandimage85424 = 1;
var footerrandimage85424 = '';
var statusrandimage85424 = '';
var floatidrandimage85424 = 0;
var zoomidrandimage85424 = 0;
var carrandimage85424 = 0;
var fadeSpeedrandimage85424 = 18;
var outTime = 2100 - (fadeSpeedrandimage85424 * 35);
var objrandimage85424;
var opacityrandimage85424;
var nsrandimage85424 = document.layers;
var ierandimage85424 = document.all;
var fadeinvalrandimage85424 = "";
var fadeoutvalrandimage85424 = "";
var sliderandimage85424 = 1;
var zfrandimage85424 = 0.05;
var ztrandimage85424 = 500;
var wcrandimage85424;
var Elemrandimage85424;
var yPosrandimage85424 = 0;
var xPosrandimage85424 = 0;
var xPostrandimage85424 = 0;
var yPostrandimage85424 = 0;
var gsrandimage85424 = "";
if (preloadimgrandimage85424 == 1)
{
for(i=0; i < imagesrandimage85424.length; i++)
{
nimagerandimage85424.src = imagesrandimage85424[i];
}
}
function setOpacrandimage85424(objrandimage85424, opacityrandimage85424) {
opacityrandimage85424 = (opacityrandimage85424 == 100)?99.999:opacityrandimage85424;
if (nsrandimage85424)
{
objrandimage85424.style.MozOpacity = opacityrandimage85424/100;
}
else if (ierandimage85424)
{
objrandimage85424.style.filter = "alpha(opacity:"+opacityrandimage85424+")";
}
else
{
objrandimage85424.style.opacity = opacityrandimage85424/100;
}
}
function fadeInrandimage85424(objIdrandimage85424,opacityrandimage85424) {
if (document.getElementById) {
objrandimage85424 = document.getElementById(objIdrandimage85424);
if (opacityrandimage85424 <= 100) {
setOpacrandimage85424(objrandimage85424, opacityrandimage85424);
opacityrandimage85424 += fadeSpeedrandimage85424;
window.setTimeout("fadeInrandimage85424('" + objIdrandimage85424 +"',"+opacityrandimage85424+")", 100);
}
else
{
setOpacrandimage85424(objrandimage85424, 100);
}
}
}
function fadeOutrandimage85424(objIdrandimage85424,opacityrandimage85424) {
if (document.getElementById) {
objrandimage85424 = document.getElementById(objIdrandimage85424);
if (opacityrandimage85424 >= 0) {
setOpacrandimage85424(objrandimage85424, opacityrandimage85424);
opacityrandimage85424 = opacityrandimage85424 - fadeSpeedrandimage85424;
window.setTimeout("fadeOutrandimage85424('" + objIdrandimage85424 +"',"+opacityrandimage85424+")", 100);
}
else
{
setOpacrandimage85424(objrandimage85424, 0);
}
}
}
function changeTextrandimage85424(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage85424 + '
';
}
document.write('');
if (floatidrandimage85424 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage85424 == 1)
{
document.write('');
}
if (sliderandimage85424 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage85424 != 1 && carrandimage85424 != 1)
{
if (zoomidrandimage85424 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write('');
document.write(' |
');
}
if (sliderandimage85424 == 1 || carrandimage85424 == 1)
{
document.write('' + footerrandimage85424 + ' |
');
}
else
{
document.write(' |
');
}
document.write('<< >> |
');
document.write('');
document.write('
');
if (floatidrandimage85424 == 1)
{
document.write('
');
}
var imageIdrandimage85424 = 'randimage85424';
var imageElemrandimage85424 = document.getElementById(imageIdrandimage85424);
var tempURLnum;
function go_urlrandimage85424(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage85424;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL85424 = 0;
if (tempURLnum > 0)
{
counttimerrandimage85424 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage85424[counttimerrandimage85424];
mySRC = imagesrandimage85424[counttimerrandimage85424];
isNew = newwinsrandimage85424[counttimerrandimage85424];
}
if (myURL != "" && myURL != "http://")
{
if (recURL85424 == 1)
{
myURL = mainURL + '?filename=homes_slide&gourl=' + escape(myURL) + '&img=' + escape(mySRC);
}
if (isNew == "Y")
{
window.open(myURL,'RandomImage','resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,width=790,height=550,top=10,left=10');
}
else
{
location.href = myURL;
}
}
}
function go_backrandimage85424() {
clearTimeout(timerfrandimage85424);
window.status = statusrandimage85424;
counttimerlrandimage85424 = counttimerrandimage85424;
counttimerrandimage85424 = counttimerrandimage85424 - 1;
begin_imagerandimage85424(1);
}
function go_nextrandimage85424() {
clearTimeout(timerfrandimage85424);
window.status = statusrandimage85424;
counttimerlrandimage85424 = counttimerrandimage85424;
counttimerrandimage85424++;
begin_imagerandimage85424(1);
}
function begin_imagerandimage85424(doit) {
if (counttimerrandimage85424 >= (imagesrandimage85424.length - 1))
{
if (doit < 1)
{
counttimerrandimage85424 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage85424++;
}
}
if (counttimerrandimage85424 < 0 && doit == 1)
{
counttimerrandimage85424 = imagesrandimage85424.length - 1;
}
if (counttimerrandimage85424 > (imagesrandimage85424.length - 1) && doit == 1)
{
counttimerrandimage85424 = 0;
}
var tempTime = timesrandimage85424[counttimerrandimage85424];
if (tempTime < 1)
{
tempTime = timesetrandimage85424;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage85424 == 'Y')
{
setOpacrandimage85424(imageElemrandimage85424, 0);
}
if (fadeinvalrandimage85424 == '' && fadeoutvalrandimage85424 == 'Y')
{
setOpacrandimage85424(imageElemrandimage85424, 100);
}
nimagerandimage85424.src = imagesrandimage85424[counttimerrandimage85424];
document.randimage85424.src = nimagerandimage85424.src;
changeTextrandimage85424("divtextrandimage85424",footersrandimage85424[counttimerrandimage85424]);
if (fadeinvalrandimage85424 == 'Y')
{
fadeInrandimage85424(imageIdrandimage85424,0);
}
if (fadeoutvalrandimage85424 == 'Y')
{
timerfrandimage85424 = setTimeout('fadeOutrandimage85424(imageIdrandimage85424,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage85424);
timerrandimage85424 = setTimeout('begin_imagerandimage85424(0);', tempTime);
}
function dimsrandimage85424(Elemrandimage85424) {
var ns4 = document.layers;
var op5 = (navigator.userAgent.indexOf("Opera 5")!=-1) ||(navigator.userAgent.indexOf("Opera/5")!=-1);
var op6 = (navigator.userAgent.indexOf("Opera 6")!=-1) ||(navigator.userAgent.indexOf("Opera/6")!=-1);
var agt=navigator.userAgent.toLowerCase();
var mac = (agt.indexOf("mac")!=-1);
var ie = (agt.indexOf("msie") != -1);
var mac_ie = mac && ie;
if (xPosrandimage85424 > 0)
{
xPostrandimage85424 = xPosrandimage85424;
yPostrandimage85424 = yPosrandimage85424;
wcrandimage85424.style.width = xPosrandimage85424;
wcrandimage85424.style.height = yPosrandimage85424;
}
if (ns4) {
var Elemrandimage85424 = getObjNN4(document, Elemrandimage85424);
yPosrandimage85424 = Elemrandimage85424.clip.height;
xPosrandimage85424 = Elemrandimage85424.clip.width;
return;
}
else {
var Elemrandimage85424;
if(document.getElementById) {
var Elemrandimage85424 = document.getElementById(Elemrandimage85424);
}
else if (document.all) {
var Elemrandimage85424 = document.all[Elemrandimage85424];
}
}
if (op5) {
yPosrandimage85424 = Elemrandimage85424.style.pixelHeight;
xPosrandimage85424 = Elemrandimage85424.style.pixelWidth;
}
else {
yPosrandimage85424 = Elemrandimage85424.offsetHeight;
xPosrandimage85424 = Elemrandimage85424.offsetWidth;
}
}
function znrandimage85424() {
clearTimeout(timerrandimage85424);
clearTimeout(timerfrandimage85424);
czrandimage85424();
if (xPosrandimage85424 > 0)
{
wcrandimage85424.style.width = xPosrandimage85424;
wcrandimage85424.style.height = yPosrandimage85424;
}
dimsrandimage85424("randimage85424");
window.status=statusrandimage85424;
zoomrandimage85424(xPosrandimage85424,yPosrandimage85424,'randimage85424','in');
timerrandimage85424 = setTimeout("czrandimage85424();", ztrandimage85424);
}
function zbrandimage85424() {
xPostrandimage85424 = xPosrandimage85424;
yPostrandimage85424 = yPosrandimage85424;
clearTimeout(timerrandimage85424);
czrandimage85424();
setOpacrandimage85424(imageElemrandimage85424, 100);
zoomrandimage85424(xPosrandimage85424,yPosrandimage85424,'randimage85424','out');
timerrandimage85424 = setTimeout('begin_imagerandimage85424(0);', counttimerlrandimage85424);
}
function zhrandimage85424(){
if (gsrandimage85424 == "out" && (xPostrandimage85424 < xPosrandimage85424 || yPostrandimage85424 < yPosrandimage85424))
{
setOpacrandimage85424(imageElemrandimage85424, 100);
xPostrandimage85424 = xPosrandimage85424;
yPostrandimage85424 = yPosrandimage85424;
wcrandimage85424.style.width = xPosrandimage85424;
wcrandimage85424.style.height = yPosrandimage85424;
gsrandimage85424 = "";
czrandimage85424();
return;
}
if (parseInt(wcrandimage85424.style.width)>10&&parseInt(wcrandimage85424.style.height)>10)
{
xPostrandimage85424 = parseInt(wcrandimage85424.style.width) + parseInt(wcrandimage85424.style.width) * zfrandimage85424 * pfrandimage85424;
yPostrandimage85424 = parseInt(wcrandimage85424.style.height) + parseInt(wcrandimage85424.style.height) * zfrandimage85424 * pfrandimage85424;
wcrandimage85424.style.width = xPostrandimage85424;
wcrandimage85424.style.height = yPostrandimage85424;
}
}
function zoomrandimage85424(originalW, originalH, what, state){
gsrandimage85424 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage85424 = eval("document.images."+what);
pfrandimage85424 = (state=="in")? 1 : -1;
if (wcrandimage85424.style.width=="")
{
wcrandimage85424.style.width=originalW;
wcrandimage85424.style.height=originalH;
}
if (state=="restore"){
xPostrandimage85424 = xPosrandimage85424;
yPostrandimage85424 = yPosrandimage85424;
wcrandimage85424.style.width=originalW;
wcrandimage85424.style.height=originalH;
czrandimage85424();
return;
}
else
{
zhrandimage85424();
}
bzrandimage85424 = setInterval("zhrandimage85424()",100);
}
function czrandimage85424(){
if (window.bzrandimage85424) {
if (gsrandimage85424 != "in" && (xPostrandimage85424 != xPosrandimage85424 || yPostrandimage85424 != yPosrandimage85424))
{
xPostrandimage85424 = xPosrandimage85424;
yPostrandimage85424 = yPosrandimage85424;
wcrandimage85424.style.width = xPosrandimage85424;
wcrandimage85424.style.height = yPosrandimage85424;
gsrandimage85424 = "";
}
clearInterval(bzrandimage85424);
}
}
var slidespeed85424 = 1;
var lefttime85424;
var startOne85424 = 0;
var whichOne;
var tempcount2 = 0;
var tempFooter;
var tempLine = "";
var finalslide='';
var spacecount = 0;
var imagegap85424 = "";
for (spacecount = 0; spacecount < 5; spacecount++)
{
imagegap85424 += " ";
}
var slideshowgap = 0;
var leftrightslide85424 = "";
leftrightslide85424 = '';
for (tempcount2 = 0; tempcount2 < imagesrandimage85424.length; tempcount2++)
{
var tempcount3 = tempcount2 + 1;
tempFooter = footersrandimage85424[tempcount2];
tempLine = '' + imagegap85424 + ' ' + tempFooter + ' | ';
leftrightslide85424 += tempLine;
}
leftrightslide85424 += '
';
var copyspeed85424 = slidespeed85424;
var iedom85424 = document.all||document.getElementById;
var actualwidth85424='';
var cross_slide85424, ns_slide85424;
if (iedom85424) {
document.write(''+ leftrightslide85424 +'');
}
function fillup85424(whichOne){
if (iedom85424){
cross_slide85424 = document.getElementById? document.getElementById("test285424") : document.all.test285424;
cross_slide285424 = document.getElementById? document.getElementById("test385424") : document.all.test385424;
cross_slide85424.innerHTML=cross_slide285424.innerHTML=leftrightslide85424;
actualwidth85424 = document.all? cross_slide85424.offsetWidth : document.getElementById("temp").offsetWidth;
cross_slide285424.style.left = actualwidth85424 + slideshowgap+"px";
}
else if (document.layers){
ns_slide85424=document.ns_slidemenu.document.ns_slidemenu2;
ns_slide285424=document.ns_slidemenu.document.ns_slidemenu3;
ns_slide85424.document.write(leftrightslide85424);
ns_slide85424.document.close();
actualwidth85424 = ns_slide85424.document.width;
ns_slide285424.left = actualwidth85424 + slideshowgap;
ns_slide285424.document.write(leftrightslide85424);
ns_slide285424.document.close();
}
if (startOne85424 == 0)
{
startIt85424(0);
}
else
{
startIt85424(1);
}
}
function startIt85424(whichOne) {
if (whichOne == 0)
{
clearInterval(lefttime85424);
lefttime85424 = setInterval("slideleft85424()",30);
}
else
{
clearInterval(lefttime85424);
lefttime85424 = setInterval("slideright85424()",30);
}
}
function slideright85424(){
if (iedom85424){
if (parseInt(cross_slide85424.style.left)<(actualwidth85424 * (1)+8)) {
cross_slide85424.style.left=parseInt(cross_slide85424.style.left) + copyspeed85424 + "px";
}
else {
cross_slide85424.style.left=parseInt(cross_slide285424.style.left)- actualwidth85424 - slideshowgap+"px";
}
if (parseInt(cross_slide285424.style.left)<(actualwidth85424 * (1)+8)) {
cross_slide285424.style.left=parseInt(cross_slide285424.style.left)+ copyspeed85424 +"px";
}
else {
cross_slide285424.style.left=parseInt(cross_slide85424.style.left) - actualwidth85424 - slideshowgap+"px";
}
}
else if (document.layers){
if (ns_slide85424.left>(actualwidth85424 * (-1)+8)) {
ns_slide85424.left-=copyspeed85424;
}
else {
ns_slide85424.left=ns_slide285424.left + actualwidth85424 + slideshowgap;
}
if (ns_slide285424.left>(actualwidth85424 *(-1)+8)) {
ns_slide285424.left-=copyspeed85424;
}
else {
ns_slide285424.left=ns_slide85424.left+actualwidth85424 +slideshowgap;
}
}
}
function slideleft85424(){
if (iedom85424){
if (parseInt(cross_slide85424.style.left)>(actualwidth85424 *(-1)+8))
cross_slide85424.style.left=parseInt(cross_slide85424.style.left) - copyspeed85424 +"px"
else
cross_slide85424.style.left=parseInt(cross_slide285424.style.left)+actualwidth85424 +slideshowgap+"px"
if (parseInt(cross_slide285424.style.left)>(actualwidth85424 *(-1)+8))
cross_slide285424.style.left=parseInt(cross_slide285424.style.left)- copyspeed85424 +"px"
else
cross_slide285424.style.left=parseInt(cross_slide85424.style.left)+actualwidth85424 +slideshowgap+"px"
}
else if (document.layers){
if (ns_slide85424.left>(actualwidth85424 *(-1)+8))
ns_slide85424.left-=copyspeed85424
else
ns_slide85424.left=ns_slide285424.left+actualwidth85424 +slideshowgap
if (ns_slide285424.left>(actualwidth85424 *(-1)+8))
ns_slide285424.left-=copyspeed85424
else
ns_slide285424.left=ns_slide85424.left+actualwidth85424 +slideshowgap
}
}
setTimeout('fillup85424();', 100);