$(document).ready(function(){
  jQuery.preLoadImages("images/sliderImages/01.jpg", "images/sliderImages/02.jpg", "images/sliderImages/03.jpg", "images/sliderImages/04.jpg", "images/sliderImages/05.jpg");

	$('.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
				pauseOnHover: true,              // If true, and autoPlay is enabled, the show will pause on hover
                buildNavigation: true          // If true, builds and list of anchor links to link to each slide        		
        		//startText: "Go",             // Start text
		        //stopText: "Stop"              // Stop text
		        //navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
});
            
	$("#slide-jump").click(function(){$('.anythingSlider').anythingSlider(5); });
	
	$('#datetime').hover(
		function(){
			this.style.color ='#fff';
		}
	)
	$('#closeSliderBt').click(function () {
        $('.anythingSlider, #closeSliderBt').slideUp();
		$('#showSliderBt').show("slow");
    });
	$('#showSliderBt').click(function () {
        $('.anythingSlider, #closeSliderBt').show("slow");
		$('#showSliderBt').hide();
    });
	$('ul li:last-child').each(function(){
      $(this).addClass("lastRight");
	});	
	$('.footer_colsBlock li:last-child').addClass("lastRight");
});


function CreateBookmarkLink() {
	title = document.title; 
	url = window.location.href;
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} 
	else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title);
	}
	else if(window.opera && window.print) { // Opera Hotlist
		return true;
	}
}

(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)