;
jQuery.cookie=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options=$.extend({},options);options.expires=-1;}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires="; expires="+date.toUTCString();}var path=options.path?"; path="+(options.path):"";var domain=options.domain?"; domain="+(options.domain):"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("");}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+"=")){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}return cookieValue;}};
;
var sl_interval;$(document).ready(function(){$("#search").focus(function(){if(this.value=="Search SecondMarket"){this.value="";}});if($(".spotlight").length>1){sl_interval=setInterval(spotlight_rotate_smart,6000);}});function spotlight_rotate_smart(){$(".spotlight").each(function(i,div){if($(div).css("display")=="block"){active_idx=i+1;}});$(".spotlight").hide();$($(".spotlight")[active_idx%$(".spotlight").length]).fadeIn("normal");}function spotlight_show(idx){clearInterval(sl_interval);$(".spotlight").hide();$($(".spotlight")[idx]).fadeIn("normal");sl_interval=setInterval(spotlight_rotate_smart,3000);}function pop(id,x,y){var sh=$(window).height();var scrollTop=$(window).scrollTop();var ih=$(id).height();var top=y;y=y-scrollTop;if(y+ih>sh){top=sh-ih-100+scrollTop;}if(top<0){top=0+scrollTop;}$(id).css("top",top+"px");$(id).css("left",x+"px");$(id).fadeIn("slow");}function hidepop(id){$(id).fadeOut("slow");}
;
function reveal_lightbox(url,ssl,use_close_btn,__w,__h){if(typeof(__w)=="undefined"){__w=671;__h=488;}else{__w-=28;__h-=11;}if(url.substr(0,1)!="/"){url="/"+url;}var p="http://";if(ssl){p="https://";}params="&TB_iframe=true&height="+__h+"&width="+__w+"&modal=true";if(url.indexOf("?")<0){params="?"+params;}tb_show(null,p+HTTP_HOST+url+params,null,use_close_btn);}function remove_lightbox(){tb_remove();}function set_closebtn_top_right(top,right){if(top!=null){$("#TB_closeBtn").css("top",top+"px");}if(right!=null){$("#TB_closeBtn").css("right",right+"px");}}function useCloseBtn(bool){if(bool){$("#TB_closeBtn").show();}else{$("#TB_closeBtn").hide();}}var tb_pathToImage="/images/dep/thickbox/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){imgLoader=new Image();imgLoader.src=tb_pathToImage;});var chunk;function tb_init(domChunk){chunk=domChunk;$(domChunk).click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false;});}function tb_show(caption,url,imageGroup,use_close_btn){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack");}else{$("#TB_overlay").addClass("TB_overlayBG");}if(caption===null){caption="";}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var baseURL;if(url.indexOf("?")!==-1){baseURL=url.substr(0,url.indexOf("?"));}else{baseURL=url;}var urlString=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var urlType=baseURL.toLowerCase().match(urlString);if(urlType==".jpg"||urlType==".jpeg"||urlType==".png"||urlType==".gif"||urlType==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(imageGroup){TB_TempArray=$("a[@rel="+imageGroup+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var urlTypeTemp=TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);if(!(TB_TempArray[TB_Counter].href==url)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length);}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=tb_getPageSize();var x=pagesize[0]-150;var y=pagesize[1]-150;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;}}else{if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;}}}TB_WIDTH=imageWidth+30;TB_HEIGHT=imageHeight+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>"+"<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function goPrev(){if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,imageGroup);return false;}$("#TB_prev").click(goPrev);}if(!(TB_NextHTML==="")){function goNext(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,imageGroup);return false;}$("#TB_next").click(goNext);}document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}if(keycode==27){tb_remove();}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext();}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev();}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"});};imgPreloader.src=url;}else{var queryString=url.replace(/^[^\?]+\??/,"");var params=tb_parseQuery(queryString);TB_WIDTH=(params["width"]*1)+30||630;TB_HEIGHT=(params["height"]*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(url.indexOf("TB_iframe")!=-1){urlNoQuery=url.split("TB_");$("#TB_iframeContent").remove();if(params["modal"]!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' frameborder='No'  allowtransparency='true' scrolling='no'> </iframe>");}}else{if($("#TB_window").css("display")!="block"){if(params["modal"]!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(caption);}}$("#TB_closeWindowButton").click(tb_remove);if(url.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+params["inlineId"]).children());$("#TB_window").unload(function(){$("#"+params["inlineId"]).append($("#TB_ajaxContent").children());});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});}else{if(url.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"});}}else{$("#TB_ajaxContent").load(url+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"});});}}}if(!params["modal"]){document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}if(keycode==27){tb_remove();}};}}catch(e){}if(use_close_btn){$("#TB_window").append("<a href='javascript:remove_lightbox();' id='TB_closeBtn'><img src='/images/btns/close_corner.png' /></a>");}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}function tb_remove(){$("#TB_overlay").unbind("click");$("#TB_load").unbind("click");$("#TB_HideSelect").unbind("click");$("#TB_window").unbind("click");$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove();});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","");}document.onkeydown="";document.onkeyup="";return false;}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"});}}function tb_parseQuery(query){var Params={};if(!query){return Params;}var Pairs=query.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split("=");if(!KeyVal||KeyVal.length!=2){continue;}var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g," ");Params[key]=val;}return Params;}function tb_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;arrayPageSize=[w,h];return arrayPageSize;}function tb_detectMacXFF(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf("mac")!=-1&&userAgent.indexOf("firefox")!=-1){return true;}}
;
(function($){$.fn.addOption=function(){var add=function(el,v,t,sO){var option=document.createElement("option");option.value=v,option.text=t;var o=el.options;var oL=o.length;if(!el.cache){el.cache={};for(var i=0;i<oL;i++){el.cache[o[i].value]=i;}}if(typeof el.cache[v]=="undefined"){el.cache[v]=oL;}el.options[el.cache[v]]=option;if(sO){option.selected=true;}};var a=arguments;if(a.length==0){return this;}var sO=true;var m=false;var items,v,t;if(typeof(a[0])=="object"){m=true;items=a[0];}if(a.length>=2){if(typeof(a[1])=="boolean"){sO=a[1];}else{if(typeof(a[2])=="boolean"){sO=a[2];}}if(!m){v=a[0];t=a[1];}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return;}if(m){for(var item in items){add(this,item,items[item],sO);}}else{add(this,v,t,sO);}});return this;};$.fn.ajaxAddOption=function(url,params,select,fn,args){if(typeof(url)!="string"){return this;}if(typeof(params)!="object"){params={};}if(typeof(select)!="boolean"){select=true;}this.each(function(){var el=this;$.getJSON(url,params,function(r){$(el).addOption(r,select);if(typeof fn=="function"){if(typeof args=="object"){fn.apply(el,args);}else{fn.call(el);}}});});return this;};$.fn.ajaxSetOptions=function(url,params,select,fn,args){if(typeof(url)!="string"){return this;}if(typeof(params)!="object"){params={};}if(typeof(select)!="boolean"){select=true;}this.each(function(){var el=this;$.getJSON(url,params,function(r){$(el).removeOption(/./);$(el).addOption(r,select);if(typeof fn=="function"){if(typeof args=="object"){fn.apply(el,args);}else{fn.call(el);}}});});return this;};$.fn.removeOption=function(){var a=arguments;if(a.length==0){return this;}var ta=typeof(a[0]);var v,index;if(ta=="string"||ta=="object"||ta=="function"){v=a[0];if(v.constructor==Array){var l=v.length;for(var i=0;i<l;i++){this.removeOption(v[i],a[1]);}return this;}}else{if(ta=="number"){index=a[0];}else{return this;}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return;}if(this.cache){this.cache=null;}var remove=false;var o=this.options;if(!!v){var oL=o.length;for(var i=oL-1;i>=0;i--){if(v.constructor==RegExp){if(o[i].value.match(v)){remove=true;}}else{if(o[i].value==v){remove=true;}}if(remove&&a[1]===true){remove=o[i].selected;}if(remove){o[i]=null;}remove=false;}}else{if(a[1]===true){remove=o[index].selected;}else{remove=true;}if(remove){this.remove(index);}}});return this;};$.fn.sortOptions=function(ascending){var sel=$(this).selectedValues();var a=typeof(ascending)=="undefined"?true:!!ascending;this.each(function(){if(this.nodeName.toLowerCase()!="select"){return;}var o=this.options;var oL=o.length;var sA=[];for(var i=0;i<oL;i++){sA[i]={v:o[i].value,t:o[i].text};}sA.sort(function(o1,o2){o1t=o1.t.toLowerCase(),o2t=o2.t.toLowerCase();if(o1t==o2t){return 0;}if(a){return o1t<o2t?-1:1;}else{return o1t>o2t?-1:1;}});for(var i=0;i<oL;i++){o[i].text=sA[i].t;o[i].value=sA[i].v;}}).selectOptions(sel,true);return this;};$.fn.selectOptions=function(value,clear){var v=value;var vT=typeof(value);if(vT=="object"&&v.constructor==Array){var $this=this;$.each(v,function(){$this.selectOptions(this,clear);});}var c=clear||false;if(vT!="string"&&vT!="function"&&vT!="object"){return this;}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this;}var o=this.options;var oL=o.length;for(var i=0;i<oL;i++){if(v.constructor==RegExp){if(o[i].value.match(v)){o[i].selected=true;}else{if(c){o[i].selected=false;}}}else{if(o[i].value==v){o[i].selected=true;}else{if(c){o[i].selected=false;}}}}});return this;};$.fn.copyOptions=function(to,which){var w=which||"selected";if($(to).size()==0){return this;}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this;}var o=this.options;var oL=o.length;for(var i=0;i<oL;i++){if(w=="all"||(w=="selected"&&o[i].selected)){$(to).addOption(o[i].value,o[i].text);}}});return this;};$.fn.containsOption=function(value,fn){var found=false;var v=value;var vT=typeof(v);var fT=typeof(fn);if(vT!="string"&&vT!="function"&&vT!="object"){return fT=="function"?this:found;}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this;}if(found&&fT!="function"){return false;}var o=this.options;var oL=o.length;for(var i=0;i<oL;i++){if(v.constructor==RegExp){if(o[i].value.match(v)){found=true;if(fT=="function"){fn.call(o[i],i);}}}else{if(o[i].value==v){found=true;if(fT=="function"){fn.call(o[i],i);}}}}});return fT=="function"?this:found;};$.fn.selectedValues=function(){var v=[];this.selectedOptions().each(function(){v[v.length]=this.value;});return v;};$.fn.selectedTexts=function(){var t=[];this.selectedOptions().each(function(){t[t.length]=this.text;});return t;};$.fn.selectedOptions=function(){return this.find("option:selected");};})(jQuery);
;
function open_me(u){window.open(u,"secondmarketwindow","");}function register_other_with_select_box(sel,other_text){sel.change(function(){v=sel.val();o=other_text;if(sel.val().match(/[Oo]ther/)){other_text.fadeIn();}else{other_text.fadeOut();}});}function register_other_with_checkbox(cbx,other_text){cbx.click(function(){if(cbx.is(":checked")){other_text.fadeIn();}else{other_text.fadeOut();}});}function checkbox_controls_optional_element_with_fade(cbx,el,checked_fades_in){var checked_action=function(){if(checked_fades_in){el.fadeIn();}else{el.fadeOut();}};var un_checked_action=function(){if(checked_fades_in){el.fadeOut();}else{el.fadeIn();}};cbx.click(function(){if(cbx.is(":checked")){checked_action();}else{un_checked_action();}});}function checkbox_controls_optional_element_with_disable(cbx,el,checked_disables){var checked_action=function(){if(checked_disables){el.attr("disabled","disabled");}else{el.removeAttr("disabled");}};var un_checked_action=function(){if(checked_disables){el.removeAttr("disabled");}else{el.attr("disabled","disabled");}};cbx.click(function(){if(cbx.is(":checked")){checked_action();}else{un_checked_action();}});}function checkbox_controls_optional_element_with_grayout(cbx,el,checked_greys_out){var checked_action=function(){if(checked_greys_out){el.addClass("grayout");}else{el.removeClass("grayout");}};var un_checked_action=function(){if(checked_greys_out){el.removeClass("grayout");}else{el.addClass("grayout");}};cbx.click(function(){if(cbx.is(":checked")){checked_action();}else{un_checked_action();}});}function make_radio_from_array_of_checkboxes(ra){$(ra).each(function(){$(this).click(function(){if($(this).is(":checked")){$(ra).each(function(){$(this).removeAttr("checked");});$(this).attr("checked","checked");}});});}function checkboxes_by_input_name_set_state_all(named_group,state_checked_or_disabled,to_on_state){if(!((state_checked_or_disabled=="checked")||(state_checked_or_disabled=="disabled"))){alert("function used improperly");return;}$("input:checkbox").each(function(){if($(this).attr("name")==named_group){if(to_on_state){$(this).attr(state_checked_or_disabled,state_checked_or_disabled);}else{$(this).removeAttr(state_checked_or_disabled);}}});}function master_checkbox_disables_others_by_name(master,named_group){if($(master).is(":checked")){checkboxes_by_input_name_set_state_all(named_group,"checked",false);checkboxes_by_input_name_set_state_all(named_group,"disabled",true);}else{checkboxes_by_input_name_set_state_all(named_group,"disabled",false);}return true;}function checkbox_disable_all_not_me(me){$("input:checkbox").each(function(){if(this!=me.get(0)){$(this).attr("disabled","disabled");}});}jQuery.fn.exists=function(){return jQuery(this).length>0;};jQuery.fn.equals=function(compareTo){if(!compareTo||!compareTo.length||this.length!=compareTo.length){return false;}for(var i=0;i<this.length;i++){if(this[i]!==compareTo[i]){return false;}}return true;};function register_html_tool_tip(el,tip_txt,add_class){var t=$("<div></div>");t.addClass("oe_tooltip");el.addClass(add_class);t.html(tip_txt);var t_on=false;var t_over=function(e){t_on=true;};var t_out=function(e){t_on=false;};var over=function(e){if($(".oe_tooltip").exists()){return;}el.unbind("mouseover",over);t.mouseover(t_over).mouseout(t_out);var xpos=e.pageX+10;if(xpos>370){xpos=300;}var ypos=e.pageY+10;if(ypos>250){ypos=250;}t.css("top",ypos).css("left",xpos);$("body").append(t);};var out_try=function(e){if(t_on){t.oneTime(200,function(){out_try();});}else{t.unbind("mouseoout",t_out);t.unbind("mouseover",t_over);t.remove();el.mouseover(over);}};var out=function(e){t.oneTime(1000,function(){out_try();});};t.mouseover(t_over).mouseout(t_out);el.mouseover(over).mouseout(out);}function register_tool_tip(el,tip_txt,add_class){el.addClass(add_class);el.tooltip({fixPNG:true,showURL:false,fade:200,delay:0,bodyHandler:function(){return tip_txt;}});}function get_date(){return(new Date()).format("m/d/y");}Date.prototype.format=function(format){var returnStr="";var replace=Date.replaceChars;for(var i=0;i<format.length;i++){var curChar=format.charAt(i);if(replace[curChar]){returnStr+=replace[curChar].call(this);}else{returnStr+=curChar;}}return returnStr;};Date.replaceChars={shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d:function(){return(this.getDate()<10?"0":"")+this.getDate();},D:function(){return Date.replaceChars.shortDays[this.getDay()];},j:function(){return this.getDate();},l:function(){return Date.replaceChars.longDays[this.getDay()];},N:function(){return this.getDay()+1;},S:function(){return(this.getDate()%10==1&&this.getDate()!=11?"st":(this.getDate()%10==2&&this.getDate()!=12?"nd":(this.getDate()%10==3&&this.getDate()!=13?"rd":"th")));},w:function(){return this.getDay();},z:function(){return"Not Yet Supported";},W:function(){return"Not Yet Supported";},F:function(){return Date.replaceChars.longMonths[this.getMonth()];},m:function(){return(this.getMonth()<9?"0":"")+(this.getMonth()+1);},M:function(){return Date.replaceChars.shortMonths[this.getMonth()];},n:function(){return this.getMonth()+1;},t:function(){return"Not Yet Supported";},L:function(){return"Not Yet Supported";},o:function(){return"Not Supported";},Y:function(){return this.getFullYear();},y:function(){return(""+this.getFullYear()).substr(2);},a:function(){return this.getHours()<12?"am":"pm";},A:function(){return this.getHours()<12?"AM":"PM";},B:function(){return"Not Yet Supported";},g:function(){return this.getHours()%12||12;},G:function(){return this.getHours();},h:function(){return((this.getHours()%12||12)<10?"0":"")+(this.getHours()%12||12);},H:function(){return(this.getHours()<10?"0":"")+this.getHours();},i:function(){return(this.getMinutes()<10?"0":"")+this.getMinutes();},s:function(){return(this.getSeconds()<10?"0":"")+this.getSeconds();},e:function(){return"Not Yet Supported";},I:function(){return"Not Supported";},O:function(){return(-this.getTimezoneOffset()<0?"-":"+")+(Math.abs(this.getTimezoneOffset()/60)<10?"0":"")+(Math.abs(this.getTimezoneOffset()/60))+"00";},T:function(){var m=this.getMonth();this.setMonth(0);var result=this.toTimeString().replace(/^.+ \(?([^\)]+)\)?$/,"$1");this.setMonth(m);return result;},Z:function(){return -this.getTimezoneOffset()*60;},c:function(){return"Not Yet Supported";},r:function(){return this.toString();},U:function(){return this.getTime()/1000;}};$.fn.animate2=function(css,speed,fn){if(speed===0){this.css(css);window.setTimeout(fn,0);}else{if($.browser.safari){var s=[];for(var i in css){s.push(i);}this.css({webkitTransitionProperty:s.join(", "),webkitTransitionDuration:speed+"ms"});window.setTimeout(function(x,y){x.css(y);},0,this,css);window.setTimeout(fn,speed);}else{this.animate(css,speed,fn);}}};function txt_input_set_grey_default(input,default_value){$(input).keyup(function(){if(this.value==default_value){$(this).addClass("grey");}else{$(this).removeClass("grey");}});$(input).change(function(){if(this.value==""||this.value==default_value){this.value=default_value;$(this).addClass("grey");}else{$(this).removeClass("grey");}});$(input).focus(function(){if(this.value==default_value){this.select();}});$(input).change();}
;
