var handlebars=function(){var a={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,statements:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,inMustache:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,OPEN_PARTIAL:24,params:25,hash:26,param:27,STRING:28,hashSegments:29,hashSegment:30,ID:31,EQUALS:32,pathSegments:33,SEP:34,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",
14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",28:"STRING",31:"ID",32:"EQUALS",34:"SEP"},productions_:[0,[3,2],[4,3],[4,1],[4,0],[6,1],[6,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[7,2],[17,3],[17,2],[17,2],[17,1],[25,2],[25,1],[27,1],[27,1],[26,1],[29,2],[29,1],[30,3],[30,3],[21,1],[33,3],[33,1]],performAction:function(a,c,d,b,e,g){a=g.length-1;switch(e){case 1:return g[a-
1];case 2:this.$=new b.ProgramNode(g[a-2],g[a]);break;case 3:this.$=new b.ProgramNode(g[a]);break;case 4:this.$=new b.ProgramNode([]);break;case 5:this.$=[g[a]];break;case 6:g[a-1].push(g[a]);this.$=g[a-1];break;case 7:this.$=new b.InverseNode(g[a-2],g[a-1],g[a]);break;case 8:this.$=new b.BlockNode(g[a-2],g[a-1],g[a]);break;case 9:this.$=g[a];break;case 10:this.$=g[a];break;case 11:this.$=new b.ContentNode(g[a]);break;case 12:this.$=new b.CommentNode(g[a]);break;case 13:this.$=new b.MustacheNode(g[a-
1][0],g[a-1][1]);break;case 14:this.$=new b.MustacheNode(g[a-1][0],g[a-1][1]);break;case 15:this.$=g[a-1];break;case 16:this.$=new b.MustacheNode(g[a-1][0],g[a-1][1]);break;case 17:this.$=new b.MustacheNode(g[a-1][0],g[a-1][1],!0);break;case 18:this.$=new b.PartialNode(g[a-1]);break;case 19:this.$=new b.PartialNode(g[a-2],g[a-1]);break;case 21:this.$=[[g[a-2]].concat(g[a-1]),g[a]];break;case 22:this.$=[[g[a-1]].concat(g[a]),null];break;case 23:this.$=[[g[a-1]],g[a]];break;case 24:this.$=[[g[a]],null];
break;case 25:g[a-1].push(g[a]);this.$=g[a-1];break;case 26:this.$=[g[a]];break;case 27:this.$=g[a];break;case 28:this.$=new b.StringNode(g[a]);break;case 29:this.$=new b.HashNode(g[a]);break;case 30:g[a-1].push(g[a]);this.$=g[a-1];break;case 31:this.$=[g[a]];break;case 32:this.$=[g[a-2],g[a]];break;case 33:this.$=[g[a-2],new b.StringNode(g[a])];break;case 34:this.$=new b.IdNode(g[a]);break;case 35:g[a-2].push(g[a]);this.$=g[a-2];break;case 36:this.$=[g[a]]}},table:[{3:1,4:2,5:[2,4],6:3,8:4,9:5,11:6,
12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{1:[3]},{5:[1,16]},{5:[2,3],7:17,8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,19],20:[2,3],22:[1,13],23:[1,14],24:[1,15]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],19:[2,5],20:[2,5],22:[2,5],23:[2,5],24:[2,5]},{4:20,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{4:21,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],
23:[1,14],24:[1,15]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{17:22,21:23,31:[1,25],33:24},{17:26,21:23,31:[1,25],33:24},{17:27,21:23,31:[1,25],33:24},{17:28,21:23,31:[1,25],33:24},{21:29,
31:[1,25],33:24},{1:[2,1]},{6:30,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],19:[2,6],20:[2,6],22:[2,6],23:[2,6],24:[2,6]},{17:22,18:[1,31],21:23,31:[1,25],33:24},{10:32,20:[1,33]},{10:34,20:[1,33]},{18:[1,35]},{18:[2,24],21:40,25:36,26:37,27:38,28:[1,41],29:39,30:42,31:[1,43],33:24},{18:[2,34],28:[2,34],31:[2,34],34:[1,44]},{18:[2,36],28:[2,36],31:[2,36],34:[2,36]},{18:[1,45]},{18:[1,46]},{18:[1,47]},{18:[1,48],
21:49,31:[1,25],33:24},{5:[2,2],8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,2],22:[1,13],23:[1,14],24:[1,15]},{14:[2,20],15:[2,20],16:[2,20],19:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],19:[2,7],20:[2,7],22:[2,7],23:[2,7],24:[2,7]},{21:50,31:[1,25],33:24},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{18:[2,22],21:40,26:51,27:52,
28:[1,41],29:39,30:42,31:[1,43],33:24},{18:[2,23]},{18:[2,26],28:[2,26],31:[2,26]},{18:[2,29],30:53,31:[1,54]},{18:[2,27],28:[2,27],31:[2,27]},{18:[2,28],28:[2,28],31:[2,28]},{18:[2,31],31:[2,31]},{18:[2,36],28:[2,36],31:[2,36],32:[1,55],34:[2,36]},{31:[1,56]},{14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,17],14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],
23:[2,17],24:[2,17]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]},{18:[1,57]},{18:[1,58]},{18:[2,21]},{18:[2,25],28:[2,25],31:[2,25]},{18:[2,30],31:[2,30]},{32:[1,55]},{21:59,28:[1,60],31:[1,25],33:24},{18:[2,35],28:[2,35],31:[2,35],34:[2,35]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{18:[2,32],31:[2,32]},{18:[2,
33],31:[2,33]}],defaultActions:{16:[2,1],37:[2,23],51:[2,21]},parseError:function(a){throw Error(a);},parse:function(a){function c(){var b;b=d.lexer.lex()||1;typeof b!=="number"&&(b=d.symbols_[b]||b);return b}var d=this,b=[0],e=[null],g=[],m=this.table,h="",l=0,o=0,p=0;this.lexer.setInput(a);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;if(typeof this.lexer.yylloc=="undefined")this.lexer.yylloc={};a=this.lexer.yylloc;g.push(a);if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;
for(var q,t,v,r,w={},x,k;;){v=b[b.length-1];this.defaultActions[v]?r=this.defaultActions[v]:(q==null&&(q=c()),r=m[v]&&m[v][q]);if(typeof r==="undefined"||!r.length||!r[0]){if(!p){t=[];for(x in m[v])this.terminals_[x]&&x>2&&t.push("'"+this.terminals_[x]+"'");var i="",i=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+t.join(", "):"Parse error on line "+(l+1)+": Unexpected "+(q==1?"end of input":"'"+(this.terminals_[q]||q)+"'");this.parseError(i,{text:this.lexer.match,
token:this.terminals_[q]||q,line:this.lexer.yylineno,loc:a,expected:t})}if(p==3){if(q==1)throw Error(i||"Parsing halted.");o=this.lexer.yyleng;h=this.lexer.yytext;l=this.lexer.yylineno;a=this.lexer.yylloc;q=c()}for(;;){if((2).toString()in m[v])break;if(v==0)throw Error(i||"Parsing halted.");b.length-=2;e.length-=1;g.length-=1;v=b[b.length-1]}t=q;q=2;v=b[b.length-1];r=m[v]&&m[v][2];p=3}if(r[0]instanceof Array&&r.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+
q);switch(r[0]){case 1:b.push(q);e.push(this.lexer.yytext);g.push(this.lexer.yylloc);b.push(r[1]);q=null;t?(q=t,t=null):(o=this.lexer.yyleng,h=this.lexer.yytext,l=this.lexer.yylineno,a=this.lexer.yylloc,p>0&&p--);break;case 2:k=this.productions_[r[1]][1];w.$=e[e.length-k];w._$={first_line:g[g.length-(k||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(k||1)].first_column,last_column:g[g.length-1].last_column};v=this.performAction.call(w,h,o,l,this.yy,r[1],e,g);if(typeof v!==
"undefined")return v;k&&(b=b.slice(0,k*-2),e=e.slice(0,-1*k),g=g.slice(0,-1*k));b.push(this.productions_[r[1]][0]);e.push(w.$);g.push(w._$);r=m[b[b.length-2]][b[b.length-1]];b.push(r);break;case 3:return!0}}return!0}},h=function(){return{EOF:1,parseError:function(a,c){if(this.yy.parseError)this.yy.parseError(a,c);else throw Error(a);},setInput:function(a){this._input=a;this._more=this._less=this.done=!1;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];
this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};return this},input:function(){var a=this._input[0];this.yytext+=a;this.yyleng++;this.match+=a;this.matched+=a;a.match(/\n/)&&this.yylineno++;this._input=this._input.slice(1);return a},unput:function(a){this._input=a+this._input;return this},more:function(){this._more=!0;return this},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},
upcomingInput:function(){var a=this.match;a.length<20&&(a+=this._input.substr(0,20-a.length));return(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),c=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+c+"^"},next:function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var a,c;if(!this._more)this.match=this.yytext="";for(var d=this._currentRules(),b=0;b<d.length;b++)if(a=this._input.match(this.rules[d[b]]))if((c=a[0].match(/\n.*/g))&&
(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-1:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],a=this.performAction.call(this,this.yy,this,d[b],this.conditionStack[this.conditionStack.length-1]))return a;else return;if(this._input===
"")return this.EOF;else this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return typeof a!=="undefined"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},performAction:function(a,c,d){switch(d){case 0:this.begin("mu");
if(c.yytext)return 14;break;case 1:return 14;case 2:return 24;case 3:return 16;case 4:return 20;case 5:return 19;case 6:return 19;case 7:return 23;case 8:return 23;case 9:return c.yytext=c.yytext.substr(3,c.yyleng-5),this.begin("INITIAL"),15;case 10:return 22;case 11:return 32;case 12:return 31;case 13:return 31;case 14:return 34;case 16:return this.begin("INITIAL"),18;case 17:return this.begin("INITIAL"),18;case 18:return c.yytext=c.yytext.substr(1,c.yyleng-2).replace(/\\"/g,'"'),28;case 19:return 31;
case 20:return"INVALID";case 21:return 5}},rules:[/^[^\x00]*?(?=(\{\{))/,/^[^\x00]+/,/^\{\{>/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^[a-zA-Z0-9_-]+(?=[=} /.])/,/^./,/^$/],conditions:{mu:{rules:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],inclusive:!1},INITIAL:{rules:[0,1,21],inclusive:!0}}}}();a.lexer=h;return a}();
if(typeof require!=="undefined"&&typeof exports!=="undefined")exports.parser=handlebars,exports.parse=function(){return handlebars.parse.apply(handlebars,arguments)},exports.main=function(a){if(!a[1])throw Error("Usage: "+a[0]+" FILE");a=typeof process!=="undefined"?require("fs").readFileSync(require("path").join(process.cwd(),a[1]),"utf8"):require("file").path(require("file").cwd()).join(a[1]).read({charset:"utf-8"});return exports.parser.parse(a)},typeof module!=="undefined"&&require.main===module&&
exports.main(typeof process!=="undefined"?process.argv.slice(1):require("system").args);var Handlebars={VERSION:"1.0.beta.1"};Handlebars.Parser=handlebars;Handlebars.parse=function(a){Handlebars.Parser.yy=Handlebars.AST;return Handlebars.Parser.parse(a)};Handlebars.print=function(a){return(new Handlebars.PrintVisitor).accept(a)};Handlebars.helpers={};Handlebars.partials={};Handlebars.registerHelper=function(a,h,f){if(f)h.not=f;this.helpers[a]=h};
Handlebars.registerPartial=function(a,h){this.partials[a]=h};Handlebars.registerHelper("helperMissing",function(a){if(arguments.length!==2)throw Error("Could not find property '"+a+"'");});
Handlebars.registerHelper("blockHelperMissing",function(a,h,f){var f=f||function(){},c="",d=Object.prototype.toString.call(a);d==="[object Function]"&&(a=a());if(a===!0)return h(this);else if(a===!1||a==null)return f(this);else if(d==="[object Array]"){if(a.length>0){f=0;for(d=a.length;f<d;f++)c+=h(a[f])}else c=f(this);return c}else return h(a)},function(a,h){return h(a)});
Handlebars.registerHelper("each",function(a,h,f){var c="";if(a&&a.length>0)for(var f=0,d=a.length;f<d;f++)c+=h(a[f]);else c=f(this);return c});Handlebars.registerHelper("if",function(a,h,f){return!a||a==[]?f(this):h(this)});Handlebars.registerHelper("unless",function(a,h,f){return Handlebars.helpers["if"].call(this,a,f,h)});Handlebars.registerHelper("with",function(a,h){return h(a)});Handlebars.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(){}};
Handlebars.log=function(a,h){Handlebars.logger.log(a,h)};
(function(){Handlebars.AST={};Handlebars.AST.ProgramNode=function(a,f){this.type="program";this.statements=a;if(f)this.inverse=new Handlebars.AST.ProgramNode(f)};Handlebars.AST.MustacheNode=function(a,f,c){this.type="mustache";this.id=a[0];this.params=a.slice(1);this.hash=f;this.escaped=!c};Handlebars.AST.PartialNode=function(a,f){this.type="partial";this.id=a;this.context=f};var a=function(a,f){if(a.original!==f.original)throw new Handlebars.Exception(a.original+" doesn't match "+f.original);};Handlebars.AST.BlockNode=
function(h,f,c){a(h.id,c);this.type="block";this.mustache=h;this.program=f};Handlebars.AST.InverseNode=function(h,f,c){a(h.id,c);this.type="inverse";this.mustache=h;this.program=f};Handlebars.AST.ContentNode=function(a){this.type="content";this.string=a};Handlebars.AST.HashNode=function(a){this.type="hash";this.pairs=a};Handlebars.AST.IdNode=function(a){this.type="ID";this.original=a.join(".");for(var f=[],c=0,d=0,b=a.length;d<b;d++){var e=a[d];e===".."?c++:e==="."||e==="this"||f.push(e)}this.parts=
f;this.string=f.join(".");this.depth=c;this.isSimple=f.length===1&&c===0};Handlebars.AST.StringNode=function(a){this.type="STRING";this.string=a};Handlebars.AST.CommentNode=function(a){this.type="comment";this.comment=a}})();Handlebars.Visitor=function(){};Handlebars.Visitor.prototype={accept:function(a){return this[a.type](a)}};Handlebars.Exception=function(a){this.message=a};Handlebars.SafeString=function(a){this.string=a};Handlebars.SafeString.prototype.toString=function(){return this.string.toString()};
(function(){var a={"<":"&lt;",">":"&gt;"},h=/&(?!\w+;)|[<>]/g,f=/[&<>]/,c=function(c){return a[c]||"&amp;"};Handlebars.Utils={escapeExpression:function(a){if(a instanceof Handlebars.SafeString)return a.toString();else if(a==null||a===!1)return"";return!f.test(a)?a:a.replace(h,c)},isEmpty:function(a){return typeof a==="undefined"?!0:a===null?!0:a===!1?!0:Object.prototype.toString.call(a)==="[object Array]"&&a.length===0?!0:!1}}})();Handlebars.Compiler=function(){};Handlebars.JavaScriptCompiler=function(){};
(function(a,h){a.OPCODE_MAP={appendContent:1,getContext:2,lookupWithHelpers:3,lookup:4,append:5,invokeMustache:6,appendEscaped:7,pushString:8,truthyOrFallback:9,functionOrFallback:10,invokeProgram:11,invokePartial:12,push:13,invokeInverse:14,assignToHash:15,pushStringParam:16};a.MULTI_PARAM_OPCODES={appendContent:1,getContext:1,lookupWithHelpers:1,lookup:1,invokeMustache:2,pushString:1,truthyOrFallback:1,functionOrFallback:1,invokeProgram:2,invokePartial:1,push:1,invokeInverse:1,assignToHash:1,pushStringParam:1};
a.DISASSEMBLE_MAP={};for(var f in a.OPCODE_MAP)a.DISASSEMBLE_MAP[a.OPCODE_MAP[f]]=f;a.multiParamSize=function(b){return a.MULTI_PARAM_OPCODES[a.DISASSEMBLE_MAP[b]]};a.prototype={compiler:a,disassemble:function(){for(var b=this.opcodes,c,d=[],f,n=0,h=b.length;n<h;n++)if(c=b[n],c==="DECLARE")f=b[++n],c=b[++n],d.push("DECLARE "+f+" = "+c);else{f=a.DISASSEMBLE_MAP[c];for(var o=a.multiParamSize(c),p=[],q=0;q<o;q++)c=b[++n],typeof c==="string"&&(c='"'+c.replace("\n","\\n")+'"'),p.push(c);f=f+" "+p.join(" ");
d.push(f)}return d.join("\n")},guid:0,compile:function(b,a){this.children=[];this.depths={list:[]};this.options=a||{};return this.program(b)},accept:function(b){return this[b.type](b)},program:function(b){var b=b.statements,a;this.opcodes=[];for(var c=0,d=b.length;c<d;c++)a=b[c],this[a.type](a);this.depths.list=this.depths.list.sort(function(b,a){return b-a});return this},compileProgram:function(b){var b=(new this.compiler).compile(b,this.options),a=this.guid++;this.usePartial=this.usePartial||b.usePartial;
this.children[a]=b;for(var c=0,d=b.depths.list.length;c<d;c++)depth=b.depths.list[c],depth<2||this.addDepth(depth-1);return a},block:function(b){var a=this.setupStackForMustache(b.mustache),c=this.compileProgram(b.program);b.program.inverse&&(b=this.compileProgram(b.program.inverse),this.declare("inverse",b));this.opcode("invokeProgram",c,a.length);this.declare("inverse",null);this.opcode("append")},inverse:function(b){this.ID(b.mustache.id);this.opcode("invokeInverse",this.compileProgram(b.program));
this.opcode("append")},hash:function(b){var b=b.pairs,a,c;this.opcode("push","{}");for(var d=0,f=b.length;d<f;d++)a=b[d],c=a[1],this.accept(c),this.opcode("assignToHash",a[0])},partial:function(b){var a=b.id;this.usePartial=!0;b.context?this.ID(b.context):this.opcode("push","context");this.opcode("invokePartial",a.original);this.opcode("append")},content:function(b){this.opcode("appendContent",b.string)},mustache:function(b){this.opcode("invokeMustache",this.setupStackForMustache(b).length,b.id.original);
b.escaped?this.opcode("appendEscaped"):this.opcode("append")},ID:function(b){this.addDepth(b.depth);this.opcode("getContext",b.depth);this.opcode("lookupWithHelpers",b.parts[0]||null);for(var a=1,c=b.parts.length;a<c;a++)this.opcode("lookup",b.parts[a])},STRING:function(b){this.opcode("pushString",b.string)},comment:function(){},pushParams:function(b){for(var a=b.length,c;a--;)if(c=b[a],this.options.stringParams)c.depth&&this.addDepth(c.depth),this.opcode("getContext",c.depth||0),this.opcode("pushStringParam",
c.string);else this[c.type](c)},opcode:function(b,c,d){this.opcodes.push(a.OPCODE_MAP[b]);c!==void 0&&this.opcodes.push(c);d!==void 0&&this.opcodes.push(d)},declare:function(b,a){this.opcodes.push("DECLARE");this.opcodes.push(b);this.opcodes.push(a)},addDepth:function(b){b!==0&&!this.depths[b]&&(this.depths[b]=!0,this.depths.list.push(b))},setupStackForMustache:function(b){var a=b.params;this.pushParams(a);b.hash?this.hash(b.hash):this.opcode("push","{}");this.ID(b.id);return a}};h.prototype={nameLookup:function(b,
a){return h.RESERVED_WORDS[a]||a.indexOf("-")!==-1?b+"['"+a+"']":b+"."+a},appendToBuffer:function(b){return"buffer = buffer + "+b+";"},initializeBuffer:function(){return this.quotedString("")},compile:function(b,a){this.environment=b;this.options=a||{};this.preamble();this.stackSlot=0;this.stackVars=[];this.registers={list:[]};this.compileChildren(b,a);Handlebars.log(Handlebars.logger.DEBUG,b.disassemble()+"\n\n");var c=b.opcodes;this.i=0;for(d=c.length;this.i<d;this.i++)c=this.nextOpcode(0),c[0]===
"DECLARE"?(this.i+=2,this[c[1]]=c[2]):(this.i+=c[1].length,this[c[0]].apply(this,c[1]));return this.createFunction()},nextOpcode:function(b){var c=this.environment.opcodes,d=c[this.i+b],f,n;if(d==="DECLARE")return f=c[this.i+1],b=c[this.i+2],["DECLARE",f,b];else{f=a.DISASSEMBLE_MAP[d];d=a.multiParamSize(d);n=[];for(var h=0;h<d;h++)n.push(c[this.i+h+1+b]);return[f,n]}},eat:function(b){this.i+=b.length},preamble:function(){var b=[];b.push("var buffer = "+this.initializeBuffer()+", currentContext = context");
var a="helpers = helpers || Handlebars.helpers;";this.environment.usePartial&&(a+=" partials = partials || Handlebars.partials;");b.push(a);this.lastContext=0;this.source=b},createFunction:function(){var b={escapeExpression:Handlebars.Utils.escapeExpression,invokePartial:Handlebars.VM.invokePartial,programs:[],program:function(b,a,c,d){var e=this.programs[b];return d?Handlebars.VM.program(this.children[b],a,c,d):(e||(e=this.programs[b]=Handlebars.VM.program(this.children[b],a,c)),e)},programWithDepth:Handlebars.VM.programWithDepth,
noop:Handlebars.VM.noop},a=this.stackVars.concat(this.registers.list);a.length>0&&(this.source[0]=this.source[0]+", "+a.join(", "));this.source[0]+=";";this.source.push("return buffer;");a=["Handlebars","context","helpers","partials"];this.options.data&&a.push("data");for(var c=0,d=this.environment.depths.list.length;c<d;c++)a.push("depth"+this.environment.depths.list[c]);a.length===4&&!this.environment.usePartial&&a.pop();a.push(this.source.join("\n"));a=Function.apply(this,a);a.displayName="Handlebars.js";
Handlebars.log(Handlebars.logger.DEBUG,a.toString()+"\n\n");b.render=a;b.children=this.environment.children;return function(a,c,d){try{var c=c||{},e=[Handlebars,a,c.helpers,c.partials,c.data],g=Array.prototype.slice.call(arguments,2),e=e.concat(g);return b.render.apply(b,e)}catch(f){throw f;}}},appendContent:function(b){this.source.push(this.appendToBuffer(this.quotedString(b)))},append:function(){var b=this.popStack();this.source.push("if("+b+" || "+b+" === 0) { "+this.appendToBuffer(b)+" }")},appendEscaped:function(){var b=
this.nextOpcode(1),a="";b[0]==="appendContent"&&(a=" + "+this.quotedString(b[1][0]),this.eat(b));this.source.push(this.appendToBuffer("this.escapeExpression("+this.popStack()+")"+a))},getContext:function(b){if(this.lastContext!==b)this.lastContext=b,b===0?this.source.push("currentContext = context;"):this.source.push("currentContext = depth"+b+";")},lookupWithHelpers:function(b){if(b){var a=this.nextStack();this.source.push("if('"+b+"' in helpers) { "+a+" = "+this.nameLookup("helpers",b,"helper")+
"; } else { "+a+" = "+this.nameLookup("currentContext",b,"context")+"; }")}else this.pushStack("currentContext")},lookup:function(b){var a=this.topStack();this.source.push(a+" = "+this.nameLookup(a,b,"context")+";")},pushStringParam:function(b){this.pushStack("currentContext");this.pushString(b)},pushString:function(b){this.pushStack(this.quotedString(b))},push:function(b){this.pushStack(b)},invokeMustache:function(b,a){this.populateParams(b,this.quotedString(a),"{}",null,function(b,a,c){this.source.push("else if("+
c+"=== undefined) { "+b+" = helpers.helperMissing.call("+a+"); }");this.source.push("else { "+b+" = "+c+"; }")})},invokeProgram:function(b,a){var c=this.programExpression(this.inverse),d=this.programExpression(b);this.populateParams(a,null,d,c,function(b,a){this.source.push("else { "+b+" = helpers.blockHelperMissing.call("+a+"); }")})},populateParams:function(b,a,c,d,f){var h=this.popStack(),o=[],p=this.popStack();this.register("tmp1",c);this.source.push("tmp1.hash = "+p+";");this.options.stringParams&&
this.source.push("tmp1.contexts = [];");for(p=0;p<b;p++)c=this.popStack(),o.push(c),this.options.stringParams&&this.source.push("tmp1.contexts.push("+this.popStack()+");");d&&(this.source.push("tmp1.fn = tmp1;"),this.source.push("tmp1.inverse = "+d+";"));this.options.data&&this.source.push("tmp1.data = data;");o.push("tmp1");d&&o.push(d);this.populateCall(o,h,a||h,f)},populateCall:function(b,a,c,d){var f=["context"].concat(b).join(", "),b=["context"].concat(c).concat(b).join(", ");nextStack=this.nextStack();
this.source.push("if(typeof "+a+" === 'function') { "+nextStack+" = "+a+".call("+f+"); }");d.call(this,nextStack,b,a)},invokeInverse:function(b){b=this.programExpression(b);this.pushStack("helpers.blockHelperMissing.call("+["context",this.topStack(),"this.noop",b].join(", ")+")")},invokePartial:function(b){this.pushStack("this.invokePartial("+this.nameLookup("partials",b,"partial")+", '"+b+"', "+this.popStack()+", helpers, partials);")},assignToHash:function(b){var a=this.popStack();this.source.push(this.topStack()+
"['"+b+"'] = "+a+";")},compiler:h,compileChildren:function(b,a){for(var c=b.children,d,f,h=[],o=0,p=c.length;o<p;o++)d=c[o],f=new this.compiler,h[o]=f.compile(d,a);b.rawChildren=c;b.children=h},programExpression:function(b){if(b==null)return"this.noop";var a=[b,"helpers","partials"],c=this.environment.rawChildren[b].depths.list;this.options.data&&a.push("data");for(var d=0,f=c.length;d<f;d++)depth=c[d],depth===1?a.push("context"):a.push("depth"+(depth-1));this.environment.usePartial||(a[3]?a[2]="null":
a.pop());return c.length===0?"this.program("+a.join(", ")+")":(a[0]="this.children["+b+"]","this.programWithDepth("+a.join(", ")+")")},register:function(b,a){this.useRegister(b);this.source.push(b+" = "+a+";")},useRegister:function(a){this.registers[a]||(this.registers[a]=!0,this.registers.list.push(a))},pushStack:function(a){this.source.push(this.nextStack()+" = "+a+";");return"stack"+this.stackSlot},nextStack:function(){this.stackSlot++;this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+
this.stackSlot);return"stack"+this.stackSlot},popStack:function(){return"stack"+this.stackSlot--},topStack:function(){return"stack"+this.stackSlot},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"'}};f="break case catch continue default delete do else finally for function if in instanceof new return switch this throw try typeof var void while with null true false".split(" ");compilerWords=h.RESERVED_WORDS={};for(var c=0,d=
f.length;c<d;c++)compilerWords[f[c]]=!0})(Handlebars.Compiler,Handlebars.JavaScriptCompiler);
Handlebars.VM={programWithDepth:function(a,h,f,c,d){var b=Array.prototype.slice.call(arguments,4);return function(d,g){g=g||{};g={helpers:g.helpers||h,partials:g.partials||f,data:g.data||c};return a.apply(this,[d,g].concat(b))}},program:function(a,h,f,c){return function(d,b){b=b||{};return a(d,{helpers:b.helpers||h,partials:b.partials||f,data:b.data||c})}},noop:function(){return""},compile:function(a,h){var f=Handlebars.parse(a),f=(new Handlebars.Compiler).compile(f,h);return(new Handlebars.JavaScriptCompiler).compile(f,
h)},invokePartial:function(a,h,f,c,d){if(a===void 0)throw new Handlebars.Exception("The partial "+h+" could not be found");else return a instanceof Function?a(f,{helpers:c,partials:d}):(d[h]=Handlebars.VM.compile(a),d[h](f,{helpers:c,partials:d}))}};Handlebars.compile=Handlebars.VM.compile;(function(){var a=this,h=a._,f={},c=Array.prototype,d=Object.prototype,b=c.slice,e=c.unshift,g=d.toString,m=d.hasOwnProperty,n=c.forEach,l=c.map,o=c.reduce,p=c.reduceRight,q=c.filter,t=c.every,v=c.some,r=c.indexOf,w=c.lastIndexOf,d=Array.isArray,x=Object.keys,k=Function.prototype.bind,i=function(a){return new u(a)};typeof module!=="undefined"&&module.exports?(module.exports=i,i._=i):a._=i;i.VERSION="1.1.7";var z=i.each=i.forEach=function(a,b,c){if(a!=null)if(n&&a.forEach===n)a.forEach(b,c);else if(a.length===
+a.length)for(var d=0,k=a.length;d<k;d++){if(d in a&&b.call(c,a[d],d,a)===f)break}else for(d in a)if(m.call(a,d)&&b.call(c,a[d],d,a)===f)break};i.map=function(a,b,c){var d=[];if(a==null)return d;if(l&&a.map===l)return a.map(b,c);z(a,function(a,k,B){d[d.length]=b.call(c,a,k,B)});return d};i.reduce=i.foldl=i.inject=function(a,b,c,d){var k=c!==void 0;a==null&&(a=[]);if(o&&a.reduce===o)return d&&(b=i.bind(b,d)),k?a.reduce(b,c):a.reduce(b);z(a,function(a,B,i){k?c=b.call(d,c,a,B,i):(c=a,k=!0)});if(!k)throw new TypeError("Reduce of empty array with no initial value");
return c};i.reduceRight=i.foldr=function(a,b,c,d){a==null&&(a=[]);if(p&&a.reduceRight===p)return d&&(b=i.bind(b,d)),c!==void 0?a.reduceRight(b,c):a.reduceRight(b);a=(i.isArray(a)?a.slice():i.toArray(a)).reverse();return i.reduce(a,b,c,d)};i.find=i.detect=function(a,b,c){var d;y(a,function(a,k,B){if(b.call(c,a,k,B))return d=a,!0});return d};i.filter=i.select=function(a,b,c){var d=[];if(a==null)return d;if(q&&a.filter===q)return a.filter(b,c);z(a,function(a,k,B){b.call(c,a,k,B)&&(d[d.length]=a)});return d};
i.reject=function(a,b,c){var d=[];if(a==null)return d;z(a,function(a,k,B){b.call(c,a,k,B)||(d[d.length]=a)});return d};i.every=i.all=function(a,b,c){var d=!0;if(a==null)return d;if(t&&a.every===t)return a.every(b,c);z(a,function(a,k,i){if(!(d=d&&b.call(c,a,k,i)))return f});return d};var y=i.some=i.any=function(a,b,c){var b=b||i.identity,d=!1;if(a==null)return d;if(v&&a.some===v)return a.some(b,c);z(a,function(a,k,i){if(d|=b.call(c,a,k,i))return f});return!!d};i.include=i.contains=function(a,b){var c=
!1;if(a==null)return c;if(r&&a.indexOf===r)return a.indexOf(b)!=-1;y(a,function(a){if(c=a===b)return!0});return c};i.invoke=function(a,c){var d=b.call(arguments,2);return i.map(a,function(a){return(c.call?c||a:a[c]).apply(a,d)})};i.pluck=function(a,b){return i.map(a,function(a){return a[b]})};i.max=function(a,b,c){if(!b&&i.isArray(a))return Math.max.apply(Math,a);var d={computed:-Infinity};z(a,function(a,k,i){k=b?b.call(c,a,k,i):a;k>=d.computed&&(d={value:a,computed:k})});return d.value};i.min=function(a,
b,c){if(!b&&i.isArray(a))return Math.min.apply(Math,a);var d={computed:Infinity};z(a,function(a,k,i){k=b?b.call(c,a,k,i):a;k<d.computed&&(d={value:a,computed:k})});return d.value};i.sortBy=function(a,b,c){return i.pluck(i.map(a,function(a,d,k){return{value:a,criteria:b.call(c,a,d,k)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")};i.groupBy=function(a,b){var c={};z(a,function(a,d){var k=b(a,d);(c[k]||(c[k]=[])).push(a)});return c};i.sortedIndex=function(a,b,c){c||
(c=i.identity);for(var d=0,k=a.length;d<k;){var e=d+k>>1;c(a[e])<c(b)?d=e+1:k=e}return d};i.toArray=function(a){return!a?[]:a.toArray?a.toArray():i.isArray(a)?b.call(a):i.isArguments(a)?b.call(a):i.values(a)};i.size=function(a){return i.toArray(a).length};i.first=i.head=function(a,c,d){return c!=null&&!d?b.call(a,0,c):a[0]};i.rest=i.tail=function(a,c,d){return b.call(a,c==null||d?1:c)};i.last=function(a){return a[a.length-1]};i.compact=function(a){return i.filter(a,function(a){return!!a})};i.flatten=
function(a){return i.reduce(a,function(a,b){if(i.isArray(b))return a.concat(i.flatten(b));a[a.length]=b;return a},[])};i.without=function(a){return i.difference(a,b.call(arguments,1))};i.uniq=i.unique=function(a,b){return i.reduce(a,function(a,c,d){if(0==d||(b===!0?i.last(a)!=c:!i.include(a,c)))a[a.length]=c;return a},[])};i.union=function(){return i.uniq(i.flatten(arguments))};i.intersection=i.intersect=function(a){var c=b.call(arguments,1);return i.filter(i.uniq(a),function(a){return i.every(c,
function(b){return i.indexOf(b,a)>=0})})};i.difference=function(a,b){return i.filter(a,function(a){return!i.include(b,a)})};i.zip=function(){for(var a=b.call(arguments),c=i.max(i.pluck(a,"length")),d=Array(c),k=0;k<c;k++)d[k]=i.pluck(a,""+k);return d};i.indexOf=function(a,b,c){if(a==null)return-1;var d;if(c)return c=i.sortedIndex(a,b),a[c]===b?c:-1;if(r&&a.indexOf===r)return a.indexOf(b);for(c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1};i.lastIndexOf=function(a,b){if(a==null)return-1;if(w&&
a.lastIndexOf===w)return a.lastIndexOf(b);for(var c=a.length;c--;)if(a[c]===b)return c;return-1};i.range=function(a,b,c){arguments.length<=1&&(b=a||0,a=0);for(var c=arguments[2]||1,d=Math.max(Math.ceil((b-a)/c),0),k=0,i=Array(d);k<d;)i[k++]=a,a+=c;return i};i.bind=function(a,c){if(a.bind===k&&k)return k.apply(a,b.call(arguments,1));var d=b.call(arguments,2);return function(){return a.apply(c,d.concat(b.call(arguments)))}};i.bindAll=function(a){var c=b.call(arguments,1);c.length==0&&(c=i.functions(a));
z(c,function(b){a[b]=i.bind(a[b],a)});return a};i.memoize=function(a,b){var c={};b||(b=i.identity);return function(){var d=b.apply(this,arguments);return m.call(c,d)?c[d]:c[d]=a.apply(this,arguments)}};i.delay=function(a,c){var d=b.call(arguments,2);return setTimeout(function(){return a.apply(a,d)},c)};i.defer=function(a){return i.delay.apply(i,[a,1].concat(b.call(arguments,1)))};var j=function(a,b,c){var d;return function(){var k=this,i=arguments,e=function(){d=null;a.apply(k,i)};c&&clearTimeout(d);
if(c||!d)d=setTimeout(e,b)}};i.throttle=function(a,b){return j(a,b,!1)};i.debounce=function(a,b){return j(a,b,!0)};i.once=function(a){var b=!1,c;return function(){if(b)return c;b=!0;return c=a.apply(this,arguments)}};i.wrap=function(a,c){return function(){var d=[a].concat(b.call(arguments));return c.apply(this,d)}};i.compose=function(){var a=b.call(arguments);return function(){for(var c=b.call(arguments),d=a.length-1;d>=0;d--)c=[a[d].apply(this,c)];return c[0]}};i.after=function(a,b){return function(){if(--a<
1)return b.apply(this,arguments)}};i.keys=x||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[],c;for(c in a)m.call(a,c)&&(b[b.length]=c);return b};i.values=function(a){return i.map(a,i.identity)};i.functions=i.methods=function(a){var b=[],c;for(c in a)i.isFunction(a[c])&&b.push(c);return b.sort()};i.extend=function(a){z(b.call(arguments,1),function(b){for(var c in b)b[c]!==void 0&&(a[c]=b[c])});return a};i.defaults=function(a){z(b.call(arguments,1),function(b){for(var c in b)a[c]==
null&&(a[c]=b[c])});return a};i.clone=function(a){return i.isArray(a)?a.slice():i.extend({},a)};i.tap=function(a,b){b(a);return a};i.isEqual=function(a,b){if(a===b)return!0;var c=typeof a;if(c!=typeof b)return!1;if(a==b)return!0;if(!a&&b||a&&!b)return!1;if(a._chain)a=a._wrapped;if(b._chain)b=b._wrapped;if(a.isEqual)return a.isEqual(b);if(b.isEqual)return b.isEqual(a);if(i.isDate(a)&&i.isDate(b))return a.getTime()===b.getTime();if(i.isNaN(a)&&i.isNaN(b))return!1;if(i.isRegExp(a)&&i.isRegExp(b))return a.source===
b.source&&a.global===b.global&&a.ignoreCase===b.ignoreCase&&a.multiline===b.multiline;if(c!=="object")return!1;if(a.length&&a.length!==b.length)return!1;var c=i.keys(a),d=i.keys(b);if(c.length!=d.length)return!1;for(var k in a)if(!(k in b)||!i.isEqual(a[k],b[k]))return!1;return!0};i.isEmpty=function(a){if(i.isArray(a)||i.isString(a))return a.length===0;for(var b in a)if(m.call(a,b))return!1;return!0};i.isElement=function(a){return!!(a&&a.nodeType==1)};i.isArray=d||function(a){return g.call(a)==="[object Array]"};
i.isObject=function(a){return a===Object(a)};i.isArguments=function(a){return!(!a||!m.call(a,"callee"))};i.isFunction=function(a){return!(!a||!a.constructor||!a.call||!a.apply)};i.isString=function(a){return!!(a===""||a&&a.charCodeAt&&a.substr)};i.isNumber=function(a){return!!(a===0||a&&a.toExponential&&a.toFixed)};i.isNaN=function(a){return a!==a};i.isBoolean=function(a){return a===!0||a===!1};i.isDate=function(a){return!(!a||!a.getTimezoneOffset||!a.setUTCFullYear)};i.isRegExp=function(a){return!(!a||
!a.test||!a.exec||!(a.ignoreCase||a.ignoreCase===!1))};i.isNull=function(a){return a===null};i.isUndefined=function(a){return a===void 0};i.noConflict=function(){a._=h;return this};i.identity=function(a){return a};i.times=function(a,b,c){for(var d=0;d<a;d++)b.call(c,d)};i.mixin=function(a){z(i.functions(a),function(b){D(b,i[b]=a[b])})};var s=0;i.uniqueId=function(a){var b=s++;return a?a+b:b};i.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g};i.template=function(a,b){var c=
i.templateSettings,c="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(c.interpolate,function(a,b){return"',"+b.replace(/\\'/g,"'")+",'"}).replace(c.evaluate||null,function(a,b){return"');"+b.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",c=new Function("obj",c);return b?c(b):c};var u=function(a){this._wrapped=
a};i.prototype=u.prototype;var C=function(a,b){return b?i(a).chain():a},D=function(a,c){u.prototype[a]=function(){var a=b.call(arguments);e.call(a,this._wrapped);return C(c.apply(i,a),this._chain)}};i.mixin(i);z("pop,push,reverse,shift,sort,splice,unshift".split(","),function(a){var b=c[a];u.prototype[a]=function(){b.apply(this._wrapped,arguments);return C(this._wrapped,this._chain)}});z(["concat","join","slice"],function(a){var b=c[a];u.prototype[a]=function(){return C(b.apply(this._wrapped,arguments),
this._chain)}});u.prototype.chain=function(){this._chain=!0;return this};u.prototype.value=function(){return this._wrapped}})();(function(){var a=this,h=a.Backbone,f;f=typeof exports!=="undefined"?exports:a.Backbone={};f.VERSION="0.5.3";var c=a._;if(!c&&typeof require!=="undefined")c=require("underscore")._;var d=a.jQuery||a.Zepto||a.ender;f.noConflict=function(){a.Backbone=h;return this};f.emulateHTTP=!1;f.emulateJSON=!1;f.Events={bind:function(a,b,c){var d=this._callbacks||(this._callbacks={});(d[a]||(d[a]=[])).push([b,c]);return this},unbind:function(a,b){var c;if(a){if(c=this._callbacks)if(b){c=c[a];if(!c)return this;
for(var d=0,e=c.length;d<e;d++)if(c[d]&&b===c[d][0]){c[d]=null;break}}else c[a]=[]}else this._callbacks={};return this},trigger:function(a){var b,c,d,e,g=2;if(!(c=this._callbacks))return this;for(;g--;)if(b=g?a:"all",b=c[b])for(var f=0,C=b.length;f<C;f++)(d=b[f])?(e=g?Array.prototype.slice.call(arguments,1):arguments,d[0].apply(d[1]||this,e)):(b.splice(f,1),f--,C--);return this}};f.Model=function(a,b){var d;a||(a={});if(d=this.defaults)c.isFunction(d)&&(d=d.call(this)),a=c.extend({},d,a);this.attributes=
{};this._escapedAttributes={};this.cid=c.uniqueId("c");this.set(a,{silent:!0});this._changed=!1;this._previousAttributes=c.clone(this.attributes);if(b&&b.collection)this.collection=b.collection;this.initialize(a,b)};c.extend(f.Model.prototype,f.Events,{_previousAttributes:null,_changed:!1,idAttribute:"id",initialize:function(){},toJSON:function(){return c.clone(this.attributes)},get:function(a){return this.attributes[a]},escape:function(a){var b;if(b=this._escapedAttributes[a])return b;b=this.attributes[a];
return this._escapedAttributes[a]=(b==null?"":""+b).replace(/&(?!\w+;|#\d+;|#x[\da-f]+;)/gi,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},has:function(a){return this.attributes[a]!=null},set:function(a,b){b||(b={});if(!a)return this;if(a.attributes)a=a.attributes;var d=this.attributes,e=this._escapedAttributes;if(!b.silent&&this.validate&&!this._performValidation(a,b))return!1;if(this.idAttribute in a)this.id=a[this.idAttribute];
var g=this._changing;this._changing=!0;for(var f in a){var m=a[f];if(!c.isEqual(d[f],m))d[f]=m,delete e[f],this._changed=!0,b.silent||this.trigger("change:"+f,this,m,b)}!g&&!b.silent&&this._changed&&this.change(b);this._changing=!1;return this},unset:function(a,b){if(!(a in this.attributes))return this;b||(b={});var c={};c[a]=void 0;if(!b.silent&&this.validate&&!this._performValidation(c,b))return!1;delete this.attributes[a];delete this._escapedAttributes[a];a==this.idAttribute&&delete this.id;this._changed=
!0;b.silent||(this.trigger("change:"+a,this,void 0,b),this.change(b));return this},clear:function(a){a||(a={});var b,c=this.attributes,d={};for(b in c)d[b]=void 0;if(!a.silent&&this.validate&&!this._performValidation(d,a))return!1;this.attributes={};this._escapedAttributes={};this._changed=!0;if(!a.silent){for(b in c)this.trigger("change:"+b,this,void 0,a);this.change(a)}return this},fetch:function(a){a||(a={});var b=this,c=a.success;a.success=function(d,e,g){if(!b.set(b.parse(d,g),a))return!1;c&&
c(b,d)};a.error=x(a.error,b,a);return(this.sync||f.sync).call(this,"read",this,a)},save:function(a,b){b||(b={});if(a&&!this.set(a,b))return!1;var c=this,d=b.success;b.success=function(a,k,e){if(!c.set(c.parse(a,e),b))return!1;d&&d(c,a,e)};b.error=x(b.error,c,b);var e=this.isNew()?"create":"update";return(this.sync||f.sync).call(this,e,this,b)},destroy:function(a){a||(a={});if(this.isNew())return this.trigger("destroy",this,this.collection,a);var b=this,c=a.success;a.success=function(d){b.trigger("destroy",
b,b.collection,a);c&&c(b,d)};a.error=x(a.error,b,a);return(this.sync||f.sync).call(this,"delete",this,a)},url:function(){var a=r(this.collection)||this.urlRoot||w();return this.isNew()?a:a+(a.charAt(a.length-1)=="/"?"":"/")+encodeURIComponent(this.id)},parse:function(a){return a},clone:function(){return new this.constructor(this)},isNew:function(){return this.id==null},change:function(a){this.trigger("change",this,a);this._previousAttributes=c.clone(this.attributes);this._changed=!1},hasChanged:function(a){return a?
this._previousAttributes[a]!=this.attributes[a]:this._changed},changedAttributes:function(a){a||(a=this.attributes);var b=this._previousAttributes,d=!1,e;for(e in a)c.isEqual(b[e],a[e])||(d=d||{},d[e]=a[e]);return d},previous:function(a){return!a||!this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return c.clone(this._previousAttributes)},_performValidation:function(a,b){var c=this.validate(a);return c?(b.error?b.error(this,c,b):this.trigger("error",this,c,b),
!1):!0}});f.Collection=function(a,b){b||(b={});if(b.comparator)this.comparator=b.comparator;c.bindAll(this,"_onModelEvent","_removeReference");this._reset();a&&this.reset(a,{silent:!0});this.initialize.apply(this,arguments)};c.extend(f.Collection.prototype,f.Events,{model:f.Model,initialize:function(){},toJSON:function(){return this.map(function(a){return a.toJSON()})},add:function(a,b){if(c.isArray(a))for(var d=0,e=a.length;d<e;d++)this._add(a[d],b);else this._add(a,b);return this},remove:function(a,
b){if(c.isArray(a))for(var d=0,e=a.length;d<e;d++)this._remove(a[d],b);else this._remove(a,b);return this},get:function(a){return a==null?null:this._byId[a.id!=null?a.id:a]},getByCid:function(a){return a&&this._byCid[a.cid||a]},at:function(a){return this.models[a]},sort:function(a){a||(a={});if(!this.comparator)throw Error("Cannot sort a set without a comparator");this.models=this.sortBy(this.comparator);a.silent||this.trigger("reset",this,a);return this},pluck:function(a){return c.map(this.models,
function(b){return b.get(a)})},reset:function(a,b){a||(a=[]);b||(b={});this.each(this._removeReference);this._reset();this.add(a,{silent:!0});b.silent||this.trigger("reset",this,b);return this},fetch:function(a){a||(a={});var b=this,c=a.success;a.success=function(d,e,g){b[a.add?"add":"reset"](b.parse(d,g),a);c&&c(b,d)};a.error=x(a.error,b,a);return(this.sync||f.sync).call(this,"read",this,a)},create:function(a,b){var c=this;b||(b={});a=this._prepareModel(a,b);if(!a)return!1;var d=b.success;b.success=
function(a,e,k){c.add(a,b);d&&d(a,e,k)};a.save(null,b);return a},parse:function(a){return a},chain:function(){return c(this.models).chain()},_reset:function(){this.length=0;this.models=[];this._byId={};this._byCid={}},_prepareModel:function(a,b){if(a instanceof f.Model){if(!a.collection)a.collection=this}else{var c=a,a=new this.model(c,{collection:this});a.validate&&!a._performValidation(c,b)&&(a=!1)}return a},_add:function(a,b){b||(b={});a=this._prepareModel(a,b);if(!a)return!1;var c=this.getByCid(a);
if(c)throw Error(["Can't add the same model to a set twice",c.id]);this._byId[a.id]=a;this._byCid[a.cid]=a;this.models.splice(b.at!=null?b.at:this.comparator?this.sortedIndex(a,this.comparator):this.length,0,a);a.bind("all",this._onModelEvent);this.length++;b.silent||a.trigger("add",a,this,b);return a},_remove:function(a,b){b||(b={});a=this.getByCid(a)||this.get(a);if(!a)return null;delete this._byId[a.id];delete this._byCid[a.cid];this.models.splice(this.indexOf(a),1);this.length--;b.silent||a.trigger("remove",
a,this,b);this._removeReference(a);return a},_removeReference:function(a){this==a.collection&&delete a.collection;a.unbind("all",this._onModelEvent)},_onModelEvent:function(a,b,c,d){(a=="add"||a=="remove")&&c!=this||(a=="destroy"&&this._remove(b,d),b&&a==="change:"+b.idAttribute&&(delete this._byId[b.previous(b.idAttribute)],this._byId[b.id]=b),this.trigger.apply(this,arguments))}});c.each("forEach,each,map,reduce,reduceRight,find,detect,filter,select,reject,every,all,some,any,include,contains,invoke,max,min,sortBy,sortedIndex,toArray,size,first,rest,last,without,indexOf,lastIndexOf,isEmpty,groupBy".split(","),
function(a){f.Collection.prototype[a]=function(){return c[a].apply(c,[this.models].concat(c.toArray(arguments)))}});f.Router=function(a){a||(a={});if(a.routes)this.routes=a.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var b=/:([\w\d]+)/g,e=/\*([\w\d]+)/g,g=/[-[\]{}()+?.,\\^$|#\s]/g;c.extend(f.Router.prototype,f.Events,{initialize:function(){},route:function(a,b,d){f.history||(f.history=new f.History);c.isRegExp(a)||(a=this._routeToRegExp(a));f.history.route(a,c.bind(function(c){c=
this._extractParameters(a,c);d.apply(this,c);this.trigger.apply(this,["route:"+b].concat(c))},this))},navigate:function(a,b){f.history.navigate(a,b)},_bindRoutes:function(){if(this.routes){var a=[],b;for(b in this.routes)a.unshift([b,this.routes[b]]);b=0;for(var c=a.length;b<c;b++)this.route(a[b][0],a[b][1],this[a[b][1]])}},_routeToRegExp:function(a){a=a.replace(g,"\\$&").replace(b,"([^/]*)").replace(e,"(.*?)");return RegExp("^"+a+"$")},_extractParameters:function(a,b){return a.exec(b).slice(1)}});
f.History=function(){this.handlers=[];c.bindAll(this,"checkUrl")};var m=/^#*/,n=/msie [\w.]+/,l=!1;c.extend(f.History.prototype,{interval:50,getFragment:function(a,b){if(a==null)if(this._hasPushState||b){var a=window.location.pathname,c=window.location.search;c&&(a+=c)}else a=window.location.hash;a=decodeURIComponent(a.replace(m,""));a.indexOf(this.options.root)||(a=a.substr(this.options.root.length));return a},start:function(a){if(l)throw Error("Backbone.history has already been started");this.options=
c.extend({},{root:"/"},this.options,a);this._wantsPushState=!!this.options.pushState;this._hasPushState=!(!this.options.pushState||!window.history||!window.history.pushState);var a=this.getFragment(),b=document.documentMode;if(b=n.exec(navigator.userAgent.toLowerCase())&&(!b||b<=7))this.iframe=d('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(a);this._hasPushState?d(window).bind("popstate",this.checkUrl):"onhashchange"in window&&!b?d(window).bind("hashchange",
this.checkUrl):setInterval(this.checkUrl,this.interval);this.fragment=a;l=!0;a=window.location;b=a.pathname==this.options.root;if(this._wantsPushState&&!this._hasPushState&&!b)return this.fragment=this.getFragment(null,!0),window.location.replace(this.options.root+"#"+this.fragment),!0;else if(this._wantsPushState&&this._hasPushState&&b&&a.hash)this.fragment=a.hash.replace(m,""),window.history.replaceState({},document.title,a.protocol+"//"+a.host+this.options.root+this.fragment);if(!this.options.silent)return this.loadUrl()},
route:function(a,b){this.handlers.unshift({route:a,callback:b})},checkUrl:function(){var a=this.getFragment();a==this.fragment&&this.iframe&&(a=this.getFragment(this.iframe.location.hash));if(a==this.fragment||a==decodeURIComponent(this.fragment))return!1;this.iframe&&this.navigate(a);this.loadUrl()||this.loadUrl(window.location.hash)},loadUrl:function(a){var b=this.fragment=this.getFragment(a);return c.any(this.handlers,function(a){if(a.route.test(b))return a.callback(b),!0})},navigate:function(a,
b){var c=(a||"").replace(m,"");if(!(this.fragment==c||this.fragment==decodeURIComponent(c))){if(this._hasPushState){var d=window.location;c.indexOf(this.options.root)!=0&&(c=this.options.root+c);this.fragment=c;window.history.pushState({},document.title,d.protocol+"//"+d.host+c)}else if(window.location.hash=this.fragment=c,this.iframe&&c!=this.getFragment(this.iframe.location.hash))this.iframe.document.open().close(),this.iframe.location.hash=c;b&&this.loadUrl(a)}}});f.View=function(a){this.cid=c.uniqueId("view");
this._configure(a||{});this._ensureElement();this.delegateEvents();this.initialize.apply(this,arguments)};var o=/^(\S+)\s*(.*)$/,p="model,collection,el,id,attributes,className,tagName".split(",");c.extend(f.View.prototype,f.Events,{tagName:"div",$:function(a){return d(a,this.el)},initialize:function(){},render:function(){return this},remove:function(){d(this.el).remove();return this},make:function(a,b,c){a=document.createElement(a);b&&d(a).attr(b);c&&d(a).html(c);return a},delegateEvents:function(a){if(a||
(a=this.events)){c.isFunction(a)&&(a=a.call(this));this.undelegateEvents();for(var b in a){var e=this[a[b]];if(!e)throw Error('Event "'+a[b]+'" does not exist');var g=b.match(o),f=g[1],g=g[2],e=c.bind(e,this);f+=".delegateEvents"+this.cid;g===""?d(this.el).bind(f,e):d(this.el).delegate(g,f,e)}}},undelegateEvents:function(){d(this.el).unbind(".delegateEvents"+this.cid)},_configure:function(a){this.options&&(a=c.extend({},this.options,a));for(var b=0,d=p.length;b<d;b++){var e=p[b];a[e]&&(this[e]=a[e])}this.options=
a},_ensureElement:function(){if(this.el){if(c.isString(this.el))this.el=d(this.el).get(0)}else{var a=this.attributes||{};if(this.id)a.id=this.id;if(this.className)a["class"]=this.className;this.el=this.make(this.tagName,a)}}});f.Model.extend=f.Collection.extend=f.Router.extend=f.View.extend=function(a,b){var c=v(this,a,b);c.extend=this.extend;return c};var q={create:"POST",update:"PUT","delete":"DELETE",read:"GET"};f.sync=function(a,b,e){var g=q[a],e=c.extend({type:g,dataType:"json"},e);if(!e.url)e.url=
r(b)||w();if(!e.data&&b&&(a=="create"||a=="update"))e.contentType="application/json",e.data=JSON.stringify(b.toJSON());if(f.emulateJSON)e.contentType="application/x-www-form-urlencoded",e.data=e.data?{model:e.data}:{};if(f.emulateHTTP&&(g==="PUT"||g==="DELETE")){if(f.emulateJSON)e.data._method=g;e.type="POST";e.beforeSend=function(a){a.setRequestHeader("X-HTTP-Method-Override",g)}}if(e.type!=="GET"&&!f.emulateJSON)e.processData=!1;return d.ajax(e)};var t=function(){},v=function(a,b,d){var e;e=b&&
b.hasOwnProperty("constructor")?b.constructor:function(){return a.apply(this,arguments)};c.extend(e,a);t.prototype=a.prototype;e.prototype=new t;b&&c.extend(e.prototype,b);d&&c.extend(e,d);e.prototype.constructor=e;e.__super__=a.prototype;return e},r=function(a){return!a||!a.url?null:c.isFunction(a.url)?a.url():a.url},w=function(){throw Error('A "url" property or function must be specified');},x=function(a,b,c){return function(d){a?a(b,d,c):b.trigger("error",b,d,c)}}}).call(this);(function(a){function h(){if(b.jStorage)try{d=n(String(b.jStorage))}catch(a){b.jStorage="{}"}else b.jStorage="{}";g=b.jStorage?String(b.jStorage).length:0}function f(){try{b.jStorage=m(d),e&&(e.setAttribute("jStorage",b.jStorage),e.save("jStorage")),g=b.jStorage?String(b.jStorage).length:0}catch(a){}}function c(a){if(!a||typeof a!="string"&&typeof a!="number")throw new TypeError("Key name must be string or numeric");return!0}if(!a||!a.toJSON&&!Object.toJSON&&!window.JSON)throw Error("jQuery, MooTools or Prototype needs to be loaded before jStorage!");
var d={},b={jStorage:"{}"},e=null,g=0,m=a.toJSON||Object.toJSON||window.JSON&&(JSON.encode||JSON.stringify),n=a.evalJSON||window.JSON&&(JSON.decode||JSON.parse)||function(a){return String(a).evalJSON()},l=!1,o={isXML:function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1},encode:function(a){if(!this.isXML(a))return!1;try{return(new XMLSerializer).serializeToString(a)}catch(b){try{return a.xml}catch(c){}}return!1},decode:function(a){var b="DOMParser"in window&&(new DOMParser).parseFromString||
window.ActiveXObject&&function(a){var b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a);return b};if(!b)return!1;a=b.call("DOMParser"in window&&new DOMParser||window,a,"text/xml");return this.isXML(a)?a:!1}};a.jStorage={version:"0.1.5.3",set:function(a,b){c(a);o.isXML(b)&&(b={_is_xml:!0,xml:o.encode(b)});d[a]=b;f();return b},get:function(a,b){c(a);return a in d?d[a]&&typeof d[a]=="object"&&d[a]._is_xml&&d[a]._is_xml?o.decode(d[a].xml):d[a]:typeof b=="undefined"?null:b},deleteKey:function(a){c(a);
return a in d?(delete d[a],f(),!0):!1},flush:function(){d={};f();return!0},storageObj:function(){function a(){}a.prototype=d;return new a},index:function(){var a=[],b;for(b in d)d.hasOwnProperty(b)&&a.push(b);return a},storageSize:function(){return g},currentBackend:function(){return l},storageAvailable:function(){return!!l},reInit:function(){var a;if(e&&e.addBehavior){a=document.createElement("link");e.parentNode.replaceChild(a,e);e=a;e.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(e);
e.load("jStorage");a="{}";try{a=e.getAttribute("jStorage")}catch(c){}b.jStorage=a;l="userDataBehavior"}h()}};(function(){if("localStorage"in window)try{if(window.localStorage)b=window.localStorage,l="localStorage"}catch(a){}else if("globalStorage"in window)try{window.globalStorage&&(b=window.globalStorage[window.location.hostname],l="globalStorage")}catch(c){}else if(e=document.createElement("link"),e.addBehavior){e.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(e);
e.load("jStorage");var d="{}";try{d=e.getAttribute("jStorage")}catch(g){}b.jStorage=d;l="userDataBehavior"}else{e=null;return}h()})()})(window.jQuery||window.$);(function(a,h,f){function c(a,b){var c=h.createElement(a||"div"),d;for(d in b)c[d]=b[d];return c}function d(a,b,c){c&&!c.parentNode&&d(a,c);a.insertBefore(b,c||null);return a}function b(a,b,c,d){var e=["opacity",b,~~(a*100),c,d].join("-"),c=0.01+c/d*100,d=Math.max(1-(1-a)/b*(100-c),a),g=o.substring(0,o.indexOf("Animation")).toLowerCase();l[e]||(p.insertRule("@"+(g&&"-"+g+"-"||"")+"keyframes "+e+"{0%{opacity:"+d+"}"+c+"%{opacity:"+a+"}"+(c+0.01)+"%{opacity:1}"+(c+b)%100+"%{opacity:"+a+"}100%{opacity:"+
d+"}}",0),l[e]=1);return e}function e(a,b){var c=a.style,d,e;if(c[b]!==f)return b;b=b.charAt(0).toUpperCase()+b.slice(1);for(e=0;e<n.length;e++)if(d=n[e]+b,c[d]!==f)return d}function g(a,b){for(var c in b)a.style[e(a,c)||c]=b[c];return a}function m(a){for(var b={x:a.offsetLeft,y:a.offsetTop};a=a.offsetParent;)b.x+=a.offsetLeft,b.y+=a.offsetTop;return b}var n=["webkit","Moz","ms","O"],l={},o;d(h.getElementsByTagName("head")[0],c("style"));var p=h.styleSheets[h.styleSheets.length-1],q=function r(a){if(!this.spin)return new r(a);
var a=a||{},b={lines:12,length:7,width:5,radius:10,color:"#000",speed:1,trail:100,opacity:0.25,fps:20},c;for(c in b)a[c]===f&&(a[c]=b[c]);this.opts=a},t=q.prototype={spin:function(a){this.stop();var b=this,e=b.el=g(c(),{position:"relative"}),f,i;a&&(i=m(d(a,e,a.firstChild)),f=m(e),g(e,{left:(a.offsetWidth>>1)-f.x+i.x+"px",top:(a.offsetHeight>>1)-f.y+i.y+"px"}));e.setAttribute("aria-role","progressbar");b.lines(e,b.opts);if(!o){var h=b.opts,n=0,j=h.fps,l=j/h.speed,p=(1-h.opacity)/(l*h.trail/100),C=
l/h.lines;(function B(){n++;for(var a=h.lines;a;a--){var c=Math.max(1-(n+a*C)%l*p,h.opacity);b.opacity(e,h.lines-a,c,h)}b.timeout=b.el&&setTimeout(B,~~(1E3/j))})()}return b},stop:function(){var a=this.el;if(a)clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=f;return this}};t.lines=function(a,e){function f(a,b){return g(c(),{position:"absolute",width:e.length+e.width+"px",height:e.width+"px",background:a,boxShadow:b,transformOrigin:"left",transform:"rotate("+~~(360/e.lines*
h)+"deg) translate("+e.radius+"px,0)",borderRadius:(e.width>>1)+"px"})}for(var h=0,i;h<e.lines;h++)i=g(c(),{position:"absolute",top:1+~(e.width/2)+"px",transform:"translate3d(0,0,0)",opacity:e.opacity,animation:o&&b(e.opacity,e.trail,h,e.lines)+" "+1/e.speed+"s linear infinite"}),e.shadow&&d(i,g(f("#000","0 0 4px #000"),{top:"2px"})),d(a,d(i,f(e.color,"0 0 1px rgba(0,0,0,.1)")));return a};t.opacity=function(a,b,c){a.childNodes[b].style.opacity=c};(function(){var a=g(c("group"),{behavior:"url(#default#VML)"});
if(!e(a,"transform")&&a.adj){for(a=4;a--;)p.addRule(["group","roundrect","fill","stroke"][a],"behavior:url(#default#VML)");t.lines=function(a,b){function e(){return g(c("group",{coordsize:m+" "+m,coordorigin:-h+" "+-h}),{width:m,height:m})}function f(a,D,i){d(j,d(g(e(),{rotation:360/b.lines*a+"deg",left:~~D}),d(g(c("roundrect",{arcsize:1}),{width:h,height:b.width,left:b.radius,top:-b.width>>1,filter:i}),c("fill",{color:b.color,opacity:b.opacity}),c("stroke",{opacity:0}))))}var h=b.length+b.width,
m=2*h,j=e(),n=~(b.length+b.radius+b.width)+"px",l;if(b.shadow)for(l=1;l<=b.lines;l++)f(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=b.lines;l++)f(l);return d(g(a,{margin:n+" 0 0 "+n,zoom:1}),j)};t.opacity=function(a,b,c,d){d=d.shadow&&d.lines||0;a.firstChild.childNodes[b+d].firstChild.firstChild.opacity=c}}else o=e(a,"animation")})();a.Spinner=q})(window,document);(function(a){function h(){var a="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(a):window.opera&&window.opera.postError&&window.opera.postError(a)}a.fn.ajaxSubmit=function(f){function c(b){function c(){function b(){try{var a=(j.contentWindow?j.contentWindow.document:j.contentDocument?j.contentDocument:j.document).readyState;h("state = "+a);a.toLowerCase()=="uninitialized"&&setTimeout(b,50)}catch(c){h("Server abort: ",c," (",c.name,")"),
g(E),C&&clearTimeout(C),C=void 0}}var f=e.attr("target"),D=e.attr("action");m.setAttribute("target",o);d||m.setAttribute("method","POST");D!=k.url&&m.setAttribute("action",k.url);!k.skipEncodingOverride&&(!d||/post/i.test(d))&&e.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});k.timeout&&(C=setTimeout(function(){u=!0;g(B)},k.timeout));var i=[];try{if(k.extraData)for(var n in k.extraData)i.push(a('<input type="hidden" name="'+n+'" />').attr("value",k.extraData[n]).appendTo(m)[0]);
k.iframeTarget||(p.appendTo("body"),j.attachEvent?j.attachEvent("onload",g):j.addEventListener("load",g,!1));setTimeout(b,15);m.submit()}finally{m.setAttribute("action",D),f?m.setAttribute("target",f):e.removeAttr("target"),a(i).remove()}}function g(b){if(!s.aborted&&!G){try{A=j.contentWindow?j.contentWindow.document:j.contentDocument?j.contentDocument:j.document}catch(c){h("cannot access response document: ",c),b=E}if(b===B&&s)s.abort("timeout");else if(b==E&&s)s.abort("server abort");else if(A&&
A.location.href!=k.iframeSrc||u){j.detachEvent?j.detachEvent("onload",g):j.removeEventListener("load",g,!1);var b="success",d;try{if(u)throw"timeout";var e=k.dataType=="xml"||A.XMLDocument||a.isXMLDoc(A);h("isXml="+e);if(!e&&window.opera&&(A.body==null||A.body.innerHTML=="")&&--H){h("requeing onLoad callback, DOM not available");setTimeout(g,250);return}var f=A.body?A.body:A.documentElement;s.responseText=f?f.innerHTML:null;s.responseXML=A.XMLDocument?A.XMLDocument:A;if(e)k.dataType="xml";s.getResponseHeader=
function(a){return{"content-type":k.dataType}[a]};if(f)s.status=Number(f.getAttribute("status"))||s.status,s.statusText=f.getAttribute("statusText")||s.statusText;var D=/(json|script|text)/.test((k.dataType||"").toLowerCase());if(D||k.textarea){var m=A.getElementsByTagName("textarea")[0];if(m)s.responseText=m.value,s.status=Number(m.getAttribute("status"))||s.status,s.statusText=m.getAttribute("statusText")||s.statusText;else if(D){var n=A.getElementsByTagName("pre")[0],l=A.getElementsByTagName("body")[0];
if(n)s.responseText=n.textContent?n.textContent:n.innerHTML;else if(l)s.responseText=l.innerHTML}}else if(k.dataType=="xml"&&!s.responseXML&&s.responseText!=null)s.responseXML=I(s.responseText);try{F=K(s,k.dataType,k)}catch(o){b="parsererror",s.error=d=o||b}}catch(q){h("error caught: ",q),b="error",s.error=d=q||b}s.aborted&&(h("upload aborted"),b=null);s.status&&(b=s.status>=200&&s.status<300||s.status===304?"success":"error");if(b==="success")k.success&&k.success.call(k.context,F,"success",s),i&&
a.event.trigger("ajaxSuccess",[s,k]);else if(b){if(d==void 0)d=s.statusText;k.error&&k.error.call(k.context,s,b,d);i&&a.event.trigger("ajaxError",[s,k,d])}i&&a.event.trigger("ajaxComplete",[s,k]);i&&!--a.active&&a.event.trigger("ajaxStop");k.complete&&k.complete.call(k.context,s,b);G=!0;k.timeout&&clearTimeout(C);setTimeout(function(){k.iframeTarget||p.remove();s.responseXML=null},100)}}}var m=e[0],n,l,k,i,o,p,j,s,u,C,D=!!a.fn.prop;if(b)for(l=0;l<b.length;l++)n=a(m[b[l].name]),n[D?"prop":"attr"]("disabled",
!1);if(a(":input[name=submit],:input[id=submit]",m).length)alert('Error: Form elements must not have name or id of "submit".');else if(k=a.extend(!0,{},a.ajaxSettings,f),k.context=k.context||k,o="jqFormIO"+(new Date).getTime(),k.iframeTarget?(p=a(k.iframeTarget),n=p.attr("name"),n==null?p.attr("name",o):o=n):(p=a('<iframe name="'+o+'" src="'+k.iframeSrc+'" />'),p.css({position:"absolute",top:"-1000px",left:"-1000px"})),j=p[0],s={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",
getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(b){var c=b==="timeout"?"timeout":"aborted";h("aborting upload... "+c);this.aborted=1;p.attr("src",k.iframeSrc);s.error=c;k.error&&k.error.call(k.context,s,c,b);i&&a.event.trigger("ajaxError",[s,k,c]);k.complete&&k.complete.call(k.context,s,c)}},(i=k.global)&&!a.active++&&a.event.trigger("ajaxStart"),i&&a.event.trigger("ajaxSend",[s,k]),k.beforeSend&&k.beforeSend.call(k.context,s,k)===!1)k.global&&
a.active--;else if(!s.aborted){if(b=m.clk)if((n=b.name)&&!b.disabled)if(k.extraData=k.extraData||{},k.extraData[n]=b.value,b.type=="image")k.extraData[n+".x"]=m.clk_x,k.extraData[n+".y"]=m.clk_y;var B=1,E=2;k.forceSync?c():setTimeout(c,10);var F,A,H=50,G,I=a.parseXML||function(a,b){window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml");return b&&b.documentElement&&b.documentElement.nodeName!="parsererror"?b:null},
J=a.parseJSON||function(a){return window.eval("("+a+")")},K=function(b,c,d){var e=b.getResponseHeader("content-type")||"",g=c==="xml"||!c&&e.indexOf("xml")>=0,b=g?b.responseXML:b.responseText;g&&b.documentElement.nodeName==="parsererror"&&a.error&&a.error("parsererror");d&&d.dataFilter&&(b=d.dataFilter(b,c));typeof b==="string"&&(c==="json"||!c&&e.indexOf("json")>=0?b=J(b):(c==="script"||!c&&e.indexOf("javascript")>=0)&&a.globalEval(b));return b}}}if(!this.length)return h("ajaxSubmit: skipping submit process - no element selected"),
this;var d,b,e=this;typeof f=="function"&&(f={success:f});d=this.attr("method");b=this.attr("action");(b=(b=typeof b==="string"?a.trim(b):"")||window.location.href||"")&&(b=(b.match(/^([^#]+)/)||[])[1]);f=a.extend(!0,{url:b,success:a.ajaxSettings.success,type:d||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},f);b={};this.trigger("form-pre-serialize",[this,f,b]);if(b.veto)return h("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(f.beforeSerialize&&
f.beforeSerialize(this,f)===!1)return h("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var g,m,n=this.formToArray(f.semantic);if(f.data)for(g in f.extraData=f.data,f.data)if(a.isArray(f.data[g]))for(var l in f.data[g])n.push({name:g,value:f.data[g][l]});else m=f.data[g],m=a.isFunction(m)?m():m,n.push({name:g,value:m});if(f.beforeSubmit&&f.beforeSubmit(n,this,f)===!1)return h("ajaxSubmit: submit aborted via beforeSubmit callback"),this;this.trigger("form-submit-validate",[n,this,f,
b]);if(b.veto)return h("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;g=a.param(n);f.type.toUpperCase()=="GET"?(f.url+=(f.url.indexOf("?")>=0?"&":"?")+g,f.data=null):f.data=g;var o=[];f.resetForm&&o.push(function(){e.resetForm()});f.clearForm&&o.push(function(){e.clearForm()});if(!f.dataType&&f.target){var p=f.success||function(){};o.push(function(b){var c=f.replaceTarget?"replaceWith":"html";a(f.target)[c](b).each(p,arguments)})}else f.success&&o.push(f.success);f.success=function(a,
b,c){for(var d=f.context||f,g=0,m=o.length;g<m;g++)o[g].apply(d,[a,b,c||e,e])};g=a("input:file",this).length>0;l=e.attr("enctype")=="multipart/form-data"||e.attr("encoding")=="multipart/form-data";if(f.iframe!==!1&&(g||f.iframe||l))f.closeKeepAlive?a.get(f.closeKeepAlive,function(){c(n)}):c(n);else{if(a.browser.msie&&d=="get"&&(g=e[0].getAttribute("method"),typeof g==="string"))f.type=g;a.ajax(f)}this.trigger("form-submit-notify",[this,f]);return this};a.fn.ajaxForm=function(f){if(this.length===0){var c=
this.selector,d=this.context;if(!a.isReady&&c)return h("DOM not ready, queuing ajaxForm"),a(function(){a(c,d).ajaxForm(f)}),this;h("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(b){b.isDefaultPrevented()||(b.preventDefault(),a(this).ajaxSubmit(f))}).bind("click.form-plugin",function(b){var c=b.target,d=a(c);if(!d.is(":submit,input:image")){c=d.closest(":submit");if(c.length==0)return;c=c[0]}var f=
this;f.clk=c;if(c.type=="image")b.offsetX!=void 0?(f.clk_x=b.offsetX,f.clk_y=b.offsetY):typeof a.fn.offset=="function"?(d=d.offset(),f.clk_x=b.pageX-d.left,f.clk_y=b.pageY-d.top):(f.clk_x=b.pageX-c.offsetLeft,f.clk_y=b.pageY-c.offsetTop);setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)})};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};a.fn.formToArray=function(f){var c=[];if(this.length===0)return c;var d=this[0],b=f?d.getElementsByTagName("*"):d.elements;
if(!b)return c;var e,g,m,h,l,o;for(e=0,l=b.length;e<l;e++)if(g=b[e],m=g.name)if(f&&d.clk&&g.type=="image")!g.disabled&&d.clk==g&&(c.push({name:m,value:a(g).val()}),c.push({name:m+".x",value:d.clk_x},{name:m+".y",value:d.clk_y}));else if((h=a.fieldValue(g,!0))&&h.constructor==Array)for(g=0,o=h.length;g<o;g++)c.push({name:m,value:h[g]});else h!==null&&typeof h!="undefined"&&c.push({name:m,value:h});if(!f&&d.clk&&(f=a(d.clk),b=f[0],(m=b.name)&&!b.disabled&&b.type=="image"))c.push({name:m,value:f.val()}),
c.push({name:m+".x",value:d.clk_x},{name:m+".y",value:d.clk_y});return c};a.fn.formSerialize=function(f){return a.param(this.formToArray(f))};a.fn.fieldSerialize=function(f){var c=[];this.each(function(){var d=this.name;if(d){var b=a.fieldValue(this,f);if(b&&b.constructor==Array)for(var e=0,g=b.length;e<g;e++)c.push({name:d,value:b[e]});else b!==null&&typeof b!="undefined"&&c.push({name:this.name,value:b})}});return a.param(c)};a.fn.fieldValue=function(f){for(var c=[],d=0,b=this.length;d<b;d++){var e=
a.fieldValue(this[d],f);e===null||typeof e=="undefined"||e.constructor==Array&&!e.length||(e.constructor==Array?a.merge(c,e):c.push(e))}return c};a.fieldValue=function(f,c){var d=f.name,b=f.type,e=f.tagName.toLowerCase();c===void 0&&(c=!0);if(c&&(!d||f.disabled||b=="reset"||b=="button"||(b=="checkbox"||b=="radio")&&!f.checked||(b=="submit"||b=="image")&&f.form&&f.form.clk!=f||e=="select"&&f.selectedIndex==-1))return null;if(e=="select"){var g=f.selectedIndex;if(g<0)return null;for(var d=[],e=f.options,
h=(b=b=="select-one")?g+1:e.length,g=b?g:0;g<h;g++){var n=e[g];if(n.selected){var l=n.value;l||(l=n.attributes&&n.attributes.value&&!n.attributes.value.specified?n.text:n.value);if(b)return l;d.push(l)}}return d}return a(f).val()};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){var a=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var c=
this.type,d=this.tagName.toLowerCase();if(a.test(c)||d=="textarea")this.value="";else if(c=="checkbox"||c=="radio")this.checked=!1;else if(d=="select")this.selectedIndex=-1})};a.fn.resetForm=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})};a.fn.enable=function(a){a===void 0&&(a=!0);return this.each(function(){this.disabled=!a})};a.fn.selected=function(f){f===void 0&&(f=!0);return this.each(function(){var c=this.type;
if(c=="checkbox"||c=="radio")this.checked=f;else if(this.tagName.toLowerCase()=="option")c=a(this).parent("select"),f&&c[0]&&c[0].type=="select-one"&&c.find("option").selected(!1),this.selected=f})}})(jQuery);(function(a){var h=a.browser.msie&&parseInt(a.browser.version)===6&&typeof window.XMLHttpRequest!=="object",f=a.browser.msie&&parseInt(a.browser.version)===7,c=null,d=[];a.modal=function(b,c){return a.modal.impl.init(b,c)};a.modal.close=function(){a.modal.impl.close()};a.modal.focus=function(b){a.modal.impl.focus(b)};a.modal.setContainerDimensions=function(){a.modal.impl.setContainerDimensions()};a.modal.setPosition=function(){a.modal.impl.setPosition()};a.modal.update=function(b,c){a.modal.impl.update(b,
c)};a.fn.modal=function(b){return a.modal.impl.init(this,b)};a.modal.defaults={appendTo:"body",focus:!0,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:!1,autoPosition:!0,zIndex:1E3,close:!0,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:!0,overlayClose:!1,position:null,persist:!1,modal:!0,
onOpen:null,onShow:null,onClose:null};a.modal.impl={d:{},init:function(b,d){if(this.d.data)return!1;c=a.browser.msie&&!a.boxModel;this.o=a.extend({},a.modal.defaults,d);this.zIndex=this.o.zIndex;this.occb=!1;if(typeof b==="object"){if(b=b instanceof jQuery?b:a(b),this.d.placeholder=!1,b.parent().parent().size()>0&&(b.before(a("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"})),this.d.placeholder=!0,this.display=b.css("display"),!this.o.persist))this.d.orig=b.clone(!0)}else if(typeof b===
"string"||typeof b==="number")b=a("<div></div>").html(b);else return alert("SimpleModal Error: Unsupported data type: "+typeof b),this;this.create(b);this.open();a.isFunction(this.o.onShow)&&this.o.onShow.apply(this,[this.d]);return this},create:function(b){d=this.getDimensions();if(this.o.modal&&h)this.d.iframe=a('<iframe src="javascript:false;"></iframe>').css(a.extend(this.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:d[0],width:d[1],zIndex:this.o.zIndex,top:0,left:0})).appendTo(this.o.appendTo);
this.d.overlay=a("<div></div>").attr("id",this.o.overlayId).addClass("simplemodal-overlay").css(a.extend(this.o.overlayCss,{display:"none",opacity:this.o.opacity/100,height:this.o.modal?d[0]:0,width:this.o.modal?d[1]:0,position:"fixed",left:0,top:0,zIndex:this.o.zIndex+1})).appendTo(this.o.appendTo);this.d.container=a("<div></div>").attr("id",this.o.containerId).addClass("simplemodal-container").css(a.extend(this.o.containerCss,{display:"none",position:"fixed",zIndex:this.o.zIndex+2})).append(this.o.close&&
this.o.closeHTML?a(this.o.closeHTML).addClass(this.o.closeClass):"").appendTo(this.o.appendTo);this.d.wrap=a("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(this.d.container);this.d.data=b.attr("id",b.attr("id")||this.o.dataId).addClass("simplemodal-data").css(a.extend(this.o.dataCss,{display:"none"})).appendTo("body");this.setContainerDimensions();this.d.data.appendTo(this.d.wrap);(h||c)&&this.fixIE()},bindEvents:function(){var b=
this;a("."+b.o.closeClass).bind("click.simplemodal",function(a){a.preventDefault();b.close()});b.o.modal&&b.o.close&&b.o.overlayClose&&b.d.overlay.bind("click.simplemodal",function(a){a.preventDefault();b.close()});a(document).bind("keydown.simplemodal",function(a){b.o.modal&&a.keyCode===9?b.watchTab(a):b.o.close&&b.o.escClose&&a.keyCode===27&&(a.preventDefault(),b.close())});a(window).bind("resize.simplemodal",function(){d=b.getDimensions();b.o.autoResize?b.setContainerDimensions():b.o.autoPosition&&
b.setPosition();h||c?b.fixIE():b.o.modal&&(b.d.iframe&&b.d.iframe.css({height:d[0],width:d[1]}),b.d.overlay.css({height:d[0],width:d[1]}))})},unbindEvents:function(){a("."+this.o.closeClass).unbind("click.simplemodal");a(document).unbind("keydown.simplemodal");a(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var b=this.o.position;a.each([this.d.iframe||null,!this.o.modal?null:this.d.overlay,this.d.container],function(a,c){if(c){var d=c[0].style;d.position=
"absolute";if(a<2)d.removeExpression("height"),d.removeExpression("width"),d.setExpression("height",'document.body.scrollHeight > document.body.clientHeight ? document.body.scrollHeight : document.body.clientHeight + "px"'),d.setExpression("width",'document.body.scrollWidth > document.body.clientWidth ? document.body.scrollWidth : document.body.clientWidth + "px"');else{var f,h;b&&b.constructor===Array?(f=b[0]?typeof b[0]==="number"?b[0].toString():b[0].replace(/px/,""):c.css("top").replace(/px/,
""),f=f.indexOf("%")===-1?f+' + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"':parseInt(f.replace(/%/,""))+' * ((document.documentElement.clientHeight || document.body.clientHeight) / 100) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"',b[1]&&(h=typeof b[1]==="number"?b[1].toString():b[1].replace(/px/,""),h=h.indexOf("%")===-1?h+' + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"':
parseInt(h.replace(/%/,""))+' * ((document.documentElement.clientWidth || document.body.clientWidth) / 100) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"')):(f='(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"',h='(document.documentElement.clientWidth || document.body.clientWidth) / 2 - (this.offsetWidth / 2) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"');
d.removeExpression("top");d.removeExpression("left");d.setExpression("top",f);d.setExpression("left",h)}}})},focus:function(b){var c=this,b=b&&a.inArray(b,["first","last"])!==-1?b:"first",d=a(":input:enabled:visible:"+b,c.d.wrap);setTimeout(function(){d.length>0?d.focus():c.d.wrap.focus()},10)},getDimensions:function(){var b=a(window);return[a.browser.opera&&a.browser.version>"9.5"&&a.fn.jquery<"1.3"||a.browser.opera&&a.browser.version<"9.5"&&a.fn.jquery>"1.2.6"?b[0].innerHeight:b.height(),b.width()]},
getVal:function(a,c){return a?typeof a==="number"?a:a==="auto"?0:a.indexOf("%")>0?parseInt(a.replace(/%/,""))/100*(c==="h"?d[0]:d[1]):parseInt(a.replace(/px/,"")):null},update:function(a,c){if(!this.d.data)return!1;this.d.origHeight=this.getVal(a,"h");this.d.origWidth=this.getVal(c,"w");this.d.data.hide();a&&this.d.container.css("height",a);c&&this.d.container.css("width",c);this.setContainerDimensions();this.d.data.show();this.o.focus&&this.focus();this.unbindEvents();this.bindEvents()},setContainerDimensions:function(){var b=
h||f,c=this.d.origHeight?this.d.origHeight:a.browser.opera?this.d.container.height():this.getVal(b?this.d.container[0].currentStyle.height:this.d.container.css("height"),"h"),b=this.d.origWidth?this.d.origWidth:a.browser.opera?this.d.container.width():this.getVal(b?this.d.container[0].currentStyle.width:this.d.container.css("width"),"w"),g=this.d.data.outerHeight(!0),m=this.d.data.outerWidth(!0);this.d.origHeight=this.d.origHeight||c;this.d.origWidth=this.d.origWidth||b;var n=this.o.maxHeight?this.getVal(this.o.maxHeight,
"h"):null,l=this.o.maxWidth?this.getVal(this.o.maxWidth,"w"):null,n=n&&n<d[0]?n:d[0],l=l&&l<d[1]?l:d[1],o=this.o.minHeight?this.getVal(this.o.minHeight,"h"):"auto",c=c?this.o.autoResize&&c>n?n:c<o?o:c:g?g>n?n:this.o.minHeight&&o!=="auto"&&g<o?o:g:o,n=this.o.minWidth?this.getVal(this.o.minWidth,"w"):"auto",b=b?this.o.autoResize&&b>l?l:b<n?n:b:m?m>l?l:this.o.minWidth&&n!=="auto"&&m<n?n:m:n;this.d.container.css({height:c,width:b});this.d.wrap.css({overflow:g>c||m>b?"auto":"visible"});this.o.autoPosition&&
this.setPosition()},setPosition:function(){var a,c;a=d[0]/2-this.d.container.outerHeight(!0)/2;c=d[1]/2-this.d.container.outerWidth(!0)/2;this.o.position&&Object.prototype.toString.call(this.o.position)==="[object Array]"&&(a=this.o.position[0]||a,c=this.o.position[1]||c);this.d.container.css({left:c,top:a})},watchTab:function(b){if(a(b.target).parents(".simplemodal-container").length>0){if(this.inputs=a(":input:enabled:visible:first, :input:enabled:visible:last",this.d.data[0]),!b.shiftKey&&b.target===
this.inputs[this.inputs.length-1]||b.shiftKey&&b.target===this.inputs[0]||this.inputs.length===0)b.preventDefault(),this.focus(b.shiftKey?"last":"first")}else b.preventDefault(),this.focus()},open:function(){this.d.iframe&&this.d.iframe.show();a.isFunction(this.o.onOpen)?this.o.onOpen.apply(this,[this.d]):(this.d.overlay.show(),this.d.container.show(),this.d.data.show());this.o.focus&&this.focus();this.bindEvents()},close:function(){var b=this;if(!b.d.data)return!1;b.unbindEvents();if(a.isFunction(b.o.onClose)&&
!b.occb)b.occb=!0,b.o.onClose.apply(b,[b.d]);else{if(b.d.placeholder){var c=a("#simplemodal-placeholder");b.o.persist?c.replaceWith(b.d.data.removeClass("simplemodal-data").css("display",b.display)):(b.d.data.hide().remove(),c.replaceWith(b.d.orig))}else b.d.data.hide().remove();b.d.container.hide().remove();b.d.overlay.hide();b.d.iframe&&b.d.iframe.hide().remove();setTimeout(function(){b.d.overlay.remove();b.d={}},10)}}}})(jQuery);(function(a){var h={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",
buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},f=!1;a(window).bind("load.jcarousel",function(){f=!0});a.jcarousel=function(c,b){this.options=a.extend({},h,b||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!b||b.rtl===void 0)this.options.rtl=(a(c).attr("dir")||a("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?
this.options.rtl?"right":"left":"top";for(var e="",g=c.className.split(" "),m=0;m<g.length;m++)if(g[m].indexOf("jcarousel-skin")!=-1){a(c).removeClass(g[m]);e=g[m];break}c.nodeName.toUpperCase()=="UL"||c.nodeName.toUpperCase()=="OL"?(this.list=a(c),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=a(c),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip"));if(this.clip.size()===0)this.clip=
this.list.wrap("<div></div>").parent();if(this.container.size()===0)this.container=this.clip.wrap("<div></div>").parent();e!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+e+'"></div>');this.buttonPrev=a(".jcarousel-prev",this.container);if(this.buttonPrev.size()===0&&this.options.buttonPrevHTML!==null)this.buttonPrev=a(this.options.buttonPrevHTML).appendTo(this.container);this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext=
a(".jcarousel-next",this.container);if(this.buttonNext.size()===0&&this.options.buttonNextHTML!==null)this.buttonNext=a(this.options.buttonNextHTML).appendTo(this.container);this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});
!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var n=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null,e=this.list.children("li"),l=this;if(e.size()>0){var o=0,p=this.options.offset;e.each(function(){l.format(this,p++);o+=l.dimension(this,n)});this.list.css(this.wh,o+100+"px");if(!b||b.size===void 0)this.options.size=e.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display",
"block");this.funcNext=function(){l.next()};this.funcPrev=function(){l.prev()};this.funcResize=function(){l.resizeTimer&&clearTimeout(l.resizeTimer);l.resizeTimer=setTimeout(function(){l.reload()},100)};this.options.initCallback!==null&&this.options.initCallback(this,"init");!f&&a.browser.safari?(this.buttons(!1,!1),a(window).bind("load.jcarousel",function(){l.setup()})):this.setup()};var c=a.jcarousel;c.fn=c.prototype={jcarousel:"0.2.8"};c.fn.extend=c.extend=a.extend;c.fn.extend({setup:function(){this.prevLast=
this.prevFirst=this.last=this.first=null;this.animating=!1;this.tail=this.resizeTimer=this.timer=null;this.inTail=!1;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var c=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null;this.animate(c,!1);a(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize);this.options.setupCallback!==null&&this.options.setupCallback(this)}},reset:function(){this.list.empty();this.list.css(this.lt,
"0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!==null&&this.inTail&&this.list.css(this.lt,c.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=!1;this.options.reloadCallback!==null&&this.options.reloadCallback(this);if(this.options.visible!==null){var a=this,b=Math.ceil(this.clipping()/this.options.visible),e=0,g=0;this.list.children("li").each(function(c){e+=a.dimension(this,
b);c+1<a.first&&(g=e)});this.list.css(this.wh,e+"px");this.list.css(this.lt,-g+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0;this.buttons()},unlock:function(){this.locked=!1;this.buttons()},size:function(a){if(a!==void 0)this.options.size=a,this.locked||this.buttons();return this.options.size},has:function(a,b){if(b===void 0||!b)b=a;if(this.options.size!==null&&b>this.options.size)b=this.options.size;for(var c=a;c<=b;c++){var g=this.get(c);if(!g.length||g.hasClass("jcarousel-item-placeholder"))return!1}return!0},
get:function(c){return a(">.jcarousel-item-"+c,this.list)},add:function(d,b){var e=this.get(d),g=0,f=a(b);if(e.length===0)for(var h,l=c.intval(d),e=this.create(d);;){if(h=this.get(--l),l<=0||h.length){l<=0?this.list.prepend(e):h.after(e);break}}else g=this.dimension(e);f.get(0).nodeName.toUpperCase()=="LI"?(e.replaceWith(f),e=f):e.empty().append(b);this.format(e.removeClass(this.className("jcarousel-item-placeholder")),d);f=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):
null;g=this.dimension(e,f)-g;d>0&&d<this.first&&this.list.css(this.lt,c.intval(this.list.css(this.lt))-g+"px");this.list.css(this.wh,c.intval(this.list.css(this.wh))+g+"px");return e},remove:function(a){var b=this.get(a);if(b.length&&!(a>=this.first&&a<=this.last)){var e=this.dimension(b);a<this.first&&this.list.css(this.lt,c.intval(this.list.css(this.lt))+e+"px");b.remove();this.list.css(this.wh,c.intval(this.list.css(this.wh))-e+"px")}},next:function(){this.tail!==null&&!this.inTail?this.scrollTail(!1):
this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!==null&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.tail!==null&&this.inTail?this.scrollTail(!0):this.scroll((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!==null&&this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(a){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var b=c.intval(this.list.css(this.lt)),
b=!a?b-this.tail:b+this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(b)}},scroll:function(a,b){!this.locked&&!this.animating&&(this.pauseAuto(),this.animate(this.pos(a),b))},pos:function(a,b){var e=c.intval(this.list.css(this.lt));if(this.locked||this.animating)return e;this.options.wrap!="circular"&&(a=a<1?1:this.options.size&&a>this.options.size?this.options.size:a);for(var g=this.first>a,f=this.options.wrap!="circular"&&this.first<=1?1:this.first,h=g?this.get(f):
this.get(this.last),l=g?f:f-1,o=null,p=0,q=!1,t=0;g?--l>=a:++l<a;){o=this.get(l);q=!o.length;if(o.length===0&&(o=this.create(l).addClass(this.className("jcarousel-item-placeholder")),h[g?"before":"after"](o),this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(l<=0||l>this.options.size)))h=this.get(this.index(l)),h.length&&(o=this.add(l,h.clone(!0)));h=o;t=this.dimension(o);q&&(p+=t);if(this.first!==null&&(this.options.wrap=="circular"||l>=1&&(this.options.size===null||l<=
this.options.size)))e=g?e+t:e-t}for(var f=this.clipping(),v=[],r=0,w=0,h=this.get(a-1),l=a;++r;){o=this.get(l);q=!o.length;if(o.length===0){o=this.create(l).addClass(this.className("jcarousel-item-placeholder"));if(h.length===0)this.list.prepend(o);else h[g?"before":"after"](o);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(l<=0||l>this.options.size))h=this.get(this.index(l)),h.length&&(o=this.add(l,h.clone(!0)))}h=o;t=this.dimension(o);if(t===0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");
this.options.wrap!="circular"&&this.options.size!==null&&l>this.options.size?v.push(o):q&&(p+=t);w+=t;if(w>=f)break;l++}for(o=0;o<v.length;o++)v[o].remove();p>0&&(this.list.css(this.wh,this.dimension(this.list)+p+"px"),g&&(e-=p,this.list.css(this.lt,c.intval(this.list.css(this.lt))-p+"px")));p=a+r-1;if(this.options.wrap!="circular"&&this.options.size&&p>this.options.size)p=this.options.size;if(l>p){r=0;l=p;for(w=0;++r;){o=this.get(l--);if(!o.length)break;w+=this.dimension(o);if(w>=f)break}}l=p-r+
1;this.options.wrap!="circular"&&l<1&&(l=1);if(this.inTail&&g)e+=this.tail,this.inTail=!1;this.tail=null;if(this.options.wrap!="circular"&&p==this.options.size&&p-r+1>=1&&(g=c.intval(this.get(p).css(!this.options.vertical?"marginRight":"marginBottom")),w-g>f))this.tail=w-f-g;if(b&&a===this.options.size&&this.tail)e-=this.tail,this.inTail=!0;for(;a-- >l;)e+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=l;this.last=p;return e},animate:function(c,b){if(!this.locked&&
!this.animating){this.animating=!0;var e=this,g=function(){e.animating=!1;c===0&&e.list.css(e.lt,0);!e.autoStopped&&(e.options.wrap=="circular"||e.options.wrap=="both"||e.options.wrap=="last"||e.options.size===null||e.last<e.options.size||e.last==e.options.size&&e.tail!==null&&!e.inTail)&&e.startAuto();e.buttons();e.notify("onAfterAnimation");if(e.options.wrap=="circular"&&e.options.size!==null)for(var a=e.prevFirst;a<=e.prevLast;a++)a!==null&&!(a>=e.first&&a<=e.last)&&(a<1||a>e.options.size)&&e.remove(a)};
this.notify("onBeforeAnimation");if(!this.options.animation||b===!1)this.list.css(this.lt,c+"px"),g();else{var f=!this.options.vertical?this.options.rtl?{right:c}:{left:c}:{top:c},g={duration:this.options.animation,easing:this.options.easing,complete:g};if(a.isFunction(this.options.animationStepCallback))g.step=this.options.animationStepCallback;this.list.animate(f,g)}}},startAuto:function(a){if(a!==void 0)this.options.auto=a;if(this.options.auto===0)return this.stopAuto();if(this.timer===null){this.autoStopped=
!1;var b=this;this.timer=window.setTimeout(function(){b.next()},this.options.auto*1E3)}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0},pauseAuto:function(){if(this.timer!==null)window.clearTimeout(this.timer),this.timer=null},buttons:function(a,b){if(a==null&&(a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last<this.options.size),!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!==null&&
this.last>=this.options.size))a=this.tail!==null&&!this.inTail;if(b==null&&(b=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1),!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!==null&&this.first==1))b=this.tail!==null&&this.inTail;var c=this;this.buttonNext.size()>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext),
this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?!1:!0),this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){c.options.buttonNextCallback(c,this,a)}).data("jcarouselstate",a)):this.options.buttonNextCallback!==null&&this.buttonNextState!=a&&this.options.buttonNextCallback(c,null,a);this.buttonPrev.size()>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),
b&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[b?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",b?!1:!0),this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=b&&this.buttonPrev.each(function(){c.options.buttonPrevCallback(c,this,b)}).data("jcarouselstate",b)):this.options.buttonPrevCallback!==null&&this.buttonPrevState!=b&&this.options.buttonPrevCallback(c,null,b);this.buttonNextState=
a;this.buttonPrevState=b},notify:function(a){var b=this.prevFirst===null?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",a,b);this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",a,b,this.first),this.callback("itemFirstOutCallback",a,b,this.prevFirst));this.prevLast!==this.last&&(this.callback("itemLastInCallback",a,b,this.last),this.callback("itemLastOutCallback",a,b,this.prevLast));this.callback("itemVisibleInCallback",a,b,this.first,this.last,this.prevFirst,
this.prevLast);this.callback("itemVisibleOutCallback",a,b,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(c,b,e,g,f,h,l){if(!(this.options[c]==null||typeof this.options[c]!="object"&&b!="onAfterAnimation")){var o=typeof this.options[c]=="object"?this.options[c][b]:this.options[c];if(a.isFunction(o)){var p=this;if(g===void 0)o(p,e,b);else if(f===void 0)this.get(g).each(function(){o(p,this,g,e,b)});else for(var c=function(a){p.get(a).each(function(){o(p,this,a,e,b)})},q=g;q<=f;q++)q!==
null&&!(q>=h&&q<=l)&&c(q)}}},create:function(a){return this.format("<li></li>",a)},format:function(c,b){for(var c=a(c),e=c.get(0).className.split(" "),g=0;g<e.length;g++)e[g].indexOf("jcarousel-")!=-1&&c.removeClass(e[g]);c.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+b)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",b);return c},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")},
dimension:function(d,b){var e=a(d);if(b==null)return!this.options.vertical?e.outerWidth(!0)||c.intval(this.options.itemFallbackDimension):e.outerHeight(!0)||c.intval(this.options.itemFallbackDimension);else{var g=!this.options.vertical?b-c.intval(e.css("marginLeft"))-c.intval(e.css("marginRight")):b-c.intval(e.css("marginTop"))-c.intval(e.css("marginBottom"));a(e).css(this.wh,g+"px");return this.dimension(e)}},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-c.intval(this.clip.css("borderLeftWidth"))-
c.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-c.intval(this.clip.css("borderTopWidth"))-c.intval(this.clip.css("borderBottomWidth"))},index:function(a,b){if(b==null)b=this.options.size;return Math.round(((a-1)/b-Math.floor((a-1)/b))*b)+1}});c.extend({defaults:function(c){return a.extend(h,c||{})},intval:function(a){a=parseInt(a,10);return isNaN(a)?0:a},windowLoaded:function(){f=!0}});a.fn.jcarousel=function(d){if(typeof d=="string"){var b=a(this).data("jcarousel"),e=Array.prototype.slice.call(arguments,
1);return b[d].apply(b,e)}else return this.each(function(){var b=a(this).data("jcarousel");b?(d&&a.extend(b.options,d),b.reload()):a(this).data("jcarousel",new c(this,d))})}})(jQuery);/*
 http://www.gnu.org/licenses/gpl.html [GNU General Public License]
 @param {jQuery} {base64Encode:function(input))
 @param {jQuery} {base64Decode:function(input))
 @return string
*/
(function(a){a.extend({base64Encode:function(a){var f="",c,d,b,e,g,m,n=0,a=a.replace(/\x0d\x0a/g,"\n");d="";for(b=0;b<a.length;b++)e=a.charCodeAt(b),e<128?d+=String.fromCharCode(e):(e>127&&e<2048?d+=String.fromCharCode(e>>6|192):(d+=String.fromCharCode(e>>12|224),d+=String.fromCharCode(e>>6&63|128)),d+=String.fromCharCode(e&63|128));for(a=d;n<a.length;)c=a.charCodeAt(n++),d=a.charCodeAt(n++),b=a.charCodeAt(n++),e=c>>2,c=(c&3)<<4|d>>4,g=(d&15)<<2|b>>6,m=b&63,isNaN(d)?g=m=64:isNaN(b)&&(m=64),f=f+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(m);return f},base64Decode:function(a){for(var f="",c,d,b,e,g,m=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");m<a.length;)c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(m++)),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(m++)),
e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(m++)),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(m++)),c=c<<2|d>>4,d=(d&15)<<4|e>>2,b=(e&3)<<6|g,f+=String.fromCharCode(c),e!=64&&(f+=String.fromCharCode(d)),g!=64&&(f+=String.fromCharCode(b));a=f;f="";for(g=c1=c2=e=0;e<a.length;)g=a.charCodeAt(e),g<128?(f+=String.fromCharCode(g),e++):g>191&&g<224?(c2=a.charCodeAt(e+1),f+=String.fromCharCode((g&31)<<6|c2&63),e+=2):(c2=
a.charCodeAt(e+1),c3=a.charCodeAt(e+2),f+=String.fromCharCode((g&15)<<12|(c2&63)<<6|c3&63),e+=3);return f}})})(jQuery);(function(a){function h(){var d;d=a(this);if(!d.data("timeago")){d.data("timeago",{datetime:c.datetime(d)});var b=a.trim(d.text());b.length>0&&d.attr("title",b)}d=d.data("timeago");isNaN(d.datetime)||a(this).text(f(d.datetime));return this}function f(a){return c.inWords((new Date).getTime()-a.getTime())}a.timeago=function(c){return c instanceof Date?f(c):typeof c==="string"?f(a.timeago.parse(c)):f(a.timeago.datetime(c))};var c=a.timeago;a.extend(a.timeago,{settings:{refreshMillis:6E4,allowFuture:!1,
strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",numbers:[]}},inWords:function(c){function b(b,f){return(a.isFunction(b)?b(f,c):b).replace(/%d/i,e.numbers&&e.numbers[f]||f)}var e=this.settings.strings,f=e.prefixAgo,h=e.suffixAgo;if(this.settings.allowFuture){if(c<
0)f=e.prefixFromNow,h=e.suffixFromNow;c=Math.abs(c)}var n=c/1E3,l=n/60,o=l/60,p=o/24,q=p/365,n=n<45&&b(e.seconds,Math.round(n))||n<90&&b(e.minute,1)||l<45&&b(e.minutes,Math.round(l))||l<90&&b(e.hour,1)||o<24&&b(e.hours,Math.round(o))||o<48&&b(e.day,1)||p<30&&b(e.days,Math.floor(p))||p<60&&b(e.month,1)||p<365&&b(e.months,Math.floor(p/30))||q<2&&b(e.year,1)||b(e.years,Math.floor(q));return a.trim([f,n,h].join(" "))},parse:function(c){c=a.trim(c);c=c.replace(/\.\d\d\d+/,"");c=c.replace(/-/,"/").replace(/-/,
"/");c=c.replace(/T/," ").replace(/Z/," UTC");c=c.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2");return new Date(c)},datetime:function(d){d=a(d).get(0).tagName.toLowerCase()==="time"?a(d).attr("datetime"):a(d).attr("title");return c.parse(d)}});a.fn.timeago=function(){var a=this;a.each(h);var b=c.settings;b.refreshMillis>0&&setInterval(function(){a.each(h)},b.refreshMillis);return a};document.createElement("abbr");document.createElement("time")})(jQuery);(function(a,h){a.fn.jPlayer=function(c){var d=typeof c==="string",b=Array.prototype.slice.call(arguments,1),e=this,c=!d&&b.length?a.extend.apply(null,[!0,c].concat(b)):c;if(d&&c.charAt(0)==="_")return e;d?this.each(function(){var d=a.data(this,"jPlayer"),f=d&&a.isFunction(d[c])?d[c].apply(d,b):d;if(f!==d&&f!==h)return e=f,!1}):this.each(function(){var b=a.data(this,"jPlayer");b?(b.option(c||{})._init(),b.option(c||{})):a.data(this,"jPlayer",new a.jPlayer(c,this))});return e};a.jPlayer=function(c,
d){if(arguments.length){this.element=a(d);this.options=a.extend(!0,{},this.options,c);var b=this;this.element.bind("remove.jPlayer",function(){b.destroy()});this._init()}};a.jPlayer.event={ready:"jPlayer_ready",resize:"jPlayer_resize",error:"jPlayer_error",warning:"jPlayer_warning",loadstart:"jPlayer_loadstart",progress:"jPlayer_progress",suspend:"jPlayer_suspend",abort:"jPlayer_abort",emptied:"jPlayer_emptied",stalled:"jPlayer_stalled",play:"jPlayer_play",pause:"jPlayer_pause",loadedmetadata:"jPlayer_loadedmetadata",
loadeddata:"jPlayer_loadeddata",waiting:"jPlayer_waiting",playing:"jPlayer_playing",canplay:"jPlayer_canplay",canplaythrough:"jPlayer_canplaythrough",seeking:"jPlayer_seeking",seeked:"jPlayer_seeked",timeupdate:"jPlayer_timeupdate",ended:"jPlayer_ended",ratechange:"jPlayer_ratechange",durationchange:"jPlayer_durationchange",volumechange:"jPlayer_volumechange"};a.jPlayer.htmlEvent="loadstart,abort,emptied,stalled,loadedmetadata,loadeddata,canplaythrough,ratechange".split(",");a.jPlayer.pause=function(){a.each(a.jPlayer.prototype.instances,
function(a,d){d.data("jPlayer").status.srcSet&&d.jPlayer("pause")})};a.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};a.jPlayer.convertTime=function(c){var c=new Date(c*1E3),d=c.getUTCHours(),b=c.getUTCMinutes(),c=c.getUTCSeconds(),d=a.jPlayer.timeFormat.padHour&&d<10?"0"+d:d,b=a.jPlayer.timeFormat.padMin&&b<10?"0"+b:b,c=a.jPlayer.timeFormat.padSec&&c<10?"0"+c:c;return(a.jPlayer.timeFormat.showHour?d+a.jPlayer.timeFormat.sepHour:
"")+(a.jPlayer.timeFormat.showMin?b+a.jPlayer.timeFormat.sepMin:"")+(a.jPlayer.timeFormat.showSec?c+a.jPlayer.timeFormat.sepSec:"")};a.jPlayer.uaMatch=function(a){var a=a.toLowerCase(),d=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/,a=/(webkit)[ \/]([\w.]+)/.exec(a)||d.exec(a)||b.exec(a)||a.indexOf("compatible")<0&&e.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};a.jPlayer.browser={};var f=a.jPlayer.uaMatch(navigator.userAgent);if(f.browser)a.jPlayer.browser[f.browser]=
!0,a.jPlayer.browser.version=f.version;a.jPlayer.prototype={count:0,version:{script:"2.0.0",needFlash:"2.0.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:0.8,muted:!1,backgroundColor:"#000000",cssSelectorAncestor:"#jp_interface_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",
currentTime:".jp-current-time",duration:".jp-duration"},idPrefix:"jp",errorAlerts:!1,warningAlerts:!1},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0},_status:{volume:h,muted:!1,width:0,height:0},internal:{ready:!1,instance:h,htmlDlyCmdId:h},solution:{html:!0,flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0,media:"audio"},
m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,
media:"video"}},_init:function(){var c=this;this.element.empty();this.status=a.extend({},this.status,this._status);this.internal=a.extend({},this.internal);this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video={};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.status.volume=this._limitValue(this.options.volume,0,1);this.status.muted=this.options.muted;this.status.width=this.element.css("width");this.status.height=this.element.css("height");
this.element.css({"background-color":this.options.backgroundColor});a.each(this.options.supplied.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.format[e]){var f=!1;a.each(c.formats,function(a,b){if(e===b)return f=!0,!1});f||c.formats.push(e)}});a.each(this.options.solution.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.solution[e]){var f=!1;a.each(c.solutions,function(a,b){if(e===b)return f=!0,!1});f||c.solutions.push(e)}});this.internal.instance=
"jp_"+this.count;this.instances[this.internal.instance]=this.element;this.element.attr("id")===""&&this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count);this.internal.self=a.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=a.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:h});this.internal.video=a.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:h});this.internal.flash=a.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:h,
swf:this.options.swfPath+(this.options.swfPath!==""&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf"});this.internal.poster=a.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:h});a.each(a.jPlayer.event,function(a,b){c.options[a]!==h&&(c.element.bind(b+".jPlayer",c.options[a]),c.options[a]=h)});this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){(!c.status.video||c.status.waitForPlay)&&
c.internal.poster.jq.show()};this.element.append(this.htmlElement.poster);this.internal.poster.jq=a("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.require.audio=!1;this.require.video=!1;a.each(this.formats,function(a,b){c.require[c.format[b].media]=!0});this.html.audio.available=!1;if(this.require.audio)this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,
this.html.audio.available=!!this.htmlElement.audio.canPlayType;this.html.video.available=!1;if(this.require.video)this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType;this.flash.available=this._checkForFlash(10);this.html.canPlay={};this.flash.canPlay={};a.each(this.formats,function(a,b){c.html.canPlay[b]=c.html[c.format[b].media].available&&""!==c.htmlElement[c.format[b].media].canPlayType(c.format[b].codec);
c.flash.canPlay[b]=c.format[b].flashCanPlay&&c.flash.available});this.html.desired=!1;this.flash.desired=!1;a.each(this.solutions,function(b,d){if(b===0)c[d].desired=!0;else{var e=!1,f=!1;a.each(c.formats,function(a,b){c[c.solutions[0]].canPlay[b]&&(c.format[b].media==="video"?f=!0:e=!0)});c[d].desired=c.require.audio&&!e||c.require.video&&!f}});this.html.support={};this.flash.support={};a.each(this.formats,function(a,b){c.html.support[b]=c.html.canPlay[b]&&c.html.desired;c.flash.support[b]=c.flash.canPlay[b]&&
c.flash.desired});this.html.used=!1;this.flash.used=!1;a.each(this.solutions,function(b,d){a.each(c.formats,function(a,b){if(c[d].support[b])return c[d].used=!0,!1})});this.html.used||this.flash.used||this._error({type:a.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SOLUTION,hint:a.jPlayer.errorHint.NO_SOLUTION});this.html.active=!1;this.html.audio.gate=!1;this.html.video.gate=!1;this.flash.active=!1;
this.flash.gate=!1;if(this.flash.used){var d="id="+escape(this.internal.self.id)+"&vol="+this.status.volume+"&muted="+this.status.muted;if(a.browser.msie&&Number(a.browser.version)<=8){var b='<object id="'+this.internal.flash.id+'"';b+=' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';b+=' codebase="'+document.URL.substring(0,document.URL.indexOf(":"))+'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"';b+=' type="application/x-shockwave-flash"';b+=' width="0" height="0">';
b+="</object>";var e=[];e[0]='<param name="movie" value="'+this.internal.flash.swf+'" />';e[1]='<param name="quality" value="high" />';e[2]='<param name="FlashVars" value="'+d+'" />';e[3]='<param name="allowScriptAccess" value="always" />';e[4]='<param name="bgcolor" value="'+this.options.backgroundColor+'" />';d=document.createElement(b);for(b=0;b<e.length;b++)d.appendChild(document.createElement(e[b]));this.element.append(d)}else e='<embed name="'+this.internal.flash.id+'" id="'+this.internal.flash.id+
'" src="'+this.internal.flash.swf+'"',e+=' width="0" height="0" bgcolor="'+this.options.backgroundColor+'"',e+=' quality="high" FlashVars="'+d+'"',e+=' allowScriptAccess="always"',e+=' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />',this.element.append(e);this.internal.flash.jq=a("#"+this.internal.flash.id);this.internal.flash.jq.css({width:"0px",height:"0px"})}if(this.html.used){if(this.html.audio.available)this._addHtmlEventListeners(this.htmlElement.audio,
this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=a("#"+this.internal.audio.id);if(this.html.video.available)this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=a("#"+this.internal.video.id),this.internal.video.jq.css({width:"0px",height:"0px"})}this.html.used&&!this.flash.used&&window.setTimeout(function(){c.internal.ready=!0;c.version.flash="n/a";c._trigger(a.jPlayer.event.ready)},
100);a.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)});this._updateInterface();this._updateButtons(!1);this._updateVolume(this.status.volume);this._updateMute(this.status.muted);this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();a.jPlayer.prototype.count++},destroy:function(){this._resetStatus();this._updateInterface();this._seeked();this.css.jq.currentTime.length&&this.css.jq.currentTime.text("");this.css.jq.duration.length&&this.css.jq.duration.text("");this.status.srcSet&&
this.pause();a.each(this.css.jq,function(a,d){d.unbind(".jPlayer")});this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();this.instances[this.internal.instance]=h},enable:function(){},disable:function(){},_addHtmlEventListeners:function(c,d){var b=this;c.preload=this.options.preload;c.muted=this.options.muted;c.addEventListener("progress",function(){d.gate&&!b.status.waitForLoad&&(b._getHtmlStatus(c),b._updateInterface(),b._trigger(a.jPlayer.event.progress))},!1);
c.addEventListener("timeupdate",function(){d.gate&&!b.status.waitForLoad&&(b._getHtmlStatus(c),b._updateInterface(),b._trigger(a.jPlayer.event.timeupdate))},!1);c.addEventListener("durationchange",function(){if(d.gate&&!b.status.waitForLoad)b.status.duration=this.duration,b._getHtmlStatus(c),b._updateInterface(),b._trigger(a.jPlayer.event.durationchange)},!1);c.addEventListener("play",function(){d.gate&&!b.status.waitForLoad&&(b._updateButtons(!0),b._trigger(a.jPlayer.event.play))},!1);c.addEventListener("playing",
function(){d.gate&&!b.status.waitForLoad&&(b._updateButtons(!0),b._seeked(),b._trigger(a.jPlayer.event.playing))},!1);c.addEventListener("pause",function(){d.gate&&!b.status.waitForLoad&&(b._updateButtons(!1),b._trigger(a.jPlayer.event.pause))},!1);c.addEventListener("waiting",function(){d.gate&&!b.status.waitForLoad&&(b._seeking(),b._trigger(a.jPlayer.event.waiting))},!1);c.addEventListener("canplay",function(){if(d.gate&&!b.status.waitForLoad)c.volume=b._volumeFix(b.status.volume),b._trigger(a.jPlayer.event.canplay)},
!1);c.addEventListener("seeking",function(){d.gate&&!b.status.waitForLoad&&(b._seeking(),b._trigger(a.jPlayer.event.seeking))},!1);c.addEventListener("seeked",function(){d.gate&&!b.status.waitForLoad&&(b._seeked(),b._trigger(a.jPlayer.event.seeked))},!1);c.addEventListener("suspend",function(){d.gate&&!b.status.waitForLoad&&(b._seeked(),b._trigger(a.jPlayer.event.suspend))},!1);c.addEventListener("ended",function(){if(d.gate&&!b.status.waitForLoad){if(!a.jPlayer.browser.webkit)b.htmlElement.media.currentTime=
0;b.htmlElement.media.pause();b._updateButtons(!1);b._getHtmlStatus(c,!0);b._updateInterface();b._trigger(a.jPlayer.event.ended)}},!1);c.addEventListener("error",function(){if(d.gate&&!b.status.waitForLoad&&(b._updateButtons(!1),b._seeked(),b.status.srcSet))b.status.waitForLoad=!0,b.status.waitForPlay=!0,b.status.video&&b.internal.video.jq.css({width:"0px",height:"0px"}),b._validString(b.status.media.poster)&&b.internal.poster.jq.show(),b.css.jq.videoPlay.length&&b.css.jq.videoPlay.show(),b._error({type:a.jPlayer.error.URL,
context:b.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL})},!1);a.each(a.jPlayer.htmlEvent,function(e,f){c.addEventListener(this,function(){d.gate&&!b.status.waitForLoad&&b._trigger(a.jPlayer.event[f])},!1)})},_getHtmlStatus:function(a,d){var b=0,e=0,f=0,h=0,b=a.currentTime,e=this.status.duration>0?100*b/this.status.duration:0;typeof a.seekable==="object"&&a.seekable.length>0?(f=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100,h=100*a.currentTime/
a.seekable.end(a.seekable.length-1)):(f=100,h=e);d&&(e=h=b=0);this.status.seekPercent=f;this.status.currentPercentRelative=h;this.status.currentPercentAbsolute=e;this.status.currentTime=b},_resetStatus:function(){this.status=a.extend({},this.status,a.jPlayer.prototype.status)},_trigger:function(c,d,b){c=a.Event(c);c.jPlayer={};c.jPlayer.version=a.extend({},this.version);c.jPlayer.status=a.extend(!0,{},this.status);c.jPlayer.html=a.extend(!0,{},this.html);c.jPlayer.flash=a.extend(!0,{},this.flash);
if(d)c.jPlayer.error=a.extend({},d);if(b)c.jPlayer.warning=a.extend({},b);this.element.trigger(c)},jPlayerFlashEvent:function(c,d){if(c===a.jPlayer.event.ready&&!this.internal.ready)this.internal.ready=!0,this.version.flash=d.version,this.version.needFlash!==this.version.flash&&this._error({type:a.jPlayer.error.VERSION,context:this.version.flash,message:a.jPlayer.errorMsg.VERSION+this.version.flash,hint:a.jPlayer.errorHint.VERSION}),this._trigger(c);if(this.flash.gate)switch(c){case a.jPlayer.event.progress:this._getFlashStatus(d);
this._updateInterface();this._trigger(c);break;case a.jPlayer.event.timeupdate:this._getFlashStatus(d);this._updateInterface();this._trigger(c);break;case a.jPlayer.event.play:this._seeked();this._updateButtons(!0);this._trigger(c);break;case a.jPlayer.event.pause:this._updateButtons(!1);this._trigger(c);break;case a.jPlayer.event.ended:this._updateButtons(!1);this._trigger(c);break;case a.jPlayer.event.error:this.status.waitForLoad=!0;this.status.waitForPlay=!0;this.status.video&&this.internal.flash.jq.css({width:"0px",
height:"0px"});this._validString(this.status.media.poster)&&this.internal.poster.jq.show();this.css.jq.videoPlay.length&&this.css.jq.videoPlay.show();this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media);this._error({type:a.jPlayer.error.URL,context:d.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL});break;case a.jPlayer.event.seeking:this._seeking();this._trigger(c);break;case a.jPlayer.event.seeked:this._seeked();this._trigger(c);break;
default:this._trigger(c)}return!1},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute;this.status.currentTime=a.currentTime;this.status.duration=a.duration},_updateButtons:function(a){this.status.paused=!a;this.css.jq.play.length&&this.css.jq.pause.length&&(a?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&
this.css.jq.seekBar.width(this.status.seekPercent+"%");this.css.jq.playBar.length&&this.css.jq.playBar.width(this.status.currentPercentRelative+"%");this.css.jq.currentTime.length&&this.css.jq.currentTime.text(a.jPlayer.convertTime(this.status.currentTime));this.css.jq.duration.length&&this.css.jq.duration.text(a.jPlayer.convertTime(this.status.duration))},_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&
this.css.jq.seekBar.removeClass("jp-seeking-bg")},setMedia:function(c){var d=this;this._seeked();clearTimeout(this.internal.htmlDlyCmdId);var b=this.html.audio.gate,e=this.html.video.gate,f=!1;a.each(this.formats,function(h,n){var l=d.format[n].media==="video";a.each(d.solutions,function(a,h){if(d[h].support[n]&&d._validString(c[n])){var m=h==="html";l?m?(d.html.audio.gate=!1,d.html.video.gate=!0,d.flash.gate=!1):(d.html.audio.gate=!1,d.html.video.gate=!1,d.flash.gate=!0):m?(d.html.audio.gate=!0,
d.html.video.gate=!1,d.flash.gate=!1):(d.html.audio.gate=!1,d.html.video.gate=!1,d.flash.gate=!0);d.flash.active||d.html.active&&d.flash.gate||b===d.html.audio.gate&&e===d.html.video.gate?d.clearMedia():b!==d.html.audio.gate&&e!==d.html.video.gate&&(d._html_pause(),d.status.video&&d.internal.video.jq.css({width:"0px",height:"0px"}),d._resetStatus());l?(m?(d._html_setVideo(c),d.html.active=!0,d.flash.active=!1):(d._flash_setVideo(c),d.html.active=!1,d.flash.active=!0),d.css.jq.videoPlay.length&&d.css.jq.videoPlay.show(),
d.status.video=!0):(m?(d._html_setAudio(c),d.html.active=!0,d.flash.active=!1):(d._flash_setAudio(c),d.html.active=!1,d.flash.active=!0),d.css.jq.videoPlay.length&&d.css.jq.videoPlay.hide(),d.status.video=!1);f=!0;return!1}});if(f)return!1});f?(this._validString(c.poster)?this.htmlElement.poster.src!==c.poster?this.htmlElement.poster.src=c.poster:this.internal.poster.jq.show():this.internal.poster.jq.hide(),this.status.srcSet=!0,this.status.media=a.extend({},c),this._updateButtons(!1),this._updateInterface()):
(this.status.srcSet&&!this.status.waitForPlay&&this.pause(),this.html.audio.gate=!1,this.html.video.gate=!1,this.flash.gate=!1,this.html.active=!1,this.flash.active=!1,this._resetStatus(),this._updateInterface(),this._updateButtons(!1),this.internal.poster.jq.hide(),this.html.used&&this.require.video&&this.internal.video.jq.css({width:"0px",height:"0px"}),this.flash.used&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._error({type:a.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+
"'}",message:a.jPlayer.errorMsg.NO_SUPPORT,hint:a.jPlayer.errorHint.NO_SUPPORT}))},clearMedia:function(){this._resetStatus();this._updateButtons(!1);this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},play:function(a){a=typeof a==="number"?a:NaN;this.status.srcSet?
this.html.active?this._html_play(a):this.flash.active&&this._flash_play(a):this._urlNotSetError("play")},videoPlay:function(){this.play()},pause:function(a){a=typeof a==="number"?a:NaN;this.status.srcSet?this.html.active?this._html_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause")},pauseOthers:function(){var c=this;a.each(this.instances,function(a,b){c.element!==b&&b.data("jPlayer").status.srcSet&&b.jPlayer("pause")})},stop:function(){this.status.srcSet?this.html.active?
this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(a){a=this._limitValue(a,0,100);this.status.srcSet?this.html.active?this._html_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead")},mute:function(){this.status.muted=!0;this.html.used&&this._html_mute(!0);this.flash.used&&this._flash_mute(!0);this._updateMute(!0);this._updateVolume(0);this._trigger(a.jPlayer.event.volumechange)},unmute:function(){this.status.muted=
!1;this.html.used&&this._html_mute(!1);this.flash.used&&this._flash_mute(!1);this._updateMute(!1);this._updateVolume(this.status.volume);this._trigger(a.jPlayer.event.volumechange)},_updateMute:function(a){this.css.jq.mute.length&&this.css.jq.unmute.length&&(a?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(c){c=this._limitValue(c,0,1);this.status.volume=c;this.html.used&&this._html_volume(c);this.flash.used&&this._flash_volume(c);
this.status.muted||this._updateVolume(c);this._trigger(a.jPlayer.event.volumechange)},volumeBar:function(a){if(!this.status.muted&&this.css.jq.volumeBar){var d=this.css.jq.volumeBar.offset(),a=a.pageX-d.left,d=this.css.jq.volumeBar.width();this.volume(a/d)}},volumeBarValue:function(a){this.volumeBar(a)},_updateVolume:function(a){this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.width(a*100+"%")},_volumeFix:function(a){var d=0.0010*Math.random();return a+(a<0.5?d:-d)},_cssSelectorAncestor:function(c,
d){this.options.cssSelectorAncestor=c;d&&a.each(this.options.cssSelector,function(a,c){self._cssSelector(a,c)})},_cssSelector:function(c,d){var b=this;typeof d==="string"?a.jPlayer.prototype.options.cssSelector[c]?(this.css.jq[c]&&this.css.jq[c].length&&this.css.jq[c].unbind(".jPlayer"),this.options.cssSelector[c]=d,this.css.cs[c]=this.options.cssSelectorAncestor+" "+d,this.css.jq[c]=d?a(this.css.cs[c]):[],this.css.jq[c].length&&this.css.jq[c].bind("click.jPlayer",function(d){b[c](d);a(this).blur();
return!1}),d&&this.css.jq[c].length!==1&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[c],message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[c].length+" found for "+c+" method.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:a.jPlayer.warning.CSS_SELECTOR_METHOD,context:c,message:a.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:a.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:a.jPlayer.warning.CSS_SELECTOR_STRING,context:d,
message:a.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:a.jPlayer.warningHint.CSS_SELECTOR_STRING})},seekBar:function(a){if(this.css.jq.seekBar){var d=this.css.jq.seekBar.offset(),a=a.pageX-d.left,d=this.css.jq.seekBar.width();this.playHead(100*a/d)}},playBar:function(a){this.seekBar(a)},currentTime:function(){},duration:function(){},option:function(c,d){var b=c;if(arguments.length===0)return a.extend(!0,{},this.options);if(typeof c==="string"){var e=c.split(".");if(d===h){for(var f=a.extend(!0,{},
this.options),m=0;m<e.length;m++)if(f[e[m]]!==h)f=f[e[m]];else return this._warning({type:a.jPlayer.warning.OPTION_KEY,context:c,message:a.jPlayer.warningMsg.OPTION_KEY,hint:a.jPlayer.warningHint.OPTION_KEY}),h;return f}f=b={};for(m=0;m<e.length;m++)m<e.length-1?(f[e[m]]={},f=f[e[m]]):f[e[m]]=d}this._setOptions(b);return this},_setOptions:function(c){var d=this;a.each(c,function(a,c){d._setOption(a,c)});return this},_setOption:function(c,d){var b=this;switch(c){case "cssSelectorAncestor":this.options[c]=
d;a.each(b.options.cssSelector,function(a,c){b._cssSelector(a,c)});break;case "cssSelector":a.each(d,function(a,c){b._cssSelector(a,c)})}return this},resize:function(c){this.html.active&&this._resizeHtml(c);this.flash.active&&this._resizeFlash(c);this._trigger(a.jPlayer.event.resize)},_resizePoster:function(){},_resizeHtml:function(){},_resizeFlash:function(a){this.internal.flash.jq.css({width:a.width,height:a.height})},_html_initMedia:function(){this.status.srcSet&&!this.status.waitForPlay&&this.htmlElement.media.pause();
this.options.preload!=="none"&&this._html_load();this._trigger(a.jPlayer.event.timeupdate)},_html_setAudio:function(c){var d=this;a.each(this.formats,function(a,e){if(d.html.support[e]&&c[e])return d.status.src=c[e],d.status.format[e]=!0,d.status.formatType=e,!1});this.htmlElement.media=this.htmlElement.audio;this._html_initMedia()},_html_setVideo:function(c){var d=this;a.each(this.formats,function(a,e){if(d.html.support[e]&&c[e])return d.status.src=c[e],d.status.format[e]=!0,d.status.formatType=
e,!1});this.htmlElement.media=this.htmlElement.video;this._html_initMedia()},_html_clearMedia:function(){if(this.htmlElement.media)this.htmlElement.media.id===this.internal.video.id&&this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause(),this.htmlElement.media.src="",a.browser.msie&&Number(a.browser.version)>=9||this.htmlElement.media.load()},_html_load:function(){if(this.status.waitForLoad){this.status.waitForLoad=!1;this.htmlElement.media.src=this.status.src;try{this.htmlElement.media.load()}catch(a){}}clearTimeout(this.internal.htmlDlyCmdId)},
_html_play:function(a){var d=this;this._html_load();this.htmlElement.media.play();if(!isNaN(a))try{this.htmlElement.media.currentTime=a}catch(b){this.internal.htmlDlyCmdId=setTimeout(function(){d.play(a)},100);return}this._html_checkWaitForPlay()},_html_pause:function(a){var d=this;a>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId);this.htmlElement.media.pause();if(!isNaN(a))try{this.htmlElement.media.currentTime=a}catch(b){this.internal.htmlDlyCmdId=setTimeout(function(){d.pause(a)},
100);return}a>0&&this._html_checkWaitForPlay()},_html_playHead:function(a){var d=this;this._html_load();try{if(typeof this.htmlElement.media.seekable==="object"&&this.htmlElement.media.seekable.length>0)this.htmlElement.media.currentTime=a*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100;else if(this.htmlElement.media.duration>0&&!isNaN(this.htmlElement.media.duration))this.htmlElement.media.currentTime=a*this.htmlElement.media.duration/100;else throw"e";}catch(b){this.internal.htmlDlyCmdId=
setTimeout(function(){d.playHead(a)},100);return}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){if(this.status.waitForPlay)this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height}))},_html_volume:function(a){if(this.html.audio.available)this.htmlElement.audio.volume=a;if(this.html.video.available)this.htmlElement.video.volume=
a},_html_mute:function(a){if(this.html.audio.available)this.htmlElement.audio.muted=a;if(this.html.video.available)this.htmlElement.video.muted=a},_flash_setAudio:function(c){var d=this;try{if(a.each(this.formats,function(a,b){if(d.flash.support[b]&&c[b]){switch(b){case "m4a":d._getMovie().fl_setAudio_m4a(c[b]);break;case "mp3":d._getMovie().fl_setAudio_mp3(c[b])}d.status.src=c[b];d.status.format[b]=!0;d.status.formatType=b;return!1}}),this.options.preload==="auto")this._flash_load(),this.status.waitForLoad=
!1}catch(b){this._flashError(b)}},_flash_setVideo:function(c){var d=this;try{if(a.each(this.formats,function(a,b){if(d.flash.support[b]&&c[b]){switch(b){case "m4v":d._getMovie().fl_setVideo_m4v(c[b])}d.status.src=c[b];d.status.format[b]=!0;d.status.formatType=b;return!1}}),this.options.preload==="auto")this._flash_load(),this.status.waitForLoad=!1}catch(b){this._flashError(b)}},_flash_clearMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}},
_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=!1},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(d){this._flashError(d)}this.status.waitForLoad=!1;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(d){this._flashError(d)}if(a>0)this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(d){this._flashError(d)}this.status.waitForLoad||
this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay)this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height}))},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(d){this._flashError(d)}},_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(d){this._flashError(d)}},_getMovie:function(){return document[this.internal.flash.id]},
_checkForFlash:function(c){var d=!1;if(window.ActiveXObject)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c),d=!0}catch(b){}else navigator.plugins&&navigator.mimeTypes.length>0&&navigator.plugins["Shockwave Flash"]&&navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")>=c&&(d=!0);return a.browser.msie&&Number(a.browser.version)>=9?!1:d},_validString:function(a){return a&&typeof a==="string"},_limitValue:function(a,d,b){return a<d?d:a>b?b:a},_urlNotSetError:function(c){this._error({type:a.jPlayer.error.URL_NOT_SET,
context:c,message:a.jPlayer.errorMsg.URL_NOT_SET,hint:a.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(c){this._error({type:a.jPlayer.error.FLASH,context:this.internal.flash.swf,message:a.jPlayer.errorMsg.FLASH+c.message,hint:a.jPlayer.errorHint.FLASH})},_error:function(c){this._trigger(a.jPlayer.event.error,c);this.options.errorAlerts&&this._alert("Error!"+(c.message?"\n\n"+c.message:"")+(c.hint?"\n\n"+c.hint:"")+"\n\nContext: "+c.context)},_warning:function(c){this._trigger(a.jPlayer.event.warning,
h,c);this.options.errorAlerts&&this._alert("Warning!"+(c.message?"\n\n"+c.message:"")+(c.hint?"\n\n"+c.hint:"")+"\n\nContext: "+c.context)},_alert:function(a){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a)}};a.jPlayer.error={FLASH:"e_flash",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};a.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",
NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+a.jPlayer.prototype.version.script+" needs Jplayer.swf version "+a.jPlayer.prototype.version.needFlash+" but found "};a.jPlayer.errorHint=
{FLASH:"Check your swfPath option and that Jplayer.swf is there.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};a.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};
a.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of methodCssSelectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."};a.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",
CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})(jQuery);(function(){var a,h,f,c,d,b,e,g,m,n,l,o,p,q,t,v,r,w,x,k,i,z,y,j=function(a,b){return function(){return a.apply(b,arguments)}},s=Object.prototype.hasOwnProperty,u=function(a,b){function c(){this.constructor=a}for(var d in b)s.call(b,d)&&(a[d]=b[d]);c.prototype=b.prototype;a.prototype=new c;a.__super__=b.prototype;return a};(typeof exports!=="undefined"&&exports!==null?exports:this).Templates={about:'<div class="about-pages">\n<p id="about">About StarMaker</p>\n<p class="privacy_text">\n    We built StarMaker so that <b>anyone</b> and <b>everyone</b> could be a star. Whether you simply want to hear your own singing voice, or you have a voice that seriously needs to be heard, we\'ve created a place just for you.\n</p>\n<p class="privacy_text"><br />\n    Sure, StarMaker has all the stuff that lets you create high quality recordings... but what we\'re really creating is possibility. We\'ve given you a license to sing again, to practice a song until you nail it, to learn how fun it is to sing a great song. We\'ve added studio-quality voice effects to help you sound better, and you can share your recording anonymously to the StarMaker community to see what people think... though if you work at it, we\'re sure that you can create a recording good enough to share with your friends on Facebook. After all, every one of your friends has sung along with their favorite song in the shower or the car. They may already be using StarMaker as their secret (or not so secret) weapon.\n</p>\n<p class="privacy_text">\n    We all sing as children but somewhere along the line we forget that we have this power. <br/><br /><b>We\'re giving you back the power to sing.</b> After all, the human voice is the only truly universal musical instrument and the only one we\'re all born with.\n</p>\n<br />\n<p class="privacy_text">\n    Oh, and if you\'re really good, we might just make you a star!\n</p>\n<br />\n<p class="privacy_text">\n    Download StarMaker and our other apps from the iTunes App Store:\n</p>\n\n<div id="pic1">\n    <a href="http://itunes.apple.com/us/app/starmaker-karaoke-auto-tune/id342138881?mt=8">\n        <img src="/static/smstudios/images/sm20-icon.png" width="85" height="85" />\n    </a>\n    <a href="http://itunes.apple.com/us/app/starmaker-karaoke-auto-tune/id342138881?mt=8" style=\'text-decoration:none;\'>\n        <p id="pic_text1">StarMaker</p>\n    </a>\n</div>\n\n<div id="pic2">\n    <a href="http://itunes.apple.com/us/app/auto-tune-birthday-by-starmaker/id385828640?mt=8">\n        <img src="/rockriver/static/0-20110804a.1/images/atb-icon-round.png" width="85" height="85" id="moz_adj" />\n    </a>\n    <a href="http://itunes.apple.com/us/app/auto-tune-birthday-by-starmaker/id385828640?mt=8" style=\'text-decoration:none;\'>\n        <p id="pic_text2">Auto-Tune Birthday</p>\n    </a>\n</div>\n\n<div id="pic3">\n    <a href="http://itunes.apple.com/us/app/kidz-bop-karaoke/id484634039?mt=8">\n        <img src="/static/smstudios/images/kbk-icon.png" width="85" height="85" id="moz_adj2" />\n    </a>\n    <a href="http://itunes.apple.com/us/app/kidz-bop-karaoke/id484634039?mt=8" style=\'text-decoration:none;\'>\n        <p id="pic_text3">KIDZ BOP Karaoke</p>\n    </a>\n</div>\n<div class="bottom_text"></div>\n</div>',
collection:"<div class=\"registered\" id=\"wrong_rec\" style=\"display:none; \">\n  Welcome, <span class=\"registered_user\"></span>! Have the StarMaker app yet? <a href=\"http://itunes.apple.com/us/app/starmaker-karaoke-auto-tune/id342138881?mt=8\">Get it here</a>\n</div>\n<div class=\"browse_title\">Browse Recordings</div>\n<div class='nav_browse_gen'>\n\n<div class='nav_browse' id='browse_2'>\n  <a href='#recordings/featured'>Featured</a>\n</div>\n<div class='nav_browse' id='browse_1'>\n  <a href='#recordings/recent'>Recent</a>\n</div>\n<div class='nav_browse' id='browse_3'>\n  <a href='#recordings/debuts'>Debuts</a>\n</div>\n<div id=\"wheel\" style='position:relative;width:50px;height:50px;left:40px;top:50px;z-index:100'></div>\n</div>\n\n<div class='content-right'>\n<a href='http://itunes.apple.com/us/app/auto-tune-birthday-by-starmaker/id385828640?mt=8' target='_blank'>\n  <div id='content-right-link-app'></div>\n</a>\n<a href='#promos/hotchellerae'>\n  <div id='content-right-leader'></div>\n</a>\n</div>\n\n</div>\n<div class=\"recordings\">\n</div>\n<div class='content-left'>\n<p class=\"more\"></p>\n</div>\n",
contact:'<div class="about-pages">\n<p id="about">Contact</p>\n<div> \n    <p class="contact_headers">Support / Questions</p> \n    <p class="contact_text"> \n        If you\'re experiencing difficulty with one of our apps or the website (or if you just have a question, comment, or brilliant suggestion), you can get in touch with our support staff on our <a href="#" onClick="script: Zenbox.show(); return false;">Help Page</a>.\n    </p> \n    <p class="contact_headers">Song Requests</p> \n    <p class="contact_text"> \n        If you have a favorite song or artist you\'d like to see in StarMaker, let our music team know <a href="#" onClick="script: Zenbox.show(); return false;">here</a>.\n    </p> \n    <p class="contact_headers">Biz-Dev / A&R</p> \n    <p class="contact_text"> \n        Nice suit. For partnership, A&R, or other business inquiries, have your people talk to our people at <a href="mailto:bizdev@starmakerinteractive.com">bizdev@starmakerinteractive.com</a>.\n    </p> \n    <p class="contact_headers">Jobs</p> \n    <p class="contact_text"> \n        Want to tell your friends that you\'re "in the karaoke business"? Check out the current job openings on our <a href="#Jobs">Job Page</a>.\n    </p> \n    <p class="contact_headers">Keep in Touch</p> \n    <p class="contact_text"> \n        Join the party (and bring your cool friends) on <a href="http://facebook.com/starmakerstudios" target="_blank">Facebook</a> or <a href="http://twitter.com/starmakerapp" target="_blank">Twitter</a>.\n    </p>\n</div>\n<div class="bottom_text"></div>\n</div>',
jobs:'<div class="about-pages">\n<p id="about">Jobs at StarMaker</p>\n<p class="privacy_text"> \n    StarMaker is always on the lookout for qualified, fun-loving, music-heads, especially developers who can do amazing things with iOS, Android, Python, and the most current web development technologies.\n</p> \n<p class="privacy_text"> \n    Send your resume to <a href="mailto:jobs@starmakerstudios.com">jobs@starmakerstudios.com</a> and let us know why we can\'t live without you. We look forward to hearing from you!\n</p> \n<div class="bottom_text"></div>\n</div>',
landing:'      <div class="wrapper-top css3pie">\n    <div class="content-width">\n      <div class="sm-phone">\n        <h1><img src="/static/images/sm-phone.png" alt="StarMaker"></h1>\n        <ul class="jcarousel-skin-screenshots">\n          <li><img src="/static/images/sm-phone-ss1.png" alt=""></li>\n          <li><img src="/static/images/sm-phone-ss2.png" alt=""></li>\n          <li><img src="/static/images/sm-phone-ss3.png" alt=""></li>\n          <li><img src="/static/images/sm-phone-ss4.png" alt=""></li>\n        </ul>\n      </div>\n      <div class="top-right">\n        <p><img class="sm-promo" src="/static/images/sm-promo.png" alt="Everybody sings... Even you." width="496" height="207"></p>\n        <p><a\n          href="http://itunes.apple.com/us/app/starmaker/id342138881?mt=8"><img\n          class="appstore-icon" src="/static/images/appstore-badge.png" alt="StarMaker on the App Store" width="221" height="75"></a></p>\n        <p class="login-menu"><a href="#login">Login</a></p>\n      </div>\n    </div>\n  </div>\n\n  <div class="wrapper-mid">\n    <div class="content-width">\n\n      <div class="featured-recordings">\n        <h2>Featured recordings</h2>\n      </ul>\n    </div>\n\n    <div class="app-features yui3-g">\n      <div class="yui3-u-1-3">\n        <div class="app-features-cell">\n          <h3>Hundreds of Songs</h3>\n          <p>Be the lead singer on hundreds of your favorite songs. Each comes with an instrumental track and scrolling lyrics, so that your voice is the star.</p>\n        </div>\n      </div>\n      <div class="yui3-u-1-3">\n        <div class="app-features-cell">\n          <h3>You\'ll Sound Great</h3>\n          <p>Behind every huge recording artist is sophisticated recording technology like Auto-Tune. StarMaker puts Auto-Tune (and some of our own audio magic) in your pocket.</p>\n        </div>\n      </div>\n      <div class="yui3-u-1-3">\n        <div class="app-features-cell">\n          <h3>Build Your Fan Base</h3>\n          <p>Release your recordings on your StarMakerStudios.com profile, post them to Facebook and Twitter, and watch your listen count and Starpower rise.</p>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>',
leadership:"<div class=\"about-pages\">\n<p id=\"about\" style='margin-left:50px'>Leadership</p>\n<div style='height:20px;width:866px;'></div>\n<div> \n    <div style='float:left;background-image:url(/static/smstudios/images/jeff-195.jpg);width:195px;height:195px;margin-left:50px'></div>\n    <div style='float:left;width:516px;height:200px;text-align:left;margin-left:25px;font-size:110%'><b>Jeff Daniel - CEO and Co-Founder</b>\n<br />Jeff Daniel is CEO and co-founder of StarMaker Interactive. Prior to StarMaker, Jeff was CEO of the pioneering music branding agency, Rock River Music, which originated the record industry\u2019s \u201cnon-traditional retail\u201d distribution channel and guided music strategy, product development and promotions for Fortune 500 brands, including Adidas, The Gap, Pottery Barn, Banana Republic, W Hotels, Ford, Volkswagen and others.  Jeff is a Brown University graduate and recipient of Time Inc.\u2019s Marketing Achievement Award.  His specialties include Music and Content IP licensing, Mobile Apps, Artist Alignment and Branded Content Strategy.  Jeff is an avid surfer, skiier and frontman for a band of decidedly non rock-stars.</div>  \n</div>\n<div style='height:20px;clear:both'></div>\n  \n    <div style='float:left;width:516px;height:200px;text-align:right;margin-left:50px;font-size:110%'><b>Nathan Sedlander - President and Co-Founder</b>\n</br />\nNathan Sedlander is the president and co-founder of StarMaker Interactive where he oversees the company\u2019s growth and development strategy. Prior to co-founding StarMaker, Nathan spent over 10 years developing innovative marketing and branding strategies in the music industry including senior development positions at Rock River Music, Sony BMG Music Entertainment and the South African government\u2019s Music Industry Development Initiative.  His career began as a management consultant with Arthur Andersen and he holds a degree in economics from UC Davis.  When he\u2019s not working on world harmony, you\u2019ll likely find Nathan slumming around low budget eateries in San Francisco.\n    </div>  \n  <div style='float:left;background-image:url(/static/smstudios/images/nathan-195.jpg);width:195px;height:195px;;margin-left:25px'></div>\n<div class=\"bottom_text\" style='clear:both'></div>\n</div>",
player:'<img src=\'{{ image_url }}\' style="width: 60px; height: 60px; position: absolute; left: -70px"></img>\n{{ song_title }} - {{ artist }}\n{{#if cheer_by_user}}\n  <div class="song-star song-star-pressed">\n    <a href="#" class="cheer" style="position: absolute;\n      left: 340px;\n      bottom: 2px;\n      width: 61px;\n      height: 60px;"></a>\n  </div>\n{{else}}\n  <div class="song-star" >\n    <a href="#" class="cheer" style="position: absolute;\n      left: 340px;\n      bottom: 2px;\n      width: 61px;\n      height: 60px;"></a>\n  </div>\n{{/if}}\n  <div class="song-starpow-player">{{ cheers_count }}</div>\n  <img src=\'{{ user_image }}\' class="player-user_img"></img>\n  <div class=\'player-stage_name\'>\n    <a href=\'#user/{{ stage_name }}\'>{{ stage_name }}\'s profile &raquo;</a>\n  </div>\n  <div class="player-song-twitter">\n    <a href="http://twitter.com/share" class="twitter-share-button" data-url=\'Tweet\'\n     data-text="Listen to this recording of {{ song_title }} on @StarMakerApp http://{{domain}}/#recording/{{id}}"\n      data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script>\n  </div>\n  <div class="player-song-facebook">\n   <fb:like href="{{ og_share_link }}" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like>\n  </div>',
press:"<div class=\"about-pages\">\n<p id=\"about\">Press</p>\n<div> \n    \n    <p class=\"privacy_headers\"> \n        Contact\n    </p> \n    <p class=\"privacy_text\"> \n        Members of the media may direct inquiries to Katy Garlinghouse, <a href='mailto:press@starmakerinteractive.com'>press@starmakerinteractive.com</a> \n    </p> \n    <div class='between_sections'></div>\n    <p class=\"privacy_headers\"> \n        Recent Coverage\n    </p> \n    <br/>\n    <a href='http://www.star-telegram.com/2012/01/20/3675409/top-personalization-apps-as-rated.html' target='_blank'>\n      <img class='image_coverage' src='/static/images/star-telegram.png'></img>\n    </a>\n    <p class=\"privacy_text\"> \n        January 20, 2012 - <span class='color_coverage'><a href='http://www.star-telegram.com/2012/01/20/3675409/top-personalization-apps-as-rated.html' target='_blank'>Top Personalization Apps as Rated by Mobilewalla: AutoTune Birthday.</a></span><br /> <i>Create a birthday message for your friends to send via e-mail or Facebook. Pick your own style of rock, hip-hop or samba accompaniment!</i>\n    </p> \n    <br/>\n    <a href='http://www.geekmom.com/2012/01/starmaker-karaoke-an-app-review/' target='_blank'>\n      <img class='image_coverage' src='/static/images/geek.png'></img>\n    </a>\n    <p class=\"privacy_text\"> \n        January 9, 2012 - <span class='color_coverage'><a href='http://www.geekmom.com/2012/01/starmaker-karaoke-an-app-review/' target='_blank'> StarMaker: Karaoke: An App Review.</a></span><br /> <i> Create a birthday message for your friends to send via e-mail or Facebook. Pick your own style of rock, hip-hop or samba accompaniment!</i>\n    </p> \n<br/>\n    <a href='http://allthingsd.com/20110902/play-american-idol-from-the-comfort-of-your-phone-with-starmaker-karaoke-app/' target='_blank'>\n      <img class='image_coverage' src='/static/images/atd.png'></img>\n    </a>  \n    <p class=\"privacy_text\"> \n        November 2, 2011 - <span class='color_coverage'><a href='http://allthingsd.com/20110902/play-american-idol-from-the-comfort-of-your-phone-with-starmaker-karaoke-app/' target='_blank'>Play \u201cAmerican Idol\u201d From the Comfort of Your Phone With StarMaker Karaoke App</a></span><br /> <i>We are living in the future, and the future can be darn fun. A neat karaoke iPhone app called StarMaker will let you lay down your voice to today\u2019s hottest pop songs, with a little \u2014 or a lot of \u2014 help from instant Auto-Tune.</i>\n    </p> \n    <div class='between_sections'></div>\n    <p class=\"privacy_headers\"> \n        Press Releases\n    </p> \n    <p class=\"privacy_text\"> \n        <span class='color_coverage'><a href='http://www.prweb.com/releases/2012/2/prweb9178743.htm' target='_blank'>StarMaker Hosts Singing Contest for Hot Chelle Rae Fans</a></span> <br />\nFebruary 8, 2012 - <i>Band Behind Multi-Platinum Hit \u201cTonight Tonight\u201d and \u201cI Like It Like That\u201d Engages Fans with Innovative Mobile App that Allows Them to Sing Along with Hot Chelle Rae on Songs from their New Album WHATEVER</i>\n<br /> <br />\nSan Francisco - StarMaker Interactive, the leading developer of music-based mobile and social games, today announced the launch of a new type of contest for music fans. The StarMaker Spotlight Single Contest Platform will challenge users to sing a featured single and compete with other StarMaker artists for exclusive prizes. The upcoming Spotlight Single Contest features Top 40 hit-makers Hot Chelle Rae. <a href='http://www.prweb.com/releases/2012/2/prweb9178743.htm' target='_blank'>Read more \u203a\u203a</a>\n    </p>\n     <br />\n    <p class=\"privacy_text\"> \n        <span class='color_coverage'><a href='http://www.prweb.com/releases/2011/12/prweb9057718.htm' target='_blank'>Pop Music Fans Turn High Notes Into High Scores With StarMaker for iPhone</a></span> <br />\nDecember 21, 2011 - <i>StarMaker unveils new gameplay to 1 million users featuring #1 hits from Adele, Justin Bieber, Katy Perry, Lady Gaga and more.</i>\n<br /> <br />\nSan Francisco - StarMaker Interactive, the leading creator of singing and karaoke game apps has unveiled a significant update to their flagship app. After integrating genuine Auto-Tune earlier this year, StarMaker has now introduced sophisticated proprietary scoring technology, giving singers real-time feedback on their performances while they create personalized versions of Top 40 radio hits. <a href='http://www.prweb.com/releases/2011/12/prweb9057718.htm' target='_blank'>Read more \u203a\u203a</a>\n    </p>\n     <br />\n      <p class=\"privacy_text\"> \n                <span class='color_coverage'><a href='http://www.prnewswire.com/news-releases/gather-round-the-olde-iphone-and-sing-ye-some-justin-bieber-holiday-cheer-with-the-new-carolizer-app-135265023.html' target='_blank'>Gather Round the Olde iPhone and Sing Ye Some Justin Bieber Holiday Cheer with the New Carolizer App</a></span> <br />\n      December 8, 2011 - <i>Create Covers of Your Favorite Holiday Hits and Personalize your Seasons eGreetings with the Latest Singing App from StarMaker Interactive.</i>\n      <br /> <br />\n      San Francisco - The makers of StarMaker Karaoke with Auto-Tune are unveiling their latest recordable, shareable singing app available for all iOS devices: Carolizer-- an application that allows you to create personalized eGreetings with your favorite Christmas songs, old and new.  Equipped with the latest holiday hits from Justin Bieber's \"Under the Mistletoe\" and Michael Buble's \"Christmas\" albums to the classics like \"Have Yourself A Merry Little Christmas\" (Frank Sinatra) and \"All I Want For Christmas Is You\" (Mariah Carey), Carolizer has a little something for everyone. <a href='http://www.prnewswire.com/news-releases/gather-round-the-olde-iphone-and-sing-ye-some-justin-bieber-holiday-cheer-with-the-new-carolizer-app-135265023.html' target='_blank'>Read more \u203a\u203a</a>\n            </p>  \n      <br />\n              <p class=\"privacy_text\"> \n                        <span class='color_coverage'><a href='http://www.prweb.com/releases/2011/11/prweb8969332.htm' target='_blank'>1 Million Users and Growing, StarMaker Karaoke App for iPhone Has Pop Music Fans Singing to Top Hits</a></span> <br />\n              November 16, 2011 - <i>Pop artists partner with karaoke app developer to get millennial fans singing their latest singles.</i>\n              <br /> <br />\n              San Francisco - StarMaker, the #1 karaoke app with genuine Auto-Tune, is enabling pop music fans to experience their favorite songs in an entirely new way: singing for themselves. With their growing community now greater than 1 million users, StarMaker has won over fans of Top 40 hits like Adele\u2019s \u201cRolling In The Deep,\u201d Nicki Minaj\u2019s \u201cSuper Bass,\u201d Justin Bieber\u2019s \u201cBaby,\u201d Lady Gaga\u2019s \u201cBad Romance.\u201d StarMaker singers spend more than 2.7 million minutes each month making recordings of the songs they love -- that\u2019s enough time to sing \u201cDon\u2019t Stop Believin\u2019\u201d more than 650,000 times. <a href='http://www.prweb.com/releases/2011/11/prweb8969332.htm' target='_blank'>Read more \u203a\u203a</a>\n                    </p> \n      <br />\n              <p class=\"privacy_text\"> \n                        <span class='color_coverage'><a href='http://www.prweb.com/releases/2011/5/prweb8378546.htm' target='_blank'>StarMaker Karaoke iPhone App with Genuine Auto-Tune is Music to Your Ears</a></span> <br />\n              May 4, 2011 - <i>Auto-Tune, the industry-standard pitch correction technology used by professional recording artists, is now available in StarMaker, the top-ranking karaoke iPhone app available for free in the App Store.</i>\n              <br /> <br />\n              San Francisco - - StarMaker, the popular recordable karaoke iPhone app, got a major update today with the addition of genuine Auto-Tune pitch correction technology. Singers of all skill levels can now harness the power of one of the music industry\u2019s most prevalent and controversial tools to create and share their own recordings with professional polish. <a href='http://www.prweb.com/releases/2011/5/prweb8378546.htm' target='_blank'>Read more \u203a\u203a</a>\n                    </p> \n      <br />\n              <p class=\"privacy_text\"> \n                        <span class='color_coverage'><a href='http://www.marketwire.com/press-release/auto-tune-invades-facebook-with-new-starmaker-karaoke-birthday-iphone-app-1408096.htm' target='_blank'>Auto-Tune Invades Facebook With New StarMaker Karaoke Birthday iPhone App</a></span> <br />\n              March 8, 2011 - <i>Sing, Record, and Send Unique Birthday Greetings on the iPhone, iPad and iPod Touch!</i>\n              <br /> <br />\n              San Francisco - Premiere music app developer StarMaker Interactive launched the Auto-Tune Birthday app for iPhone, iPod touch and iPad today. The Auto-Tune Birthday app lets you sing and record \"Happy Birthday\" on your phone, Auto-Tune your voice, and post your recording to your friend's Facebook wall. Built-in birthday reminders ensure that you'll never forget to add some Auto-Tune to a friend's special day. <a href='http://www.marketwire.com/press-release/auto-tune-invades-facebook-with-new-starmaker-karaoke-birthday-iphone-app-1408096.htm' target='_blank'>Read more \u203a\u203a</a>\n                    </p> \n      <br />\n              <p class=\"privacy_text\"> \n                        <span class='color_coverage'><a href='http://www.prweb.com/releases/StarMaker/Auto-Tune-Christmas/prweb4872004.htm' target='_blank'>New Christmas Singalong iPhone App with Auto-Tune Lets You Record Christmas Greetings that Sing</a></span> <br />\n              December 7, 2010 - <i>Create Unique, Fun Holiday Greetings Featuring Your Own Voice Singing Christmas Carols with StarMaker Interactive\u2019s New Release, Auto-Tune Christmas for the iPhone, iPad, and iPod Touch.</i>\n              <br /> <br />\n              San Francisco - StarMaker Interactive today announced the latest addition to their suite of recordable, shareable singing apps, Auto-Tune Christmas by StarMaker for the iPhone, iPod Touch, and iPad. Auto-Tune Christmas by StarMaker is an intuitive app for creating and sharing personalized singing eGreetings via Facebook or email. <a href='http://www.prweb.com/releases/StarMaker/Auto-Tune-Christmas/prweb4872004.htm' target='_blank'>Read more \u203a\u203a</a>\n                    </p> \n\n      <br />\n              <p class=\"privacy_text\"> \n                        <span class='color_coverage'><a href='http://www.prweb.com/releases/2010/04/prweb3826744.htm' target='_blank'>StarMaker Karaoke iPhone App Soars Into The Stratosphere</a></span> <br />\n              April 2, 2010 - <i>StarMaker Karaoke iPhone App Hits The Top 100 Charts And Makes Waves In The iPhone App Review World.</i>\n              <br /> <br />\n              San Francisco - Released on March 4th, 2010, StarMaker Karaoke, the groundbreaking interactive media platform for the iPhone, has soared into the app store stratosphere, charting in the Top 100 at #66 in the Free Apps category and #4 in the Music Apps in just 3 weeks. <a href='http://www.prweb.com/releases/2010/04/prweb3826744.htm' target='_blank'>Read more \u203a\u203a</a>\n                    </p> \n\n      <br />\n              <p class=\"privacy_text\"> \n                        <span class='color_coverage'><a href='http://www.prweb.com/releases/2010/03/prweb3689344.htm' target='_blank'>Hold the iPhone: Sinatra\u2019s on the line</a></span> <br />\n              March 5, 2010 - <i>StarMaker Karaoke iPhone App Revolutionizes Music with Recordable, Shareable Karaoke Fun For Everyone.</i>\n              <br /> <br />\n              San Francisco - Rock River Music, Inc., the leader in customized music solutions for brands and consumers, announces the launch of StarMaker Karaoke, a new, groundbreaking, interactive media platform. <a href='http://www.prweb.com/releases/2010/03/prweb3689344.htm' target='_blank'>Read more \u203a\u203a</a>\n                    </p> \n\n      <div class='between_sections'></div>\n    <p class=\"privacy_headers\"> \n        Downloadable Press Kit\n    </p> \n    <p class=\"privacy_text\"> \n        Full Press Kit : <span class='color_coverage'><a href='http://public.starmakerapp.com.s3.amazonaws.com/press_kit/starmaker-press-kit.zip' target='_blank'>Zip</a></span> <br /><br />\n        StarMaker logo : <span class='color_coverage'><a href='http://public.starmakerapp.com.s3.amazonaws.com/press_kit/starmaker-icon-logo.png' target='_blank'>Png</a></span> <br />\n        Hi-res photo of Jeff Daniel : <span class='color_coverage'><a href='http://public.starmakerapp.com.s3.amazonaws.com/press_kit/jeff-daniel-starmaker.jpg' target='_blank'>Jpeg</a></span> <br />\n        Hi-res photo of Nathan Sedlander : <span class='color_coverage'><a href='http://public.starmakerapp.com.s3.amazonaws.com/press_kit/nathan-sedlander-starmaker.jpg' target='_blank'>Jpeg</a></span> <br />\n        App Screenshots : <span class='color_coverage'><a href='http://public.starmakerapp.com.s3.amazonaws.com/press_kit/starmaker-screenshots.zip' target='_blank'>Zip</a></span>\n\n    </p>\n\n\n</div>\n<div class=\"bottom_text\"></div>\n</div>",
privacy:'<div class="about-pages">\n<p id="about">Privacy</p>\n<div> \n    <p class="privacy_text"> \n        Effective: June 28, 2011\n    </p> \n    <p class="privacy_headers">STARMAKER PRIVACY POLICY</p> \n    <p class="privacy_text"> \n        StarMaker provides this Privacy Policy to inform you of our policies and procedures regarding the collection, use and disclosure of personal information we receive from users of starmakerstudios.com (the "Site") and the StarMaker mobile device application (the "Application"). This Privacy Policy applies only to information that you provide to us through the Site, Application, and any Social Networking Sites to which you link your StarMaker account. This Privacy Policy may be updated from time to time. We will notify you of any material changes by posting the new Privacy Policy on the Site or Application. You are advised to consult this policy regularly for any changes.\n    </p> \n    <p class="privacy_text"> \n        <br /> \n        As used in this policy, the terms "using" and "processing" information include using cookies on a computer, subjecting the information to statistical or other analysis and using or handling information in any way, including, but not limited to collecting, storing, evaluating, modifying, deleting, using, combining, disclosing and transferring information within our organization or among our affiliates within the United States or internationally.\n    </p> \n    <p class="privacy_headers"> \n        Information Collection and Use\n    </p> \n    <p class="privacy_text"> \n        Our primary goals in collecting information are to provide and improve our Site, Application, products, features and content, to administer your account (together, the "Service"), and to enable users to enjoy our products and easily navigate the Site and Application.\n    </p> \n    <p class="privacy_headers">Profile Information</p> \n    <p class="privacy_text"> \n        Your Profile on StarMaker is available for viewing by other users and contains all items of your Personal Information (see first bullet below) and your Non-Identifying Information (see second bullet below), and certain elements of your Social Networking information (see third bullet below) (together, your "Profile").\n    </p> \n    <div class="privacy_text"> \n        <p> \n            &bull;&nbsp;When you register with us through the Site or Application as a StarMaker user or choose to create your own profile webpage, we will ask you for personally identifiable information, indicating which elements are mandatory and which are optional. This refers to information about you that can be used to contact or identify you ("Personal Information"). Personal Information includes, but is not limited to, your name, user name, twitter name, website URL, photo representation or avatar and email address. In addition to making it part of your public profile (with exception to your e-mail address), we use your Personal Information mainly to provide the Service and administer your inquiries.\n        </p> \n        <p> \n            &bull;&nbsp;We also collect the other information that you provide as part of registration (e.g., without limitation, gender, zip code (on its own), age ("Non-Identifying Information").\n        </p> \n        <p> \n            &bull;&nbsp;If you choose to link your StarMaker account to a Social Networking Site such as Facebook, personal information you independently submit to a Social Networking Site may be collected and used by us in order to provide you with enhanced functionality. In these instances, you consent to StarMaker\' access and use of your username, alias and any other Personal information you have independently provided to and made accessible through the Social Networking Site. Such access will be in accordance with the privacy settings you have set in your Social Networking Site account, if any ("Social Networking Information").\n        </p> \n    </div> \n    <p class="privacy_headers">Log Data</p> \n    <p class="privacy_text"> \n        When you use our Services (e.g., when you visit our Site or interact with our Application), our servers automatically record information that your browser sends whenever you visit a website or service connected to the Internet ("Log Data"). This Log Data may include information such as your computer\'s Internet Protocol ("IP") address, browser type or the webpage you were visiting before you came to our Site, pages of our Site that you visit, the time spent on those pages, information you search for on our Site, access times and dates, and other statistics. We use this information to monitor and analyze use of the Site and the Service and for the Site\'s technical administration, to increase our Site\'s functionality and user-friendliness, and to better tailor it to our visitors\' needs.\n    </p> \n    <p class="privacy_headers">Cookies</p> \n    <p class="privacy_text"> \n        As is standard practice on many websites, our Site uses "cookies" to collect information. A cookie is a small data file that we transfer to your computer\'s hard disk for record-keeping purposes. We use cookies for two purposes. First, we utilize persistent cookies to save your registration ID and login password for future logins to the Site. Second, we utilize session ID cookies to enable certain features of the Site, to better understand how you interact with the Site and to monitor aggregate usage by StarMaker Users and web traffic routing on the Site. Unlike persistent cookies, session cookies are deleted from your computer when you log off from the Site and Service and then close your browser. Third party advertisers on the Site may also place or read cookies on your browser. You can instruct your browser, by changing its options, to stop accepting cookies or to prompt you before accepting a cookie from the websites you visit. If you do not accept cookies, however, you may not be able to use all portions of the Site or all functionality of the Service.\n    </p> \n    <p class="privacy_headers">Phishing</p> \n    <p class="privacy_text"> \n        Identity theft and the practice currently known as "phishing" are of great concern to StarMaker. Safeguarding information to help protect you from identity theft is a top priority. We do not and will not, at any time, request your credit card information, your account ID, login password or national identification numbers in a non-secure or unsolicited e-mail or telephone communication. For more information about phishing, visit the Federal Trade Commission\'s website.\n    </p> \n    <p class="privacy_headers">Information Sharing and Disclosure</p> \n    <p class="privacy_text"> \n        Because your Profile is public, you should be aware that other users will see the information you provide. Whether you provide voluntary information should correlate with the degree of interaction you want to have with StarMaker Users. We recommend that you guard your anonymity and sensitive information and that you not use your real name as your User Name or "Stage Name," since that would allow others to identify you.\n    </p> \n    <p class="privacy_headers">Third Party Customers and other Business Partners.</p> \n    <p class="privacy_text"> \n        StarMaker may share only Non-Identifying Information (such as age and gender) with StarMaker\'s third party customers and other business partners, so that these third parties can analyze the success of such third parties\' promotions, advertising campaigns and overall use of the Site, Application and Services.\n        Third Party Social Networking Sites.\n        <br /><br /> \n\n        As a user with a registered account, you may link your StarMaker account information with certain Social Networking Sites where other StarMaker users have an existing account with the Social Networking Site. In these instances, with your permission and on your behalf, we will share your email address and screen name or alias with the applicable Social Networking Site. Through use of such services\' APIs, as stated above, we also receive certain information (which may include your Personal Information) in accordance with the privacy settings you have set in your Social Networking Site account, if any. Other than what we may share with the Social Networking Site in connection with your linking of accounts, the personal information a Social Networking Site has about you is obtained by the Social Networking Site independent of our Services. Other services follow different rules regarding the use or disclosure of the personal information you submit to them. We encourage you to read the privacy policies or statements of the other services you use.\n    </p> \n    <p class="privacy_headers">Compliance with Laws and Law Enforcement</p> \n    <p class="privacy_text"> \n        StarMaker cooperates with government and law enforcement officials and private parties to enforce and comply with the law. We will disclose any information about you to government or law enforcement officials or private parties as we, in our sole discretion, believe necessary or appropriate to respond to claims and legal process (including but not limited to subpoenas), to protect the property and rights of StarMaker or a third party, to protect the safety of the public or any person, or to prevent or stop activity we may consider to be, or to pose a risk of being, any illegal, unethical or legally actionable activity.\n    </p> \n    <p class="privacy_headers">Business Transfers</p> \n    <p class="privacy_text"> \n        StarMaker may sell, transfer or otherwise share some or all of its assets, including your Personal Information, in connection with a merger, acquisition, reorganization or sale of assets or in the event of bankruptcy.\n    </p> \n    <p class="privacy_headers"> \n        Changing or Deleting Your Information\n    </p> \n    <p class="privacy_text"> \n        All Users may review, update, correct or delete the Personal Information in their registration profile by contacting us. If you completely delete all such information, then your account may become deactivated. If you would like us to delete your record in our system, please contact us at <a href="mailto:support@starmakerstudios.com">support@starmakerstudios.com</a> with a request that we delete your Personal Information from our database. We will use commercially reasonable efforts to honor your request. We may retain an archived copy of your records as required by law or for legitimate business purposes.\n    </p> \n    <p class="privacy_headers">Security</p> \n    <p class="privacy_text"> \n        StarMaker is very concerned with safeguarding your information. We employ administrative, physical and electronic measures designed to protect your information from unauthorized access.\n        <br /><br /> \n        We will make any legally required disclosures of any breach of the security, confidentiality, or integrity of your unencrypted electronically stored "personal data" (as defined in applicable state statutes on security breach notification) to you via email or conspicuous posting on this Site or Application in the most expedient time possible and without unreasonable delay, insofar as consistent with (i) the legitimate needs of law enforcement or (ii) any measures necessary to determine the scope of the breach and restore the reasonable integrity of the data system.\n    </p> \n    <p class="privacy_headers">International Transfer</p> \n    <p class="privacy_text"> \n        Your information may be transferred to - and maintained on - computers located outside of your state, province, country or other governmental jurisdiction where the privacy laws may not be as protective as those in your jurisdiction. If you are located outside the United States and choose to provide information to us, StarMaker transfers Personal Information to the United States and processes it there. Your consent to this Privacy Policy followed by your submission of such information represents your agreement to that transfer\n    </p> \n    <p class="privacy_headers">Links to Other Sites</p> \n    <p class="privacy_text"> \n        Our Site and Application contains links to other websites. If you choose to visit an advertiser by "clicking on" a banner ad or other type of advertisement, or click on another third party link, you will be directed to that third party\'s website. The fact that we link to a website or present a banner ad or other type of advertisement is not an endorsement, authorization or representation of our affiliation with that third party, nor is it an endorsement of their privacy or information security policies or practices. We do not exercise control over third party websites. These other websites may place their own cookies or other files on your computer, collect data or solicit personal information from you. Other sites follow different rules regarding the use or disclosure of the personal information you submit to them. We encourage you to read the privacy policies or statements of the other websites you visit.\n    </p> \n    <p class="privacy_headers">Our Policy Toward Children</p> \n    <p class="privacy_text"> \n        This Site is not directed to children under 13. We do not knowingly collect personally identifiable information from children under 13. If a parent or guardian becomes aware that his or her child has provided us with Personal Information without their consent, he or she should contact us at <a href="mailto:support@starmakerstudios.com">support@starmakerstudios.com</a>. If we become aware that a child under 13 has provided us with Personal Information, we will delete such information from our files.\n    </p> \n    <p class="privacy_headers">Contacting Us</p> \n    <p class="privacy_text"> \n        If you have any questions about this Privacy Policy, please contact us at <a href="mailto:support@starmakerstudios.com">support@starmakerstudios.com</a>.\n    </p>\n</div>\n<div class="bottom_text"></div>\n</div>',
promos:"<div class='nav_browse_gen'>\n<div class=\"browse_promopage_hcr\"></div>\n<div style='font-size:200%;color:#071024;'>Most Popular Recordings</div>\n<div id=\"wheel\" style='position:relative;width:50px;height:50px;left:40px;top:50px;z-index:100'></div>\n</div>\n\n<div class='content-right-promopage'>\n    <a href='http://bit.ly/xXHz4k' target='_blank'>\n        <div class='link_itunes_app'></div>    \n    </a>\n\n</div>\n\n\n<div class='content-right-bottom-promopage'>  \n    <a href='http://starmakerblog.tumblr.com/private/16996783268/tumblr_lyub075jTB1r00liu' target='_blank'>\n        <div class='link_rules'></div>    \n    </a>\n    <a href='http://itunes.apple.com/us/app/starmaker-karaoke-auto-tune/id342138881?mt=8' target='_blank'>\n        <div class='link_app_promo'></div>    \n    </a>\n</div>\n<div class=\"recordings-promopage\">\n</div>\n<div style=\"font-size:200%;color:#071024;\">\n    Recent Recordings\n</div>\n\n<div class=\"recordings-promopage-recent\">\n</div>\n",
stagename_registration:'<h1>Please Choose a Stage Name for your Starmaker Account</h1>\n<form id="stagename_form" action="/auth/stage_name" method="post">\n  <p>\n   <label for="stage_name">Stage Name</label>\n   <input class="string" id="stage_name" name="stage_name" type="text" value="" />\n  </p>\n  <p><input type="submit" value=""></p>\n  <p class="flash-error"></p>\n</form>',starmaker_tab_recording:'        <div id="jquery_jplayer_{{ id }}" class="jp-jplayer"></div>\n<div class="song"> \n    <div id="jp_interface_{{ id }}" class="jp-interface">\n        <ul class="jp-controls">\n            <li>\n                <a href="#" class="jp-play" tabindex="1">\n                    <img src="/static/images/play.png" class="playpause" alt="play">\n                </a>\n            </li>\n            <li>\n                <a href="#" class="jp-pause" tabindex="1"><img src="/static/images/pause.png" class="playpause" alt="pause"></a>\n            </li>\n        </ul>\n        <div class="recording_image">\n            <img src="{{ image_url }}" class="song" alt="Image url"> \n        </div>\n        <div class="songContainer"> \n            <div class="songTitle">{{ song_title }}</div>\n            <div class="songStats">\n              {{#if cheer_by_user}}\n                <img src="/static/images/starmaker_tab_star-pressed.png" alt="" width="35" class="starImg" />\n              {{else}}\n                <img src="/static/images/starmaker_tab_star-unpressed.png" alt="" width="35" class="starImg cheer" />\n              {{/if}}\n                <div class="cheerCount">\n                    <p class="cheers">{{ cheers_count }}</p>\n                    <img class="icon star" src="/static/images/star-icon.png" alt="Star icon" />\n                </div>\n            </div>\n        </div> \n        <div class="performer">\n            <p>Performed by <span>{{ stage_name }}</span></p>\n        </div> \n    </div>\n</div>',
terms:'<div class="about-pages">\n<p id="about">Terms of Service</p>\n<div> \n    <p class="privacy_text"> \n        Last Updated Date: June 28, 2011\n    </p> \n    <p class="privacy_text"> \n        Please read carefully the following terms and conditions ("Terms") before downloading, installing or using the Services, Application or Site. These Terms govern your- and our- obligations and restrictions concerning your access to and use of the Site, the Application and the Services and, except as otherwise provided in these Terms, all text, graphics, images, music, software, audio, video, information or other materials available through the Site and Services ("Content"). These Terms constitute a binding legal agreement between you and StarMaker Interactive, Inc.\n    </p> \n    <p class="privacy_text"> \n        In these Terms of Use, "you," "your" or "User" means any person or entity using the Site, Application or the Services. Unless otherwise stated, "StarMaker," "StarMaker Studios," "we" or "our" will refer to StarMaker Interactive, Inc.\n    </p> \n    <p class="privacy_text"> \n        YOU ACKNOWLEDGE AND AGREE THAT, BY ACCESSING OR USING THE SITE, THE APPLICATION OR THE SERVICES OR BY DOWNLOADING OR POSTING ANY CONTENT FROM OR ON THE SITE, THE APPLICATION OR THROUGH THE SERVICES, YOU ARE INDICATING THAT YOU HAVE READ, UNDERSTAND AND AGREE TO BE BOUND BY THESE TERMS, WHETHER OR NOT YOU HAVE REGISTERED WITH THE SITE OR APPLICATION. IF YOU DO NOT AGREE TO THESE TERMS, THEN YOU HAVE NO RIGHT TO ACCESS, DOWNLOAD OR USE THE SITE, THE APPLICATION, SERVICES OR CONTENT.\n    </p> \n    <p class="privacy_text"> \n        If you accept or agree to these Terms on behalf of a company or other legal entity, you represent and warrant that you have the authority to bind that company or other legal entity to these Terms and, in such event, "you" and "your" will refer and apply to that company or other legal entity.\n    </p> \n    <p class="privacy_headers"> \n        Modification of the Service or these Terms\n    </p> \n    <p class="privacy_text"> \n        StarMaker reserves the right, at its sole discretion, to modify, discontinue or terminate the Site or Services at any time and without prior notice; or to modify these Terms with notice to you on the Site or through the Service. We are under no obligation to provide the service continuously or at all. We will provide the then-current version of these Terms at a link on the home page of the Site and in the Application and will update the "Last Updated Date" shown proximate to that link. By continuing to access or use the Site, Application or the Services after we have posted notice and a modification on the Site or through the Application, you are indicating that you agree to be bound by the modified Terms.\n    </p> \n    <p class="privacy_headers"> \n        Eligibility\n    </p> \n    <p class="privacy_text"> \n        The Site, Application and Services are intended solely for persons who are 13 or older. Any access to or use of the Site, Application or Services by anyone under 13 is expressly prohibited. By accessing or using the Site, Application or Services you represent and warrant that you are 13 or older.\n    </p> \n    <p class="privacy_headers"> \n        Account Registration\n    </p> \n    <p class="privacy_text"> \n        You can use basic components of the Service without registering but, in order to access certain features of the Site, Application and Services, and to post any Content on the Site or through the Application or Services, you must register to create an account ("Account") and become a member ("Member.") During the registration process, you will be required to provide certain information such as your email address and you will establish a username and a password. You agree to provide accurate, current and complete information during the registration process and to update such information to keep it accurate, current and complete. StarMaker reserves the right to suspend or terminate your Account if any information provided during the registration process or thereafter proves to be inaccurate, not current or incomplete. You are responsible for safeguarding your password. You agree not to disclose your password to any third party and to take sole responsibility for any activities or actions under your Account, whether or not you have authorized such activities or actions. You will immediately notify StarMaker of any unauthorized use of your Account.\n    </p> \n    <p class="privacy_headers"> \n        Payment Terms\n    </p> \n    <p class="privacy_text"> \n        As part of the functionality of the Site, Application and Services, you may purchase content or items through the Site, Application and Services. If you choose to make a purchase, StarMaker or its transactional partner (including Apple Inc.) will collect your credit card information, billing address and shipping address on behalf of the applicable third party and you authorize us to charge your credit card for any such purchases. You agree that you are responsible for and that you will pay the applicable purchase price and any taxes and other fees that may accrue in relation to your purchase through the Site, Application and Services, if any. All purchases are non-refundable unless otherwise indicated to you by the third party selling the item in question. All fees and applicable taxes, if any, are payable in United States dollars.\n    </p> \n    <p class="privacy_headers"> \n        Ownership\n    </p> \n    <p class="privacy_text"> \n        The Site, Application, Services and Content are protected by copyright, trademark, and other laws of the United States and foreign countries. Except as expressly provided in these Terms, StarMaker-and in some cases its licensors-exclusively owns all right, title and interest in and to the Site, Application, Services and Content, including all associated intellectual property rights. You will not remove, alter or obscure any copyright, trademark, service mark or other proprietary rights notices incorporated in or accompanying the Site, Application Services or Content.\n    </p> \n    <p class="privacy_headers"> \n        Application License; Services\n    </p> \n    <p class="privacy_text"> \n        Conditioned upon your compliance with the terms and conditions of this Agreement, StarMaker grants you a non-exclusive and non-transferable license for a single user to Execute (as defined in this section) the executable form of the Application on a single mobile device, solely for your Permitted Purposes (as defined below). StarMaker reserves all rights in the Application not expressly granted to you in this Agreement. In addition, you may only avail of the Services under this Agreement for the Permitted Purpose. For purposes of this Agreement, "Execute" and "Execution" means to load, install and run the Application in order to benefit from its functionality as designed by StarMaker. "Permitted Purposes" means for your personal, non-commercial purposes. If you would like to use the Application or avail of the Services, for commercial purposes, or if you would like to access and use the StarMaker promotions, analytics and content management tools, please contact StarMaker at <a href="mailto:support@starmakerstudios.com">support@starmakerstudios.com</a>. You understand and agree that you may not use the Site, Services, Application or Content for any commercial purpose without prior written permission from StarMaker.\n    </p> \n    <p class="privacy_headers"> \n        Application License Term\n    </p> \n    <p class="privacy_text"> \n        The license granted under this Agreement remains in effect for a period of 25 years, unless earlier terminated in accordance with this Agreement. You may terminate the license at any time by destroying all copies of the Application in your possession or control. The license granted under this Agreement will automatically terminate, with or without notice from StarMaker, if you breach any term of this Agreement. Upon termination, you must at StarMaker\' option promptly destroy or return all copies of the Application in your possession or control.\n    </p> \n    <p class="privacy_headers"> \n        Application Restrictions\n    </p> \n    <p class="privacy_text"> \n        Except as expressly specified in this Agreement, you may not: (a) copy (except in the course of loading or installing) or modify the Application, including but not limited to adding new features or otherwise making adaptations that alter the functioning of the Application; (b) transfer, sublicense, lease, lend, rent or otherwise distribute the Application to any third party; or (c) make the functionality of the Application available to multiple users through any means, including but not limited to by uploading the Application to a network or file-sharing service or through any hosting, application services provider, service bureau, software-as-a-service (SaaS) or any other type of services. You agree that portions of the Application, including but not limited to the source code and the specific design and structure of individual modules or programs, constitute or contain trade secrets of StarMaker and its licensors. Accordingly, you agree not to disassemble, decompile or reverse engineer the Application, in whole or in part, or permit or authorize a third party to do so, except to the extent such activities are expressly permitted by law notwithstanding this prohibition.\n    </p> \n    <p class="privacy_headers"> \n        License to you of the Content; License from you of your User Content to other users\n    </p> \n    <p class="privacy_text"> \n        StarMaker grants to you-and for your User Content (as defined in the next section) you hereby grant to StarMaker\' other users-a limited, non-exclusive, non-transferable license to access, view, download and print any Content solely for your-and the other users\'-Permitted Purposes (as defined in the Application License section, above). The license from StarMaker in the foregoing sentence is subject to your compliance with the terms and conditions of these Terms. You will not use, copy, adapt, modify, prepare derivative works based upon, distribute, license, sublicense, sell, transfer, publicly display, publicly perform, transmit, stream, broadcast or otherwise exploit the Site, Application, Services or Content, except as expressly permitted in these Terms. No licenses or rights are granted to you by implication or otherwise under any intellectual property rights owned or controlled by StarMaker or its licensors, except for the licenses and rights expressly granted in these Terms.\n    </p> \n    <p class="privacy_headers"> \n        User Content Defined; License of your User Content to StarMaker\n    </p> \n    <p class="privacy_text"> \n        Certain intellectual property contained in StarMaker, including but not limited to master sound recordings, underlying compositions embodied in the master sound recordings, photographs, videos, brand names and logos and other creative elements which may from time to time become part of StarMaker (collectively, the \'Products\'), may be owned by third-parties and legally licensed to Provider for use in StarMaker.\n\n        Members may post, upload, publish, submit or transmit text, graphics, images, music, software, audio, video, information or other materials to be made available through the Site, Application and Services ("User Content"). Any User Content created by You is hereby deemed a derivative work and You shall not, under any circumstances, make any claim of ownership or lien on such User Content. You acknowledge and agree that the nature of the original music work remains intact as owned and controlled by respective rights holders; You acknowledge that any and all User Content made by You is of free will, and that You irrevocably license such User Content, including but not limited to Your performance(s) and Your image(s), to StarMaker in perpetuity throughout the Universe for use in any way now known or yet to be discovered at StarMaker\'s sole discretion. You warrant that you have the right to convey such license provided in this paragraph; The User Content is intended for use solely in the App and on the StarMaker website(s). Under no circumstances will You make any attempt to use the User Content outside of StarMaker. \n    </p> \n    <p class="privacy_headers"> \n        Feedback\n    </p> \n    <p class="privacy_text"> \n        We welcome and encourage you to provide feedback, comments and suggestions for improvements to the Site, Application and Services ("Feedback"). You may submit Feedback by emailing us at <a href="mailto:support@starmakerstudios.com">support@starmakerstudios.com</a>. You acknowledge and agree that all Feedback will be the sole and exclusive property of StarMaker and you hereby irrevocably assign to StarMaker and agree to irrevocably assign to StarMaker all of your right, title, and interest in and to all Feedback, including without limitation all worldwide patent rights, copyright rights, trade secret rights, and other proprietary or intellectual property rights therein. At StarMaker\' request and expense, you will execute documents and take such further acts as StarMaker may reasonably request to assist StarMaker to acquire, perfect, and maintain its intellectual property rights and other legal protections for the Feedback.\n    </p> \n    <p class="privacy_headers"> \n        General Prohibitions\n    </p> \n    <p class="privacy_text"> \n        You agree not to do any of the following:\n    </p> \n    <p class="privacy_text">&bull;&nbsp;&nbsp;Post, upload, publish, submit or transmit any text, graphics, images, software, music, audio, video, information or other material that: (i) infringes, misappropriates or violates a third party\'s patent, copyright, trademark, trade secret, moral rights or other intellectual property rights, or rights of publicity or privacy; (ii) violates, or encourages any conduct that would violate, any applicable law or regulation or would give rise to civil liability; (iii) is fraudulent, false, misleading or deceptive; (iv) is defamatory, obscene, pornographic, vulgar or offensive; (v) promotes discrimination, bigotry, racism, hatred, harassment or harm against any individual or group; (vi) is violent or threatening or promotes violence or actions that are threatening to any other person; or (vii) promotes illegal or harmful activities or substances.\n    </p><p class="privacy_text">&bull;&nbsp;Use, display, mirror or frame the Application or Site, or any individual element within the Application or Site, StarMaker\' name, any StarMaker its trademark, logo or other proprietary information, or the layout and design of any page or form contained on a page, except as explicitly permitted herein, without StarMaker\' express written consent;\n    </p><p class="privacy_text">&bull;&nbsp;Access, tamper with, or use non-public areas of the Site or Application, StarMaker\' computer systems, or the technical delivery systems of StarMaker\' providers;\n    </p><p class="privacy_text">&bull;&nbsp;Attempt to probe, scan, or test the vulnerability of any StarMaker\' system or network or breach any security or authentication measures;\n    </p><p class="privacy_text">&bull;&nbsp;Avoid, bypass, remove, deactivate, impair, descramble or otherwise circumvent any technological measure implemented by StarMaker or any of StarMaker\' providers or any other third party (including another user) to protect the Site, Services, Application or Content;\n    </p><p class="privacy_text">&bull;&nbsp;Attempt to access or search the Site, Application, Services or Content or download Content from the Site, Application or Services through the use of any engine, software, tool, agent, device or mechanism (including spiders, robots, crawlers, data mining tools or the like) other than the software or search agents provided by StarMaker or other generally available third party web browsers;\n    </p><p class="privacy_text">&bull;&nbsp;Send any promotional materials in violation of law;\n    </p><p class="privacy_text">&bull;&nbsp;Use any meta tags or other hidden text or metadata utilizing a StarMaker trademark, logo URL or product name without StarMaker\' express written consent;\n    </p><p class="privacy_text">&bull;&nbsp;Use the Site, Services, Application or Content for any commercial purpose without prior written permission from StarMaker as noted above;\n    </p><p class="privacy_text">&bull;&nbsp;Resell-or offer advertising in connection with-any Content;\n    </p><p class="privacy_text">&bull;&nbsp;Profile any StarMaker user;\n    </p><p class="privacy_text">&bull;&nbsp;Forge any TCP/IP packet header or any part of the header information in any email or newsgroup posting, or in any way use the Site, Services, Application or Content to send altered, deceptive or false source-identifying information;\n    </p><p class="privacy_text">&bull;&nbsp;Attempt to decipher, decompile, disassemble or reverse engineer any of the software used to provide the Site, Application, Services or Content;\n    </p><p class="privacy_text">&bull;&nbsp;Interfere with, or attempt to interfere with, the access of any user, host or network, including, without limitation, sending a virus, overloading, flooding, spamming, or mail-bombing the Site;\n    </p><p class="privacy_text">&bull;&nbsp;Collect or store any personally identifiable information from the Site, Application or Services from other users of the Site, Application or Services without their express permission;\n    </p><p class="privacy_text">&bull;&nbsp;Impersonate or misrepresent your affiliation with any person or entity;\n    </p><p class="privacy_text">&bull;&nbsp;Violate any applicable law or regulation; or\n    </p><p class="privacy_text">&bull;&nbsp;Encourage or enable any other individual to do any of the foregoing.</p> \n    <p class="privacy_text"> \n        StarMaker will have the right to investigate and prosecute violations of any of the above to the fullest extent of the law. StarMaker may involve and cooperate with law enforcement authorities in prosecuting users who violate these Terms. You acknowledge that StarMaker has no obligation to monitor your access to or use of the Site, Application, Services or Content or to review or edit any User Content but has the right to do so for the purpose of operating the Site, Application and Services, to ensure your compliance with these Terms, or to comply with applicable law or the order or requirement of a court, administrative agency or other governmental body. StarMaker reserves the right, at any time and without prior notice, to remove or disable access to any Content, including any User Content that StarMaker, at its sole discretion, considers to be in violation of these Terms or otherwise harmful to the Site, Application or Services.\n    </p> \n    <p class="privacy_headers"> \n        Links\n    </p> \n    <p class="privacy_text"> \n        The Site and Application may contain links to third-party websites or resources. You acknowledge and agree that StarMaker is not responsible or liable for: (i) the availability or accuracy of such websites or resources; or (ii) the content, products, or services on or available from such websites or resources. Links to such websites or resources do not imply any endorsement by StarMaker of such websites or resources or the content, products, or services available from such websites or resources. You acknowledge sole responsibility for and assume all risk arising from your use of any such websites or resources.\n    </p> \n    <p class="privacy_headers"> \n        Termination and Account Cancellation\n    </p> \n    <p class="privacy_text"> \n        If you breach any of these Terms, StarMaker will have the right to suspend or disable your Account or terminate these Terms, at its sole discretion and without prior notice to you. StarMaker reserves the right to revoke your access to and use of the Site, Services, Application and Content at any time, with or without cause. In the event StarMaker terminates these Terms for your breach, you will remain liable for any amounts due hereunder. If you wish to cancel your account, email StarMaker at <a href="mailto:support@starmakerstudios.com">support@starmakerstudios.com</a>.\n    </p> \n    <p class="privacy_headers"> \n        Disclaimers\n    </p> \n    <p class="privacy_text"> \n        THE SITE, APPLICATION, SERVICES AND CONTENT ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT LIMITING THE FOREGOING, StarMaker EXPLICITLY DISCLAIMS ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT, AND ANY WARRANTIES ARISING OUT OF COURSE OF DEALING OR USAGE OF TRADE. StarMaker MAKES NO WARRANTY THAT THE SITE, APPLICATION, SERVICES OR CONTENT WILL MEET YOUR REQUIREMENTS, WILL OPERATE IN THE COMBINATIONS YOU MAY SELECT FOR EXECUTION OR BE AVAILABLE ON AN UNINTERRUPTED, SECURE OR ERROR-FREE BASIS. StarMaker MAKES NO WARRANTY REGARDING THE QUALITY OF ANY PRODUCTS, SERVICES OR CONTENT PURCHASED OR OBTAINED THROUGH THE SITE, APPLICATION OR SERVICES OR THE ACCURACY, TIMELINESS, TRUTHFULNESS, COMPLETENESS OR RELIABILITY OF ANY CONTENT OBTAINED THROUGH THE SITE, APPLICATION OR SERVICES.\n\n        NO ADVICE OR INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED FROM StarMaker OR THROUGH THE SITE, APPLICATION, SERVICES OR CONTENT, WILL CREATE ANY WARRANTY NOT EXPRESSLY STATED IN THESE TERMS OF USE.\n\n        YOU ARE SOLELY RESPONSIBLE FOR ALL OF YOUR COMMUNICATIONS AND INTERACTIONS WITH OTHER USERS OF THE SITE, APPLICATION OR SERVICES AND WITH OTHER PERSONS WITH WHOM YOU COMMUNICATE OR INTERACT AS A RESULT OF YOUR USE OF THE SITE, APPLICATION OR SERVICES. YOU UNDERSTAND THAT StarMaker DOES NOT SCREEN OR INQUIRE INTO THE BACKGROUND OF ANY USERS OF THE SITE, APPLICATION OR SERVICES, NOR DOES StarMaker MAKE ANY ATTEMPT TO VERIFY THE STATEMENTS OF USERS OF THE SITE, APPLICATION OR SERVICES, OR TO REVIEW THEIR UPLOADED CONTENT. YOU ACKNOWLEDGE THAT CONTENT POSTED BY ANOTHER USER TO StarMaker\'s WEBSITES IS NOT StarMaker\'s RESPONSIBILITY AND THAT SUCH CONTENT MAY BE OFFENSIVE OR HARMFUL TO YOU. StarMaker MAKES NO REPRESENTATIONS OR WARRANTIES AS TO THE CONDUCT OF USERS OF THE SITE, APPLICATION OR SERVICES OR THEIR COMPATIBILITY WITH ANY CURRENT OR FUTURE USERS OF THE SITE, APPLICATION OR SERVICES. YOU AGREE TO TAKE REASONABLE PRECAUTIONS IN ALL COMMUNICATIONS AND INTERACTIONS WITH OTHER USERS OF THE SITE, APPLICATION OR SERVICES AND WITH OTHER PERSONS WITH WHOM YOU COMMUNICATE OR INTERACT AS A RESULT OF YOUR USE OF THE SITE, APPLICATION OR SERVICES, PARTICULARLY IF YOU DECIDE TO MEET OFFLINE OR IN PERSON.\n    </p> \n    <p class="privacy_headers"> \n        Indemnity\n    </p> \n    <p class="privacy_text"> \n        You agree to indemnify, at our request defend, and hold StarMaker, its officers, directors, employees and agents, harmless from and against any third-party claims, liabilities, damages, losses, and expenses, including, without limitation, reasonable legal and accounting fees, arising out of or in any way connected with your access to or use of the Site, Application, Services or Content, or your violation of these Terms.\n    </p> \n    <p class="privacy_headers"> \n        Limitation of Liability\n    </p> \n    <p class="privacy_text"> \n        YOU ACKNOWLEDGE AND AGREE THAT, TO THE MAXIMUM EXTENT PERMITTED BY LAW, NEITHER StarMaker NOR ANY OTHER PARTY INVOLVED IN CREATING, PRODUCING, OR DELIVERING THE SITE, APPLICATION, SERVICES OR CONTENT WILL BE LIABLE FOR ANY INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, LOSS OF DATA OR LOSS OF GOODWILL, SERVICE INTERRUPTION, COMPUTER DAMAGE OR SYSTEM FAILURE OR THE COST OF SUBSTITUTE PRODUCTS OR SERVICES, OR FOR ANY DAMAGES FOR PERSONAL OR BODILY INJURY OR EMOTIONAL DISTRESS ARISING OUT OF OR IN CONNECTION WITH THESE TERMS OR FROM THE USE OF OR INABILITY TO USE THE SITE, APPLICATION, SERVICES OR CONTENT, OR FROM ANY COMMUNICATIONS, INTERACTIONS OR MEETINGS WITH OTHER USERS OF THE SITE OR SERVICES OR OTHER PERSONS WITH WHOM YOU COMMUNICATE OR INTERACT AS A RESULT OF YOUR USE OF THE SITE OR SERVICES, WHETHER BASED ON WARRANTY, CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER LEGAL THEORY, AND WHETHER OR NOT StarMaker HAS BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGE, EVEN IF A LIMITED REMEDY SET FORTH HEREIN IS FOUND TO HAVE FAILED OF ITS ESSENTIAL PURPOSE.\n\n        IN NO EVENT WILL StarMaker\' AGGREGATE LIABILITY ARISING OUT OF OR IN CONNECTION WITH THESE TERMS OR FROM THE USE OF OR INABILITY TO USE THE SITE, APPLICATION, SERVICES OR CONTENT EXCEED THE AMOUNTS YOU HAVE PAID TO StarMaker FOR USE OF THE SITE, APPLICATION, SERVICES OR CONTENT, OR ONE HUNDRED DOLLARS ($100), IF YOU HAVE NOT PAID ANY AMOUNTS TO StarMaker, AS APPLICABLE.\n\n        THE LIMITATIONS OF DAMAGES SET FORTH ABOVE ARE FUNDAMENTAL ELEMENTS OF THE BASIS OF THE BARGAIN BETWEEN StarMaker AND YOU. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, SO THE ABOVE LIMITATION MAY NOT APPLY TO YOU. IN THAT CASE, StarMaker\' LIABILITY WILL BE LIMITED TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW.\n    </p> \n    <p class="privacy_headers"> \n        U.S. Government End Users\n    </p> \n    <p class="privacy_text"> \n        The Application and any accompanying documentation are "commercial items" as that term is defined in FAR 2.101, consisting of "commercial computer software" "commercial computer software" and "commercial computer software documentation," respectively, as such terms are used in FAR 12.212 and DFARS 227.7202. If the Application and Documentation are being acquired by or on behalf of the U.S. Government, then, as provided in FAR 12.212 and DFARS 227.7202-1 through 227.7202-4, as applicable, the U.S. Government\'s rights in the Application and any accompanying documentation will be only those specified in this Agreement.\n    </p> \n    <p class="privacy_headers"> \n        Export Law\n    </p> \n    <p class="privacy_text"> \n        You agree to comply fully with all U.S. export laws and regulations to ensure that neither the Application nor any technical data related thereto nor any direct product thereof are exported or re-exported directly or indirectly in violation of, or used for any purposes prohibited by, such laws and regulations.\n    </p> \n    <p class="privacy_headers"> \n        Proprietary Rights Notices\n    </p> \n    <p class="privacy_text"> \n        All trademarks, service marks, logos, trade names and any other proprietary designations of StarMaker used herein are trademarks or registered trademarks of StarMaker. Any other trademarks, service marks, logos, trade names and any other proprietary designations are the trademarks or registered trademarks of their respective parties.\n    </p> \n    <p class="privacy_headers"> \n        Controlling Law and Jurisdiction\n    </p> \n    <p class="privacy_text"> \n        These Terms and any action related thereto will be governed by the laws of the State of California without regard to its conflict of laws provisions. The United Nations Convention on Contracts for the International Sale of Goods will not apply. The exclusive jurisdiction and venue of any action with respect to the subject matter of these Terms will be the state and federal courts located in the Northern District of California and each of the parties hereto waives any objection to jurisdiction and venue in such courts.\n    </p> \n    <p class="privacy_headers"> \n        Entire Agreement\n    </p> \n    <p class="privacy_text"> \n        These Terms constitute the entire and exclusive understanding and agreement between StarMaker and you regarding the Site, Application, Services and Content, and these Terms supersede and replace any and all prior oral or written understandings or agreements between StarMaker and you regarding the Site, Application, Services and Content.\n    </p> \n    <p class="privacy_headers"> \n        Assignment\n    </p> \n    <p class="privacy_text"> \n        You may not assign or transfer these Terms, by operation of law or otherwise, without StarMaker\' prior written consent. Any attempt by you to assign or transfer these Terms, without such consent, will be null and of no effect. StarMaker may assign or transfer these Terms, at its sole discretion, without restriction. Subject to the foregoing, these Terms will bind and inure to the benefit of the parties, their successors and permitted assigns.\n    </p> \n    <p class="privacy_headers"> \n        Notice\n    </p> \n    <p class="privacy_text"> \n        Any notices or other communications permitted to required hereunder, including those regarding modifications to these Terms, will be in writing and given: (i) by StarMaker its via email (in each case to the address that you provide) or (ii) by posting to the Site. For notices made by e-mail, the date of receipt will be deemed the date on which such notice is transmitted.\n    </p> \n    <p class="privacy_headers"> \n        General\n    </p> \n    <p class="privacy_text"> \n        The failure of StarMaker to enforce any right or provision of these Terms will not constitute a waiver of future enforcement of that right or provision. The waiver of any such right or provision will be effective only if in writing and signed by a duly authorized representative of StarMaker. Except as expressly set forth in these Terms, the exercise by either party of any of its remedies under these Terms will be without prejudice to its other remedies under these Terms or otherwise. If for any reason a court of competent jurisdiction finds any provision of these Terms invalid or unenforceable, that provision will be enforced to the maximum extent permissible and the other provisions of these Terms will remain in full force and effect.\n    </p> \n    <p class="privacy_headers"> \n        Contacting StarMaker\n    </p> \n    <p class="privacy_text"> \n        If you have any questions about these Terms, please contact StarMaker at <a href="mailto:support@starmakerstudios.com">support@starmakerstudios.com</a>. \n    </p>\n</div>\n<div class="bottom_text"></div>\n</div>',
upload:"",user:'<div class=\'top_user\'></div>\n<div class="wrong" id="wrong_rec2" style="display:none; ">\n    Sorry, the recording you\'re looking for has been deleted.\n</div>\n<div class="profile-user">\n  <img class="profile-pic"\n        src="{{stageNameImageURL}}"\n        \n        width="140px"\n        height="150px"></img>\n <a class=\'link_edit_image\' href=\'#upload\'> \n  <div class=\'hover_image\' style=\'position:absolute;width:140px;height:150px;display:none;background:#000\'>\n  </div>\n  <div class=\'text_image\' style=\'position:absolute;display:none;color:#FFF;font-weight:bold\'>    \n      Edit Picture\n  </div>\n</a>\n  <div class="profile-info">\n    <span class=\'title_user\'><strong>{{stageName}}</strong> has released {{recordingCount}} recordings</span>\n    <p class="starpower css3pie">StarPower<strong>{{cheers}}</strong></p>\n    <div class="profile-stats">\n      <p>\n        Total listens\n        <img src="/static/images/plays-icon.png" alt="" width="15" height="16">\n        <strong>{{playCount}}</strong>\n      </p>\n      <p>Singing since <strong>{{createdAt}}</strong></p>\n    </div>\n  </div>\n  <br class="clear">\n</div>\n<h3>Latest recordings</h3>\n<ul class="user_recordings" style="color: auto;">\n</ul>'};
h={setCredentials:function(a){var b,c,d,e;c=a.email;d=a.password;e=a.userID;b=a.accessToken;a=a.deviceId;if(c&&d)return $.jStorage.set("auth:credentials",{email:c,password:d});else if(e&&b)return $.jStorage.set("auth:credentials",{userID:e,accessToken:b});else if(a)return $.jStorage.set("auth:credentials",{deviceId:a}),this.trigger("change:credentials",{deviceId:a});else throw"Invalid credentials format.";},getCredentials:function(){return $.jStorage.get("auth:credentials")},clearCredentials:function(){return $.jStorage.deleteKey("auth:credentials")},
getAuthHeader:function(){var a,b,c,d,e;if(b=$.jStorage.get("auth:credentials"))return c=b.email,d=b.password,e=b.userID,a=b.accessToken,b=b.deviceId,c&&d?(a=$.base64Encode(""+c+":"+d),"Basic: "+a):e&&a?(a=$.base64Encode(""+e+":"+a),"Facebook: "+a):b?(a=$.base64Encode(""+b),"DeviceId: "+a):null}};$.ajaxPrefilter(function(a){var b;if(a.headers==null)a.headers={};b=h.getAuthHeader();b!=null&&(a.headers["X-Authorization"]=b)});$.ajaxSetup({headers:{"X-Requested-With":"frontend"},statusCode:{401:function(){return Backbone.Events.trigger("auth:failure")}}});
_.extend(h,Backbone.Events);(typeof exports!=="undefined"&&exports!==null?exports:this).Auth=h;g=function(){function a(){this.didEndPlaying=j(this.didEndPlaying,this);this.didPausePlaying=j(this.didPausePlaying,this);this.didChangeProgress=j(this.didChangeProgress,this);this.didStartPlaying=j(this.didStartPlaying,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.Model);a.prototype.urlRoot="/recording";a.prototype.logEvents=!0;a.prototype.initialize=function(){this.bind("play",this.didStartPlaying);
this.bind("timeupdate",this.didChangeProgress);this.bind("pause",this.didPausePlaying);this.bind("ended",this.didEndPlaying);this.alreadySent=!1;this.firstPlay=!0;return this.position=0};a.prototype.url=function(){return""+this.urlRoot+"/"+this.id};a.prototype.sendPlayStat=function(a){a={id:this.my_session,recid:this.id,datestr:(new Date).getTime().toString(),type:a,playlen:this.position,reclen:this.duration};a=JSON.stringify([a]);return jQuery.ajax({url:"/jsonapi/play_stats",type:"POST",dataType:"json",
data:{data:a}})};a.prototype.didStartPlaying=function(){if(!this.alreadySent&&this.firstPlay)return this.my_session=(new Date).getTime().toString().substring(0,10)+this.id,this.duration=this.position=0,this.firstPlay=!1,this.sendPlayStat("PLAY")};a.prototype.didChangeProgress=function(a){this.position=a.position;if(!this.alreadySent&&this.position>10)return this.position=a.position,this.duration=a.duration,this.sendPlayStat("TIMER"),this.alreadySent=!0};a.prototype.didPausePlaying=function(a){this.duration=
a.duration;return this.sendPlayStat("STOP")};a.prototype.didEndPlaying=function(a){this.position=a.position;this.duration=a.duration;this.alreadySent=!1;this.firstPlay=!0;return this.sendPlayStat("END")};a.prototype.cheer=function(){if(!this.get("cheer_by_user"))return this.save({cheer_by_user:!0,cheers_count:this.get("cheers_count")+1},{error:j(function(a,b){this.set({cheer_by_user:!1,cheers_count:this.get("cheers_count")-1});if(b.status===401)return this.trigger("cheer:unauthorized")},this)})};
return a}();m=function(){function a(){a.__super__.constructor.apply(this,arguments)}u(a,Backbone.Collection);a.prototype.model=g;a.prototype.fetchDebuts=function(a){a==null&&(a=1);return this.fetch({url:"/recordings/debuts",data:{page:a},add:!0,success:j(function(){return this.trigger("reset")},this)})};a.prototype.fetchRecent=function(a){a==null&&(a=1);return this.fetch({url:"/recordings/recent",data:{page:a},add:!0,success:j(function(){return this.trigger("reset")},this)})};a.prototype.fetchFeatured=
function(a){a==null&&(a=1);return this.fetch({url:"/recordings/featured",data:{page:a},add:!0,success:j(function(){return this.trigger("reset")},this)})};a.prototype.comparator=function(a){return-Date.parse(a.get("created_on").replace(/-/g," "))};return a}();b=function(){function a(){a.__super__.constructor.apply(this,arguments)}u(a,Backbone.Collection);a.prototype.model=g;a.prototype.fetchPromos=function(){return this.fetch({url:"/recordings/promos",add:!0,success:j(function(){return this.trigger("reset")},
this)})};a.prototype.fetchNew=function(){return this.fetch({url:"/recordings/new",add:!0,success:j(function(){return this.trigger("reset")},this)})};return a}();r=function(){function a(){a.__super__.constructor.apply(this,arguments)}u(a,Backbone.Model);a.prototype.urlRoot="/user";a.prototype.getCreatedAtDate=function(){return $.timeago.parse(this.get("createdAt"))};a.prototype.initialize=function(){this.recordings=new m;this.recordings.url=""+this.urlRoot+"/"+this.id+"/recordings";this.bind("change:id",
j(function(){return this.recordings.url=""+this.urlRoot+"/"+this.id+"/recordings"},this));return this.recordings.bind("reset",j(function(){return this.set({recordingCount:this.recordings.length})},this))};return a}();y=typeof exports!=="undefined"&&exports!==null?exports:this;y.Recording=g;y.RecordingCollection=m;y.PromosCollection=b;y.User=r;n=function(){function a(){this.render=j(this.render,this);this.replace=j(this.replace,this);this.promptLogin=j(this.promptLogin,this);a.__super__.constructor.apply(this,
arguments)}u(a,Backbone.View);a.prototype.tagName="li";a.prototype.className="profile-recording";a.prototype.logActions=!0;a.prototype.initialize=function(){this.model.bind("change",this.render);$(window).bind("load",this.replace);return Handlebars.registerHelper("myHelper",j(function(a){return this.is_sweet(a)},this))};a.prototype.template='  <img src="{{ image_url }}" alt="Cover art" class="song-cover" />\n<div class="song-info">\n  <h4 class="song-title">\n      {{ song_title }}</h4>\n  <a href="#" class="play">\n          <img class="play_button" src="/static/images/play_count.gif" alt="Play count">\n      </a>\n  <p class="song-play-count">\n      <span class=\'nb_plays\'><b>{{ listens }}</b> <br /> listens</span></p>\n  <p class="song-artist">\n      {{ song_artist }}</p>\n  <p class="song-description">\n      {{ title }}</p>\n  {{#if cheer_by_user}}\n  <div class="song-star song-star-pressed">\n      <a href="#" class="cheer" style="position: absolute;\n  right: 100px;\n  top: 65px;\n  width: 61px;\n  height: 60px;"></a>\n  </div>\n  {{else}}\n  <div class="song-star" >\n      <a href="#" class="cheer" style="position: absolute;\n  right: 100px;\n  top: 65px;\n  width: 61px;\n  height: 60px;"></a>\n  </div>\n  {{/if}}\n  <div class="song-starpower">\n      <p>\n          {{ stars }}</p>\n  </div>\n</div>\n<p class="song-date">\n  <a href="#recording/{{ id }}" class="recording-permalink">Recorded {{ date_since }} </a></p>\n\n{{myHelper is_sweetsandbeats}}\n\n<div class="song-twitter">\n  <a href="http://twitter.com/share" class="twitter-share-button" data-url=\'Tweet\'\n      data-text="Listen to this recording of {{song_title}} on @StarMakerApp http://{{domain}}/#recording/{{id}}"\n      data-count="none">Tweet</a>\n</div>\n<div class="song-facebook">\n\n<fb:like href="{{ og_share_link }}" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like>\n  \n</div>';
a.prototype.promptLogin=function(){return app.promptLogin().bind("login:success",j(function(){return app.renderAfterLogin()},this))};a.prototype.events={"click .cheer":"cheer","click .play":"play"};a.prototype.cheer=function(){h.getCredentials()!=null?this.model.cheer():this.promptLogin();return!1};a.prototype.play=function(a){$("#jquery_jplayer_1").jPlayer("stop");a.preventDefault();return this.trigger("play",this.model)};a.prototype.replace=function(){return $(".song-cover").each(function(){if(typeof this.naturalWidth!==
"undefined"&&this.naturalWidth===0||this.readyState==="uninitialized")return $(this).attr("src","http://media.starmakerapp.com.s3.amazonaws.com/u/ecard/20fa7e17-e78a-4d10-92cc-a2538fd71663.png")})};a.prototype.render=function(){var a,b;a=Handlebars.compile(this.template);b=this.model.toJSON();b.domain=document.domain;$(this.el).html(a(b));return this};a.prototype.is_sweet=function(a){var b,a=Handlebars.Utils.escapeExpression(a);b="<div class='sponsorship_mike'>                       This song brought to you by </div> <div class='sponsorship_hot_img'><a href='apps.facebook.com/sweetsandbeats' TARGET='_blank'>";
a==="mikes"?b+="<img src='/static/images/miLogo.png' width='117px' height='40px'></img></a></div>":a==="tamale"?b+="<img src='/static/images/hotsLogo.png' width='117px' height='40px'></img></a></div>":b="";return new Handlebars.SafeString(b)};return a}();v=function(){function a(){this.update_user_img=j(this.update_user_img,this);this.showResponse=j(this.showResponse,this);this.render=j(this.render,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.className=
"profile";a.prototype.logActions=!0;a.prototype.initialize=function(){var a;h.getCredentials()!=null&&(a=$.jStorage.get("user"));if(a!=null)this.current_user=new r(a);this.my_user_img=this.current_user.attributes.stageNameImageURL;return this.get_blob_url()};a.prototype.render=function(){var a;a=Handlebars.compile(this.template)({my_blob:this.blob,my_user_img:this.my_user_img});$(this.el).html(a);return this};a.prototype.template='<div style=\'margin-top:150px;width:866px;\'>\n<div style=\'position:relative;width:400px;top:125px;left:150px;\'>    \nYou can upload your profile picture here\n<form id="upload_file" action="{{my_blob}}" enctype="multipart/form-data" method="post">\n    <input type="file" name="file">\n    <input id="submit_value" type="button" name="submit_value" value="Submit">\n</form>\n<div id=\'uploaded\' style=\'display:none\'>Thank you for updating your profile picture<br />\n    See it on your <a href=\'#user\'>profile page</a> !!    \n</div>\n</div>\n<div style=\'position:relative;left:500px;height:150px;width:140px;bottom:25px\'>\n<img id=\'user_img\' src=\'{{my_user_img}}\' style=\'width:140px;height:150px\'></img>\n</div>\n</div>';
a.prototype.events={"click #submit_value":"uplo_ad"};a.prototype.uplo_ad=function(){var a;a={clearForm:!0,dataType:"json",data:{my_user:this.current_user.id},success:this.showResponse};$("#upload_file").ajaxSubmit(a);$("#uploaded").text("Your Image is being uploaded. Thank you");$("#uploaded").show();return!1};a.prototype.showResponse=function(){var a;h.getCredentials()!=null&&(a=$.jStorage.get("user"));if(a!=null)return this.current_user=new r(a),this.current_user.fetch({success:j(function(){return this.update_user_img()},
this)})};a.prototype.update_user_img=function(){$.jStorage.set("user",this.current_user);this.my_user_img=this.current_user.attributes.stageNameImageURL;$("#user_img").attr({src:this.my_user_img});return $("#uploaded").html("Thank you for updating your profile picture<br/> See it on your <a href='#user'>profile page</a>")};a.prototype.get_blob_url=function(){return jQuery.ajax({url:"/gae_blobstore/get_url",type:"POST",dataType:"text",success:j(function(a){$("#upload_file").ajaxForm();this.blob=a;
return this.render()},this)})};return a}();w=function(){function a(){this.renderRecordings=j(this.renderRecordings,this);this.replace=j(this.replace,this);this.render=j(this.render,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.className="profile";a.prototype.template=Handlebars.compile(Templates.user);a.prototype.initialize=function(){$(window).bind("load",this.replace);this.spinnerView=new q;this.spinnerView.initSpin();window.scrollTo(0,
0);this.collection=this.model.recordings;this.model.bind("change",this.render);this.collection.bind("reset",this.renderRecordings);return this.model.fetch({success:j(function(){return this.collection.fetch({success:j(function(){return this.spinnerView.stopSpin()},this),error:j(function(){return this.spinnerView.stopSpin()},this)})},this),error:j(function(){this.spinnerView.stopSpin();Backbone.history.navigate("#recordings/recent",!0);$(".registered",this.el);$(".registered").text("Sorry, but we couldn't find this user.");
return $(".registered").show()},this)})};a.prototype.render=function(){var a;a=$(".wrong",this.el).css("display");$(this.el).html(this.template(this.model.toJSON()));this.renderRecordings();$(".wrong",this.el).css("display",a);return this};a.prototype.replace=function(){return $(".song-cover").each(function(){if(typeof this.naturalWidth!=="undefined"&&this.naturalWidth===0||this.readyState==="uninitialized")return $(this).attr("src","http://media.starmakerapp.com.s3.amazonaws.com/u/ecard/20fa7e17-e78a-4d10-92cc-a2538fd71663.png")})};
a.prototype.renderRecordings=function(){$(this.el).find(".user_recordings").empty();this.collection.forEach(j(function(a){a=new n({model:a});a.bind("play",j(function(a){return playerView.playRecording(a)},this));return $(this.el).find(".user_recordings").append(a.render().el)},this));typeof FB!=="undefined"&&FB!==null&&FB.XFBML.parse();if(typeof twttr!=="undefined"&&twttr!==null&&twttr.widgets!=null)return twttr.widgets.load()};return a}();l=function(){function a(){this.render=j(this.render,this);
a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.className="profile";a.prototype.template=Handlebars.compile(Templates.user);a.prototype.initialize=function(){this.spinnerView=new q;this.spinnerView.initSpin();window.scrollTo(0,0);return this.model.fetch({success:j(function(a){var b,c;$("meta[name=og_title]").attr("content",a.get("title"));$("meta[name=og_image]").attr("content",a.get("coverImage"));b=a.get("title");c=a.get("is_public");$("meta[name=og_description]").attr({content:"Listen to this recording of "+
b+" made using the Starmaker Iphone app"});c===!1&&(Backbone.history.navigate("#recordings/recent",!0),$(".registered",this.el),$(".registered").text("This recording is not available yet. Please try again in a minute or two."),$(".registered").show());this.endUser=new r({id:a.get("created_by")});return this.endUser.fetch({success:j(function(){this.spinnerView.stopSpin();return this.render()},this),error:j(function(){return this.spinnerView.stopSpin()},this)})},this),error:j(function(a,b){var c,d,
e;try{return d=$.parseJSON(b.responseText),c=d.user,Backbone.history.navigate("#user/"+c,!0),e=$(".wrong"),e.css("display","block")}catch(f){return Backbone.history.navigate("#recordings/recent",!0),$(".registered",this.el),$(".registered").text("Sorry, but we couldn't find this recording."),$(".registered").show()}finally{this.spinnerView.stopSpin()}},this)})};a.prototype.render=function(){var a,b;$(this.el).html(this.template(this.endUser.toJSON()));$("h3",this.el).remove();$(".title_user",this.el).html("<strong>"+
this.endUser.get("stageName")+"</strong>");a=new n({model:this.model});a.bind("play",j(function(a){return playerView.playRecording(a)},this));$(this.el).find(".user_recordings").html(a.render().el);a=$(document.createElement("a")).attr("href","#user/"+this.endUser.get("stageName")).html("More from "+this.endUser.get("stageName")+" &raquo;");b=$(document.createElement("div"));b.html(a);b.addClass("recording-more-permalink");$(this.el).find(".user_recordings").after(b);typeof FB!=="undefined"&&FB!==
null&&FB.XFBML.parse();typeof twttr!=="undefined"&&twttr!==null&&twttr.widgets!=null&&twttr.widgets.load();return this};return a}();f=function(){function a(){this.count_debuts=j(this.count_debuts,this);this.init_change_class=j(this.init_change_class,this);this.replace=j(this.replace,this);this.change_class=j(this.change_class,this);this.fetchMore=j(this.fetchMore,this);this.addAll=j(this.addAll,this);this.addOne=j(this.addOne,this);this.render=j(this.render,this);a.__super__.constructor.apply(this,
arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.className="leaders";a.prototype.template=Handlebars.compile(Templates.collection);a.prototype.page=0;a.prototype.initialize=function(){window.scrollTo(0,0);this.spinnerView=new q;this.spinnerView.createSpinCollection();this.totDebuts=0;this.type=this.options.type;this.collection=new m;this.collection.bind("reset",this.addAll);$(window).bind("load",this.replace);return this.fetchMore()};a.prototype.render=function(){this.type==="debuts"&&
this.count_debuts();$(this.el).html(this.template(this.collection.toJSON()));this.init_change_class(this.type);return this};a.prototype.addOne=function(a){a=new n({model:a});a.template=z;a.bind("play",j(function(a){return playerView.playRecording(a)},this));$(this.el).find(".recordings").append(a.render().el);this.total=this.collection.length;if(this.type==="featured"){if(this.collection.length<=10)return $(".more").css("display","none")}else if(this.type==="debuts"&&this.collection.length===parseInt(this.totDebuts))return $(".more").css("display",
"none")};a.prototype.addAll=function(){$(this.el).find(".recordings").empty();return this.collection.each(this.addOne)};a.prototype.events={"click .more":"fetchMore","click .nav_browse":"change_class"};a.prototype.fetchMore=function(){this.type==="debuts"&&this.count_debuts();this.page+=1;this.page>1&&this.spinnerView!=null&&this.spinnerView.createSpinCollection();switch(this.type){case "debuts":return this.collection.fetchDebuts(this.page);case "recent":return this.collection.fetchRecent(this.page);
case "featured":return this.collection.fetchFeatured(this.page)}};a.prototype.change_class=function(a){a=a.currentTarget.id;return $("#"+a).attr("class","nav_browse_selected")};a.prototype.replace=function(){return $(".cover-browse").each(function(){if(typeof this.naturalWidth!=="undefined"&&this.naturalWidth===0||this.readyState==="uninitialized")return $(this).attr("src","http://media.starmakerapp.com.s3.amazonaws.com/u/ecard/20fa7e17-e78a-4d10-92cc-a2538fd71663.png")})};a.prototype.init_change_class=
function(a){switch(a){case "debuts":return $("#browse_3",this.el).attr("class","nav_browse_selected");case "recent":return $("#browse_1",this.el).attr("class","nav_browse_selected");case "featured":return $("#browse_2",this.el).attr("class","nav_browse_selected")}};a.prototype.count_debuts=function(){return jQuery.ajax({url:"/recordings/count_debuts_recordings",type:"POST",dataType:"text",success:j(function(a){return this.totDebuts=a},this)})};return a}();z='<div class=\'rec_browse\'>\n<img src="{{image_url}}" alt="Cover art" class=\'cover-browse\'/>\n<span class=\'title_browse\'>\n<b>{{song_title}}</b> - {{song_artist}}\n</span>\n<span class=\'description_browse\'>\n{{title}}\n</span>\n<span class=\'date_browse\'>\n<a href=\'#recording/{{ id }}\' class=\'recording-permalink\'>\nRecorded by {{stage_name}} {{date_since}}</a>\n</span>\n<a href="#" class="play">\n    <img class="play_button_browse" src="/static/images/play_count.gif" alt="Play count">\n</a>\n{{#if cheer_by_user}}\n    <div class="song-star song-star-pressed">\n        <a href="#" class="cheer" style="position: absolute; height: 50px; width: 50px; background-size: 85% auto; left: 505px; top: 25px;"></a>\n    </div>\n    {{else}}\n    <div class="song-star">\n        <a href="#" class="cheer" style="position: absolute; height: 50px; width: 50px; background-size: 85% auto; left: 505px; top: 25px;"></a>\n    </div>\n    {{/if}}\n</div>';
e=function(){function a(){this.replace=j(this.replace,this);this.fetchMore=j(this.fetchMore,this);this.addNew=j(this.addNew,this);this.addAll=j(this.addAll,this);this.addtwo=j(this.addtwo,this);this.addOne=j(this.addOne,this);this.renderNew=j(this.renderNew,this);this.render=j(this.render,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.className="leaders";a.prototype.template=Handlebars.compile(Templates.promos);a.prototype.initialize=function(){window.scrollTo(0,
0);this.spinnerView=new q;this.spinnerView.createSpinCollection();this.promos=new b;this.promonew=new b;this.promos.bind("reset",this.addAll);this.promonew.bind("reset",this.addNew);$(window).bind("load",this.replace);return this.fetchMore()};a.prototype.render=function(){$(this.el).html(this.template(this.promos.toJSON()));return this};a.prototype.renderNew=function(){$(this.el).html(this.template(this.promonew.toJSON()))};a.prototype.addOne=function(a){a=new n({model:a});a.template=i;a.bind("play",
j(function(a){return playerView.playRecording(a)},this));return $(this.el).find(".recordings-promopage").append(a.render().el)};a.prototype.addtwo=function(a){a=new n({model:a});a.template=k;a.bind("play",j(function(a){return playerView.playRecording(a)},this));return $(this.el).find(".recordings-promopage-recent").append(a.render().el)};a.prototype.addAll=function(){$(this.el).find(".recordings-promopage").empty();return this.promos.each(this.addOne)};a.prototype.addNew=function(){$(this.el).find(".recordings-promopage-recent").empty();
return this.promonew.each(this.addtwo)};a.prototype.fetchMore=function(){this.promos.fetchPromos();return this.promonew.fetchNew()};a.prototype.replace=function(){return $(".record").each(function(){if(typeof this.naturalWidth!=="undefined"&&this.naturalWidth===0||this.readyState==="uninitialized")return $(this).attr("src","http://media.starmakerapp.com.s3.amazonaws.com/u/ecard/20fa7e17-e78a-4d10-92cc-a2538fd71663.png")})};return a}();i='\n<div class=\'recording_promo\'>\n\n     <div class=\'number_start\'>\n                    <div class=\'number_honor\'>{{rank}}</div> \n                </div>\n                <div class=\'recording_data_promo\'>    \n                  <img class=\'record\' src=\'{{thumb_url}}\' style=\'width:40px;height:40px;padding-top:5px;padding-left:5px;float:left;\'></img>\n          <div class=\'stage_honor\'><a href="#user/{{stage_name}}">{{stage_name}}</a></div>\n            <a href="#" class="play">\n    <img class="play_button_browse" src="/static/images/play_count.gif" alt="Play count">\n</a>\n<div class=\'starpower_promo\'>\n{{stars}}\n</div>\n{{#if cheer_by_user}}\n    <div class="song-star song-star-pressed">\n        <a href="#" class="cheer" style="position: absolute; height: 50px; width: 50px; background-size: 85% auto; left: 505px; top: 25px;"></a>\n    </div>\n    {{else}}\n    <div class="song-star">\n        <a href="#" class="cheer" style="position: absolute; height: 50px; width: 50px; background-size: 85% auto; left: 505px; top: 25px;"></a>\n    </div>\n    {{/if}}             \n                   \n    </div>\n</div>';
k='<div class=\'recording_new\'>\n\n     <div class=\'number_new\'>\n                    <div class=\'number_honor\'>{{rank}}</div> \n                </div>\n                <div class=\'recording_data_promo\'>    \n                  <img class=\'record\' src=\'{{image_url}}\' style=\'width:40px;height:40px;padding-top:5px;padding-left:5px;float:left;\'></img>\n          <div class=\'stage_honor\'><a href="#user/{{stage_name}}">{{stage_name}}</a></div>\n            <a href="#" class="play">\n    <img class="play_button_browse" src="/static/images/play_count.gif" alt="Play count">\n</a>\n<div class=\'starpower_promo\'>\n{{stars}}\n</div>\n{{#if cheer_by_user}}\n    <div class="song-star song-star-pressed">\n        <a href="#" class="cheer" style="position: absolute; height: 50px; width: 50px; background-size: 85% auto; left: 505px; top: 25px;"></a>\n    </div>\n    {{else}}\n    <div class="song-star">\n        <a href="#" class="cheer" style="position: absolute; height: 50px; width: 50px; background-size: 85% auto; left: 505px; top: 25px;"></a>\n    </div>\n    {{/if}}             \n                   \n    </div>\n</div>';
t=function(){function a(){this.render=j(this.render,this);this.partialRender=j(this.partialRender,this);this.promptLogin=j(this.promptLogin,this);this.cheer=j(this.cheer,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.template=Handlebars.compile(Templates.starmaker_tab_recording);a.prototype.pressedStar="/static/images/starmaker_tab_star-pressed.png";a.prototype.unpressedStar="/static/images/starmaker_tab_star-unpressed.png";a.prototype.initialize=
function(){this.model.bind("change",this.partialRender);this.model.bind("cheer:unauthorized",this.promptLogin);this.freshPlay=!0;return this.timerFired=!1};a.prototype.events={"click .cheer":"cheer"};a.prototype.cheer=function(){h.getCredentials()!=null?this.model.cheer():this.promptLogin();return!1};a.prototype.promptLogin=function(){return open("smweb://login","_self")};a.prototype.partialRender=function(){var a,b;b=$(".starImg",this.el);a=$(".cheers",this.el);this.model.get("cheer_by_user")?b.attr("src",
this.pressedStar):b.attr("src",this.unpressedStar);return a.html(this.model.get("cheers_count"))};a.prototype.render=function(){$(this.el).html(this.template(this.model.toJSON()));this.attachJPlayer();return this};a.prototype.attachJPlayer=function(){var a;a=$("#jquery_jplayer_"+this.model.id,this.el);a.jPlayer({ready:j(function(){return a.jPlayer("setMedia",{m4a:this.model.get("audio_url")})},this),swfPath:"/static/smstudios/js/jquery.player-2.0",supplied:"m4a",preload:"none",cssSelectorAncestor:"#jp_interface_"+
this.model.id});a.bind($.jPlayer.event.play,j(function(b){a.jPlayer("pauseOthers");if(this.freshPlay)return this.freshPlay=!1,(new Date).getTime().toString().substring(0,10),this.model.trigger("play",{position:0,duration:b.jPlayer.status.duration,user:new r}),_gaq.push(["_trackEvent","Recordings","Play",""+this.model.id+"-"+this.model.get("song_title")+"-"+this.model.get("stage_name")])},this));a.bind($.jPlayer.event.pause,j(function(a){if(!this.freshPlay)return _gaq.push(["_trackEvent","Recordings",
"Pause",""+this.model.id+"-"+this.model.get("song_title")+"-"+this.model.get("stage_name")]),a.jPlayer.status.currentTime!==0?void 0:this.model.trigger("pause",{position:a.jPlayer.status.currentTime,duration:a.jPlayer.status.duration,user:new r})},this));a.bind($.jPlayer.event.ended,j(function(a){return this.model.trigger("ended",{position:a.jPlayer.status.currentTime,duration:a.jPlayer.status.duration,user:new r})},this));return a.bind($.jPlayer.event.timeupdate,j(function(a){if(a.jPlayer.status.currentTime>=
TIME_OUT&&!this.timerFired)return this.timerFired=!0,this.model.trigger("timeupdate",{position:a.jPlayer.status.currentTime,duration:a.jPlayer.status.duration,user:new r})},this))};return a}();a=function(){function a(){this.addAll=j(this.addAll,this);this.addOne=j(this.addOne,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.initialize=function(){this.collection.bind("add",this.addOne);this.collection.bind("reset",this.addAll);h.bind("change:credentials",j(function(){this.collection.reset();
return this.collection.fetchFeatured()},this));return this.addAll()};a.prototype.addOne=function(a){var b;b=new t({model:a});$(this.el).append(b.render().el);return $("#jquery_jplayer_"+a.id,this.el).jPlayer("option","cssSelectorAncestor","#jp_interface_"+a.id)};a.prototype.addAll=function(){$(this.el).empty();return this.collection.each(this.addOne)};return a}();q=function(){function a(){this.stopSpin=j(this.stopSpin,this);this.createSpinCollection=j(this.createSpinCollection,this);this.initSpin=
j(this.initSpin,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.initialize=function(){return this.opts={lines:12,length:7,width:4,radius:9,color:"#000",speed:1,trail:60,shadow:!1}};a.prototype.initSpin=function(){this.spinner=new Spinner(this.opts);this.target=document.getElementById("wheel");return this.spinner.spin(this.target)};a.prototype.createSpinCollection=function(){this.spinner=new Spinner(this.opts);this.target=document.getElementById("wheel");this.spinner.spin(this.target);
return jQuery.ajaxSetup({beforeSend:j(function(){if(this.spinner!=null)return this.spinner.spin(this.target)},this),complete:j(function(){return this.stopSpin()},this),error:j(function(){return this.stopSpin()},this)})};a.prototype.stopSpin=function(){if(this.spinner!=null)return this.spinner.stop(this.target),delete this.spinner};return a}();y=typeof exports!=="undefined"&&exports!==null?exports:this;y.RecordingView=n;y.UserView=w;y.RecordingWithUserView=l;y.CollectionView=f;y.StarmakerTabView=a;
y.PromosView=e;y.UploadView=v;y.SpinnerView=q;a=function(){function a(){this.cheer=j(this.cheer,this);this.promptLogin=j(this.promptLogin,this);this.didEndPlaying=j(this.didEndPlaying,this);this.didPausePlaying=j(this.didPausePlaying,this);this.didChangeProgress=j(this.didChangeProgress,this);this.didStartPlaying=j(this.didStartPlaying,this);this.didBecomeReady=j(this.didBecomeReady,this);this.render=j(this.render,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName=
"div";a.prototype.logEvents=!1;a.prototype.logActions=!1;a.prototype.pressedStar="/static/images/starmaker_tab_star-pressed.png";a.prototype.unpressedStar="/static/images/starmaker_tab_star-unpressed.png";a.prototype.template=Handlebars.compile(Templates.player);a.prototype.initialize=function(){return _.extend(this,Backbone.Events)};a.prototype.initJPlayer=function(){this.jPlayer=$("#bottom").find(".jp-jplayer");this.jPlayer.jPlayer({ready:this.didBecomeReady,play:this.didStartPlaying,pause:this.didPausePlaying,
timeupdate:this.didChangeProgress,ended:this.didEndPlaying,swfPath:"/static/smstudios/js/jquery.player-2.0",supplied:"m4a"});app.bind("login",j(function(){if(this.recording!=null)return this.recording.fetch()},this));return app.bind("logout",j(function(){if(this.recording!=null)return this.recording.fetch()},this))};a.prototype.render=function(){var a;a=this.recording!=null?this.recording.toJSON():(new g).toJSON();a.domain=document.domain;$(this.el).html(this.template(a));typeof FB!=="undefined"&&
FB!==null&&FB.XFBML.parse();this.delegateEvents();return this};a.prototype.playRecording=function(a){this.recording=a;$("#bottom").show();this.render();this.recording!=null&&this.jPlayer.jPlayer("setMedia",{m4a:this.recording.get("audio_url")});this.jPlayer.jPlayer("play");this.recording.unbind("change",this.render);this.recording.bind("change",this.render);return!1};a.prototype.pauseRecording=function(){};a.prototype.didBecomeReady=function(){if(this.recording!=null)return this.jPlayer.jPlayer("setMedia",
{m4a:this.recording.get("audio_url")}),this.jPlayer.jPlayer("play")};a.prototype.didStartPlaying=function(a){return this.recording.trigger("play",{position:0,duration:a.jPlayer.status.duration,user:app.current_user})};a.prototype.didChangeProgress=function(a){return this.recording.trigger("timeupdate",{position:a.jPlayer.status.currentPercentAbsolute*a.jPlayer.status.duration*0.01,duration:a.jPlayer.status.duration,user:app.current_user})};a.prototype.didPausePlaying=function(a){return this.recording.trigger("pause",
{position:a.jPlayer.status.currentPercentAbsolute*a.jPlayer.status.duration*0.01,duration:a.jPlayer.status.duration,user:app.current_user})};a.prototype.didEndPlaying=function(a){return this.recording.trigger("ended",{position:a.jPlayer.status.currentPercentAbsolute*a.jPlayer.status.duration*0.01,duration:a.jPlayer.status.duration,user:app.current_user})};a.prototype.events={"click .cheer":"cheer"};a.prototype.promptLogin=function(){return app.promptLogin().bind("login:success",j(function(){return app.renderAfterLogin()},
this))};a.prototype.cheer=function(){h.getCredentials()!=null?this.recording.cheer():this.promptLogin();return!1};return a}();(typeof exports!=="undefined"&&exports!==null?exports:this).playerView=new a;d=function(){function a(){this.close=j(this.close,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.className="modal-login";a.prototype.initialize=function(){return this.render()};a.prototype.display=function(){$(this.el).modal({minWidth:500,
minHeight:300,draggable:!1,resizable:!1,close:this.remove});if(typeof FB!=="undefined"&&FB!==null)return FB.XFBML.parse()};a.prototype.close=function(){return $.modal.close()};a.prototype.events={"submit .login-form":"submit","click p.register a":"register"};a.prototype.register=function(a){a.preventDefault();return $.modal.close()};a.prototype.submit=function(a){var b;a.preventDefault();b=$(this.el).find(".flash-error");b.hide("fast");h.setCredentials({email:$(this.el).find("#email").val(),password:$(this.el).find("#password").val()});
return(new r).fetch({error:j(function(a,c){h.clearCredentials();$.parseJSON(c.responseText).error.type==="BadCredentials"?b.html("Bad email address or password.  Try again."):b.html("Problem talking to server.");return b.show("fast")},this),success:j(function(a){b.hide("fast");return this.trigger("login:success",a)},this)})};a.prototype.render=function(){var a;a=Handlebars.compile(this.template)();$(this.el).html(a);return this};a.prototype.template=' <div style=\'font-size:150%;text-align:center;width:480px\'>Welcome! Use Facebook to login or sign-up:</div>\n   <br />\n  <p class="login-facebook">\n   <fb:login-button size="large" scope="email">Login with Facebook</fb:login-button>\n </p>\n<p class="register"><a href="#register" class="register_button">Don\'t have a Facebook account?</a></p>\n \n<div class=\'separator\'></div>\n  <div class=\'text_or\'>or</div>\n<br />\n<p style=\'text-align:center\'>Login with your email and password:</p>\n\n<br />\n   <p class="flash-error"></p>\n <form class="login-form" target="login">\n   <p>\n     <label for="email">Email:</label>\n     <input type="email" name="email" style="width:260px" id="email" autofocus required>\n   </p>\n\n   <p>\n     <label for="password">Password:</label>\n     <input name="password" type="password" style="width:260px" id="password" required>\n   </p>\n\n   <p>\n     <input class="submit" type="submit" value="">\n   </p>\n </form>\n ';
return a}();(typeof exports!=="undefined"&&exports!==null?exports:this).LoginView=d;p=function(){function a(){this.close=j(this.close,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.className="modal-login";a.prototype.initialize=function(){return this.render()};a.prototype.display=function(){h.clearCredentials();return $(this.el).dialog({minWidth:500,minHeight:300,modal:!0,draggable:!1,resizable:!1,title:"StarMaker Account Registration",
stack:!1,close:this.remove})};a.prototype.close=function(){return $(this.el).dialog("close")};a.prototype.events={"submit .register-form":"submit"};a.prototype.render=function(){var a;a=Handlebars.compile(this.template)();return $(this.el).html(a)};a.prototype.submit=function(a){var b,c,d,e,f;b=j(function(a){var b;b=$(this.el).find(".flash-error");return a?(b.html(a),b.show("fast")):b},this);b().hide("fast");$(this.el).find("label").removeClass("error");a.preventDefault();c=j(function(a){return $(this.el).find("#"+
a).val()},this);a=c("email");d=c("password");e=c("password2");c=c("stageName");c=c.toLowerCase();if(d!==e)b("Passwords do not match.");else if(3<(f=c.length)&&f<20)if(c.indexOf(" ")>=0)b("Stagenames may only contain letters, numbers, and hypens.");else return(new r).save({email:a,password:d,stageName:c},{error:j(function(a,c){var d,e;d=function(a){return $(this.el).find(a).siblings("label").addClass("error")};try{switch(e=$.parseJSON(c.responseText),e.error.type){case "UserAlreadyAuthorized":return $(this.el).dialog("close"),
this.trigger("login:success");case "MissingstageName":return b("Please enter a Stage Name"),d("#stageName");case "ExistingStageName":return b("Stage Name in use. Try another."),d("#stageName");case "ExistingEmail":return b("Email address in use."),d("#email");case "PasswordTooShort":return b("Your password must contain at least 6 characters."),d("#password"),d("#password2")}}catch(f){return b("Server-error.  Please try again later.")}},this),success:j(function(a){h.setCredentials({email:$(this.el).find("#email").val(),
password:$(this.el).find("#password").val()});b().hide("fast");$(this.el).dialog("close");return this.trigger("login:success",a)},this)});else b("Please choose a name between 3 and 20 characters.")};a.prototype.template='<h1>Welcome!</h1>\n<p>Login to your StarMaker account</p>\n\n<p class="flash-error"></p>\n\n<form class="register-form" target="login">\n<p>\n<label for="email">Email:</label>\n<input type="email" name="email" id="email" autofocus required>\n</p>\n\n<p>\n<label for="password">Password:</label>\n<input name="password" type="password" id="password" required>\n</p>\n\n<p>\n<label for="password2">Verify Password:</label>\n<input name="password2" type="password" id="password2" required>\n</p>\n\n<p>\n<label for="stageName">Stage Name:</label>\n<input name="stageName" id="stageName" required>\n</p>\n\n<p>\n<input class="submit" type="submit" value="">\n</p>\n</form>';
return a}();o=function(){function a(){this.remove=j(this.remove,this);this.close=j(this.close,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.View);a.prototype.tagName="div";a.prototype.className="modal-login";a.prototype.template=Handlebars.compile(Templates.stagename_registration);a.prototype.initialize=function(){return this.render()};a.prototype.display=function(){return $(this.el).dialog({minWidth:500,minHeight:300,modal:!0,draggable:!1,resizable:!1,title:"StarMaker Account Registration",
stack:!1,close:this.remove})};a.prototype.close=function(){return $(this.el).dialog("close")};a.prototype.remove=function(){Backbone.history.navigate("");return a.__super__.remove.apply(this,arguments)};a.prototype.events={"submit #stagename_form":"submit"};a.prototype.render=function(){$(this.el).html(this.template());return this};a.prototype.submit=function(a){var b,c;a.preventDefault();b=$(this.el).find(".flash-error");b.hide("fast");3<(c=$(a.target.stage_name).val().length)&&c<20?$.ajax({type:a.target.method,
url:a.target.action,data:$(a.target).serialize(),dataType:"json",success:j(function(a){b.hide("fast");this.close();return this.trigger("login:success",new r(a))},this),error:j(function(a){b.html($.parseJSON(a.responseText).error.message);return b.show("fast")},this)}):(b.html("Please choose a name between 3 and 20 characters."),b.show("fast"))};return a}();y=typeof exports!=="undefined"&&exports!==null?exports:this;y.RegisterView=p;y.RegisterStagenameView=o;a=function(){function a(){this.landing=
j(this.landing,this);this.upload=j(this.upload,this);this.login=j(this.login,this);this.recording=j(this.recording,this);this.loadStaticPage=j(this.loadStaticPage,this);this.collection=j(this.collection,this);this.renderAfterLogin=j(this.renderAfterLogin,this);this.change_menu=j(this.change_menu,this);this.initThirdPart=j(this.initThirdPart,this);a.__super__.constructor.apply(this,arguments)}u(a,Backbone.Router);a.prototype.pageLog=!0;a.prototype.initialize=function(){var a;h.getCredentials()!=null&&
(a=$.jStorage.get("user"));return a!=null?(this.current_user=new r(a),this.current_user.fetch({success:j(function(){return $.jStorage.set("user",this.current_user)},this)})):this.current_user=new r};a.prototype.initThirdPart=function(){var a;a="";if(this.current_user.attributes.email)a=this.current_user.attributes.email;typeof Zenbox!=="undefined"&&Zenbox!==null&&Zenbox.init({dropboxID:"20010796",url:"https://starmaker.zendesk.com",requester_email:a,hide_tab:!0});return twttr.events.bind("click",
j(function(a){return console.log(a)},this))};a.prototype.start=function(){playerView.el=".player_info";playerView.initJPlayer();this.initThirdPart();this.bind("all",j(function(a){var b;if(a.indexOf("route:")===0&&(_gaq.push(["_trackPageview",window.location.hash]),(b=a.split(":")[1])!=="landing"&&b!=="logout"&&b!=="register"&&b!=="register_stagename"&&b!=="user"))return $("#landing").hide()},this));return Backbone.history.start()};a.prototype.routes={About:"about",Contact:"contact",Jobs:"jobs",Terms:"terms",
Privacy:"privacy",Leadership:"leadership",Press:"press",upload:"upload","recordings/:type":"collection","recording/:id":"recording","promos/:type":"promos",login:"login",logout:"logout",register:"register","register/stagename":"register_stagename",user:"user","user/:stageName":"user","":"landing"};a.prototype.change_menu=function(){$(".nav_menu_2",this.el).hide();$(".nav_menu_1",this.el).css("margin-left","664px");$(".nav_menu_contest",this.el).css("margin-left","563px");$("#logout",this.el).hide();
return $("#header_login",this.el).show()};a.prototype.renderAfterLogin=function(){var a,b;b=window.location.hash;a=b.split("/");a=a[1];$("#wrapper").html(x);b.indexOf("#recordings")===0&&($(".nav_menu_1",this.el).attr("class","nav_menu_1_selected"),this.collection(a));if(b.indexOf("#user")===0)return this.user(a)};a.prototype.collection=function(a){var b;$("#wrapper").html(x);this.current_user.attributes.id||this.change_menu();b=$(document).width();$("#wheel",this.el).css("left",b/2-180);$(".nav_menu_1",
this.el).attr("class","nav_menu_1_selected");return $("#content").html((new f({type:a})).render().el)};a.prototype.loadStaticPage=function(a){$("#wrapper").html(x);this.current_user.attributes.id||this.change_menu();$("#content").html(Templates[a]);return window.scrollTo(0,0)};a.prototype.about=function(){return this.loadStaticPage("about")};a.prototype.contact=function(){return this.loadStaticPage("contact")};a.prototype.jobs=function(){return this.loadStaticPage("jobs")};a.prototype.terms=function(){return this.loadStaticPage("terms")};
a.prototype.privacy=function(){return this.loadStaticPage("privacy")};a.prototype.leadership=function(){return this.loadStaticPage("leadership")};a.prototype.press=function(){return this.loadStaticPage("press")};a.prototype.edit=function(){return this.loadStaticPage("edit")};a.prototype.recording=function(a){var b;$("#wrapper").html(x);this.current_user.attributes.id||this.change_menu();b=new g({id:a});b=new l({model:b});$("#content").html(b.el);$("meta[name=og_type]").attr({content:"song"});b=document.domain;
b==="starmakerapp.appspot.com"&&(b="starmakerstudios.com");return $("meta[name=og_url]").attr({content:b+("/user/r/"+a)})};a.prototype.user=function(a){var b;if(a!=null)a=new r({id:a});else{if(this.current_user.isNew()){a=this.promptLogin();a.bind("login:success",j(function(){return this.user()},this));return}a=this.current_user}$("#landing").hide();$("#wrapper").html(x);this.current_user.attributes.id||this.change_menu();a===this.current_user&&$(".nav_menu_2",this.el).attr("class","nav_menu_2_selected");
b=new w({model:a});$("#content").html(b.render().el);$("#wheel",this.el).css("left","50%");if(a===this.current_user)return $(".profile-pic",this.el).mouseover(j(function(){$(".hover_image",this.el).css("opacity","0.4");$(".text_image",this.el).show();return $(".hover_image",this.el).show()},this)),$(".hover_image",this.el).mouseout(j(function(){$(".hover_image",this.el).css("opacity","1.0");$(".text_image",this.el).hide();return $(".hover_image",this.el).hide()},this))};a.prototype.promptLogin=function(){this.loginView=
new d;this.loginView.display();this.loginView.bind("login:success",j(function(a){this.current_user=a;$.jStorage.set("user",a);this.loginView.close();return this.trigger("login",a)},this));this.loginView.bind("login:close",j(function(){return this.loginView.close()},this));return this.loginView};a.prototype.login=function(){var a;return this.current_user.isNew()?($.jStorage.get("user")!=null&&FB.getLoginStatus(function(a){a.session!=null&&c.loginHandler({session:FB.getSession()})}),a=this.promptLogin(),
a.bind("login:success",j(function(){return window.location.hash==="#promos/jacksonharris"?($("#wrapper").html(x),Backbone.history.navigate("#promos/jacksonharris",!0)):window.location.hash.indexOf("#recordings/recent")===0?this.renderAfterLogin():Backbone.history.navigate("#recordings/recent",!0)},this)),a):window.location.hash==="#promos/jacksonharris"?($("#wrapper").html(x),Backbone.history.navigate("#promos/jacksonharris",!0)):Backbone.history.navigate("#user",!0)};a.prototype.upload=function(){$("#wrapper").html(x);
this.current_user.attributes.id||this.change_menu();return $("#content").html((new v).render().el)};a.prototype.promos=function(a){return a!=="hotchellerae"?Backbone.history.navigate("#recordings/recent",!0):($("#wrapper").html(x),this.current_user.attributes.id||this.change_menu(),$(".nav_menu_contest",this.el).attr("class","nav_menu_contest_selected"),a=$(document).width(),$("#wheel",this.el).css("left",a/2-180),$("#content").html((new e).render().el))};a.prototype.logout=function(){this.current_user=
new r;$.jStorage.deleteKey("user");h.clearCredentials();Backbone.history.navigate("",!0);return this.trigger("logout")};a.prototype.register=function(){var a;a=new p;a.display();a.bind("login:success",j(function(b){this.current_user=b;$.jStorage.set("user",b);a.close();this.loginView!=null&&this.loginView.close();window.location.hash==="#promos/jacksonharris"?($("#wrapper").html(x),Backbone.history.navigate("#promos/jacksonharris",!0)):Backbone.history.navigate("#recordings/recent",!0);$(".registered_user",
this.el).text(this.current_user.attributes.stageName);return $(".registered",this.el).show()},this));return a.bind("close",function(){return a.close()})};a.prototype.register_stagename=function(){var a;return this.current_user.isNew()&&h.getCredentials()!=null?(a=new o({model:this.current_user}),a.display(),a.bind("login:success",j(function(a){this.current_user=a;$.jStorage.set("user",a);return Backbone.history.navigate("#user",!0)},this)),a.bind("login:close",function(){return Backbone.history.navigate("#user",
!0)})):Backbone.history.navigate("#login",!0)};a.prototype.landing=function(){var a;$("#wrapper").empty();$("#content").empty();$("#landing").show();a=$("#login",this.el);return this.current_user.attributes.id?(a.attr("href","#user"),a.text("My Profile")):(a.attr("href","#login"),a.text("Login"))};return a}();(typeof exports!=="undefined"&&exports!==null?exports:this).app=new a;_.extend(app,Backbone.Events);$(document).ready(function(){app.start();$(".login_button").live("click",function(a){a.stopImmediatePropagation();
app.login();return!1});$(".register_button").live("click",function(a){a.stopImmediatePropagation();app.register();return!1});return $("#featured_carousel").jcarousel({visible:8,scroll:8})});x='<div class="header">\n  <div class="content-width">\n    <h1><a href="#"><img src="/static/images/sm-header.png" alt="StarMaker" width="477" height="81"></a></h1>\n  </div>\n</div>\n<div class="header_menu">\n<div class="header-nav">\n    <div class=\'main_menu\'>\n      <div class=\'nav_menu_contest\' id=\'menu_contest\'><a href="#promos/hotchellerae">Contest</a></div>\n      <div class=\'nav_menu_1\' id=\'menu_1\'><a href="#recordings/recent">Browse</a></div>\n      <div class=\'nav_menu_2\' id=\'menu_2\'><a href="#user">My Profile</a></div>\n      <div class=\'nav_menu_3\'>\n        <a id="header_login" class="login_button" href="#login" style="display: none;">Login</a>\n        <a id="logout" href="#logout">Logout</a>\n      </div>\n    </div>\n</div>\n</div>';
c={initialize:function(){$.jStorage.get("user")!=null&&FB.getLoginStatus(function(a){if(a.authResponse!=null)return h.setCredentials({userID:a.authResponse.userID,accessToken:a.authResponse.accessToken}),app.current_user=new r,app.current_user.fetch({error:function(){return console.log("Error fetching current user.")},success:j(function(){return $.jStorage.set("user",app.current_user)},this)})});$(".fb_button").live("click",j(function(){return FB.getLoginStatus(j(function(a){if(a.status==="connected")return this.loginHandler(a)},
this))},this));FB.Event.subscribe("auth.login",this.loginHandler);FB.Event.subscribe("auth.logout",this.logoutHandler);return FB.XFBML.parse()},loginHandler:j(function(a){h.setCredentials({userID:a.authResponse.userID,accessToken:a.authResponse.accessToken});return(new r).fetch({error:j(function(a,b){if(b.status===307)return app.loginView.trigger("login:close"),Backbone.history.navigate("#register/stagename",!0)},this),success:j(function(a){return app.loginView.trigger("login:success",a)},this)})},
this),logoutHandler:j(function(){return h.clearCredentials()},this)};(typeof exports!=="undefined"&&exports!==null?exports:this).Facebook=c}).call(this);

