// JavaScript Document

$(function () {

$('#slider1').anythingSlider({

startStopped : true, // If autoPlay is on, this can force it to start stopped

width : 920, // Override the default CSS width

// toggleControls : true, // if true, then slide in controls on hover and slider change, hide @ other times

onSlideComplete : function(slider){

// alert('Welcome to Slide #' + slider.currentPage);

}

});

$("#slide-jump1").click(function(){

$('#slider1').anythingSlider(1);

return false;

});

$("#slide-jump2").click(function(){

$('#slider1').anythingSlider(2);

return false;

});

$("#slide-jump3").click(function(){

$('#slider1').anythingSlider(3);

return false;

});

$("#slide-jump4").click(function(){

$('#slider1').anythingSlider(4);

return false;

});

$("#slide-jump5").click(function(){

$('#slider1').anythingSlider(5);

return false;

});

$("#slide-jump6").click(function(){

$('#slider1').anythingSlider(6);

return false;

});

$("#slide-jump7").click(function(){

$('#slider1').anythingSlider(7);

return false;

});

$("#slide-jump8").click(function(){

$('#slider1').anythingSlider(8);

return false;

});

// Report Events to console

$('.anythingSlider').bind('slideshow_start slideshow_stop slideshow_paused slideshow_unpaused slide_init slide_begin slide_complete',function(e, slider){

// show object ID + event (e.g. "slider1: slide_begin")

var txt = slider.$el[0].id + ': ' + e.type + ', now on panel #' + slider.currentPage;

$('#status').text(txt);

if (window.console && window.console.firebug){ console.debug(txt); } // added window.console.firebug to make this work in Opera

});

});



$(document).ready(function(){

						   $(".limg").fadeTo("300", 0.5); // This sets the opacity of the thumbs to fade down to 30% when the page loads

						   $(".limg").hover(function(){

						   $(this).fadeTo("300", 1.0); // This should set the opacity to 100% on hover

						   },function(){

						   $(this).fadeTo("300", 0.5); // This should set the opacity back to 30% on mouseout

						   });

						   });

function preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.p) d.p=new Array();

    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}

}



	   $(document).ready(

				function(){

				$('ul#portfolio').innerfade({

						speed: 1000,

						timeout: 5000,

						type: 'sequence',

						containerheight: '330px'

					});

			});
