/* * JavaScript Document* gregmerriman.co.uk* jquery.onload.home.js* * includes/js/jquery.onload.home.js* * Author    :   Greg Merriman* Copyright :   Copyright 2009 (c) Greg Merriman Web Development* Created   :   Wed 04 Nov 2009* Modified  :   Mon 09 Nov 2009* */ // When the DOM is ready...$(function(){		//do slider...	$("#workexamples").easySlider({  	controlsShow: true,				  	vertical:	false,  	speed: 900,  	auto:	true,  	pause: 9000,  	continuous:	false,  	numeric: true,    numericId: 'controls'  });      //swap positions of image and h4 heading in the services section...  $('#services').children().each(function(){    var heading = $(this).children("h4");    var image = $(this).children("img");       heading.insertAfter(image);  });      //change the html value of numberchars onload  var chars_left = 140 - $('#message').val().length;  //update the html value of numberchars  $('#numberchars').html(chars_left);      //quickcontact number of characters doda...  //bind on keyup event for message textarea  $('#message').keyup(function(){    var chars_left = 140 - $(this).val().length;    //update the html value of numberchars    $('#numberchars').html(chars_left);    if (chars_left < 0)    {      $('#numberchars').addClass('toolong');    }  });	});