// JavaScript Document
(function($) {
	$(function() { //on DOM ready
		$("#scroller").simplyScroll({
			className: 'custom',
			horizontal: true,
			autoMode: 'loop',
			pauseOnHover: true,
			frameRate: 60,
			speed: 1
		});
		$("#scroller2").simplyScroll({
			className: 'myvert',
			horizontal: false,
			autoMode: 'loop',
			pauseOnHover: true,
			frameRate: 60,
			speed: 1
		});
		
		
		$("a[rel^='prettyPopin']").prettyPopin({hideflash: true,
			modal: true, loader_path: '/images/loader.gif'});

	});
})(jQuery);

function ffhoz() {
	$("#scroller").intervalDelay = Math.floor(1000 / 100);
}
function rvhoz() {
	$("#scroller").simplyScroll({
			className: 'custom',
			horizontal: true,
			autoMode: 'loop',
			pauseOnHover: true,
			frameRate: 100,
			speed: -1
		});
}
function rtnhoz() {
	$("#scroller").simplyScroll({
			className: 'custom',
			horizontal: true,
			autoMode: 'loop',
			pauseOnHover: true,
			frameRate: 45,
			speed: 1
		});
}


$(function() {
$('img#pos').hover(function() {
	$(this).attr("src","images/Buyers_Button_Over.jpg");
		}, function() {
	$(this).attr("src","images/Buyers_Button_Up.jpg");
});
$('img#jokes').hover(function() {
	$(this).attr("src","images/FunnyStuff_Button_Over.jpg");
		}, function() {
	$(this).attr("src","images/FunnyStuff_Button_Up.jpg");
});
});

(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)
jQuery.preLoadImages("images/FunnyStuff_Button_Over.jpg", "images/Buyers_Button_Over.jpg");
