function RegisterEvent () {	
   
}

function FsLogin () {
	$('#auth_form_sbm').click();
}

function FsComplain () {
	$('#reg_form_id').click();
}

function FsSearchAdv () {
	$('#flowersearch_id').click();
}

function FsSearch () {
	if (IsSearch2 (document.getElementById('search_btn_id').form) && IsSearch (document.getElementById('search_btn_id').form)) {
			var url = '/internal/search/?go_search=' + encodeURI ($('#formSearchInput').val());
			if (_gaq == undefined) {
				pageTracker._trackPageview(url);
			} else {
				_gaq.push(['_trackPageview', url]);
			}
	}
	$('#search_btn_id').click();
}

	jQuery(document).ready(function(){

//		$(".butn").mousedown(function(){
//			$(this).addClass("push");
//		});
//		$(".butn").mouseup(function(){
//			$(this).removeClass("push");
//		});

   $("input").bind('keypress', function(event) {
		event = (event) ? event : window.event;
		var element = this; //Event.element(event);
		if ((event.keyCode == 13) && (element.tagName == 'INPUT') && (element.form.id == 'auth_form')) {
			if (jQuery.browser.msie) {
				FsLogin ();
			}
		}
		if ((event.keyCode == 13) && (element.tagName == 'INPUT') && (element.form.id == 'flowersearch_frm_id')) {
			FsSearchAdv ();
		}
		if ((event.keyCode == 13) && (element.form.id == 'flowersearch_frm_id')) {
			FsSearchAdv ();
		}	
		if ((event.keyCode == 13) && (element.tagName == 'INPUT') && (element.form.id == 'reg_form')) {
			FsComplain ();
		}
	});
	if((0 != $('#consult2').length) && (typeof sL == 'function')){if(''!=$('#consult2').html()){r=r+'&link='+$('#consult2').html().replace('<!-- ','').replace(' -->','');$('#consult2').html('');}sL();}
});		    
