/*var id;
var myFader3;
function domarque(){



        		var arrOpt3 = {selector: '#images2 .fade2',height:'170px'}
        		myFader3 = KoolFader( arrOpt3 );
        		if(myFader3.numImages>0)
        	id=setInterval('myFader3.changeImage()',3500);


}*/







/*$("#images").hover(
  function () {
clearInterval(id);	


  },
  function () {
	if(myFader3.numImages>0)
id=setInterval('myFader3.changeImage()',3500);
  }
);*/








$(function() {
// OPACITY OF BUTTON SET TO 50%
//$(".latest_img").css("opacity","0.3");
		
// ON MOUSE OVER
$("div.fade").hover(function () {

// SET OPACITY TO 100%
var fade = $(this).find('#colorImage');
var fade = $('> div', this);
// if the element is currently being animated (to fadeOut)...
            if (fade.is(':animated')) 
			{
                // ...stop the current animation, and fade it to 1 from current position
               fade.stop().fadeTo(200, 1);
			   fade.fadeIn(1500);
            } 
			else 
			{
                fade.fadeIn(1500);
			}
},
		
// ON MOUSE OUT
function () 
{
//var fade = $(this).parent().find('#colorImage');
 var fade = $('> div', this);
// if the element is currently being animated (to fadeOut)...
if (fade.is(':animated')) 
{
	// ...stop the current animation, and fade it to 1 from current position
	fade.stop().fadeTo(200, 1);
	fade.fadeOut(1500);
} 
else 
{
	fade.fadeOut(1500);
}
});
    $(document).ready(function(){
        //For Slide
     //For 3rd Slide
	 //domarque(1500);

    });


/*

// capture the rainbow element
  var rainbow = document.getElementById('images'), 
    lastPos, // stores the last scrollLeft position
    height = 300; // the repeating point on the background
  
  // we always reset when the page reloads so that the background is always the same
  //rainbow.scrollTop = height;
  
  // use an interval to scroll the rainbow
  setInterval(function () {
    // subtract to make the background scroll from left to right
    height -= 100;
    
    // if we've hit the beginning then the lastPos will be the same as the scrollLeft
    if (height == 0) {
      // reset
      height = 300;
    }

	$('#images').animate({scrollTop:height}, 'slow') ;
  }, 3000);*/ // the combination of milliseconds 
});

/*
$(function() {
// OPACITY OF BUTTON SET TO 50%
$("#text p").css("opacity","0.3");
		
// ON MOUSE OVER
$("#text p").hover(function () {
										  
// SET OPACITY TO 1000%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.3
}, "slow");
});
});


$(function() {
// OPACITY OF BUTTON SET TO 50%
$("#div").css("opacity","0.3");
		
// ON MOUSE OVER
$("#div").hover(function () {
										  
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.3
}, "slow");
});
});*/
