Gravity forms javascript

//Enqueue Gravity Forms CSS and scripts for use outside the loop
wp_enqueue_script("gforms_ui_datepicker", WP_PLUGIN_URL . "/gravityforms/js/jquery-ui/ui.datepicker.js", array("jquery"), "1.3.9", true);
wp_enqueue_script("gforms_datepicker", WP_PLUGIN_URL . "/gravityforms/js/datepicker.js", array("gforms_ui_datepicker"), "1.3.9", true);
wp_enqueue_script("gforms_conditional_logic_lib", WP_PLUGIN_URL . "/gravityforms/js/conditional_logic.js", array("gforms_ui_datepicker"), "1.3.9", true);
wp_enqueue_style("gforms_css", WP_PLUGIN_URL . "/gravityforms/css/forms.css");

WP Texturize

remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
remove_filter('comment_text', 'wptexturize');

Create category term

//Initilize Plugin
if(!is_term("WP Videos", "category")){
$arg = array('description' => "Main category for all of the WP Video Player videos", 'parent' => 3);
$new_cat_id = wp_insert_term("WP Videos", "category", $arg);
}

Collapse and Expand

<!-- This is the Activator -->
<span style="cursor:pointer; text-decoration:underline; color:#69F;" onclick="javascript: expandCollapse('div_to_expand');">Click to Expand or Collapse</span>

<!-- This the div to expand and collapse -->
<div id="div_to_expand" style="display:none; background-color:#69F; height:100px">Content for the Div</div>

<script language="javascript">
function expandCollapse() {
for (var i=0; i<expandCollapse.arguments.length; i++) {
var element = document.getElementById(expandCollapse.arguments[i]);
element.style.display = (element.style.display == "none") ? "block" : "none";
}
}
</script>

Category Exists

<?php if(check_if_cat_exists('uncategorized')) echo "Category Exists"; ?>

function check_if_cat_exists($category_name){
$category_to_check = get_category_by_slug($category_name);
if (!empty($category_to_check)) return true;
}