var timenowrandimage76174 = 0;
var counttimerrandimage76174 = -1;
var counttimerlrandimage76174 = counttimerrandimage76174;
var timesetrandimage76174 = 10;
var nimagerandimage76174 = new Image;
var imagesrandimage76174 = new Array('http://www.cgiconnection.com/randimage4/images/ocean-2.jpg','http://www.cgiconnection.com/randimage4/images/oceanflip-2.jpg');
var urlsrandimage76174 = new Array('http://','http://');
var timesrandimage76174 = new Array('','');
var newwinsrandimage76174 = new Array('','');
var footersrandimage76174 = new Array('','');
var timerrandimage76174;
var timerfrandimage76174;
var i = 0;
var preloadimgrandimage76174 = 0;
var footerrandimage76174 = '
"CGI Connection Software Makes COOL Web Sites"
Created with the Random Image Rotator 4';
var statusrandimage76174 = '';
var floatidrandimage76174 = 0;
var zoomidrandimage76174 = 0;
var carrandimage76174 = 1;
var fadeSpeedrandimage76174 = 10;
var outTime = 2100 - (fadeSpeedrandimage76174 * 35);
var objrandimage76174;
var opacityrandimage76174;
var nsrandimage76174 = document.layers;
var ierandimage76174 = document.all;
var fadeinvalrandimage76174 = "";
var fadeoutvalrandimage76174 = "";
var sliderandimage76174 = 0;
var zfrandimage76174 = 0.075;
var ztrandimage76174 = 500;
var wcrandimage76174;
var Elemrandimage76174;
var yPosrandimage76174 = 0;
var xPosrandimage76174 = 0;
var xPostrandimage76174 = 0;
var yPostrandimage76174 = 0;
var gsrandimage76174 = "";
if (preloadimgrandimage76174 == 1)
{
for(i=0; i < imagesrandimage76174.length; i++)
{
nimagerandimage76174.src = imagesrandimage76174[i];
}
}
function setOpacrandimage76174(objrandimage76174, opacityrandimage76174) {
opacityrandimage76174 = (opacityrandimage76174 == 100)?99.999:opacityrandimage76174;
if (nsrandimage76174)
{
objrandimage76174.style.MozOpacity = opacityrandimage76174/100;
}
else if (ierandimage76174)
{
objrandimage76174.style.filter = "alpha(opacity:"+opacityrandimage76174+")";
}
else
{
objrandimage76174.style.opacity = opacityrandimage76174/100;
}
}
function fadeInrandimage76174(objIdrandimage76174,opacityrandimage76174) {
if (document.getElementById) {
objrandimage76174 = document.getElementById(objIdrandimage76174);
if (opacityrandimage76174 <= 100) {
setOpacrandimage76174(objrandimage76174, opacityrandimage76174);
opacityrandimage76174 += fadeSpeedrandimage76174;
window.setTimeout("fadeInrandimage76174('" + objIdrandimage76174 +"',"+opacityrandimage76174+")", 100);
}
else
{
setOpacrandimage76174(objrandimage76174, 100);
}
}
}
function fadeOutrandimage76174(objIdrandimage76174,opacityrandimage76174) {
if (document.getElementById) {
objrandimage76174 = document.getElementById(objIdrandimage76174);
if (opacityrandimage76174 >= 0) {
setOpacrandimage76174(objrandimage76174, opacityrandimage76174);
opacityrandimage76174 = opacityrandimage76174 - fadeSpeedrandimage76174;
window.setTimeout("fadeOutrandimage76174('" + objIdrandimage76174 +"',"+opacityrandimage76174+")", 100);
}
else
{
setOpacrandimage76174(objrandimage76174, 0);
}
}
}
function changeTextrandimage76174(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage76174 + '
';
}
document.write('');
if (floatidrandimage76174 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage76174 == 1)
{
document.write('');
}
if (sliderandimage76174 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage76174 != 1 && carrandimage76174 != 1)
{
if (zoomidrandimage76174 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write(' ');
document.write(' |
');
}
if (sliderandimage76174 == 1 || carrandimage76174 == 1)
{
document.write('' + footerrandimage76174 + ' |
');
}
else
{
document.write(' |
');
}
document.write('');
document.write('
');
if (floatidrandimage76174 == 1)
{
document.write('
');
}
var imageIdrandimage76174 = 'randimage76174';
var imageElemrandimage76174 = document.getElementById(imageIdrandimage76174);
var tempURLnum;
function go_urlrandimage76174(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage76174;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL76174 = 0;
if (tempURLnum > 0)
{
counttimerrandimage76174 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage76174[counttimerrandimage76174];
mySRC = imagesrandimage76174[counttimerrandimage76174];
isNew = newwinsrandimage76174[counttimerrandimage76174];
}
if (myURL != "" && myURL != "http://")
{
if (recURL76174 == 1)
{
myURL = mainURL + '?filename=ocean_mountains_hp&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_backrandimage76174() {
clearTimeout(timerfrandimage76174);
window.status = statusrandimage76174;
counttimerlrandimage76174 = counttimerrandimage76174;
counttimerrandimage76174 = counttimerrandimage76174 - 1;
begin_imagerandimage76174(1);
}
function go_nextrandimage76174() {
clearTimeout(timerfrandimage76174);
window.status = statusrandimage76174;
counttimerlrandimage76174 = counttimerrandimage76174;
counttimerrandimage76174++;
begin_imagerandimage76174(1);
}
function begin_imagerandimage76174(doit) {
if (counttimerrandimage76174 >= (imagesrandimage76174.length - 1))
{
if (doit < 1)
{
counttimerrandimage76174 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage76174++;
}
}
if (counttimerrandimage76174 < 0 && doit == 1)
{
counttimerrandimage76174 = imagesrandimage76174.length - 1;
}
if (counttimerrandimage76174 > (imagesrandimage76174.length - 1) && doit == 1)
{
counttimerrandimage76174 = 0;
}
var tempTime = timesrandimage76174[counttimerrandimage76174];
if (tempTime < 1)
{
tempTime = timesetrandimage76174;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage76174 == 'Y')
{
setOpacrandimage76174(imageElemrandimage76174, 0);
}
if (fadeinvalrandimage76174 == '' && fadeoutvalrandimage76174 == 'Y')
{
setOpacrandimage76174(imageElemrandimage76174, 100);
}
nimagerandimage76174.src = imagesrandimage76174[counttimerrandimage76174];
document.randimage76174.src = nimagerandimage76174.src;
changeTextrandimage76174("divtextrandimage76174",footersrandimage76174[counttimerrandimage76174]);
if (fadeinvalrandimage76174 == 'Y')
{
fadeInrandimage76174(imageIdrandimage76174,0);
}
if (fadeoutvalrandimage76174 == 'Y')
{
timerfrandimage76174 = setTimeout('fadeOutrandimage76174(imageIdrandimage76174,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage76174);
timerrandimage76174 = setTimeout('begin_imagerandimage76174(0);', tempTime);
}
function dimsrandimage76174(Elemrandimage76174) {
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 (xPosrandimage76174 > 0)
{
xPostrandimage76174 = xPosrandimage76174;
yPostrandimage76174 = yPosrandimage76174;
wcrandimage76174.style.width = xPosrandimage76174;
wcrandimage76174.style.height = yPosrandimage76174;
}
if (ns4) {
var Elemrandimage76174 = getObjNN4(document, Elemrandimage76174);
yPosrandimage76174 = Elemrandimage76174.clip.height;
xPosrandimage76174 = Elemrandimage76174.clip.width;
return;
}
else {
var Elemrandimage76174;
if(document.getElementById) {
var Elemrandimage76174 = document.getElementById(Elemrandimage76174);
}
else if (document.all) {
var Elemrandimage76174 = document.all[Elemrandimage76174];
}
}
if (op5) {
yPosrandimage76174 = Elemrandimage76174.style.pixelHeight;
xPosrandimage76174 = Elemrandimage76174.style.pixelWidth;
}
else {
yPosrandimage76174 = Elemrandimage76174.offsetHeight;
xPosrandimage76174 = Elemrandimage76174.offsetWidth;
}
}
function znrandimage76174() {
clearTimeout(timerrandimage76174);
clearTimeout(timerfrandimage76174);
czrandimage76174();
if (xPosrandimage76174 > 0)
{
wcrandimage76174.style.width = xPosrandimage76174;
wcrandimage76174.style.height = yPosrandimage76174;
}
dimsrandimage76174("randimage76174");
window.status=statusrandimage76174;
zoomrandimage76174(xPosrandimage76174,yPosrandimage76174,'randimage76174','in');
timerrandimage76174 = setTimeout("czrandimage76174();", ztrandimage76174);
}
function zbrandimage76174() {
xPostrandimage76174 = xPosrandimage76174;
yPostrandimage76174 = yPosrandimage76174;
clearTimeout(timerrandimage76174);
czrandimage76174();
setOpacrandimage76174(imageElemrandimage76174, 100);
zoomrandimage76174(xPosrandimage76174,yPosrandimage76174,'randimage76174','out');
timerrandimage76174 = setTimeout('begin_imagerandimage76174(0);', counttimerlrandimage76174);
}
function zhrandimage76174(){
if (gsrandimage76174 == "out" && (xPostrandimage76174 < xPosrandimage76174 || yPostrandimage76174 < yPosrandimage76174))
{
setOpacrandimage76174(imageElemrandimage76174, 100);
xPostrandimage76174 = xPosrandimage76174;
yPostrandimage76174 = yPosrandimage76174;
wcrandimage76174.style.width = xPosrandimage76174;
wcrandimage76174.style.height = yPosrandimage76174;
gsrandimage76174 = "";
czrandimage76174();
return;
}
if (parseInt(wcrandimage76174.style.width)>10&&parseInt(wcrandimage76174.style.height)>10)
{
xPostrandimage76174 = parseInt(wcrandimage76174.style.width) + parseInt(wcrandimage76174.style.width) * zfrandimage76174 * pfrandimage76174;
yPostrandimage76174 = parseInt(wcrandimage76174.style.height) + parseInt(wcrandimage76174.style.height) * zfrandimage76174 * pfrandimage76174;
wcrandimage76174.style.width = xPostrandimage76174;
wcrandimage76174.style.height = yPostrandimage76174;
}
}
function zoomrandimage76174(originalW, originalH, what, state){
gsrandimage76174 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage76174 = eval("document.images."+what);
pfrandimage76174 = (state=="in")? 1 : -1;
if (wcrandimage76174.style.width=="")
{
wcrandimage76174.style.width=originalW;
wcrandimage76174.style.height=originalH;
}
if (state=="restore"){
xPostrandimage76174 = xPosrandimage76174;
yPostrandimage76174 = yPosrandimage76174;
wcrandimage76174.style.width=originalW;
wcrandimage76174.style.height=originalH;
czrandimage76174();
return;
}
else
{
zhrandimage76174();
}
bzrandimage76174 = setInterval("zhrandimage76174()",100);
}
function czrandimage76174(){
if (window.bzrandimage76174) {
if (gsrandimage76174 != "in" && (xPostrandimage76174 != xPosrandimage76174 || yPostrandimage76174 != yPosrandimage76174))
{
xPostrandimage76174 = xPosrandimage76174;
yPostrandimage76174 = yPosrandimage76174;
wcrandimage76174.style.width = xPosrandimage76174;
wcrandimage76174.style.height = yPosrandimage76174;
gsrandimage76174 = "";
}
clearInterval(bzrandimage76174);
}
}
var tempcount2;
var tempcount5;
var Car_Image_Sources76174 = new Array();
var FootersAll76174 = new Array();
var myNewWin76174 = new Array();
var imglength76174 = imagesrandimage76174.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_Width76174 = 300;
var Car_Image_Height76174 = 220;
var Car_Border=false;
var Car_Border_Color="white";
var Car_Speed76174 = 2;
var Car_Direction76174 = true;
var Car_NoOfSides76174 = 6;
var tempcounta76174 = 0;
var carTimer76174;
var tempL76174 = 0;
function startItC76174(whichOne) {
if (whichOne == 0)
{
clearTimeout(carTimer76174);
Car_Direction76174 = true;
}
else
{
clearTimeout(carTimer76174);
Car_Direction76174 = false;
}
carTimer76174 = setTimeout("CarImages76174()",50);
}
if (imglength76174 < 6)
{
tempL76174 = 7 - imglength76174;
}
if (tempL76174 < 1)
{
tempL76174 = 1;
}
var mainCount76174 = 0;
for (tempcount5 = 0; tempcount5 < tempL76174; tempcount5++)
{
for (tempcount2 = 0; tempcount2 < imglength76174; tempcount2++)
{
var tempVal = imagesrandimage76174[tempcount2];
Car_Image_Sources76174[tempcounta76174] = tempVal;
FootersAll76174[tempcounta76174] = footersrandimage76174[tempcount2];
myNewWin76174[tempcounta76174] = newwinsrandimage76174[tempcount2];
tempcounta76174++;
Car_Image_Sources76174[tempcounta76174] = urlsrandimage76174[tempcount2];
FootersAll76174[tempcounta76174] = footersrandimage76174[tempcount2];
myNewWin76174[tempcounta76174] = newwinsrandimage76174[tempcount2];
tempcounta76174++;
mainCount76174++;
}
}
imglength76174 = mainCount76174;
CW_I76174 = new Array(Car_NoOfSides76174 / 2+1);C_ClcW76174 = new Array(Car_NoOfSides76174 / 2);
C_Coef76174 = 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_CoefOf76174 = Car_NoOfSides76174 == 4?0:Car_NoOfSides76174 == 6 ? 2:Car_NoOfSides76174 == 8?5:9;
C_Pre_Img76174 = new Array(Car_Image_Sources76174.length);
var C_Angle76174 = Car_Direction76174 ? Math.PI/(Car_NoOfSides76174 / 2):0,C_CrImg76174 = Car_NoOfSides76174,C_MaxW76174,C_TotalW76174,C_Stppd76174=false,i76174,C_LeftOffset76174,C_HalfNo76174 = Car_NoOfSides76174 / 2;
function CarouselStart76174(){
if(document.getElementById){
for(i76174=0;i76174 < Car_Image_Sources76174.length; i76174+=2){
C_Pre_Img76174[i76174]=new Image();C_Pre_Img76174[i76174].src=Car_Image_Sources76174[i76174]}
C_MaxW76174=Car_Image_Width76174 / Math.sin(Math.PI/Car_NoOfSides76174)+C_HalfNo76174 + 1;
Car_Div=document.getElementById("Carousel76174");
for(i76174=0;i76174= Math.PI/C_HalfNo76174)){
if(C_CrImg76174 == Car_Image_Sources76174.length)C_CrImg76174=0;
if(Car_Direction76174){
CW_I76174[C_HalfNo76174] = CW_I76174[0];
for(i76174=0;i76174 0;i76174--)CW_I76174[i76174]=CW_I76174[i76174-1];
CW_I76174[0]=CW_I76174[C_HalfNo76174];
CW_I76174[0].src=Car_Image_Sources76174[C_CrImg76174];
CW_I76174[0].lnk=Car_Image_Sources76174[C_CrImg76174+1];
CW_I76174[0].desc=FootersAll76174[C_CrImg76174];
CW_I76174[0].newwin=myNewWin76174[C_CrImg76174];
}
C_Angle76174 = Car_Direction76174 ? Math.PI/C_HalfNo76174:0;C_CrImg76174+=2;}}
carTimer76174 = setTimeout("CarImages76174()",50);}
function C_LdLnk76174(){go_urlrandimage76174(-1,this.newwin,this.lnk,this.src);}
function C_Stp76174(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd76174=true;changeTextrandimage76174("divtextrandimage76174",this.desc);}
function C_Rstrt76174(){C_Stppd76174=false;changeTextrandimage76174("divtextrandimage76174","");}
setTimeout("CarouselStart76174()",100);