$(function(){var a=$("div").find(".thisproject").prop("id");if($(".dupestory").prop("id").substring(3)>0){$(".dupestory").show()}$(".dupestory").mouseover(function(){$("html, body").css("cursor","pointer")});$(".dupestory").mouseout(function(){$("html, body").css("cursor","default")});$(".dupestory").click(function(){var b="SAID="+$(".dupestory").prop("id").substring(3);if($(this).prop("id").substring(0,3)=="dut"){b=b+"&TASKS=True"}$.ajax({type:"GET",url:"story_Duplicate.php",data:b,success:function(c){$("#msg_div").html(c);$("#msg_div").show()}})});$("#singleFieldTags").tagit({autocomplete:{delay:0,minLength:0},tagSource:function(c,b){$.ajax({type:"GET",url:"project_GetTags.php",data:"PID="+a,success:function(e){var d=e.substring(2).split(",");arrx=$.grep(d,function(f){if(f.substr(0,c.term.length).toLowerCase()==c.term.toLowerCase()){return f}});b(arrx.sort())}})},tagLimit:20,onTagClicked:function(b,c){var d="story_List.php?searchstring=tag:"+c.tagLabel+"&PID="+a+"&Type=search";window.location=d}});$("textarea").htmlarea({toolbar:[["html"],["bold","italic","underline","strikethrough","superscript","subscript"],["cut","copy","paste"],["increasefontsize","decreasefontsize"],["forecolor"],["orderedList","unorderedList"],["indent","outdent","justifyleft","justifycenter","justifyright"],["link","unlink"]]})});