function category_select(id,title,required,optional,url,w3s){$("required_upload").innerHTML=eval("upload_"+required+"('required_upload_data', 'Required')");$("optional_upload").innerHTML=eval("upload_"+optional+"('optional_upload_data', 'Optional')");$("temp_template_category_id").value=id;$("selected_template_title").innerHTML=title;$("select_template_categories").hide();$("remaining_form").show();$("reset_category").show();if(w3s){$("w3standard").show()}else{$("w3standard").hide()}if(url){$("url").show()}else{$("url").hide()}}function change_category(){$("remaining_form").hide();$("select_template_categories").show();$("reset_category").hide()}function reset_fileupload(){$("template_category_"+$("temp_template_category_id").value).click()}function upload_0(a,b){return""}function upload_1(a,b){html="<p>";html+="<strong>Zip File</strong> - "+b+"<br />";html+="<input id='temp_"+a+"' name='temp["+a+"]' size='30' type='file' />";html+="</p>";return html}function upload_2(a,b){html="<p>";html+="<strong>Paste Snippet</strong> - "+b+"<br />";html+="<textarea id='temp_"+a+"' name='temp["+a+"]' rows='15' cols='40' ></textarea>";html+="</p>";return html}function upload_3(a,b){html="<p>";html+="<strong>XML File</strong> - "+b+"<br />";html+="<input id='temp_"+a+"' name='temp["+a+"]' size='30' type='file' />";html+="</p>";return html}function toggle_tag(a){form_tags=[];if($("temp_tag_list").value!=""){$("temp_tag_list").value=$("temp_tag_list").value.replace(/,\W*$/,"");form_tags=$("temp_tag_list").value.split(",")}form_tags=form_tags.collect(function(b){return b.replace(/^\W+/,"").replace(/\W+$/,"")});if(form_tags.include(a)){form_tags=form_tags.without(a);$(a).checked=false}else{form_tags.push(a);$(a).checked=true}if(form_tags.length>0){$("temp_tag_list").value=form_tags.join(", ")}else{$("temp_tag_list").value=""}}
/*
 * Simple Image Trail script- By JavaScriptKit.com
 * Visit http://www.javascriptkit.com for this script and more
 * This notice must stay intact
*/
var w=1;var h=1;if(document.getElementById||document.all){document.write('<div id="trailimageid" style="position:absolute;visibility:hidden;left:0px;top:-1000px;width:1px;height:1px;border:1px solid #888888;background:#DDDDDD;z-index:5"><img id="ttimg" src="img/s.gif" /></div>')}function gettrailobj(){if(document.getElementById){return document.getElementById("trailimageid").style}else{if(document.all){return document.all.trailimagid.style}}}function truebody(){return(!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function hidetrail(){document.onmousemove="";document.getElementById("ttimg").src="/img/s.gif";gettrailobj().visibility="hidden";gettrailobj().left=-1000;gettrailobj().top=0}function showtrail(c,a,b){if(navigator.userAgent.toLowerCase().indexOf("opera")==-1){w=c;h=a;document.getElementById("ttimg").src=b;document.onmousemove=followmouse;gettrailobj().visibility="visible";gettrailobj().width=w+"px";gettrailobj().height=h+"px"}}function followmouse(f){if(navigator.userAgent.toLowerCase().indexOf("opera")==-1){var b=20;var a=20;if(typeof f!="undefined"){b+=f.pageX;a+=f.pageY}else{if(typeof window.event!="undefined"){b+=truebody().scrollLeft+event.clientX;a+=truebody().scrollTop+event.clientY}}var d=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var c=document.all?Math.max(truebody().scrollHeight,truebody().clientHeight):Math.max(document.body.offsetHeight,window.innerHeight);if(b+w+3>d){b=b-w-(20*2)}if(a-truebody().scrollTop+h>truebody().clientHeight){a=a-h-20}gettrailobj().left=b+"px";gettrailobj().top=a+"px"}};