/* PLUGINS */


/* 
* randBgImg V1
* A jQuery Plugin that shows random background image on page load
* NYTRMG
* 
* $("#foo").randBgImg({
*		images:["1.png","2.png","3.png"],
*		bgRepeat: "no-repeat",
*		bgPos: "0 0"
*	});
*
*/
jQuery.fn.randBgImg = function(opt) {
	opt = jQuery.extend({
		images: null,
		bgRepeat: "no-repeat",
		bgPos: "0 0"
	}, opt);
	
	img = opt.images
	rand = Math.floor(Math.random() * img.length);
	
	jQuery(this).each(function() {
		jQuery(this).css("background"," "+opt.bgPos+" "+opt.bgRepeat+" url("+img[rand]+")");
	});
	
};


/* INIT JQUERY */
jQuery(document).ready(function () {
	
	jQuery("input[type*='submit']").addClass("button");
	jQuery("input[type*='reset']").addClass("button");
	
	
});