var main = {    formInit: function() {		$('#searchForm input[type="text"]').addClass("idleField");		$('#searchForm input[type="text"]').focus(function() {       		$(this).removeClass("idleField").addClass("focusField");			if(this.value == this.defaultValue) {    	    	this.value = '';			}			if(this.value != this.defaultValue) {	    		this.select();	    	}    	});		$('#searchForm input[type="text"]').blur(function() {    		$(this).removeClass("focusField").addClass("idleField");			if($.trim(this.value) == '') {			   	this.value = (this.defaultValue ? this.defaultValue : '');			}    	});    }};$().ready(function() {        if($('#searchForm').length > 0) {            main.formInit();                   }	$('#recommendedContainer').wslide({		width: 430,		height: 322,		horiz: true,		autolink: "recommendedMenu",		duration: 500,		effect: 'easeOutElastic'	});	$('#recommendedMenu :last-child').addClass('last');        /* flash message close */        $('#flashMessage .close').click(function() {             $('#flashMessage').slideUp(400);             return false;        });    $('#submitPoll').click( function() {        var vote = $("input[@name='vote']:checked").val();        var pollId = $('#pollIdValue').val();        $.post(baseUrl+"poll/vote", {            pollId: pollId,            vote: vote        },        function(data){            $('#pollContent').html(data);                    });        return false;    });    $('#showPollScore').click( function() {        var pollId = $('#pollIdValue').val();        $.post(baseUrl+"poll/show-ajax", {            pollId: pollId        },        function(data){            $('#pollContent').html(data);        });        return false;    });});