// JavaScript Document

jQuery(document).ready(function() {
			
								
			
									
			$(".rollover a").mouseover(function(){
				imgsrc = $(this).children("img").attr("src");
				matches = imgsrc.match(/_over/);
				if (!matches) {
					imgsrcON = imgsrc.replace(/.png$/ig,"_over.png");
					$(this).children("img").attr("src", imgsrcON);
				}						   
			});
			
			$(".rollover a").mouseout(function(){
				$(this).children("img").attr("src", imgsrc);
			});
			
			$(".rollover img").each(function() {
				rollsrc = $(this).attr("src");
				rollON = rollsrc.replace(/.png$/ig,"_over.png");
				$("<img>").attr("src", rollON);
			});
			
			$(".rollover2 a").mouseover(function(){
				imgsrc = $(this).children("img").attr("src");
				matches = imgsrc.match(/_over/);
				if (!matches) {
					imgsrcON = imgsrc.replace(/.jpg$/ig,"_over.jpg");
					$(this).children("img").attr("src", imgsrcON);
				}						   
			});
			
			$(".rollover2 a").mouseout(function(){
				$(this).children("img").attr("src", imgsrc);
			});
			
			$(".rollover2 img").each(function() {
				rollsrc = $(this).attr("src");
				rollON = rollsrc.replace(/.jpg$/ig,"_over.jpg");
				$("<img>").attr("src", rollON);
			});
			
			jQuery("#mycarousel").jcarousel({
				// Configuration goes here
				
				scroll: 1,
				auto: 6,
				wrap: 'circular'
			});
		
		$(".slideshow").cycle({
				fx: 'fade' 
			});
			
			
			
	});


