﻿
/*
	@author: Rooc
	@version: 0.1 internal release
*/


jQuery.fn.defaultButtonFirefox = function(settings) {

	//firefox hack for default button of panel
	jQuery(this).find("a").each(function() {
		if (jQuery.browser.msie == false) {
			var id =jQuery(this).attr('id');
			if (id != '' && typeof(id) != 'undefined')
			{
				document.getElementById(id).click =  function() { 
					var result = true;
					if (this.onclick) result = this.onclick();
					if (typeof(result) == 'undefined' || result) {
						eval(this.href);
					}
				}
			}
		}
	});
	
	// return the element
	return jQuery(this);

}

