var timenowrandimage52679 = 0;
var counttimerrandimage52679 = -1;
var counttimerlrandimage52679 = counttimerrandimage52679;
var timesetrandimage52679 = 10;
var nimagerandimage52679 = new Image;
var imagesrandimage52679 = new Array('http://www.cgiconnection.com/randimage4/images/sunsetclouds8kv-2.jpg','http://www.cgiconnection.com/randimage4/images/sunsetclouds8kvflip-2.jpg');
var urlsrandimage52679 = new Array('http://','http://');
var timesrandimage52679 = new Array('','');
var newwinsrandimage52679 = new Array('','');
var footersrandimage52679 = new Array('','');
var timerrandimage52679;
var timerfrandimage52679;
var i = 0;
var preloadimgrandimage52679 = 0;
var footerrandimage52679 = '
Powered by CGI Connection';
var statusrandimage52679 = '';
var floatidrandimage52679 = 0;
var zoomidrandimage52679 = 0;
var carrandimage52679 = 1;
var fadeSpeedrandimage52679 = 10;
var outTime = 2100 - (fadeSpeedrandimage52679 * 35);
var objrandimage52679;
var opacityrandimage52679;
var nsrandimage52679 = document.layers;
var ierandimage52679 = document.all;
var fadeinvalrandimage52679 = "";
var fadeoutvalrandimage52679 = "";
var sliderandimage52679 = 0;
var zfrandimage52679 = 0.075;
var ztrandimage52679 = 500;
var wcrandimage52679;
var Elemrandimage52679;
var yPosrandimage52679 = 0;
var xPosrandimage52679 = 0;
var xPostrandimage52679 = 0;
var yPostrandimage52679 = 0;
var gsrandimage52679 = "";
if (preloadimgrandimage52679 == 1)
{
for(i=0; i < imagesrandimage52679.length; i++)
{
nimagerandimage52679.src = imagesrandimage52679[i];
}
}
function setOpacrandimage52679(objrandimage52679, opacityrandimage52679) {
opacityrandimage52679 = (opacityrandimage52679 == 100)?99.999:opacityrandimage52679;
if (nsrandimage52679)
{
objrandimage52679.style.MozOpacity = opacityrandimage52679/100;
}
else if (ierandimage52679)
{
objrandimage52679.style.filter = "alpha(opacity:"+opacityrandimage52679+")";
}
else
{
objrandimage52679.style.opacity = opacityrandimage52679/100;
}
}
function fadeInrandimage52679(objIdrandimage52679,opacityrandimage52679) {
if (document.getElementById) {
objrandimage52679 = document.getElementById(objIdrandimage52679);
if (opacityrandimage52679 <= 100) {
setOpacrandimage52679(objrandimage52679, opacityrandimage52679);
opacityrandimage52679 += fadeSpeedrandimage52679;
window.setTimeout("fadeInrandimage52679('" + objIdrandimage52679 +"',"+opacityrandimage52679+")", 100);
}
else
{
setOpacrandimage52679(objrandimage52679, 100);
}
}
}
function fadeOutrandimage52679(objIdrandimage52679,opacityrandimage52679) {
if (document.getElementById) {
objrandimage52679 = document.getElementById(objIdrandimage52679);
if (opacityrandimage52679 >= 0) {
setOpacrandimage52679(objrandimage52679, opacityrandimage52679);
opacityrandimage52679 = opacityrandimage52679 - fadeSpeedrandimage52679;
window.setTimeout("fadeOutrandimage52679('" + objIdrandimage52679 +"',"+opacityrandimage52679+")", 100);
}
else
{
setOpacrandimage52679(objrandimage52679, 0);
}
}
}
function changeTextrandimage52679(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage52679 + '
';
}
document.write('');
if (floatidrandimage52679 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage52679 == 1)
{
document.write('');
}
if (sliderandimage52679 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage52679 != 1 && carrandimage52679 != 1)
{
if (zoomidrandimage52679 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write('');
document.write(' |
');
}
if (sliderandimage52679 == 1 || carrandimage52679 == 1)
{
document.write('' + footerrandimage52679 + ' |
');
}
else
{
document.write(' |
');
}
document.write('');
document.write('
');
if (floatidrandimage52679 == 1)
{
document.write('
');
}
var imageIdrandimage52679 = 'randimage52679';
var imageElemrandimage52679 = document.getElementById(imageIdrandimage52679);
var tempURLnum;
function go_urlrandimage52679(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage52679;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL52679 = 0;
if (tempURLnum > 0)
{
counttimerrandimage52679 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage52679[counttimerrandimage52679];
mySRC = imagesrandimage52679[counttimerrandimage52679];
isNew = newwinsrandimage52679[counttimerrandimage52679];
}
if (myURL != "" && myURL != "http://")
{
if (recURL52679 == 1)
{
myURL = mainURL + '?filename=sunset&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_backrandimage52679() {
clearTimeout(timerfrandimage52679);
window.status = statusrandimage52679;
counttimerlrandimage52679 = counttimerrandimage52679;
counttimerrandimage52679 = counttimerrandimage52679 - 1;
begin_imagerandimage52679(1);
}
function go_nextrandimage52679() {
clearTimeout(timerfrandimage52679);
window.status = statusrandimage52679;
counttimerlrandimage52679 = counttimerrandimage52679;
counttimerrandimage52679++;
begin_imagerandimage52679(1);
}
function begin_imagerandimage52679(doit) {
if (counttimerrandimage52679 >= (imagesrandimage52679.length - 1))
{
if (doit < 1)
{
counttimerrandimage52679 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage52679++;
}
}
if (counttimerrandimage52679 < 0 && doit == 1)
{
counttimerrandimage52679 = imagesrandimage52679.length - 1;
}
if (counttimerrandimage52679 > (imagesrandimage52679.length - 1) && doit == 1)
{
counttimerrandimage52679 = 0;
}
var tempTime = timesrandimage52679[counttimerrandimage52679];
if (tempTime < 1)
{
tempTime = timesetrandimage52679;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage52679 == 'Y')
{
setOpacrandimage52679(imageElemrandimage52679, 0);
}
if (fadeinvalrandimage52679 == '' && fadeoutvalrandimage52679 == 'Y')
{
setOpacrandimage52679(imageElemrandimage52679, 100);
}
nimagerandimage52679.src = imagesrandimage52679[counttimerrandimage52679];
document.randimage52679.src = nimagerandimage52679.src;
changeTextrandimage52679("divtextrandimage52679",footersrandimage52679[counttimerrandimage52679]);
if (fadeinvalrandimage52679 == 'Y')
{
fadeInrandimage52679(imageIdrandimage52679,0);
}
if (fadeoutvalrandimage52679 == 'Y')
{
timerfrandimage52679 = setTimeout('fadeOutrandimage52679(imageIdrandimage52679,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage52679);
timerrandimage52679 = setTimeout('begin_imagerandimage52679(0);', tempTime);
}
function dimsrandimage52679(Elemrandimage52679) {
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 (xPosrandimage52679 > 0)
{
xPostrandimage52679 = xPosrandimage52679;
yPostrandimage52679 = yPosrandimage52679;
wcrandimage52679.style.width = xPosrandimage52679;
wcrandimage52679.style.height = yPosrandimage52679;
}
if (ns4) {
var Elemrandimage52679 = getObjNN4(document, Elemrandimage52679);
yPosrandimage52679 = Elemrandimage52679.clip.height;
xPosrandimage52679 = Elemrandimage52679.clip.width;
return;
}
else {
var Elemrandimage52679;
if(document.getElementById) {
var Elemrandimage52679 = document.getElementById(Elemrandimage52679);
}
else if (document.all) {
var Elemrandimage52679 = document.all[Elemrandimage52679];
}
}
if (op5) {
yPosrandimage52679 = Elemrandimage52679.style.pixelHeight;
xPosrandimage52679 = Elemrandimage52679.style.pixelWidth;
}
else {
yPosrandimage52679 = Elemrandimage52679.offsetHeight;
xPosrandimage52679 = Elemrandimage52679.offsetWidth;
}
}
function znrandimage52679() {
clearTimeout(timerrandimage52679);
clearTimeout(timerfrandimage52679);
czrandimage52679();
if (xPosrandimage52679 > 0)
{
wcrandimage52679.style.width = xPosrandimage52679;
wcrandimage52679.style.height = yPosrandimage52679;
}
dimsrandimage52679("randimage52679");
window.status=statusrandimage52679;
zoomrandimage52679(xPosrandimage52679,yPosrandimage52679,'randimage52679','in');
timerrandimage52679 = setTimeout("czrandimage52679();", ztrandimage52679);
}
function zbrandimage52679() {
xPostrandimage52679 = xPosrandimage52679;
yPostrandimage52679 = yPosrandimage52679;
clearTimeout(timerrandimage52679);
czrandimage52679();
setOpacrandimage52679(imageElemrandimage52679, 100);
zoomrandimage52679(xPosrandimage52679,yPosrandimage52679,'randimage52679','out');
timerrandimage52679 = setTimeout('begin_imagerandimage52679(0);', counttimerlrandimage52679);
}
function zhrandimage52679(){
if (gsrandimage52679 == "out" && (xPostrandimage52679 < xPosrandimage52679 || yPostrandimage52679 < yPosrandimage52679))
{
setOpacrandimage52679(imageElemrandimage52679, 100);
xPostrandimage52679 = xPosrandimage52679;
yPostrandimage52679 = yPosrandimage52679;
wcrandimage52679.style.width = xPosrandimage52679;
wcrandimage52679.style.height = yPosrandimage52679;
gsrandimage52679 = "";
czrandimage52679();
return;
}
if (parseInt(wcrandimage52679.style.width)>10&&parseInt(wcrandimage52679.style.height)>10)
{
xPostrandimage52679 = parseInt(wcrandimage52679.style.width) + parseInt(wcrandimage52679.style.width) * zfrandimage52679 * pfrandimage52679;
yPostrandimage52679 = parseInt(wcrandimage52679.style.height) + parseInt(wcrandimage52679.style.height) * zfrandimage52679 * pfrandimage52679;
wcrandimage52679.style.width = xPostrandimage52679;
wcrandimage52679.style.height = yPostrandimage52679;
}
}
function zoomrandimage52679(originalW, originalH, what, state){
gsrandimage52679 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage52679 = eval("document.images."+what);
pfrandimage52679 = (state=="in")? 1 : -1;
if (wcrandimage52679.style.width=="")
{
wcrandimage52679.style.width=originalW;
wcrandimage52679.style.height=originalH;
}
if (state=="restore"){
xPostrandimage52679 = xPosrandimage52679;
yPostrandimage52679 = yPosrandimage52679;
wcrandimage52679.style.width=originalW;
wcrandimage52679.style.height=originalH;
czrandimage52679();
return;
}
else
{
zhrandimage52679();
}
bzrandimage52679 = setInterval("zhrandimage52679()",100);
}
function czrandimage52679(){
if (window.bzrandimage52679) {
if (gsrandimage52679 != "in" && (xPostrandimage52679 != xPosrandimage52679 || yPostrandimage52679 != yPosrandimage52679))
{
xPostrandimage52679 = xPosrandimage52679;
yPostrandimage52679 = yPosrandimage52679;
wcrandimage52679.style.width = xPosrandimage52679;
wcrandimage52679.style.height = yPosrandimage52679;
gsrandimage52679 = "";
}
clearInterval(bzrandimage52679);
}
}
var tempcount2;
var tempcount5;
var Car_Image_Sources52679 = new Array();
var FootersAll52679 = new Array();
var myNewWin52679 = new Array();
var imglength52679 = imagesrandimage52679.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_Width52679 = 300;
var Car_Image_Height52679 = 220;
var Car_Border=false;
var Car_Border_Color="white";
var Car_Speed52679 = 2;
var Car_Direction52679 = false;
var Car_NoOfSides52679 = 6;
var tempcounta52679 = 0;
var carTimer52679;
var tempL52679 = 0;
function startItC52679(whichOne) {
if (whichOne == 0)
{
clearTimeout(carTimer52679);
Car_Direction52679 = true;
}
else
{
clearTimeout(carTimer52679);
Car_Direction52679 = false;
}
carTimer52679 = setTimeout("CarImages52679()",50);
}
if (imglength52679 < 6)
{
tempL52679 = 7 - imglength52679;
}
if (tempL52679 < 1)
{
tempL52679 = 1;
}
var mainCount52679 = 0;
for (tempcount5 = 0; tempcount5 < tempL52679; tempcount5++)
{
for (tempcount2 = 0; tempcount2 < imglength52679; tempcount2++)
{
var tempVal = imagesrandimage52679[tempcount2];
Car_Image_Sources52679[tempcounta52679] = tempVal;
FootersAll52679[tempcounta52679] = footersrandimage52679[tempcount2];
myNewWin52679[tempcounta52679] = newwinsrandimage52679[tempcount2];
tempcounta52679++;
Car_Image_Sources52679[tempcounta52679] = urlsrandimage52679[tempcount2];
FootersAll52679[tempcounta52679] = footersrandimage52679[tempcount2];
myNewWin52679[tempcounta52679] = newwinsrandimage52679[tempcount2];
tempcounta52679++;
mainCount52679++;
}
}
imglength52679 = mainCount52679;
CW_I52679 = new Array(Car_NoOfSides52679 / 2+1);C_ClcW52679 = new Array(Car_NoOfSides52679 / 2);
C_Coef52679 = 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_CoefOf52679 = Car_NoOfSides52679 == 4?0:Car_NoOfSides52679 == 6 ? 2:Car_NoOfSides52679 == 8?5:9;
C_Pre_Img52679 = new Array(Car_Image_Sources52679.length);
var C_Angle52679 = Car_Direction52679 ? Math.PI/(Car_NoOfSides52679 / 2):0,C_CrImg52679 = Car_NoOfSides52679,C_MaxW52679,C_TotalW52679,C_Stppd52679=false,i52679,C_LeftOffset52679,C_HalfNo52679 = Car_NoOfSides52679 / 2;
function CarouselStart52679(){
if(document.getElementById){
for(i52679=0;i52679 < Car_Image_Sources52679.length; i52679+=2){
C_Pre_Img52679[i52679]=new Image();C_Pre_Img52679[i52679].src=Car_Image_Sources52679[i52679]}
C_MaxW52679=Car_Image_Width52679 / Math.sin(Math.PI/Car_NoOfSides52679)+C_HalfNo52679 + 1;
Car_Div=document.getElementById("Carousel52679");
for(i52679=0;i52679= Math.PI/C_HalfNo52679)){
if(C_CrImg52679 == Car_Image_Sources52679.length)C_CrImg52679=0;
if(Car_Direction52679){
CW_I52679[C_HalfNo52679] = CW_I52679[0];
for(i52679=0;i52679 0;i52679--)CW_I52679[i52679]=CW_I52679[i52679-1];
CW_I52679[0]=CW_I52679[C_HalfNo52679];
CW_I52679[0].src=Car_Image_Sources52679[C_CrImg52679];
CW_I52679[0].lnk=Car_Image_Sources52679[C_CrImg52679+1];
CW_I52679[0].desc=FootersAll52679[C_CrImg52679];
CW_I52679[0].newwin=myNewWin52679[C_CrImg52679];
}
C_Angle52679 = Car_Direction52679 ? Math.PI/C_HalfNo52679:0;C_CrImg52679+=2;}}
carTimer52679 = setTimeout("CarImages52679()",50);}
function C_LdLnk52679(){go_urlrandimage52679(-1,this.newwin,this.lnk,this.src);}
function C_Stp52679(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd52679=true;changeTextrandimage52679("divtextrandimage52679",this.desc);}
function C_Rstrt52679(){C_Stppd52679=false;changeTextrandimage52679("divtextrandimage52679","");}
setTimeout("CarouselStart52679()",100);