﻿/// <reference path="jquery-1.4.1-vsdoc.js" />

$().ready(function () {

    $("#slider").sudoSlider({
        prevNext: false,
        numeric: true,
        fade: false,
        pause: 13000,
        ease: 'swing',
        updateBefore: true,
        auto: true,
        continuous: true
    });

    $("a[rel='imageLG']").colorbox({
        maxHeight: '100%',
        maxWidth: '100%',
        scalePhotos: true,
        scrolling: false
    });

    $(".featuredCol:eq(1)").removeClass('featuredCol').addClass('featuredColMid');
    $(".featuredCol:eq(1)").removeClass('featuredCol').addClass('featuredColMid');
    $(".featuredCol:eq(1)").removeClass('featuredCol').addClass('featuredColEnd');

    $("a").removeAttr('disabled');

    $('input[type="text"]').defaultText();

});

/*------------------------------------------------------------
Default Textbox Text
------------------------------------------------------------*/

jQuery.fn.defaultText = function () {
var self = this;
$('form').submit(function () {
   	$(self).each(function () {
   		var t = $(this);
   		if (t.val() == t.attr('title') && t.hasClass('default')) {
   			t.val('');
   		}
   	});
});
return $(this).blur(function () {
   	var t = $(this);
   	if (t.val() == '') {
   		t.val(t.attr('title'));
   		t.addClass('default');
   	}
}).focus(function () {
   	var t = $(this);
   	if (t.val() == t.attr('title') && t.hasClass('default')) {
   		t.val('');
   		t.removeClass('default');
   	}
}).blur();
};

