/*!
 * ExpressionEngine - by EllisLab
 *
 * @package		ExpressionEngine
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2003 - 2011, EllisLab, Inc.
 * @license		http://expressionengine.com/user_guide/license.html
 * @link		http://expressionengine.com
 * @since		Version 2.0
 * @filesource
 */

$(document).ready(function(){var b=$(".editAccordion"),c=$("#template_data");$(".button").css("float","right");b.children("div").hide();b.children("h3").css("cursor","pointer").addClass("collapsed").parent().addClass("collapsed");b.css("borderTop",$(".editAccordion").css("borderBottom"));b.children("h3").click(function(){var a=$(this);a.hasClass("collapsed")?(a.siblings().slideDown("fast"),a.removeClass("collapsed").parent().removeClass("collapsed")):(a.siblings().slideUp("fast"),a.addClass("collapsed").parent().addClass("collapsed"))});
b.filter(".open").find("h3").each(function(){$(this).siblings().show();$(this).removeClass("collapsed").parent().removeClass("collapsed")});c.markItUp(EE.template.markitup);c.createSelection(0,0);EE.template_edit_url=EE.BASE+"&C=design&M=template_edit_ajax";EE.access_edit_url=EE.BASE+"&C=design&M=access_edit_ajax";$("#revisions").submit(function(){var a=$("#revision_id").val();a==="clear"?window.open(EE.template.url+a,"Revision","height=350, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=0, toolbar=0, screenX=60, left=60, screenY=60, top=60"):
a!="0"&&window.open(EE.template.url+a,"Revision");return!1})});
