// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

setup_corner_image(init_corner_image);

setup_corner_image({
	selector:"div#mini_sitemap", 
	before_image:"/images/content_right_top.png",
	before_image_class:"content_right_corner_top", 
	after_image:"/images/content_right_bottom.png",
	after_image_class:"content_right_corner_bottom"
});

if(init_resize_main_content_height){
	resize_main_content_height();
}

$$("input").each(function(obj){
	// checkboxes are not need border.
	if(obj.type == "checkbox"){
		obj.style.border = "none";
	
	// submit fix.
	} else if(obj.type == "submit"){
		obj.style.lineHeight = "1.5";
		obj.style.padding = "0 0.5em";
	}
})
