<!--

// ==============================================

// Copyright 2003 by jsCode.com

// Source: jsCode.com

// Author: etLux

// Free for all; but please leave in the header.

// ==============================================



// Set up the image files to be used.

var theImages = new Array() // do not change this

// To add more image files, continue with the

// pattern below, adding to the array. Rememeber

// to increment the theImages[x] index!



theImages[0] = 'pictures/layout/monkeySayings/ThatTimeOfYear.jpg'

theImages[1] = 'pictures/layout/monkeySayings/giveUsaCall.jpg'

// ======================================

// do not change anything below this line

// ======================================



var j = 0

var p = theImages.length;



var preBuffer = new Array()

for (i = 0; i < p; i++){

   preBuffer[i] = new Image()

   preBuffer[i].src = theImages[i]

}



var whichImage = Math.round(Math.random()*(p-1));

function showImage(){

document.write('<img src="'+theImages[whichImage]+'">');

}



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}

//-->

<!--


// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/


if (document.images) {


//Leftbar images  


  img00 = new Image();


  img00.src = "menu/button-home.jpg";


  img002 = new Image();


  img002.src = "menu/button-home-r.jpg";


  img01 = new Image();


  img01.src = "menu/button-company.jpg";


  img012 = new Image();


  img012.src = "menu/button-company-r.jpg";


  img02 = new Image();


  img02.src = "menu/button-window-film.jpg";


  img022 = new Image();


  img022.src = "menu/button-window-film-r.jpg";


  img03 = new Image();


  img03.src = "menu/button-solar.jpg";


  img032 = new Image();


  img032.src = "menu/button-solar-r.jpg";


  img04 = new Image();


  img04.src = "menu/button-benefits.jpg";


  img042 = new Image();


  img042.src = "menu/button-benefits-r.jpg";


  img05 = new Image();


  img05.src = "menu/button-links.jpg";


  img052 = new Image();


  img052.src = "menu/button-links-r.jpg";


  img06 = new Image();


  img06.src = "menu/button-contact.jpg";


  img062 = new Image();


  img062.src = "menu/button-contact-r.jpg";


}


function OnImage(name) {


	if (document.images) {


		fullname = eval(name + "2");


		document[name].src = fullname.src;


	}


}


function OffImage(name) {


  if (document.images) {


    fullname = eval(name);


	if (fullname.complete) {


      document[name].src = fullname.src;


	}


  }


}


//-->








<!--


// MENU MOUSE OVER 


function menuOver(itemName) {


 clearTimeout(timeOn)


 menuActive = 1


}// MENU MOUSE OUT 


function menuOut(itemName) {


 if(document.layers) {


 	menuActive = 0 


 	timeOn = setTimeout("hideAllMenus()", 400)


  }


}


 // SET BACKGROUND COLOR 


function getImage(name) {


  if (document.layers) {


    return findImage(name, document);


  }


  return null;


}





function findImage(name, doc) {


  var i, img;


  for (i = 0; i < doc.images.length; i++)


    if (doc.images[i].name == name)


      return doc.images[i];


  for (i = 0; i < doc.layers.length; i++)


    if ((img = findImage(name, doc.layers[i].document)) != null) {


      img.container = doc.layers[i];


      return img;


    }


  return null;


}





function getImagePageLeft(img) {


  var x, obj;


  if (document.layers) {


    if (img.container != null)


      return img.container.pageX + img.x;


    else


      return img.x;


  }


  return -1;


}





function getImagePageTop(img) {


  var y, obj;


  if (document.layers) {


    if (img.container != null)


      return img.container.pageY + img.y;


    else


      return img.y;


  }


  return -1;


}





//document.write('<style> .menu{position: absolute;}</style>');


var timeOn = null


numMenus = 6;


document.onmouseover = hideAllMenus;


document.onclick = hideAllMenus;


window.onerror = null;





function getStyleObject(objectId) {


    // cross-browser function to get an object's style object given its id


    if(document.getElementById && document.getElementById(objectId)) {


	// W3C DOM


	return document.getElementById(objectId).style;


    } else if (document.all && document.all(objectId)) {


	// MSIE 4 DOM


	return document.all(objectId).style;


    } else if (document.layers && document.layers[objectId]) {


	// NN 4 DOM.. note: this won't find nested layers


	return document.layers[objectId];


    } else {


	return false;


    }


} // getStyleObject





function changeObjectVisibility(objectId, newVisibility) {


    // get a reference to the cross-browser style object and make sure the object exists


    var styleObject = getStyleObject(objectId);


    if(styleObject) {


	styleObject.visibility = newVisibility;


	return true;


    } else {


	//we couldn't find the object, so we can't change its visibility


	return false;


    }


} // changeObjectVisibility








function showMenu(menuNumber, eventObj, labelID) {


    hideAllMenus();


	if(document.layers) {


	img = getImage("img" + menuNumber);


 	x = getImagePageLeft(img);


 	y = getImagePageTop(img);


 	menuTop = y + 10; // LAYER TOP POSITION


	eval('document.layers["menu'+menuNumber+'"].top="'+menuTop+'"');


 	eval('document.layers["menu'+menuNumber+'"].left="'+x+'"');


	}


	eventObj.cancelBubble = true;


    var menuId = 'menu' + menuNumber;


    if(changeObjectVisibility(menuId, 'visible')) {


	return true;


    } else {


	return false;


    }


}





function hideAllMenus() {


    for(counter = 1; counter <= numMenus; counter++) {


	changeObjectVisibility('menu' + counter, 'hidden');


    }


}





function moveObject(objectId, newXCoordinate, newYCoordinate) {


    // get a reference to the cross-browser style object and make sure the object exists


    var styleObject = getStyleObject(objectId);


    if(styleObject) {


	styleObject.left = newXCoordinate;


	styleObject.top = newYCoordinate;


	return true;


    } else {


	// we couldn't find the object, so we can't very well move it


	return false;


    }


} // moveObject











// ***********************


// hacks and workarounds *


// ***********************





// initialize hacks whenever the page loads


window.onload = initializeHacks;





// setup an event handler to hide popups for generic clicks on the document


function initializeHacks() {


    // this ugly little hack resizes a blank div to make sure you can click


    // anywhere in the window for Mac MSIE 5


    if ((navigator.appVersion.indexOf('MSIE 5') != -1) 


	&& (navigator.platform.indexOf('Mac') != -1)


	&& getStyleObject('blankDiv')) {


	window.onresize = explorerMacResizeFix;


    }


    resizeBlankDiv();


    // this next function creates a placeholder object for older browsers


    createFakeEventObj();


}











function createFakeEventObj() {


    // create a fake event object for older browsers to avoid errors in function call


    // when we need to pass the event object to functions


    if (!window.event) {


	window.event = false;


    }


} // createFakeEventObj











function resizeBlankDiv() {


    // resize blank placeholder div so IE 5 on mac will get all clicks in window


    if ((navigator.appVersion.indexOf('MSIE 5') != -1) 


	&& (navigator.platform.indexOf('Mac') != -1)


	&& getStyleObject('blankDiv')) {


	getStyleObject('blankDiv').width = document.body.clientWidth - 20;


	getStyleObject('blankDiv').height = document.body.clientHeight - 20;


    }


}





function explorerMacResizeFix () {


    location.reload(false);


}





function mClk(src){ 


	if(event.srcElement.tagName=='TD')


		src.children.tags('A')[0].click();


}


//-->


