
Type.registerNamespace('PhoenixCoders.Castalia.Helpers');PhoenixCoders.Castalia.Helpers.StringHelper=function(){}
PhoenixCoders.Castalia.Helpers.StringHelper.isNullOrEmpty=function(value){if(!value){return true;}if(!value.trim().length){return true;}return false;}
Type.registerNamespace('PhoenixCoders.Castalia.Web.Forms');PhoenixCoders.Castalia.Web.Forms.Clock=function(element,format,interval){PhoenixCoders.Castalia.Web.Forms.Clock.initializeBase(this,[element]);this.set_format(format);this.$2_1=window.setInterval(Function.createDelegate(this,this.$2_2),interval);}
PhoenixCoders.Castalia.Web.Forms.Clock.prototype={$2_0:null,$2_1:0,dispose:function(){if(this.$2_1){window.clearInterval(this.$2_1);}PhoenixCoders.Castalia.Web.Forms.Clock.callBaseMethod(this, 'dispose');},get_format:function(){return this.$2_0;},set_format:function(value){this.$2_0=value;return value;},$2_2:function(){var $0=new Date();this.get_element().innerHTML=$0.format(this.get_format());}}
PhoenixCoders.Castalia.Web.Forms.Dialog=function(){}
PhoenixCoders.Castalia.Web.Forms.Dialog.register=function(id){if(id&&!Array.contains(PhoenixCoders.Castalia.Web.Forms.Dialog.$0,id)){Array.add(PhoenixCoders.Castalia.Web.Forms.Dialog.$0,id);}}
PhoenixCoders.Castalia.Web.Forms.Dialog.onOkClick=function(id,action){}
PhoenixCoders.Castalia.Web.Forms.Dialog.$1=function($p0){if($p0.keyCode===27){for(var $0=0;$0<PhoenixCoders.Castalia.Web.Forms.Dialog.$0.length;$0++){var $1=$find(PhoenixCoders.Castalia.Web.Forms.Dialog.$0[$0]);if($1){$1.hide();}}}}
PhoenixCoders.Castalia.Web.Forms.Page=function(){}
PhoenixCoders.Castalia.Web.Forms.Page.$0=function($p0,$p1){if(!$p1.get_isPartialLoad()){$addHandler(document,'keydown',Function.createDelegate(null,PhoenixCoders.Castalia.Web.Forms.Page.$1));}}
PhoenixCoders.Castalia.Web.Forms.Page.$1=function($p0){PhoenixCoders.Castalia.Web.Forms.Dialog.$1($p0);}
PhoenixCoders.Castalia.Web.Forms.SWFObject=function(id,movieUrl){if(!id){throw Error.argumentNull('id');}if(!movieUrl){throw Error.argumentNull('movieUrl');}this.$0=id;this.$1=movieUrl;}
PhoenixCoders.Castalia.Web.Forms.SWFObject.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:null,$9:null,$A:null,$B:null,$C:null,$D:null,$E:null,get_alignment:function(){return this.$2;},set_alignment:function(value){this.$2=value;return value;},get_id:function(){return this.$0;},get_movieUrl:function(){return this.$1;},get_backgroundColor:function(){return this.$3;},set_backgroundColor:function(value){this.$3=value;return value;},get_windowMode:function(){return this.$D;},set_windowMode:function(value){this.$D=value;return value;},get_baseFolder:function(){return this.$4;},set_baseFolder:function(value){this.$4=value;return value;},get_width:function(){return this.$C;},set_width:function(value){this.$C=value;return value;},get_height:function(){return this.$6;},set_height:function(value){this.$6=value;return value;},get_scaledAlignment:function(){return this.$A;},set_scaledAlignment:function(value){this.$A=value;return value;},get_quality:function(){return this.$9;},set_quality:function(value){this.$9=value;return value;},get_play:function(){return this.$8;},set_play:function(value){this.$8=value;return value;},get_loop:function(){return this.$7;},set_loop:function(value){this.$7=value;return value;},get_enableMenu:function(){return this.$5;},set_enableMenu:function(value){this.$5=value;return value;},get_scaleMode:function(){return this.$B;},set_scaleMode:function(value){this.$B=value;return value;},get_flashVars:function(){return this.$E;},set_flashVars:function(value){this.$E=value;return value;},write:function(){var $0=document.getElementById(this.get_id());if($0){var $1=new Sys.StringBuilder();$1.append('<object type=\"application/x-shockwave-flash\"');$1.append('data=\"'+this.get_movieUrl()+'\"');if(this.get_width()){$1.append('width=\"'+this.get_width()+'\"');}if(this.get_height()){$1.append('height=\"'+this.get_height()+'\"');}$1.appendLine('>');$1.append('<param name=\"movie\" value=\"'+this.get_movieUrl()+'\" />');if(this.$E){$1.append('<param name=\"FlashVars\" value=\"'+this.get_flashVars()+'\" />');}if(this.get_backgroundColor()){$1.append('<param name=\"bgcolor\" value=\"'+this.get_backgroundColor().toLowerCase()+'\" />');}if(this.get_windowMode()){$1.append('<param name=\"wmode\" value=\"'+this.get_windowMode().toLowerCase()+'\" />');}if(this.get_baseFolder()){$1.append('<param name=\"base\" value=\"'+this.get_baseFolder().toLowerCase()+'\" />');}if(this.get_alignment()){$1.append('<param name=\"align\" value=\"'+this.get_alignment().toLowerCase()+'\" />');}if(this.get_scaledAlignment()){$1.append('<param name=\"salign\" value=\"'+this.get_scaledAlignment().toLowerCase()+'\" />');}if(this.get_quality()){$1.append('<param name=\"quality\" value=\"'+this.get_quality().toLowerCase()+'\" />');}if(this.get_play()){$1.append('<param name=\"play\" value=\"'+this.get_play().toLowerCase()+'\" />');}if(this.get_loop()){$1.append('<param name=\"loop\" value=\"'+this.get_loop().toLowerCase()+'\" />');}if(this.get_enableMenu()){$1.append('<param name=\"menu\" value=\"'+this.get_enableMenu().toLowerCase()+'\" />');}if(this.get_scaleMode()){$1.append('<param name=\"scale\" value=\"'+this.get_scaleMode().toLowerCase()+'\" />');}$1.appendLine('</object>');$0.innerHTML=$1.toString();}}}
PhoenixCoders.Castalia.Helpers.StringHelper.registerClass('PhoenixCoders.Castalia.Helpers.StringHelper');PhoenixCoders.Castalia.Web.Forms.Clock.registerClass('PhoenixCoders.Castalia.Web.Forms.Clock',Sys.UI.Behavior);PhoenixCoders.Castalia.Web.Forms.Dialog.registerClass('PhoenixCoders.Castalia.Web.Forms.Dialog');PhoenixCoders.Castalia.Web.Forms.Page.registerClass('PhoenixCoders.Castalia.Web.Forms.Page');PhoenixCoders.Castalia.Web.Forms.SWFObject.registerClass('PhoenixCoders.Castalia.Web.Forms.SWFObject');PhoenixCoders.Castalia.Web.Forms.Dialog.$0=[];Sys.Application.add_load(Function.createDelegate(null,PhoenixCoders.Castalia.Web.Forms.Page.$0));
// ---- Do not remove this footer ----
// Generated using Script# v0.5.1.0 (http://projects.nikhilk.net)
// -----------------------------------
