var timenowrandimage56545 = 0;
var counttimerrandimage56545 = -1;
var counttimerlrandimage56545 = counttimerrandimage56545;
var timesetrandimage56545 = 5;
var nimagerandimage56545 = new Image;
var imagesrandimage56545 = new Array('http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home5.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home2.jpg');
var urlsrandimage56545 = new Array('http://','http://','http://','http://','http://');
var timesrandimage56545 = new Array('','','','','');
var newwinsrandimage56545 = new Array('','','','','');
var footersrandimage56545 = new Array('house 3','house 5','house 4','house 1','house 2');
var timerrandimage56545;
var timerfrandimage56545;
var i = 0;
var preloadimgrandimage56545 = 1;
var footerrandimage56545 = '';
var statusrandimage56545 = '';
var floatidrandimage56545 = 0;
var zoomidrandimage56545 = 0;
var carrandimage56545 = 0;
var fadeSpeedrandimage56545 = 18;
var outTime = 2100 - (fadeSpeedrandimage56545 * 35);
var objrandimage56545;
var opacityrandimage56545;
var nsrandimage56545 = document.layers;
var ierandimage56545 = document.all;
var fadeinvalrandimage56545 = "";
var fadeoutvalrandimage56545 = "";
var sliderandimage56545 = 1;
var zfrandimage56545 = 0.05;
var ztrandimage56545 = 500;
var wcrandimage56545;
var Elemrandimage56545;
var yPosrandimage56545 = 0;
var xPosrandimage56545 = 0;
var xPostrandimage56545 = 0;
var yPostrandimage56545 = 0;
var gsrandimage56545 = "";
if (preloadimgrandimage56545 == 1)
{
for(i=0; i < imagesrandimage56545.length; i++)
{
nimagerandimage56545.src = imagesrandimage56545[i];
}
}
function setOpacrandimage56545(objrandimage56545, opacityrandimage56545) {
opacityrandimage56545 = (opacityrandimage56545 == 100)?99.999:opacityrandimage56545;
if (nsrandimage56545)
{
objrandimage56545.style.MozOpacity = opacityrandimage56545/100;
}
else if (ierandimage56545)
{
objrandimage56545.style.filter = "alpha(opacity:"+opacityrandimage56545+")";
}
else
{
objrandimage56545.style.opacity = opacityrandimage56545/100;
}
}
function fadeInrandimage56545(objIdrandimage56545,opacityrandimage56545) {
if (document.getElementById) {
objrandimage56545 = document.getElementById(objIdrandimage56545);
if (opacityrandimage56545 <= 100) {
setOpacrandimage56545(objrandimage56545, opacityrandimage56545);
opacityrandimage56545 += fadeSpeedrandimage56545;
window.setTimeout("fadeInrandimage56545('" + objIdrandimage56545 +"',"+opacityrandimage56545+")", 100);
}
else
{
setOpacrandimage56545(objrandimage56545, 100);
}
}
}
function fadeOutrandimage56545(objIdrandimage56545,opacityrandimage56545) {
if (document.getElementById) {
objrandimage56545 = document.getElementById(objIdrandimage56545);
if (opacityrandimage56545 >= 0) {
setOpacrandimage56545(objrandimage56545, opacityrandimage56545);
opacityrandimage56545 = opacityrandimage56545 - fadeSpeedrandimage56545;
window.setTimeout("fadeOutrandimage56545('" + objIdrandimage56545 +"',"+opacityrandimage56545+")", 100);
}
else
{
setOpacrandimage56545(objrandimage56545, 0);
}
}
}
function changeTextrandimage56545(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage56545 + '
';
}
document.write('');
if (floatidrandimage56545 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage56545 == 1)
{
document.write('');
}
if (sliderandimage56545 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage56545 != 1 && carrandimage56545 != 1)
{
if (zoomidrandimage56545 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write(' ');
document.write(' |
');
}
if (sliderandimage56545 == 1 || carrandimage56545 == 1)
{
document.write('' + footerrandimage56545 + ' |
');
}
else
{
document.write(' |
');
}
document.write('| << >> |
');
document.write('');
document.write('
');
if (floatidrandimage56545 == 1)
{
document.write('
');
}
var imageIdrandimage56545 = 'randimage56545';
var imageElemrandimage56545 = document.getElementById(imageIdrandimage56545);
var tempURLnum;
function go_urlrandimage56545(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage56545;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL56545 = 0;
if (tempURLnum > 0)
{
counttimerrandimage56545 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage56545[counttimerrandimage56545];
mySRC = imagesrandimage56545[counttimerrandimage56545];
isNew = newwinsrandimage56545[counttimerrandimage56545];
}
if (myURL != "" && myURL != "http://")
{
if (recURL56545 == 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_backrandimage56545() {
clearTimeout(timerfrandimage56545);
window.status = statusrandimage56545;
counttimerlrandimage56545 = counttimerrandimage56545;
counttimerrandimage56545 = counttimerrandimage56545 - 1;
begin_imagerandimage56545(1);
}
function go_nextrandimage56545() {
clearTimeout(timerfrandimage56545);
window.status = statusrandimage56545;
counttimerlrandimage56545 = counttimerrandimage56545;
counttimerrandimage56545++;
begin_imagerandimage56545(1);
}
function begin_imagerandimage56545(doit) {
if (counttimerrandimage56545 >= (imagesrandimage56545.length - 1))
{
if (doit < 1)
{
counttimerrandimage56545 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage56545++;
}
}
if (counttimerrandimage56545 < 0 && doit == 1)
{
counttimerrandimage56545 = imagesrandimage56545.length - 1;
}
if (counttimerrandimage56545 > (imagesrandimage56545.length - 1) && doit == 1)
{
counttimerrandimage56545 = 0;
}
var tempTime = timesrandimage56545[counttimerrandimage56545];
if (tempTime < 1)
{
tempTime = timesetrandimage56545;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage56545 == 'Y')
{
setOpacrandimage56545(imageElemrandimage56545, 0);
}
if (fadeinvalrandimage56545 == '' && fadeoutvalrandimage56545 == 'Y')
{
setOpacrandimage56545(imageElemrandimage56545, 100);
}
nimagerandimage56545.src = imagesrandimage56545[counttimerrandimage56545];
document.randimage56545.src = nimagerandimage56545.src;
changeTextrandimage56545("divtextrandimage56545",footersrandimage56545[counttimerrandimage56545]);
if (fadeinvalrandimage56545 == 'Y')
{
fadeInrandimage56545(imageIdrandimage56545,0);
}
if (fadeoutvalrandimage56545 == 'Y')
{
timerfrandimage56545 = setTimeout('fadeOutrandimage56545(imageIdrandimage56545,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage56545);
timerrandimage56545 = setTimeout('begin_imagerandimage56545(0);', tempTime);
}
function dimsrandimage56545(Elemrandimage56545) {
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 (xPosrandimage56545 > 0)
{
xPostrandimage56545 = xPosrandimage56545;
yPostrandimage56545 = yPosrandimage56545;
wcrandimage56545.style.width = xPosrandimage56545;
wcrandimage56545.style.height = yPosrandimage56545;
}
if (ns4) {
var Elemrandimage56545 = getObjNN4(document, Elemrandimage56545);
yPosrandimage56545 = Elemrandimage56545.clip.height;
xPosrandimage56545 = Elemrandimage56545.clip.width;
return;
}
else {
var Elemrandimage56545;
if(document.getElementById) {
var Elemrandimage56545 = document.getElementById(Elemrandimage56545);
}
else if (document.all) {
var Elemrandimage56545 = document.all[Elemrandimage56545];
}
}
if (op5) {
yPosrandimage56545 = Elemrandimage56545.style.pixelHeight;
xPosrandimage56545 = Elemrandimage56545.style.pixelWidth;
}
else {
yPosrandimage56545 = Elemrandimage56545.offsetHeight;
xPosrandimage56545 = Elemrandimage56545.offsetWidth;
}
}
function znrandimage56545() {
clearTimeout(timerrandimage56545);
clearTimeout(timerfrandimage56545);
czrandimage56545();
if (xPosrandimage56545 > 0)
{
wcrandimage56545.style.width = xPosrandimage56545;
wcrandimage56545.style.height = yPosrandimage56545;
}
dimsrandimage56545("randimage56545");
window.status=statusrandimage56545;
zoomrandimage56545(xPosrandimage56545,yPosrandimage56545,'randimage56545','in');
timerrandimage56545 = setTimeout("czrandimage56545();", ztrandimage56545);
}
function zbrandimage56545() {
xPostrandimage56545 = xPosrandimage56545;
yPostrandimage56545 = yPosrandimage56545;
clearTimeout(timerrandimage56545);
czrandimage56545();
setOpacrandimage56545(imageElemrandimage56545, 100);
zoomrandimage56545(xPosrandimage56545,yPosrandimage56545,'randimage56545','out');
timerrandimage56545 = setTimeout('begin_imagerandimage56545(0);', counttimerlrandimage56545);
}
function zhrandimage56545(){
if (gsrandimage56545 == "out" && (xPostrandimage56545 < xPosrandimage56545 || yPostrandimage56545 < yPosrandimage56545))
{
setOpacrandimage56545(imageElemrandimage56545, 100);
xPostrandimage56545 = xPosrandimage56545;
yPostrandimage56545 = yPosrandimage56545;
wcrandimage56545.style.width = xPosrandimage56545;
wcrandimage56545.style.height = yPosrandimage56545;
gsrandimage56545 = "";
czrandimage56545();
return;
}
if (parseInt(wcrandimage56545.style.width)>10&&parseInt(wcrandimage56545.style.height)>10)
{
xPostrandimage56545 = parseInt(wcrandimage56545.style.width) + parseInt(wcrandimage56545.style.width) * zfrandimage56545 * pfrandimage56545;
yPostrandimage56545 = parseInt(wcrandimage56545.style.height) + parseInt(wcrandimage56545.style.height) * zfrandimage56545 * pfrandimage56545;
wcrandimage56545.style.width = xPostrandimage56545;
wcrandimage56545.style.height = yPostrandimage56545;
}
}
function zoomrandimage56545(originalW, originalH, what, state){
gsrandimage56545 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage56545 = eval("document.images."+what);
pfrandimage56545 = (state=="in")? 1 : -1;
if (wcrandimage56545.style.width=="")
{
wcrandimage56545.style.width=originalW;
wcrandimage56545.style.height=originalH;
}
if (state=="restore"){
xPostrandimage56545 = xPosrandimage56545;
yPostrandimage56545 = yPosrandimage56545;
wcrandimage56545.style.width=originalW;
wcrandimage56545.style.height=originalH;
czrandimage56545();
return;
}
else
{
zhrandimage56545();
}
bzrandimage56545 = setInterval("zhrandimage56545()",100);
}
function czrandimage56545(){
if (window.bzrandimage56545) {
if (gsrandimage56545 != "in" && (xPostrandimage56545 != xPosrandimage56545 || yPostrandimage56545 != yPosrandimage56545))
{
xPostrandimage56545 = xPosrandimage56545;
yPostrandimage56545 = yPosrandimage56545;
wcrandimage56545.style.width = xPosrandimage56545;
wcrandimage56545.style.height = yPosrandimage56545;
gsrandimage56545 = "";
}
clearInterval(bzrandimage56545);
}
}
var slidespeed56545 = 1;
var lefttime56545;
var startOne56545 = 0;
var whichOne;
var tempcount2 = 0;
var tempFooter;
var tempLine = "";
var finalslide='';
var spacecount = 0;
var imagegap56545 = "";
for (spacecount = 0; spacecount < 5; spacecount++)
{
imagegap56545 += " ";
}
var slideshowgap = 0;
var leftrightslide56545 = "";
leftrightslide56545 = '';
for (tempcount2 = 0; tempcount2 < imagesrandimage56545.length; tempcount2++)
{
var tempcount3 = tempcount2 + 1;
tempFooter = footersrandimage56545[tempcount2];
tempLine = ' ' + imagegap56545 + ' ' + tempFooter + ' | ';
leftrightslide56545 += tempLine;
}
leftrightslide56545 += '
';
var copyspeed56545 = slidespeed56545;
var iedom56545 = document.all||document.getElementById;
var actualwidth56545='';
var cross_slide56545, ns_slide56545;
if (iedom56545) {
document.write(''+ leftrightslide56545 +'');
}
function fillup56545(whichOne){
if (iedom56545){
cross_slide56545 = document.getElementById? document.getElementById("test256545") : document.all.test256545;
cross_slide256545 = document.getElementById? document.getElementById("test356545") : document.all.test356545;
cross_slide56545.innerHTML=cross_slide256545.innerHTML=leftrightslide56545;
actualwidth56545 = document.all? cross_slide56545.offsetWidth : document.getElementById("temp").offsetWidth;
cross_slide256545.style.left = actualwidth56545 + slideshowgap+"px";
}
else if (document.layers){
ns_slide56545=document.ns_slidemenu.document.ns_slidemenu2;
ns_slide256545=document.ns_slidemenu.document.ns_slidemenu3;
ns_slide56545.document.write(leftrightslide56545);
ns_slide56545.document.close();
actualwidth56545 = ns_slide56545.document.width;
ns_slide256545.left = actualwidth56545 + slideshowgap;
ns_slide256545.document.write(leftrightslide56545);
ns_slide256545.document.close();
}
if (startOne56545 == 0)
{
startIt56545(0);
}
else
{
startIt56545(1);
}
}
function startIt56545(whichOne) {
if (whichOne == 0)
{
clearInterval(lefttime56545);
lefttime56545 = setInterval("slideleft56545()",30);
}
else
{
clearInterval(lefttime56545);
lefttime56545 = setInterval("slideright56545()",30);
}
}
function slideright56545(){
if (iedom56545){
if (parseInt(cross_slide56545.style.left)<(actualwidth56545 * (1)+8)) {
cross_slide56545.style.left=parseInt(cross_slide56545.style.left) + copyspeed56545 + "px";
}
else {
cross_slide56545.style.left=parseInt(cross_slide256545.style.left)- actualwidth56545 - slideshowgap+"px";
}
if (parseInt(cross_slide256545.style.left)<(actualwidth56545 * (1)+8)) {
cross_slide256545.style.left=parseInt(cross_slide256545.style.left)+ copyspeed56545 +"px";
}
else {
cross_slide256545.style.left=parseInt(cross_slide56545.style.left) - actualwidth56545 - slideshowgap+"px";
}
}
else if (document.layers){
if (ns_slide56545.left>(actualwidth56545 * (-1)+8)) {
ns_slide56545.left-=copyspeed56545;
}
else {
ns_slide56545.left=ns_slide256545.left + actualwidth56545 + slideshowgap;
}
if (ns_slide256545.left>(actualwidth56545 *(-1)+8)) {
ns_slide256545.left-=copyspeed56545;
}
else {
ns_slide256545.left=ns_slide56545.left+actualwidth56545 +slideshowgap;
}
}
}
function slideleft56545(){
if (iedom56545){
if (parseInt(cross_slide56545.style.left)>(actualwidth56545 *(-1)+8))
cross_slide56545.style.left=parseInt(cross_slide56545.style.left) - copyspeed56545 +"px"
else
cross_slide56545.style.left=parseInt(cross_slide256545.style.left)+actualwidth56545 +slideshowgap+"px"
if (parseInt(cross_slide256545.style.left)>(actualwidth56545 *(-1)+8))
cross_slide256545.style.left=parseInt(cross_slide256545.style.left)- copyspeed56545 +"px"
else
cross_slide256545.style.left=parseInt(cross_slide56545.style.left)+actualwidth56545 +slideshowgap+"px"
}
else if (document.layers){
if (ns_slide56545.left>(actualwidth56545 *(-1)+8))
ns_slide56545.left-=copyspeed56545
else
ns_slide56545.left=ns_slide256545.left+actualwidth56545 +slideshowgap
if (ns_slide256545.left>(actualwidth56545 *(-1)+8))
ns_slide256545.left-=copyspeed56545
else
ns_slide256545.left=ns_slide56545.left+actualwidth56545 +slideshowgap
}
}
setTimeout('fillup56545();', 100);