// JavaScript Document

//jQuery
$(document).ready(function(){	
$("#slider").easySlider({
	auto: true, 
	speed: 800,
	pause: 5000,
	continuous: true
});
});	

//IE6 Overrides
// Split the string into part [0] and part [1]
temp=navigator.appVersion.split('MSIE');
// Parse the string for the "6" in 6.0
ieVer=parseInt(temp[1]);
// Is it greater than 6?
var isie6=(ieVer > 5 && ieVer < 7)?true:false;

if (isie6==true){
	document.write('<style type="text/css">#slider{display: none;}#intro{height:150px;}</style>');
}

//Manual div expand
var intImage = new Array();
var nAddHeight7 = 0;
var intSub7Image = new Array();
intImage[1] = 2;
intSub7Image[1] = 2;

function swapImage(nImg) {
switch (intImage[nImg]) {
 case 1:
   document.getElementById("IMG"+nImg.toString()).src = "images/plus.gif";
   intImage[nImg] = 2;
   return(false);
 case 2:
   document.getElementById("IMG"+nImg.toString()).src = "images/minus.gif";
   intImage[nImg] = 1;
   return(false);
 }
}

function swapSubImage7(nImg) {
switch (intSub7Image[nImg]) {
 case 1:
   document.getElementById("sub7IMG"+nImg.toString()).src = "images/plus.gif"
   intSub7Image[nImg] = 2
   nAddHeight7-=25+parseInt(document.getElementById("mydiv7-"+nImg.toString()).style.height);
   document.getElementById("mydiv7").style.height=(620+nAddHeight7).toString()+"px"; // if the initial height of the main div is changed make sure to change the amount added to nAddHeight to reflect it
   return(false);
 case 2:
   document.getElementById("sub7IMG"+nImg.toString()).src = "images/minus.gif"
   intSub7Image[nImg] = 1
   nAddHeight7+=25+parseInt(document.getElementById("mydiv7-"+nImg.toString()).style.height);
   document.getElementById("mydiv7").style.height=(620+nAddHeight7).toString()+"px"; // if the initial height of the main div is changed make sure to change the amount added to nAddHeight to reflect it
   return(false);
 }
} // end function
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}