function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

var photoWin=0;
function photoWindow(URLStr, left, top, width, height) {
	if (left=="center") {
		left=(screen.width)?(screen.width-width)/2:100;
	}
	if (top=="center") {
		top=(screen.height)?(screen.height-height)/2:100;
	}
	if (left=="full") {
		left=0;
		width=(screen.availWidth);
	}
	if (top=="full") {
		top=0;
		height=(screen.availHeight);
	}
	if (photoWin) {
		if (!photoWin.closed) photoWin.close(); 
	}
	photoWin = open(URLStr, 'photoWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

var myWin=0;
function myWindow(URLStr, left, top, width, height) {
	if (left=="center") {
		left=(screen.width)?(screen.width-width)/2:100;
	}
	if (top=="center") {
		top=(screen.height)?(screen.height-height)/2:100;
	}
	if(myWin)   {
		if(!myWin.closed) myWin.close(); 
	}
	myWin = open(URLStr, 'myWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function printPage() { print(document); }

var slideShowSpeed1 = 4000
var crossFadeDuration1 = 10
var Pic1 = new Array()
Pic1[0] = 'images/imgLocations.jpg';
Pic1[1] = 'images/imgLocations1.jpg';
Pic1[2] = 'images/imgLocations2.jpg';
var t
var j = 0
var p = Pic1.length
var preLoad1 = new Array()
for (i = 0; i < p; i++){
   preLoad1[i] = new Image()
   preLoad1[i].src = Pic1[i]
}
function runSlideShow1(){
   if (document.all){
      document.images.imgLocations.style.filter="blendTrans(duration=2)"
      document.images.imgLocations.style.filter="blendTrans(duration=crossFadeDuration1)"
      document.images.imgLocations.filters.blendTrans.Apply()      
   }
   document.images.imgLocations.src = preLoad1[j].src
   if (document.all){
      document.images.imgLocations.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow1()', slideShowSpeed1)
}

var slideShowSpeed2 = 6000
var crossFadeDuration2 = 10
var Pic2 = new Array()
Pic2[0] = 'images/imgGrowing3.jpg';
Pic2[1] = 'images/imgGrowing.jpg';
Pic2[2] = 'images/imgGrowing1.jpg';
Pic2[3] = 'images/imgGrowing4.jpg';
var t2
var j2 = 0
var p2 = Pic2.length
var preLoad2 = new Array()
for (i2 = 0; i2 < p2; i2++){
   preLoad2[i2] = new Image()
   preLoad2[i2].src = Pic2[i2]
}
function runSlideShow2(){
   if (document.all){
      document.images.imgGrowing.style.filter="blendTrans(duration=2)"
      document.images.imgGrowing.style.filter="blendTrans(duration=crossFadeDuration2)"
      document.images.imgGrowing.filters.blendTrans.Apply()      
   }
   document.images.imgGrowing.src = preLoad2[j2].src
   if (document.all){
      document.images.imgGrowing.filters.blendTrans.Play()
   }
   j2 = j2 + 1
   if (j2 > (p2-1)) j2=0
   t2 = setTimeout('runSlideShow2()', slideShowSpeed2)
}

var slideShowSpeed3 = 5000
var crossFadeDuration3 = 10
var Pic3 = new Array()
Pic3[0] = 'images/imgCompany2.jpg';
Pic3[1] = 'images/imgCompany1.jpg';
Pic3[2] = 'images/imgGrowing2.jpg';
Pic3[3] = 'images/imgCompany.jpg';
var t3
var j3 = 0
var p3 = Pic3.length
var preLoad3 = new Array()
for (i3 = 0; i3 < p3; i3++){
   preLoad3[i3] = new Image()
   preLoad3[i3].src = Pic3[i3]
}
function runSlideShow3(){
   if (document.all){
      document.images.imgCompany.style.filter="blendTrans(duration=2)"
      document.images.imgCompany.style.filter="blendTrans(duration=crossFadeDuration3)"
      document.images.imgCompany.filters.blendTrans.Apply()      
   }
   document.images.imgCompany.src = preLoad3[j3].src
   if (document.all){
      document.images.imgCompany.filters.blendTrans.Play()
   }
   j3 = j3 + 1
   if (j3 > (p3-1)) j3=0
   t = setTimeout('runSlideShow3()', slideShowSpeed3)
}

