
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console) {
    arguments.callee = arguments.callee.caller;
    var newarr = [].slice.call(arguments);
    (typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr));
  }
};

// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
{console.log();return window.console;}catch(err){return window.console={};}})());


// place any jQuery/helper plugins in here, instead of separate, slower script files.


//Nivo-Slider
    jQuery(window).load(function() {
        jQuery("#slider").nivoSlider({
				effect:"fade",
				slices:1,
				boxCols:1,
				boxRows:1,
				animSpeed:800,
				pauseTime:3500,
				startSlide:0,
				directionNav:true,
				directionNavHide:true,
				controlNav:true,
				controlNavThumbs:false,
				controlNavThumbsFromRel:true,
				keyboardNav:true,
				pauseOnHover:true,
				manualAdvance:false,
				captionOpacity:1
			});
    });
	
	
	
//Anything-Slider	
	$(function(){
		 $('#news').anythingSlider({
			  // Appearance
			  resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
			  
			  // Navigation
			  startPanel          : 1,         // This sets the initial panel
			  buildArrows         : true,      // If true, builds the forwards and backwards buttons
			  buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
			  navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
			  forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
			  backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			  			
			  // Slideshow options
			  autoPlay            : false,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
			  startStopped        : false,     // If autoPlay is on, this can force it to start stopped
			  pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
			  delay               : 3000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
			  animationTime       : 600,       // How long the slideshow transition takes (in milliseconds)
			  easing              : "swing"    // Anything other than "linear" or "swing" requires the easing plugin
		  })
		});
		
    $(function(){
		 $('#quotes').anythingSlider({
			  // Appearance
			  resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
			  
			  // Navigation
			  startPanel          : 1,         // This sets the initial panel
			  buildArrows         : true,      // If true, builds the forwards and backwards buttons
			  buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
			  navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
			  forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
			  backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			  			
			  // Slideshow options
			  autoPlay            : false,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
			  startStopped        : false,     // If autoPlay is on, this can force it to start stopped
			  pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
			  delay               : 3000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
			  animationTime       : 600,       // How long the slideshow transition takes (in milliseconds)
			  easing              : "swing"    // Anything other than "linear" or "swing" requires the easing plugin
		  })
		});


		  
		  
//Smoothdivscroll	  
$(window).load(function() {
			$("#logo-slider").smoothDivScroll({ 
				autoScroll: "onstart", 
				autoScrollDirection: "endlessloopright", 
				autoScrollStep: 1, 
				autoScrollInterval: 15, 
				visibleHotSpots: ""
			});
			$("#logo-slider").bind("mouseover", function() {
				$(this).smoothDivScroll("stopAutoScroll");
			}).bind("mouseout", function() {
				$(this).smoothDivScroll("startAutoScroll");
			});
		});		  
		
