function trg(){
	var check = document.getElementById("check_repeat").value
//alert(check);

if(check == 0){
	
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
		
	$('.tonus').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		this.src2 = this.src.replace("/thumbs/", "/images_float/");
		//alert(src2);
		 
		return $("<img/>").attr("src", this.src2);
	}
		});

	
	//alert('got here');
	$('#lft_scroll').css('opacity', '0.2');
	$('#lft_scroll').css('opacity', '.2');
	   		$(".scrollButtons").hover(function(){
		$(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("fast", 0.4); // This should set the opacity back to 60% on mouseout
   		});
   		
   		$('#rgt_scroll').css('opacity', '0.2');
	$('#rgt_scroll').css('opacity', '.2');
	   		$(".scrollButtons").hover(function(){
		$(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("fast", 0.4); // This should set the opacity back to 60% on mouseout
   		});
   		
   	document.getElementById("check_repeat").value = '1';	
   		}
   	}	
   	



	     
function trg2(){
	var check2 = document.getElementById("check_repeat2").value
//alert(check);

if(check2 == 0){
	
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel   	
		$(".trigger").hover(function(){
		$(this).fadeTo("fast", 0.4); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("fast", 1.0); // This should set the opacity back to 60% on mouseout
   		});
   			
   	document.getElementById("check_repeat2").value = '1';	
   		}
   	}	
   	



	     


 


 
