var timenowrandimage3700 = 0;
var counttimerrandimage3700 = -1;
var counttimerlrandimage3700 = counttimerrandimage3700;
var timesetrandimage3700 = 5;
var nimagerandimage3700 = new Image;
var imagesrandimage3700 = new Array('http://www.cgiconnection.com/randimage4/images/home2.jpg','http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home5.jpg');
var urlsrandimage3700 = new Array('http://','http://','http://','http://','http://');
var timesrandimage3700 = new Array('','','','','');
var newwinsrandimage3700 = new Array('','','','','');
var footersrandimage3700 = new Array('house 2','house 3','house 1','house 4','house 5');
var timerrandimage3700;
var timerfrandimage3700;
var i = 0;
var preloadimgrandimage3700 = 1;
var footerrandimage3700 = '
House Carousel';
var statusrandimage3700 = '';
var floatidrandimage3700 = 0;
var zoomidrandimage3700 = 0;
var carrandimage3700 = 1;
var fadeSpeedrandimage3700 = 18;
var outTime = 2100 - (fadeSpeedrandimage3700 * 35);
var objrandimage3700;
var opacityrandimage3700;
var nsrandimage3700 = document.layers;
var ierandimage3700 = document.all;
var fadeinvalrandimage3700 = "";
var fadeoutvalrandimage3700 = "";
var sliderandimage3700 = 0;
var zfrandimage3700 = 0.05;
var ztrandimage3700 = 500;
var wcrandimage3700;
var Elemrandimage3700;
var yPosrandimage3700 = 0;
var xPosrandimage3700 = 0;
var xPostrandimage3700 = 0;
var yPostrandimage3700 = 0;
var gsrandimage3700 = "";
if (preloadimgrandimage3700 == 1)
{
for(i=0; i < imagesrandimage3700.length; i++)
{
nimagerandimage3700.src = imagesrandimage3700[i];
}
}
function setOpacrandimage3700(objrandimage3700, opacityrandimage3700) {
opacityrandimage3700 = (opacityrandimage3700 == 100)?99.999:opacityrandimage3700;
if (nsrandimage3700)
{
objrandimage3700.style.MozOpacity = opacityrandimage3700/100;
}
else if (ierandimage3700)
{
objrandimage3700.style.filter = "alpha(opacity:"+opacityrandimage3700+")";
}
else
{
objrandimage3700.style.opacity = opacityrandimage3700/100;
}
}
function fadeInrandimage3700(objIdrandimage3700,opacityrandimage3700) {
if (document.getElementById) {
objrandimage3700 = document.getElementById(objIdrandimage3700);
if (opacityrandimage3700 <= 100) {
setOpacrandimage3700(objrandimage3700, opacityrandimage3700);
opacityrandimage3700 += fadeSpeedrandimage3700;
window.setTimeout("fadeInrandimage3700('" + objIdrandimage3700 +"',"+opacityrandimage3700+")", 100);
}
else
{
setOpacrandimage3700(objrandimage3700, 100);
}
}
}
function fadeOutrandimage3700(objIdrandimage3700,opacityrandimage3700) {
if (document.getElementById) {
objrandimage3700 = document.getElementById(objIdrandimage3700);
if (opacityrandimage3700 >= 0) {
setOpacrandimage3700(objrandimage3700, opacityrandimage3700);
opacityrandimage3700 = opacityrandimage3700 - fadeSpeedrandimage3700;
window.setTimeout("fadeOutrandimage3700('" + objIdrandimage3700 +"',"+opacityrandimage3700+")", 100);
}
else
{
setOpacrandimage3700(objrandimage3700, 0);
}
}
}
function changeTextrandimage3700(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage3700 + '
';
}
document.write('');
if (floatidrandimage3700 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage3700 == 1)
{
document.write('');
}
if (sliderandimage3700 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage3700 != 1 && carrandimage3700 != 1)
{
if (zoomidrandimage3700 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write('');
document.write(' |
');
}
if (sliderandimage3700 == 1 || carrandimage3700 == 1)
{
document.write('' + footerrandimage3700 + ' |
');
}
else
{
document.write(' |
');
}
document.write('<<< >>> |
');
document.write('');
document.write('
');
if (floatidrandimage3700 == 1)
{
document.write('
');
}
var imageIdrandimage3700 = 'randimage3700';
var imageElemrandimage3700 = document.getElementById(imageIdrandimage3700);
var tempURLnum;
function go_urlrandimage3700(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage3700;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL3700 = 0;
if (tempURLnum > 0)
{
counttimerrandimage3700 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage3700[counttimerrandimage3700];
mySRC = imagesrandimage3700[counttimerrandimage3700];
isNew = newwinsrandimage3700[counttimerrandimage3700];
}
if (myURL != "" && myURL != "http://")
{
if (recURL3700 == 1)
{
myURL = mainURL + '?filename=homes_carousel&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_backrandimage3700() {
clearTimeout(timerfrandimage3700);
window.status = statusrandimage3700;
counttimerlrandimage3700 = counttimerrandimage3700;
counttimerrandimage3700 = counttimerrandimage3700 - 1;
begin_imagerandimage3700(1);
}
function go_nextrandimage3700() {
clearTimeout(timerfrandimage3700);
window.status = statusrandimage3700;
counttimerlrandimage3700 = counttimerrandimage3700;
counttimerrandimage3700++;
begin_imagerandimage3700(1);
}
function begin_imagerandimage3700(doit) {
if (counttimerrandimage3700 >= (imagesrandimage3700.length - 1))
{
if (doit < 1)
{
counttimerrandimage3700 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage3700++;
}
}
if (counttimerrandimage3700 < 0 && doit == 1)
{
counttimerrandimage3700 = imagesrandimage3700.length - 1;
}
if (counttimerrandimage3700 > (imagesrandimage3700.length - 1) && doit == 1)
{
counttimerrandimage3700 = 0;
}
var tempTime = timesrandimage3700[counttimerrandimage3700];
if (tempTime < 1)
{
tempTime = timesetrandimage3700;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage3700 == 'Y')
{
setOpacrandimage3700(imageElemrandimage3700, 0);
}
if (fadeinvalrandimage3700 == '' && fadeoutvalrandimage3700 == 'Y')
{
setOpacrandimage3700(imageElemrandimage3700, 100);
}
nimagerandimage3700.src = imagesrandimage3700[counttimerrandimage3700];
document.randimage3700.src = nimagerandimage3700.src;
changeTextrandimage3700("divtextrandimage3700",footersrandimage3700[counttimerrandimage3700]);
if (fadeinvalrandimage3700 == 'Y')
{
fadeInrandimage3700(imageIdrandimage3700,0);
}
if (fadeoutvalrandimage3700 == 'Y')
{
timerfrandimage3700 = setTimeout('fadeOutrandimage3700(imageIdrandimage3700,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage3700);
timerrandimage3700 = setTimeout('begin_imagerandimage3700(0);', tempTime);
}
function dimsrandimage3700(Elemrandimage3700) {
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 (xPosrandimage3700 > 0)
{
xPostrandimage3700 = xPosrandimage3700;
yPostrandimage3700 = yPosrandimage3700;
wcrandimage3700.style.width = xPosrandimage3700;
wcrandimage3700.style.height = yPosrandimage3700;
}
if (ns4) {
var Elemrandimage3700 = getObjNN4(document, Elemrandimage3700);
yPosrandimage3700 = Elemrandimage3700.clip.height;
xPosrandimage3700 = Elemrandimage3700.clip.width;
return;
}
else {
var Elemrandimage3700;
if(document.getElementById) {
var Elemrandimage3700 = document.getElementById(Elemrandimage3700);
}
else if (document.all) {
var Elemrandimage3700 = document.all[Elemrandimage3700];
}
}
if (op5) {
yPosrandimage3700 = Elemrandimage3700.style.pixelHeight;
xPosrandimage3700 = Elemrandimage3700.style.pixelWidth;
}
else {
yPosrandimage3700 = Elemrandimage3700.offsetHeight;
xPosrandimage3700 = Elemrandimage3700.offsetWidth;
}
}
function znrandimage3700() {
clearTimeout(timerrandimage3700);
clearTimeout(timerfrandimage3700);
czrandimage3700();
if (xPosrandimage3700 > 0)
{
wcrandimage3700.style.width = xPosrandimage3700;
wcrandimage3700.style.height = yPosrandimage3700;
}
dimsrandimage3700("randimage3700");
window.status=statusrandimage3700;
zoomrandimage3700(xPosrandimage3700,yPosrandimage3700,'randimage3700','in');
timerrandimage3700 = setTimeout("czrandimage3700();", ztrandimage3700);
}
function zbrandimage3700() {
xPostrandimage3700 = xPosrandimage3700;
yPostrandimage3700 = yPosrandimage3700;
clearTimeout(timerrandimage3700);
czrandimage3700();
setOpacrandimage3700(imageElemrandimage3700, 100);
zoomrandimage3700(xPosrandimage3700,yPosrandimage3700,'randimage3700','out');
timerrandimage3700 = setTimeout('begin_imagerandimage3700(0);', counttimerlrandimage3700);
}
function zhrandimage3700(){
if (gsrandimage3700 == "out" && (xPostrandimage3700 < xPosrandimage3700 || yPostrandimage3700 < yPosrandimage3700))
{
setOpacrandimage3700(imageElemrandimage3700, 100);
xPostrandimage3700 = xPosrandimage3700;
yPostrandimage3700 = yPosrandimage3700;
wcrandimage3700.style.width = xPosrandimage3700;
wcrandimage3700.style.height = yPosrandimage3700;
gsrandimage3700 = "";
czrandimage3700();
return;
}
if (parseInt(wcrandimage3700.style.width)>10&&parseInt(wcrandimage3700.style.height)>10)
{
xPostrandimage3700 = parseInt(wcrandimage3700.style.width) + parseInt(wcrandimage3700.style.width) * zfrandimage3700 * pfrandimage3700;
yPostrandimage3700 = parseInt(wcrandimage3700.style.height) + parseInt(wcrandimage3700.style.height) * zfrandimage3700 * pfrandimage3700;
wcrandimage3700.style.width = xPostrandimage3700;
wcrandimage3700.style.height = yPostrandimage3700;
}
}
function zoomrandimage3700(originalW, originalH, what, state){
gsrandimage3700 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage3700 = eval("document.images."+what);
pfrandimage3700 = (state=="in")? 1 : -1;
if (wcrandimage3700.style.width=="")
{
wcrandimage3700.style.width=originalW;
wcrandimage3700.style.height=originalH;
}
if (state=="restore"){
xPostrandimage3700 = xPosrandimage3700;
yPostrandimage3700 = yPosrandimage3700;
wcrandimage3700.style.width=originalW;
wcrandimage3700.style.height=originalH;
czrandimage3700();
return;
}
else
{
zhrandimage3700();
}
bzrandimage3700 = setInterval("zhrandimage3700()",100);
}
function czrandimage3700(){
if (window.bzrandimage3700) {
if (gsrandimage3700 != "in" && (xPostrandimage3700 != xPosrandimage3700 || yPostrandimage3700 != yPosrandimage3700))
{
xPostrandimage3700 = xPosrandimage3700;
yPostrandimage3700 = yPosrandimage3700;
wcrandimage3700.style.width = xPosrandimage3700;
wcrandimage3700.style.height = yPosrandimage3700;
gsrandimage3700 = "";
}
clearInterval(bzrandimage3700);
}
}
var tempcount2;
var tempcount5;
var Car_Image_Sources3700 = new Array();
var FootersAll3700 = new Array();
var myNewWin3700 = new Array();
var imglength3700 = imagesrandimage3700.length;
/***********************************************
* Carousel Slideshow script- © Ger Versluis 2003
* Permission granted to DynamicDrive.com to feature script
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var Car_Image_Width3700 = 225;
var Car_Image_Height3700 = 200;
var Car_Border=false;
var Car_Border_Color="white";
var Car_Speed3700 = 3;
var Car_Direction3700 = false;
var Car_NoOfSides3700 = 8;
var tempcounta3700 = 0;
var carTimer3700;
var tempL3700 = 0;
function startItC3700(whichOne) {
if (whichOne == 0)
{
clearTimeout(carTimer3700);
Car_Direction3700 = true;
}
else
{
clearTimeout(carTimer3700);
Car_Direction3700 = false;
}
carTimer3700 = setTimeout("CarImages3700()",50);
}
if (imglength3700 < 6)
{
tempL3700 = 7 - imglength3700;
}
if (tempL3700 < 1)
{
tempL3700 = 1;
}
var mainCount3700 = 0;
for (tempcount5 = 0; tempcount5 < tempL3700; tempcount5++)
{
for (tempcount2 = 0; tempcount2 < imglength3700; tempcount2++)
{
var tempVal = imagesrandimage3700[tempcount2];
Car_Image_Sources3700[tempcounta3700] = tempVal;
FootersAll3700[tempcounta3700] = footersrandimage3700[tempcount2];
myNewWin3700[tempcounta3700] = newwinsrandimage3700[tempcount2];
tempcounta3700++;
Car_Image_Sources3700[tempcounta3700] = urlsrandimage3700[tempcount2];
FootersAll3700[tempcounta3700] = footersrandimage3700[tempcount2];
myNewWin3700[tempcounta3700] = newwinsrandimage3700[tempcount2];
tempcounta3700++;
mainCount3700++;
}
}
imglength3700 = mainCount3700;
CW_I3700 = new Array(Car_NoOfSides3700 / 2+1);C_ClcW3700 = new Array(Car_NoOfSides3700 / 2);
C_Coef3700 = new Array(
3*Math.PI/2,0,3*Math.PI/2,11*Math.PI/6,Math.PI/6,3*Math.PI/2,7*Math.PI/4, 0,
Math.PI/4,3*Math.PI/2,5*Math.PI/3,11*Math.PI/6,0,Math.PI/6,Math.PI/3);
var C_CoefOf3700 = Car_NoOfSides3700 == 4?0:Car_NoOfSides3700 == 6 ? 2:Car_NoOfSides3700 == 8?5:9;
C_Pre_Img3700 = new Array(Car_Image_Sources3700.length);
var C_Angle3700 = Car_Direction3700 ? Math.PI/(Car_NoOfSides3700 / 2):0,C_CrImg3700 = Car_NoOfSides3700,C_MaxW3700,C_TotalW3700,C_Stppd3700=false,i3700,C_LeftOffset3700,C_HalfNo3700 = Car_NoOfSides3700 / 2;
function CarouselStart3700(){
if(document.getElementById){
for(i3700=0;i3700 < Car_Image_Sources3700.length; i3700+=2){
C_Pre_Img3700[i3700]=new Image();C_Pre_Img3700[i3700].src=Car_Image_Sources3700[i3700]}
C_MaxW3700=Car_Image_Width3700 / Math.sin(Math.PI/Car_NoOfSides3700)+C_HalfNo3700 + 1;
Car_Div=document.getElementById("Carousel3700");
for(i3700=0;i3700= Math.PI/C_HalfNo3700)){
if(C_CrImg3700 == Car_Image_Sources3700.length)C_CrImg3700=0;
if(Car_Direction3700){
CW_I3700[C_HalfNo3700] = CW_I3700[0];
for(i3700=0;i3700 0;i3700--)CW_I3700[i3700]=CW_I3700[i3700-1];
CW_I3700[0]=CW_I3700[C_HalfNo3700];
CW_I3700[0].src=Car_Image_Sources3700[C_CrImg3700];
CW_I3700[0].lnk=Car_Image_Sources3700[C_CrImg3700+1];
CW_I3700[0].desc=FootersAll3700[C_CrImg3700];
CW_I3700[0].newwin=myNewWin3700[C_CrImg3700];
}
C_Angle3700 = Car_Direction3700 ? Math.PI/C_HalfNo3700:0;C_CrImg3700+=2;}}
carTimer3700 = setTimeout("CarImages3700()",50);}
function C_LdLnk3700(){go_urlrandimage3700(-1,this.newwin,this.lnk,this.src);}
function C_Stp3700(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd3700=true;changeTextrandimage3700("divtextrandimage3700",this.desc);}
function C_Rstrt3700(){C_Stppd3700=false;changeTextrandimage3700("divtextrandimage3700","");}
setTimeout("CarouselStart3700()",100);