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

// AdSense
google_ad_client = "pub-4009646888423142";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "3CAD21";
google_color_text = "000000";
google_color_url = "3CAD21";
google_ui_features = "rc:0";


// Credit to Shawn Olson & http://www.shawnolson.net 
function checkUncheckAll(theElement) {
	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++){
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
			theForm[z].checked = theElement.checked;
		}
	}
}

function expand(theElement){
	try { $(theElement).visualEffect('blind_toggle'); } 
	catch (e)
	{ alert('RJS error:\n\n' + e.toString() + '\n\n Element: ' + theElement); 
	alert('$(\'create_camera_NYM00448\').visualEffect(\'blind_toggle\');'); throw e }; 
	return false;
}