/* Generated 2012-01-12 02:05:26*/jQuery(document).ready(function(){jQuery("input[title],textarea[title]").inputHints();jQuery(".show-moredescription").toggle(function(){jQuery(".event-description").css("height","auto");jQuery(".show-moredescription").html("close")},function(){jQuery(".event-description").css("height","130px");jQuery(".show-moredescription").html("click for more")});jQuery(".show-location-map").toggle(function(){jQuery(".event-map").show();jQuery(".show-location-map").html("- Map")},function(){jQuery(".event-map").hide();jQuery(".show-location-map").html("+ Map")});jQuery(".view-all").live("click",function(){jQuery(this).webService({type:"GET",url:"/services/gateway/?service[module]=Expressions&service[action]=SocialCalendar&service[format]=html&params[itemType]="+document.jsItemType+"&params[itemId]="+document.jsItemID+"&user[token]="+document.userToken,dataType:"html",success:function(a){jQuery("#members-going-list").append(a);jQuery(".view-all").addClass("view-all-close");jQuery(".view-all-close").removeClass("view-all");jQuery(".going-list-summary").hide();jQuery(".view-all-close").html("Close")},loading:true,loadingLocation:"#members-going-list"})});jQuery(".view-all-close").live("click",function(){jQuery(".view-all-close").addClass("view-all");jQuery(".going-list-all").remove();jQuery(".going-list-summary").show();jQuery(".view-all").html("View All");jQuery(".view-all").removeClass("view-all-close")});jQuery(".ingestion-options-link-button").live("click",function(h){h.preventDefault();var d=$(this).attr("id").split("-");var b=d[1];var c=d[2];var a="#"+c;var g=$(a).find(".ingestion-options-link-select").val();var f="/services/whatson/event/"+g+"/addTicket/"+c;if(g!="--"){jQuery(a).css("opacity","0.5");jQuery(this).webService({type:"POST",url:f,dataType:"json",success:function(e){jQuery(a).slideFadeToggle("slow");successLinked(b)},loading:true,loadingLocation:a})}});jQuery(".ingestion-options-ignore-button").live("click",function(d){d.preventDefault();var g=$(this).attr("id").split("-");var b=g[1];var f=g[2];var c="#"+f;var a="/services/whatson/ingest/event/"+b+"/ignore.json";jQuery(c).css("opacity","0.5");jQuery(this).webService({type:"POST",url:a,dataType:"json",success:function(e){jQuery(c).slideFadeToggle("slow")},loading:true,loadingLocation:c})});jQuery(".whatson-search-submit").live("click",function(){window.location="/search?q="+jQuery(this).siblings(".whatson-search-lookup").val()+"+site%3Ainthemix.com.au%2Fwhatson%2F#";return false});jQuery(".whatson-search .whatson-search-date").datepicker({dateFormat:"yy-mm-dd"});eventAddInvite.init()});function successLinked(b){var a="/services/whatson/ingest/event/"+b+"/ignore.json?param[status]=linked";jQuery(this).webService({type:"POST",url:a,dataType:"json",success:function(c){}})};
