function slideTop() {
	$.scrollTo($('#top'), 1000, {easing:'easeInOutQuart', offset:-20} );
}


/*
//Make some global variables
var myGlobals = {
    //True if device is an <b style="color:black;background-color:#ff9999">iPhone</b>
    uaiphone:   (navigator.userAgent.toLowerCase().indexOf('iphone')!='-1'),
    //True if device is an iPad
    uaipad:     (navigator.userAgent.toLowerCase().indexOf('ipad')!='-1')
}

jQuery(function( $ ){
  //If this is an <b style="color:black;background-color:#ff9999">iphone</b>, replace <b style="color:black;background-color:#a0ffff">video</b> object with this code...
  if(myGlobals.uaiphone || myGlobals.uaipad){
      $('object param[name="movie"]').each(function(){
        //Find the <b style="color:black;background-color:#ffff66">Vimeo</b> id of this <b style="color:black;background-color:#a0ffff">video</b>
        var vidid = $(this).attr('value').match(/clip_id=(\d*)\&/)[1];
        //Get the width of the <b style="color:black;background-color:#a0ffff">video</b>
        var vidwidth = $(this).parent().attr('width');
        //Get the height of the <b style="color:black;background-color:#a0ffff">video</b>
        var vidheight = $(this).parent().attr('height');
        //Start with this empty, assuming full quality (for iPad)
        var mobileQual = '';
        //Set to mobile quality if on <b style="color:black;background-color:#ff9999">iPhone</b>
        if(myGlobals.uaiphone){
            mobileQual = '&quality=mobile';
        }
        //Create the replacement HTML5 code for the <b style="color:black;background-color:#a0ffff">video</b>
        var vidlink = "<video src='http://www.vimeo.com/play_redirect?clip_id="+vidid+mobileQual+"" controls="controls" width=""+vidwidth+"" height=""+vidheight+"'></video>";
        //Insert the new HTML5 after the original <b style="color:black;background-color:#a0ffff">video</b>
        $(this).parent().after(vidlink);
        //Remove the original Flash content
        $(this).parent().remove();
      });
  }
});*/


function back() {
		window.location = 'http://www.imcalledandy.com/projects/';
}