
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 2;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'http://retainingwallexpert.com/artman2/style/images/banner-gslope.jpg'
Pic[1] = 'http://retainingwallexpert.com/artman2/style/images/banner-usfabrics.jpg'
Pic[2] = 'http://retainingwallexpert.com/artman2/style/images/banner-redi-rock3.jpg'
Pic[3] = 'http://retainingwallexpert.com/artman2/style/images/banner-strata.jpg'
Pic[4] = 'http://retainingwallexpert.com/artman2/style/images/banner-jetfilter.jpg'
Pic[5] = 'http://retainingwallexpert.com/artman2/style/images/engineerOnStaff.jpg'

var Url = new Array();

Url[0] = 'http://www.mitresoftware.com/'
Url[1] = 'http://www.usfabrics.com/'
Url[2] = 'http://www.redi-rock.com/'
Url[3] = 'http://www.geogrid.com/'
Url[4] = 'http://www.jetfiltersystem.com/'
Url[5] = 'http://www.engineeronstaff.com/'


// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.getElementById('slideShow').style.filter="blendTrans(duration=2)";
document.getElementById('slideShow').style.filter="blendTrans(duration=crossFadeDuration)";
document.getElementById('slideShow').filters.blendTrans.Apply();
}
document.getElementById('slideShow').src = preLoad[j].src;
document.getElementById('slideAdUrl').href = Url[j];
if (document.all) {
document.getElementById('slideShow').filters.blendTrans.Play();

}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}


function set_text(div_name)
{
	var ad_name = 'ad' + div_name;
	document.getElementById('main_text').innerHTML=document.getElementById(div_name).innerHTML;
	document.getElementById('ad_text').innerHTML=document.getElementById(ad_name).innerHTML;
}


function show(url) {
newwin =top.window.open(url, '_blank', 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width=620,height=450');
    }
 

function MyF(partN) {
window.document.usa_locator_demo.SetVariable("perem1", "state" + partN);
}

