// 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);
		});
		
		$(".pop 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);
			}						   
		});
		
		$(".pop a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
		$(".pop img").each(function() {
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.png$/ig,"_over.png");
			$("<img>").attr("src", rollON);
		});
		
		$('.slideshow').cycle({
			fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		});
		
		$("a[rel^='prettyPhoto']").prettyPhoto();
			
			$("#rollover a").mouseover(function(){
				imgsrc = $(this).children("img").attr("src");
				matches = imgsrc.match(/_over/);
				if (!matches) {
					imgsrcON = imgsrc.replace(/.png$/,"_over.png");
					
					$(this).children("img").attr("src", imgsrcON);
				}						   
			});
			$("#rollover a").mouseout(function(){
				$(this).children("img").attr("src", imgsrc);
			});
			
			$("#rollover-jpg a").mouseover(function(){
				imgsrc = $(this).children("img").attr("src");
				matches = imgsrc.match(/_over/);
				if (!matches) {
					imgsrcON = imgsrc.replace(/.jpg$/,"_over.jpg");
					
					$(this).children("img").attr("src", imgsrcON);
				}						   
			});
			$("#rollover-jpg a").mouseout(function(){
				$(this).children("img").attr("src", imgsrc);
			});
			
			$("#slider").easySlider({
				auto: true, 
				continuous: true
			});
		
});
