jQuery.jCore={url:{genPathFromString:function $jQuery$jCore$url$genPathFromString$($string$$){$string$$=$string$$.replace(/(<([^>]+)>)/ig,"");$string$$=$string$$.replace(" ","-");return $string$$=$string$$.replace(/([^a-z^0-9^_^-]*)/ig,"")}},tooltip:{display:function $jQuery$jCore$tooltip$display$($string$$){jQuery.loading(false);jQuery.loading(true,{text:$string$$,max:5E3})}},form:{INPUT_TYPE_TEXT:1,INPUT_TYPE_EMAIL:2,INPUT_TYPE_FILE:12,appendEntryTo:function $jQuery$jCore$form$appendEntryTo$($to$$,
$title$$,$name$$,$type$$,$required$$,$value$$,$attribute$$){if($to$$==undefined)return false;html="";html+="<div class='form-entry form-entry-"+jQuery.jCore.url.genPathFromString($name$$)+"'><div class='form-entry-title'>"+$title$$+"</div><div class='form-entry-content'>";html+=$type$$==this.INPUT_TYPE_TEXT||$type$$==this.INPUT_TYPE_EMAIL?"<input type='text' name='"+$name$$+"' class='text-entry' value='"+$value$$+"' "+$attribute$$+"/> ":$type$$==this.INPUT_TYPE_FILE?"<input type='file' name='"+$name$$+
"' class='file-entry' value='"+$value$$+"' "+$attribute$$+"/> ":"This type is not supported yet! ";html+="<a href='javascript://' class='remove-link' onclick=\"jQuery.jCore.form.removeEntry(this);\">Remove</a></div></div>";jQuery($to$$).append(html);return true},removeEntry:function $jQuery$jCore$form$removeEntry$($entry$$){if($entry$$==undefined)return false;jQuery($entry$$).closest(".form-entry").remove();return true}},modules:{}};
jQuery.fn.extend({jCore:function(){if(typeof ChiliBook=="object"){ChiliBook.recipeFolder="http://jcore.net/lib/jquery/chili/";ChiliBook.lineNumbers=true}return this.each(function(){typeof jQuery.loading!="undefined"&&jQuery.loading({onAjax:true,delay:1E3});typeof jQuery(this).fcToggle!="undefined"&&jQuery(this).find(".fc-title").fcToggle();typeof jQuery(this).mailme!="undefined"&&jQuery(this).find(".mailme").mailme();typeof jQuery(this).rating!="undefined"&&jQuery(this).find(".star-rating").rating({split:2});
if(typeof jQuery(this).corner!="undefined"){jQuery(this).find(".rounded-corners-top").corner("top 5px");jQuery(this).find(".rounded-corners-bottom").corner("bottom 5px");jQuery(this).find(".rounded-corners").corner("5px")}typeof jQuery(this).dropDownMenu!="undefined"&&jQuery(this).find("#main-menu .menu").dropDownMenu();typeof jQuery(this).chili!="undefined"&&jQuery(this).find("code").chili();jQuery(this).find(".list tbody tr").mouseenter(function(){jQuery(this).addClass("hilight")}).mouseleave(function(){jQuery(this).removeClass("hilight")});
jQuery(this).find(".confirm-link").click(function(){return confirm("Please confirm your action: "+jQuery(this).attr("title")+"?!")});typeof jQuery(this).ajaxLink!="undefined"&&jQuery(this).find(".ajax-link").ajaxLink();typeof jQuery(this).ajaxDownloadLink!="undefined"&&jQuery(this).find(".ajax-download-link").ajaxDownloadLink();typeof jQuery(this).ajaxForm!="undefined"&&jQuery(this).find("form.ajax-form").ajaxForm();typeof jQuery(this).ajaxContentLink!="undefined"&&jQuery(this).find(".ajax-content-link").ajaxContentLink();
typeof jQuery(this).ajaxLightboxLink!="undefined"&&jQuery(this).find(".ajax-lightbox-link").ajaxLightboxLink();typeof jQuery(this).ajaxPaging!="undefined"&&jQuery(this).find(".paging-ajax a").ajaxPaging();jQuery(this).find(".checkbox-all").click(function(){var $checked_status$$=this.checked;jQuery(this).parents("form").find("input[type=checkbox]").each(function(){this.checked=$checked_status$$})});if(typeof jQuery(this).datepicker!="undefined"){jQuery(this).find(".calendar-input").each(function(){if(jQuery(this).is(".timestamp")){d=
new Date;dateformat="yy-mm-dd "+d.getHours()+":"+d.getMinutes()}else dateformat="yy-mm-dd";jQuery(this).datepicker({dateFormat:dateformat})});jQuery(this).find(".show-calendar-input").click(function(){jQuery(this).parent().find("input").focus();return false});jQuery(this).find(".clear-calendar-input").click(function(){jQuery(this).parent().find("input").val("");return false})}typeof jQuery(this).lightBox!="undefined"&&jQuery(this).find("a[rel^=lightbox]").each(function(){jQuery(this.tagName+'[href][rel="'+
jQuery(this).attr("rel")+'"]').lightBox()});typeof jQuery(this).lightBox!="undefined"&&jQuery(this).find("a[rel^=videolightbox]").each(function(){jQuery(this.tagName+'[href][rel="'+jQuery(this).attr("rel")+'"]').lightBox({disableSlideShow:true,disableDownload:true,ajaxContent:true,fixedNavigation:true,txtImage:"Video"})});typeof jQuery(this).qtip!="undefined"&&jQuery(this).find(".qtip").qtip({style:{name:"cream",tip:true},position:{adjust:{screen:true}}});typeof jQuery(this).tabby!="undefined"&&jQuery(this).find("textarea.code-editor").tabby();
typeof jQuery(this).keypad!="undefined"&&jQuery(this).find('input[type="password"]').keypad({keypadOnly:false,layout:$.keypad.qwertyLayout})})}});
