/* jQuery.fn.windowResize() - jQuery plugin to resize the window cross browsers uniformly.
*/

jQuery.fn.windowResize = function(width,height,xwidth,xheight) {
	if (!width) {width='100%';}
	if (!height) {height='100%';}

	var element = jQuery(this);
	change(width,height,xwidth,xheight);

	function change(width,height,xwidth,xheight) {
		jQuery.each(jQuery.browser, function(i, val) {
			if(i=="msie" && val == true) {
				window.resizeTo(width+10,height+83);
			}
			if(i=="safari" && val == true) {
				window.resizeTo(width,height+23);
			}
			if(i=="opera" && val == true) {
				window.resizeTo(width,height+37);
			}
			if(i=="firefox" && val == true) {
				window.resizeTo(width,height);
			}
		});
	}
};

