// JavaScript Document

function inputBehave(who,how){
if(how==1) who.value=''
else if(who.value=='') who.value=who.defaultValue
};

/*$('[title]').each( function() {
    var $this = $(this);
    $this.data('title',$this.attr('title'));
    $this.removeAttr('title');
});

$('a').click( function() {
    var $this = $(this);
    var title = $this.data('title');

});
*/

var Website = {
	run: function(){
		
		var oSlider1 = $('#slider1');
		if(oSlider1.length > 0){
			oSlider1.tinycarousel();
		}
		
		var oSlider2 = $('#slider2');
		if(oSlider2.length > 0){
			oSlider2.tinycarousel({ display: 5 });
		}
		
		var oSlider3 = $('#slider3');
		if(oSlider3.length > 0){
			oSlider3.tinycarousel({ pager: true, interval: true });
		}
		
		var oSlider4 = $('#slider4');
		if(oSlider4.length > 0){
			oSlider4.tinycarousel({ controls: false, pager: true, animation: false });
		}		
		
		var oSlider5 = $('#slider5');
		if(oSlider5.length > 0){
			oSlider5.tinycarousel({ display: 5, axis: 'y' });
		}
			

	}
};


//Initialize
$(document).ready(function(){
	Website.run();
});

$(document).ready(function(){
						   $(".scrol_img").fadeTo("fast", 0.4); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".scrol_img").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.4); // This should set the opacity back to 30% on mouseout
						   });
						   });

