jQuery.noConflict();jQuery(document).ready(function(){jQuery("a.fancybox").fancybox();jQuery("div.preview_image").mouseover(function(){jQuery(this).animate({opacity:0.5},300);});jQuery("div.preview_image").mouseout(function(){jQuery(this).animate({opacity:1},300);});jQuery("body").css("background","#000");});function formatText(index,panel)
{return index+"";}
jQuery(function(){jQuery('.anythingSlider').anythingSlider({easing:"easeInOutExpo",autoPlay:false,delay:3000,startStopped:false,animationTime:600,hashTags:true,buildNavigation:true,pauseOnHover:true,startText:"Go",stopText:"Stop",navigationFormatter:formatText});jQuery("#slide-jump").click(function(){jQuery('.aslider').anythingSlider(6);});});var num_projects_per_page=5;var num_sidebar_projects=0;var project_height=95;var current_top_project=0;var animation_speed=300;function view_work(url)
{if(current_top_project>0){window.location=url+"?work="+current_top_project;}
else{window.location=url;}}
function init_scroll_position()
{var distance=project_height*(current_top_project);jQuery('#left div.work_list').css('top',"-"+distance+"px");}
function current_bottom_work()
{return current_top_project+num_projects_per_page;}
function check_nav()
{if(can_scroll_up()){jQuery('#work_list_nav_up').css('background-position','0 -30px');}
else{jQuery('#work_list_nav_up').css('background-position','0 0');}
if(can_scroll_down()){jQuery('#work_list_nav_down').css('background-position','0 -30px');}
else{jQuery('#work_list_nav_down').css('background-position','0 0');}}
function can_scroll_down()
{return(current_top_project>0);}
function can_scroll_up()
{return(current_bottom_work()<num_sidebar_projects);}
function scroll_down()
{var distance=project_height*(current_top_project+1);jQuery("#left div.work_list").animate({left:0,top:-distance},animation_speed);current_top_project+=1;check_nav();}
function scroll_up()
{var distance=project_height*(current_top_project-1);jQuery("#left div.work_list").animate({left:0,top:-distance},animation_speed);current_top_project-=1;check_nav();}