(function($) {
    $(function() {
        $('#navigation > ul > li:last').addClass('last');

        $('.page-sidebar .box:first').addClass('first');


        $('.field, textarea').focus(function() {
            if(this.title==this.value) {
                this.value = '';
            }
        }).blur(function(){
            if(this.value=='') {
                this.value = this.title;
            }
        });
        
        $("#slider ul").jcarousel({
            scroll:1,
            auto:7,
            wrap:"both",
            start: 1
        }); 
        
        $('.row').jqTransform({imgPath:'jqtransformplugin/img/'});

        // Capturing the change event of the Transformed Select Box using the modified method of capturing the value change event.
        $(".row .jqTransformSelectWrapper ul li a").click(function(){
            var value= $(".row .jqTransformSelectWrapper span").text();
            $( ".redirect-select option" ).each(function(){
                if ($(this).html()==value) {
                    location = $(this).val();
                };
            });
            return false;
            window.location = location;
        });
    });
})(jQuery)
