		var imgs = [
					'images/home-banners/BanImage1.jpg',
					'images/home-banners/BanImage2.jpg',
					'images/home-banners/BanImage3.jpg',
					];
		
		var links = [
					'/trees.php',
					'/eco-printing.php',
					'/contact-us.php',
					];		
		
		var imageIndex = 0;


// do not edit anything below this line
///rotating image javascript for IE(works only for IE)- start////
var slideShowSpeed = 5000;
var crossFadeDuration = 3;
var Pic = new Array();
var t;
var j = 0;
var p = imgs.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = imgs[i];
}
function runSlideShow() {
if (document.all) {
document.images.banImageName.style.filter="blendTrans(duration=2)";
document.images.banImageName.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.banImageName.filters.blendTrans.Apply();
}
document.images.banImageName.src = preLoad[j].src;
var addlink = document.getElementById("rotateImgLnksID");
addlink.href = links[j];
if (document.all) {
document.images.banImageName.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 2)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
///rotating image javascript for IE- end////

		
$(document).ready(function(){
	var browserName = "";	

	var ismsie = $.browser.msie;
	if(ismsie==true){
		runSlideShow();
	
	}else{
	var s2 = setInterval(Slider,5000);
	
	$('.center_R .banImage').css("visibility", "hidden");
	for(m=0;m<imgs.length;m++){
	 $('.center_R .banImage').attr('src', imgs[m]);
	}
	$('.center_R .banImage').attr('src', imgs[0].toString());
	$('.center_R .banImage').css("visibility", "visible");
	
	}
	
	function Slider(){

		$('.center_R .banImage').fadeOut(500,function(){
			$('.center_R .banImage').attr('src', imgs[imageIndex]);
			$('.center_R .rotateImgLnks').attr('href', links[imageIndex]);
		});
		$('.center_R .banImage').fadeIn(500);
		imageIndex= imageIndex+1;
		if(imageIndex==imgs.length){
			imageIndex=0;
		}
    }	
	
	
	
				$(".projectsMenu ul li a").mouseover(function()
					{
						$(this).children(".tempbox").addClass('projectsMenuHover');			 																								
						$(this).children(".normal .projectArrow").addClass("hoverArrow");			
						
					}).mouseout(function()
					{
						$(this).children(".tempbox").removeClass('projectsMenuHover');	
						$(this).children('.normal .projectArrow').removeClass("hoverArrow");
					});
				
			/* MouseOver to other "Tabs"
			Remove arrow from "Active TAB" */
			
				$('.projectsMenu ul li a.normal').mouseover(
                    function()
					{
						$('.selected .projectArrow').css("visibility", "hidden");
					}).mouseout(function()
					{
						$('.selected .projectArrow').css("visibility", "visible");
					});					

					
				$('.projectsMenu ul li a.selected .tempbox').mouseover(function()
					{
						/*$(this).addClass('projectsMenuHover');*/	
						$(this).css("background-color","#009200");			/* Background-Color Dark Green 	 */
						$(this).css("color","#ffffff");						/* Font-Color 		White 		 */
						$(this).css("cursor","pointer");
						//$(this).css("width","200px");						/* #ash Edited - [given a width] */		
					}).mouseout(function()
					{
						/*$(this).removeClass('projectsMenuHover');	*/
						$(this).css("background-color","#e5f4e5")			/* Background-Color Light Green */
						$(this).css("color","#009200")						/* Background-Color Dark Green 	*/
						$(this).css("cursor","pointer");
						//$(this).css("width","200px");						/* #ash Edited - [given a width] */						  
					});
			  
			  

      

               
	}
);
