// <![CDATA[
/**
 * Inspired by http://www.joesak.com/2008/11/19/a-jquery-function-to-auto-fill-input-fields-and-clear-them-on-click/
 * Auto-Fill input fields and clear them on click
 */
function autoFill(id, v, lightText, darkText) {
	$(id)
	.css({ color: lightText }) // lighten default color
	.attr({ value: v }) // set value
	.focus(function(){ 
		if($(this).val()==v){
			$(this).val('').css({ color: darkText }); // clear the field and darken text color
		}
	}).blur(function(){
		if($(this).val()==''){
			$(this).css({ color: lightText }).val(v);
		}
	});

};

var l = '#929292';
var d = '#222';

$(document).ready(function(){
    // Cycle through image slidshow in header
    $('.slideshow').cycle({});

    // add fancybox modal plugin to site images and contact form
    $('a[rel=sites]').fancybox({
	    'titlePosition'	: 'over'
	});
});
// ]]>

