/*-----------------------------------------------------------------------------

    Falken Creative : V.2 Javascript Actions

    author:    Ben Falk
    email:     info(at)falkencreative.com
    website:   www.falkencreative.com  
    
    Currently implements a variety of jQuery plugins, including:
    
      -- Thickbox (screencasts)
      -- Lightbox (portfolio)
      -- Media (embedding flash)
      -- Metadata (embedding flash)

-----------------------------------------------------------------------------*/



/*  jQuery Actions
	------------------------------------------------------------------------- */
$(document).ready(function() {

	
	/* Add File Type Icons */
	$('a').filter(function() {
	  return this.hostname && this.hostname !== location.hostname;
	}).addClass("external");

	
	/* go to top */
	$('a[href=#top]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });

	
	/* Header Client Slider */				
	$(".headerslider").click(function() {
		$("#client").slideToggle('1000','');
		$(this).toggleClass("selected");
	});
	
	/* Portfolio Zoom Hover */
	$(".thumb-lrg a").hover(
		function(){ $(this).append('<span class="zoom">&nbsp;</span>') },
		function(){ $(this).children("span").remove() }
	);
	$(".thumb-sml a").hover(
		function(){ $(this).append('<span class="zoom">&nbsp;</span>') },
		function(){ $(this).children("span").remove() }
	);	
	$(".blog-thumbs a").hover(
		function(){ $(this).append('<span class="zoom">&nbsp;</span>') },
		function(){ $(this).children("span").remove() }
	);	
	
	$('#slides').cycle({ 
    	prev:   '#slide-navleft', 
    	next:   '#slide-navright', 
    	timeout: 5000 
	});	
	
});