lillaScript=function(){var a=2000;return{init:function(){$("#contact, #classes, #performances").each(function(){$(this).data("aspx",1)});$("#menu div").click(function(){var d="";var c=$(this).attr("id");if(c!=undefined){var b=$(this).data("aspx");if(b==undefined){b=0}if(b){d=c+".aspx"}else{d=c+".htm"}if(c=="musings"){lillaScript.OpenPopup(this)}else{if(d){window.location.href=d}}}})},MessageAndClear:function(){$.fn.colorbox({href:"#messageSent",inline:true,width:"30%",onClosed:function(){window.location.href="index.htm"}})},GetParameterByName:function(c){c=c.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\\?&]"+c+"=([^&#]*)";var e=new RegExp(b);var d=e.exec(window.location.href);if(d==null){return""}else{return decodeURIComponent(d[1].replace(/\+/g," "))}},FadeSections:function(c,b){$(b).fadeOut();$(c).fadeIn()},PaintClasses:function(d,b){var c=jQuery.parseJSON(d);$("#level"+b+"title").html(c.Location);$("#level"+b+"Cost").html(c.Cost);$("#level"+b+"Times").html(c.Times);$("#level"+b+"Days").html(c.Days)},OpenPopup:function(d){var c="";var b="";switch(d.id){case"caspian":b="http://caspianrestaurant.com";break;case"iamed":b="http://bellydance.org";break;case"atomic":b="http://atomicballroom.com/";break;case"musings":b="http://lillavarese.wordpress.com";break}try{if(b.length){var e=window.open(b,"mywin",c)}}catch(f){}}}}();$(function(){lillaScript.init()});
