(function(){var k=Array;if(!k.forEach){k.forEach=function(m,p,o){for(var n=0,e=m.length;n<e;n++){p.call(o,m[n],n,m)}}}if(!k.indexOf){k.indexOf=function(n,o){for(var m=0,e=n.length;m<e;m++){if(n[m]===o){return m}}return -1};k.lastIndexOf=function(m,n){var e=m.length;while(e--){if(m[e]===n){return e}}return -1}}if(!k.map){k.map=function(p,q,o){for(var m=[],n=0,e=p.length;n<e;n++){m[n]=q.call(o,p[n],n,p)}return m}}if(!k.every){k.every=function(o,p,n){for(var m=0,e=o.length;m<e;m++){if(!p.call(n,o[m],m,o)){return false}}return true}}if(!k.some){k.some=function(o,p,n){for(var m=0,e=o.length;m<e;m++){if(p.call(n,o[m],m,o)){return true}}return false}}if(!k.filter){k.filter=function(p,q,o){for(var n=0,m=[],e=p.length;n<e;n++){if(q.call(o,p[n],n,p)){m.push(p[n])}}return m}}k.exists=function(m,e){return k.indexOf(m,e)>=0};k.remove=function(m,e){m.splice(k.indexOf(m,e),1)};k.clear=function(e){e.length=0};k.clone=function(e){if(e.length===1){return[e[0]]}else{return Array.apply(null,e)}};k.sum=function(n){var m=0,e=n.length;while(e--){m+=n[e]}return m};k.max=function(e){return Math.max.apply(null,e)};k.min=function(e){return Math.min.apply(null,e)};try{Array.prototype.slice.call(document.documentElement.childNodes);k.make=function(m,e){m=Array.prototype.slice.call(m);if(e){e.push.apply(e,m);return e}return m}}catch(j){k.make=function(p,o){var m=o||[];if(Object.prototype.toString.call(p)==="[object Array]"){Array.prototype.push.apply(m,p)}else{if(typeof p.length==="number"){for(var n=0,e=p.length;n<e;n++){m.push(p[n])}}else{for(var n=0;p[n];n++){m.push(p[n])}}}return m}}var b=Number.prototype;b.localeCompare=function(e){if(this==e){return 0}else{if(this>e){return 1}else{return -1}}};b.currencyFormat=function(){var e=this,m=(e<0);if(m){e*=-1}var n=Math.floor(e),o=""+Math.round((e-n)*100);if(o.length==1){o="0"+o}else{if(o.length==3){n++;o="00"}}return(m?"-":"")+n+"."+o};b.between=function(m,e){return(this>=m&&this<=e)};var l=String.prototype,d=/\s\s*$/,c=/^\s\s*/,h=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],f=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=/(?=.)&?([^&=]*)=?([^&]*)/g,a=/^(\d).*/,g=/^.+@[^\.].*\.[a-z]{2,}$/;l.rtrim=function(){return this.replace(d,"")};l.ltrim=function(){return this.replace(c,"")};l.trim=function(){return this.replace(c,"").replace(d,"")};l.startsWith=function(e){return(this.substr(0,e.length)==e)};l.endsWith=function(e){return(this.substr(this.length-e.length)==e)};l.format=function(){return this.toString()};l.queryAppend=function(p){var m=this.split("?"),n={},o=[];if(m[1]){m[1].replace(i,function(r,q,s){if(q){n[q]=s}})}p.replace(i,function(r,q,s){if(q){n[q]=s}});for(var e in n){o.push(n[e]?e+"="+n[e]:e)}o=o.join("&");return m[0]+(o.length?("?"+o):"")};l.toDate=function(){return Date.parse(this.toString())};l.toTime=function(){return new Time().parse(this.toString())};l.currencyFormat=b.currencyFormat;l.parseCurrency=function(){var e=this.match(a);return(e)?parseFloat(e[0]):0};l.isEmail=function(e){return this.match(g)!==null};String.parseUri=function(o){var n=f.exec(o),e=14,m={};while(e--){m[h[e]]=n[e]||""}m.queryKey={};m[h[12]].replace(i,function(q,p,r){if(p){m.queryKey[p]=r}});if(!m.file.length){m.file="index.cfm"}return m}})();(function(){var a=Function.prototype;a.callback=function(){var b=arguments,c=this;return function(){return c.apply(window,b)}};a.delegate=function(d,c,b){var e=this;return function(){var f=c||arguments;if(b){f=Array.prototype.concat.apply(arguments,c)}return e.apply(d||window,f)}};a.forEach=function(b,e,d){for(var c in b){if(typeof this.prototype[c]=="undefined"){e.call(d,b[c],c,b)}}}})();function forEach(a,d,b){if(a){var c=Object;if(a instanceof Function){c=Function}else{if(a.forEach instanceof Function){a.forEach(d,b);return}else{if(typeof a.length=="number"){c=Array}}}c.forEach(a,d,b)}}function isset(a){return(typeof a!=="undefined")}function Time(b,a){this.HH=0;this.MM=0;if(b){this.setHour(b)}if(a){this.setMinute(a)}}(function(){var c="invalid time";var b=Time.prototype,a="number",d="string";b.getHour=function(){return this.HH};b.getMinute=function(){return this.MM};b.setHour=function(f){var e=typeof f;if(e==a){this.HH=f}else{if(e==d){this.HH=parseInt(f,10)}}return this};b.setMinute=function(f){var e=typeof f;if(e==a){this.MM=f}else{if(e==d){this.MM=parseInt(f,10)}}return this};b.setTime=function(e,f){this.setHour(e);this.setMinute(f);return this};b.parse=function(e){if(e instanceof Time){this.HH=e.getHour();this.MM=e.getMinute()}else{if(typeof e==d){this.setHour(e.substring(0,2));this.setMinute(e.substring(3,5))}else{if(e instanceof Time){this.HH=e.getHour();this.MM=e.getMinute()}}}return this};b.incMinute=function(){this.MM++;if(this.MM>59){this.MM=0;this.incHour()}return this};b.decMinute=function(){this.MM--;if(this.MM<0){this.MM=59;this.decHour()}return this};b.incHour=function(){this.HH++;if(this.HH>23){this.HH=0}return this};b.decHour=function(){this.HH--;if(this.HH<0){this.HH=23}return this};b.localeCompare=function(e){return this.compareTo(e)};b.compareTo=function(e){if(this.HH!=e.getHour()){return this.HH-e.getHour()}if(this.MM!=e.getMinute()){return this.MM-e.getMinute()}return 0};b.toString=function(){var e="";if(this.HH<10){e+="0"}e+=this.HH;e+=":";if(this.MM<10){e+="0"}e+=this.MM;return e}})();Time.parse=function(d){d=d.toString();var a=d.length;if(a==2){if(validateInt(d,0,99)){d=parseInt(d,10);var b=Math.floor(d/60);return new Time(b,d-(b*60))}}else{if(a&&a<=5){var c=d.match(/^([0-2]?[0-9])[:]?([0-5][0-9])$/);if(c){c[1]=parseInt(c[1],10);c[2]=parseInt(c[2],10);if(c[1]<24){return new Time(c[1],c[2])}}}}return null};Date.locale={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:1,twoDigitYearMax:2029,formatPatterns:{shortDate:"dd/MM/yyyy",longDate:"dd MMMM yyyy",shortTime:"HH:mm",longTime:"HH:mm:ss",fullDateTime:"dd MMMM yyyy HH:mm:ss",sortableDateTime:"yyyy-MM-dd HH:mm:ss",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"dd MMMM",yearMonth:"MMMM yyyy"}};(function(){var c=Date,b=c.prototype,e=Number.prototype,a=false,d=c.locale,f=function(i,h){if(!h){h=2}return("000"+i).slice(h*-1)};b.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};b.setTimeToNow=function(){var h=new Date();this.setHours(h.getHours());this.setMinutes(h.getMinutes());this.setSeconds(h.getSeconds());this.setMilliseconds(h.getMilliseconds());return this};c.today=function(){return new Date().clearTime()};c.compare=function(i,h){return(i<h)?-1:(i>h)?1:0};c.equals=function(i,h){return(i.compareTo(h)===0)};b.dayDiff=function(i){var h=1000*60,j=h*60*24;return Math.floor((i.getTime()-i.getTimezoneOffset()*h)/j)-Math.floor((this.getTime()-this.getTimezoneOffset()*h)/j)};c.isLeapYear=function(h){return((h%4===0&&h%100!==0)||h%400===0)};c.getDaysInMonth=function(h,i){return[31,(c.isLeapYear(h)?29:28),31,30,31,30,31,31,30,31,30,31][i]};b.daysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth())};b.clone=function(){return new Date(this.getTime())};b.compareTo=b.localeCompare=function(h){return Date.compare(this,h)};b.equals=function(h){return Date.equals(this,h||new Date())};b.between=function(i,h){return this.getTime()>=i.getTime()&&this.getTime()<=h.getTime()};b.addMilliseconds=function(h){this.setMilliseconds(this.getMilliseconds()+h*1);return this};b.addSeconds=function(h){return this.addMilliseconds(h*1000)};b.addMinutes=function(h){return this.addMilliseconds(h*60000)};b.addHours=function(h){return this.addMilliseconds(h*3600000)};b.addDays=b.dayAdd=function(h){this.setDate(this.getDate()+h*1);return this};b.addWeeks=function(h){return this.addDays(h*7)};b.addMonths=function(h){var i=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+h*1);this.setDate(Math.min(i,c.getDaysInMonth(this.getFullYear(),this.getMonth())));return this};b.addYears=function(h){return this.addMonths(h*12)};b.add=function(i){if(typeof i=="number"){this._orient=i;return this}var h=i;if(h.milliseconds){this.addMilliseconds(h.milliseconds)}if(h.seconds){this.addSeconds(h.seconds)}if(h.minutes){this.addMinutes(h.minutes)}if(h.hours){this.addHours(h.hours)}if(h.weeks){this.addWeeks(h.weeks)}if(h.months){this.addMonths(h.months)}if(h.years){this.addYears(h.years)}if(h.days){this.addDays(h.days)}return this};var g=function(k,j,h,i){if(typeof k=="undefined"){return false}else{if(typeof k!="number"){throw new TypeError(k+" is not a Number.")}else{if(k<j||k>h){throw new RangeError(k+" is not a valid value for "+i+".")}}}return true};c.validateMillisecond=function(h){return g(h,0,999,"millisecond")};c.validateSecond=function(h){return g(h,0,59,"second")};c.validateMinute=function(h){return g(h,0,59,"minute")};c.validateHour=function(h){return g(h,0,23,"hour")};c.validateDay=function(i,h,j){return g(i,1,c.getDaysInMonth(h,j),"day")};c.validateMonth=function(h){return g(h,0,11,"month")};c.validateYear=function(h){return g(h,0,9999,"year")};b.set=function(h){if(c.validateMillisecond(h.millisecond)){this.addMilliseconds(h.millisecond-this.getMilliseconds())}if(c.validateSecond(h.second)){this.addSeconds(h.second-this.getSeconds())}if(c.validateMinute(h.minute)){this.addMinutes(h.minute-this.getMinutes())}if(c.validateHour(h.hour)){this.addHours(h.hour-this.getHours())}if(c.validateMonth(h.month)){this.addMonths(h.month-this.getMonth())}if(c.validateYear(h.year)){this.addYears(h.year-this.getFullYear())}if(c.validateDay(h.day,this.getFullYear(),this.getMonth())){this.addDays(h.day-this.getDate())}if(h.timezone){this.setTimezone(h.timezone)}if(h.timezoneOffset){this.setTimezoneOffset(h.timezoneOffset)}return this};b.moveToFirstDayOfMonth=function(){return this.set({day:1})};b.moveToLastDayOfMonth=function(){return this.set({day:c.getDaysInMonth(this.getFullYear(),this.getMonth())})};b.moveToNthOccurrence=function(i,j){var h=0;if(j>0){h=j-1}else{if(j===-1){this.moveToLastDayOfMonth();if(this.getDay()!==i){this.moveToDayOfWeek(i,-1)}return this}}return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(i,+1).addWeeks(h)};b.moveToDayOfWeek=function(h,i){var j=(h-this.getDay()+7*(i||+1))%7;return this.addDays((j===0)?j+=7*(i||+1):j)};b.moveToMonth=function(j,h){var i=(j-this.getMonth()+12*(h||+1))%12;return this.addMonths((i===0)?i+=12*(h||+1):i)};b.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/86400000)+1};b.getTimezone=function(){return c.getTimezoneAbbreviation(this.getUTCOffset())};b.setTimezoneOffset=function(j){var h=this.getTimezoneOffset(),i=Number(j)*-6/10;return this.addMinutes(i-h)};b.setTimezone=function(h){return this.setTimezoneOffset(c.getTimezoneOffset(h))};b.hasDaylightSavingTime=function(){return(Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset())};b.isDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!=this.getTimezoneOffset()};b.getUTCOffset=function(){var i=this.getTimezoneOffset()*-10/6,h;if(i<0){h=(i-10000).toString();return h.charAt(0)+h.substr(2)}else{h=(i+10000).toString();return"+"+h.substr(1)}};b.getElapsed=function(h){return(h||new Date())-this};b._toString=b.toString;b.toString=function(j){var h=this;if(j&&j.length==1){var k=d.formatPatterns;h.t=h.toString;switch(j){case"d":return h.t(k.shortDate);case"D":return h.t(k.longDate);case"F":return h.t(k.fullDateTime);case"m":return h.t(k.monthDay);case"r":return h.t(k.rfc1123);case"s":return h.t(k.sortableDateTime);case"t":return h.t(k.shortTime);case"T":return h.t(k.longTime);case"y":return h.t(k.yearMonth)}}var i=function(l){switch(l*1){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};return j?j.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(l){if(l.charAt(0)==="\\"){return l.replace("\\","")}h.h=h.getHours;switch(l){case"hh":return f(h.h()<13?(h.h()===0?12:h.h()):(h.h()-12));case"h":return h.h()<13?(h.h()===0?12:h.h()):(h.h()-12);case"HH":return f(h.h());case"H":return h.h();case"mm":return f(h.getMinutes());case"m":return h.getMinutes();case"ss":return f(h.getSeconds());case"s":return h.getSeconds();case"yyyy":return f(h.getFullYear(),4);case"yy":return f(h.getFullYear());case"dddd":return d.dayNames[h.getDay()];case"ddd":return d.abbreviatedDayNames[h.getDay()];case"dd":return f(h.getDate());case"d":return h.getDate();case"MMMM":return d.monthNames[h.getMonth()];case"MMM":return d.abbreviatedMonthNames[h.getMonth()];case"MM":return f((h.getMonth()+1));case"M":return h.getMonth()+1;case"t":return h.h()<12?d.amDesignator.substring(0,1):d.pmDesignator.substring(0,1);case"tt":return h.h()<12?d.amDesignator:d.pmDesignator;case"S":return i(h.getDate());default:return l}}):this._toString()};b.toShortDateString=b.format=function(){return this.toString(d.formatPatterns.shortDate)};b.toLongDateString=function(){return this.toString(d.formatPatterns.longDate)};b.toShortTimeString=function(){return this.toString(d.formatPatterns.shortTime)};b.toLongTimeString=function(){return this.toString(d.formatPatterns.longTime)};b.sqlFormat=function(){return this.toString(d.formatPatterns.sortableDateTime)};b.toTime=function(){return new Time().setTime(this.getHours(),this.getMinutes())};c.parse=function(i){if(i.length<3){return null}var j,h=Date.today();i=i.replace(/[-.]/g,"/");if(!i.match(/^[0-9][0-9\/]+/)){return null}if(~i.indexOf("/")){j=i.split("/")}else{j=i.match(/[0-9]{1,2}/g);if(j[3]){j[2]=j[2]+j[3];j.splice(3,1)}}if(j.length<2){return null}j=Array.map(j,function(k){return parseInt(k,10)});if(!isNaN(j[2])){if(j[2]<1000){j[2]+=(j[2]<50)?2000:1900}h.setFullYear(j[2])}if(!j[1].between(1,12)){return null}h.setMonth(--j[1],1);if(!j[0].between(1,h.daysInMonth())){return null}h.setDate(j[0]);return h}}());function Region(d,e,a,c){this.top=d;this[1]=d;this.right=e;this.bottom=a;this.left=c;this[0]=c}(function(){var a=Region.prototype;a.contains=function(b){return(b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom)};a.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};a.intersect=function(g){var e=Math.max(this.top,g.top);var f=Math.min(this.right,g.right);var c=Math.min(this.bottom,g.bottom);var d=Math.max(this.left,g.left);if(c>=e&&f>=d){return new Region(e,f,c,d)}else{return null}};a.union=function(g){var e=Math.min(this.top,g.top);var f=Math.max(this.right,g.right);var c=Math.max(this.bottom,g.bottom);var d=Math.min(this.left,g.left);return new Region(e,f,c,d)};a.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}")}})();Region.getRegion=function(e){var g=dom.getXY(e);var d=g[1];var f=g[0]+e.offsetWidth;var a=g[1]+e.offsetHeight;var c=g[0];return new Region(d,f,a,c)};function Point(a,b){if(JS.isArray(a)){b=a[1];a=a[0]}this.x=this.right=this.left=this[0]=a;this.y=this.top=this.bottom=this[1]=b}Point.prototype=new Region();Point.prototype.compare=function(a){return new Point(this.x-a.x,this.y-a.y)};function Bezier(e,d){var f=e.length,c=[],b=0,a=1;for(;b<f;++b){c[b]=[e[b][0],e[b][1]]}for(;a<f;++a){for(b=0;b<f-a;++b){c[b][0]=(1-d)*c[b][0]+d*c[parseInt(b+1,10)][0];c[b][1]=(1-d)*c[b][1]+d*c[parseInt(b+1,10)][1]}}return[c[0][0],c[0][1]]}Color={rgb2hex:function(d,c,a){return this.toHex(d)+this.toHex(c)+this.toHex(a)},hexchars:"0123456789ABCDEF",toHex:function(a){a=a||0;a=parseInt(a,10);if(isNaN(a)){a=0}a=Math.round(Math.min(Math.max(0,a),255));return this.hexchars.charAt((a-a%16)/16)+this.hexchars.charAt(a%16)},toDec:function(a){return this.hexchars.indexOf(a.toUpperCase())},hex2rgb:function(b){var a=[];a[0]=(this.toDec(b.substr(0,1))*16)+this.toDec(b.substr(1,1));a[1]=(this.toDec(b.substr(2,1))*16)+this.toDec(b.substr(3,1));a[2]=(this.toDec(b.substr(4,1))*16)+this.toDec(b.substr(5,1));return a},isValidRGB:function(b){if((!b[0]&&b[0]!=0)||isNaN(b[0])||b[0]<0||b[0]>255){return false}if((!b[1]&&b[1]!=0)||isNaN(b[1])||b[1]<0||b[1]>255){return false}if((!b[2]&&b[2]!=0)||isNaN(b[2])||b[2]<0||b[2]>255){return false}return true}};if(!this.JSON){(function(){JSON={};function d(f){return f<10?"0"+f:f}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(f){return this.getUTCFullYear()+"-"+d(this.getUTCMonth()+1)+"-"+d(this.getUTCDate())+"T"+d(this.getUTCHours())+":"+d(this.getUTCMinutes())+":"+d(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(f){return this.valueOf()}}var c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,g=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,h,b,j={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},i;function a(f){g.lastIndex=0;return g.test(f)?'"'+f.replace(g,function(k){var l=j[k];if(typeof l==="string"){return l}return"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+f+'"'}function e(r,o){var m,l,s,f,p=h,n,q=o[r];if(q&&typeof q==="object"&&typeof q.toJSON==="function"){q=q.toJSON(r)}if(typeof i==="function"){q=i.call(o,r,q)}switch(typeof q){case"string":return a(q);case"number":return isFinite(q)?String(q):"null";case"boolean":case"null":return String(q);case"object":if(!q){return"null"}h+=b;n=[];if(typeof q.length==="number"&&!q.propertyIsEnumerable("length")){f=q.length;for(m=0;m<f;m+=1){n[m]=e(m,q)||"null"}s=n.length===0?"[]":h?"[\n"+h+n.join(",\n"+h)+"\n"+p+"]":"["+n.join(",")+"]";h=p;return s}if(i&&typeof i==="object"){f=i.length;for(m=0;m<f;m+=1){l=i[m];if(typeof l==="string"){s=e(l,q);if(s){n.push(a(l)+(h?": ":":")+s)}}}}else{for(l in q){if(Object.hasOwnProperty.call(q,l)){s=e(l,q);if(s){n.push(a(l)+(h?": ":":")+s)}}}}s=n.length===0?"{}":h?"{\n"+h+n.join(",\n"+h)+"\n"+p+"}":"{"+n.join(",")+"}";h=p;return s}}JSON.stringify=function(m,k,l){var f;h="";b="";if(typeof l==="number"){for(f=0;f<l;f+=1){b+=" "}}else{if(typeof l==="string"){b=l}}i=k;if(k&&typeof k!=="function"&&(typeof k!=="object"||typeof k.length!=="number")){throw new Error("JSON.stringify")}return e("",{"":m})};JSON.parse=function(m,f){var l;function k(q,p){var o,n,r=q[p];if(r&&typeof r==="object"){for(o in r){if(Object.hasOwnProperty.call(r,o)){n=k(r,o);if(n!==undefined){r[o]=n}else{delete r[o]}}}}return f.call(q,p,r)}c.lastIndex=0;if(c.test(m)){m=m.replace(c,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})}l=eval("("+m+")");return typeof f==="function"?k({"":l},""):l}})()}(function(){var ua=navigator.userAgent,p=navigator.platform||ua,env=(window.Env={});env.win=~p.indexOf("Win");env.ie=
/*@cc_on!@*/
false;if(env.ie){if(document.documentMode){env.ie=document.documentMode}else{var re=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(re.exec(ua)!==null){env.ie=parseFloat(RegExp.$1)}}}env.legacy=env.ie&&env.ie<7;env.opera=!!window.opera;env.webkit=~ua.indexOf("WebKit")?parseFloat(ua.replace(/^.*WebKit\/(\d+(\.\d+)?).*$/,"$1")):false;env.mobile=~ua.indexOf("Mobile");env.khtml=(~ua.indexOf("Konqueror")||~ua.indexOf("HTML"))&&!env.webkit;env.gecko=!!window.controllers;env.isHost=(window==top);function boot(){if(!arguments.callee.called){window.onload=null;arguments.callee.called=true;Queue.parse("boot")}}if(env.ie){document.write("<script id=__ready defer src=//:><\/script>");document.all.__ready.onreadystatechange=function(){if(this.readyState=="complete"){this.removeNode(true);boot()}}}else{if(env.khtml||(env.opera&&parseInt(opera.version(),10)<9||(env.webkit&&env.webkit<525))){(function(){var st=document.readyState;if(st=="loaded"||st=="complete"){boot()}else{setTimeout(arguments.callee,10)}})()}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",boot,false)}}}window.onload=boot})();if(window.HTMLElement){(function(){var a=HTMLElement.prototype;if(!a.insertAdjacentElement){a.insertAdjacentElement=function(b,c){switch(b.toLowerCase()){case"beforebegin":return this.parentNode.insertBefore(c,this);case"afterbegin":return this.insertBefore(c,this.firstChild);case"beforeend":return this.appendChild(c);case"afterend":return this.parentNode.insertBefore(c,this.nextSibling)}return null}}if(!a.swapNode){a.swapNode=function(c){var d=c.nextSibling,b=c.parentNode;if(d==this){b.insertBefore(this,c)}else{if(c==this.nextSibling){b.insertBefore(c,this)}else{this.parentNode.replaceChild(c,this);b.insertBefore(this,d)}}}}if(!a.removeNode){a.removeNode=function(){return this.parentNode.removeChild(this)}}if(!a.contains){a.contains=function(b){return Boolean(b==this||(b&&this.contains(b.parentNode)))}}})()}if(!Env.ie&&window.Element&&!Element.prototype.selectNodes){(function(){var c=Document.prototype,b=Element.prototype;function a(k,l,h){var j=k.evaluate(l,h,k.createNSResolver(k.documentElement),XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),f=[],g=0,e=j.snapshotLength;for(;g<e;g++){f[g]=j.snapshotItem(g)}return f}if(window.XPathResult){c.selectNodes=b.selectNodes=function(f){var e=this.ownerDocument;return e.selectNodes?a(e,f,this):null};c.selectSingleNode=b.selectSingleNode=function(f){var e=this.ownerDocument;return(e.selectSingleNode)?e.evaluate(f,this,e.createNSResolver(e.documentElement),XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue:null}}else{var d=function(e,f){e=e.replace(/^\/\//g,"");if(!e.indexOf("/")){f=f.documentElement;e=e.replace(/^\/\w*/,"");if(!e){return[f]}}e=e.replace(/\/\//g," ");e=e.replace(/\//g,">");e=e.replace(/\[([^@].*?)\]/g,function(h,g){return":has("+g+")"});return cssQuery(e,f)};c.selectNodes=b.selectNodes=function(e){return d(e,this)};c.selectSingleNode=b.selectSingleNode=function(f){var e=d(f,this);return e.length?e[0]:null}}})()}if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){var a=["Mxsml2.XMLHTTP.3.0","Msxml2.XMLHTTP"],c=0;for(;c<2;c++){try{return new ActiveXObject(a[c])}catch(b){}}return null}}JS={eval:function(code){return eval(code)},keys:{UNDEFINED:0,RIGHT_ALT:18,LEFT_ALT:18,LEFT_CONTROL:17,RIGHT_CONTROL:17,LEFT_SHIFT:16,RIGHT_SHIFT:16,META:157,BACK_SPACE:8,CAPS_LOCK:20,DELETE:46,END:35,ENTER:13,ESCAPE:27,HOME:36,NUM_LOCK:144,PAUSE:19,PRINTSCREEN:154,SCROLL_LOCK:145,SPACE:32,TAB:9,LEFT:37,RIGHT:39,UP:38,DOWN:40,PAGE_DOWN:34,PAGE_UP:33}};(function(){var b=JS,a=Object.prototype,e=["Array","Function","Date"],d=["toString","valueOf"],c={isBoolean:function(f){return typeof f==="boolean"},isNull:function(f){return f===null},isNumber:function(f){return typeof f==="number"&&isFinite(f)},isObject:function(f){return(f&&(typeof f==="object"||b.isFunction(f)))||false},isString:function(f){return typeof f==="string"},undef:function(f){return typeof f==="undefined"},_IEEnumFix:(Env.ie)?function(j,h){for(var g=0,l,k;g<2;g++){l=d[g];k=h[l];if(b.isFunction(k)&&k!=a[l]){j[l]=k}}}:function(){},extend:function(j,k,h){var g=function(){},f;g.prototype=k.prototype;j.prototype=new g();j.prototype.constructor=j;j.superclass=k.prototype;if(k.prototype.constructor==a.constructor){k.prototype.constructor=k}if(h){for(f in h){if(b.hasOwnProperty(h,f)){j.prototype[f]=h[f]}}b._IEEnumFix(j.prototype,h)}},augmentObject:function(k,j){var f=arguments,h,l,g=f[2];if(g&&g!==true){for(h=2;h<f.length;h=h+1){k[f[h]]=j[f[h]]}}else{for(l in j){if(g||!(l in k)){k[l]=j[l]}}b._IEEnumFix(k,j)}return k},augmentProto:function(k,j){var g=[k.prototype,j.prototype],h=2,f=arguments.length;for(;h<f;h++){g.push(arguments[h])}b.augmentObject.apply(this,g);return k},augmentTree:function(g,j,h){var i,f=false;h=(h===true||h===1);for(i in j){f=h||(typeof g[i]==="undefined");if(typeof j[i]=="object"){if(f){g[i]={}}arguments.callee(g[i],j[i],h)}else{if(f){g[i]=j[i]}}}return g},merge:function(){var j={},g=arguments,h=0,f=g.length;for(;h<f;h++){b.augmentObject(j,g[h],true)}return j},bool:function(f){switch(typeof f){case"boolean":return f;case"number":return f!==0;case"string":return f.toLowerCase()!="false"&&f!="0";case"undefined":return false}return Boolean(f)},members:function(g){var h=[];for(var f in g){h.push(f)}return h},apply:function(g,f){return b.augmentObject(g,f,true)},isValue:function(f){return(b.isObject(f)||b.isString(f)||b.isNumber(f)||b.isBoolean(f))}};b.hasOwnProperty=(a.hasOwnProperty)?function(f,g){return f&&f.hasOwnProperty(g)}:function(f,g){return !b.undef(f[g])&&f.constructor.prototype[g]!==f[g]};Array.forEach(e,function(f){b["is"+f]=function(g){return a.toString.apply(g)==="[object "+f+"]"}});c.augmentObject(b,c,true);b.augment=b.augmentProto;b.fromHtmlEditFormat=function(f){return f.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quote;/g,'"')}})();function $(a){return typeof a=="string"?document.getElementById(a):a}function $$(a,b){return Array.make(($(b)||document).getElementsByTagName(a))}(function(){var l=window.document,j,i,c=Env.opera,k=Env.webkit,g=Env.ie,a=0,b="dom-toggle",p=/body|html/i,o=/^(?:inline|table-row)$/i,f={},n={TABLE:"table",TD:"table-cell",TR:"table-row"},e=[null,["Μήνυμα",null,"success"],["Σφάλμα","red","alert"],["Εσωτερικό σφάλμα","red","block"],["Πληροφορία",null,"info"],["Λάθος παράμετροι","yellow","warn"]],m=function(r){var q=f[r];if(!q){q=new RegExp("(?:^|\\s+)"+r+"(?:\\s+|$)");f[r]=q}return q};if(l.defaultView&&l.defaultView.getComputedStyle){j=function(q,t){var s=null,r=q.ownerDocument.defaultView.getComputedStyle(q,"");if(t=="float"){t="cssFloat"}if(r){s=r[t]}return q.style[t]||s}}else{if(l.documentElement.currentStyle&&g){j=function(q,r){if(r=="opacity"){var t=100;try{t=q.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(s){try{t=q.filters("alpha").opacity}catch(s){}}return t/100}if(r=="float"){r="styleFloat"}return(q.style[r]||(q.currentStyle?q.currentStyle[r]:null))}}else{j=function(q,r){return q.style[r]}}}if(g){i=function(q,r,s){if(r=="opacity"){if(typeof q.style.filter=="string"){if(s!=1){q.style.filter="alpha(opacity="+s*100+")"}else{q.style.removeAttribute("filter")}if(!q.currentStyle||!q.currentStyle.hasLayout){q.style.zoom=1}}}else{q.style[r=="float"?"styleFloat":r]=s}}}else{i=function(q,r,s){q.style[r=="float"?"cssFloat":r]=s}}function d(q,r){return q&&q.nodeType==1&&(!r||r(q))}dom={add:function(q,u,r,s){var t=l.createElement(q);if(u){t.id=u}if(r){t.className=r}return(s||l.body).appendChild(t)},trash:function(r,q){r=$(r);if(!q){Behavior.remove(r)}Event.purgeElement(r,true);r.parentNode.removeChild(r)},getStyle:function(q,s){var r=function(t){return j(t,s)};return dom.batch(q,r,dom,true)},_getStyle:j,setStyle:function(q,s,t){var r=function(u){i(u,s,t)};dom.batch(q,r,dom,true)},_setStyle:i,getXY:function(q){var r=function(s){if((s.parentNode===null||s.offsetParent===null||dom.getStyle(s,"display")=="none")&&s!=s.ownerDocument.body){return false}return h(s)};return dom.batch(q,r,dom,true)},getX:function(q){var r=function(s){return dom.getXY(s)[0]};return dom.batch(q,r,dom,true)},getY:function(q){var r=function(s){return dom.getXY(s)[1]};return dom.batch(q,r,dom,true)},setXY:function(q,t,s){var r=function(w){var v=this.getStyle(w,"position"),y,x,u;if(v=="static"){w.style.position="relative";v="relative"}y=this.getXY(w);if(y===false){return}x=[parseInt(this.getStyle(w,"left"),10),parseInt(this.getStyle(w,"top"),10)];if(isNaN(x[0])){x[0]=(v=="relative")?0:w.offsetLeft}if(isNaN(x[1])){x[1]=(v=="relative")?0:w.offsetTop}if(t[0]!==null){w.style.left=t[0]-y[0]+x[0]+"px"}if(t[1]!==null){w.style.top=t[1]-y[1]+x[1]+"px"}if(!s){u=this.getXY(w);if((t[0]!==null&&u[0]!=t[0])||(t[1]!==null&&u[1]!=t[1])){this.setXY(w,t,true)}}};dom.batch(q,r,dom,true)},setX:function(r,q){dom.setXY(r,[q,null])},setY:function(q,r){dom.setXY(q,[null,r])},getRegion:function(q){var r=function(s){if((s.parentNode===null||s.offsetParent===null||this.getStyle(s,"display")=="none")&&s!=s.ownerDocument.body){return false}var t=Region.getRegion(s);return t};return dom.batch(q,r,dom,true)},classAdd:function(r,q){var s=function(t){if(this.hasClass(t,q)){return false}t.className=[t.className,q].join(" ").trim();return true};return dom.batch(r,s,dom,true)},classRemove:function(s,r){var q=m(r),t=function(u){if(!r||!this.hasClass(u,r)){return false}var v=u.className;u.className=v.replace(q," ");if(this.hasClass(u,r)){this.classRemove(u,r)}u.className=u.className.trim();return true};return dom.batch(s,t,dom,true)},hasClass:function(s,r){var q=m(r),t=function(u){return q.test(u.className)};return dom.batch(s,t,dom,true)},generateId:function(q,s){s=s||"v8-gen-";var r=function(t){t=t?t:{};if(t&&t.id){return t.id}t.id=s+(++a);return t.id};return dom.batch(q,r,dom,true)||r.apply(dom,arguments)},isAncestor:function(q,r){q=$(q);r=$(r);if(!q||!r){return false}if(q.contains&&r.nodeType&&!k){return q.contains(r)}else{if(q.compareDocumentPosition&&r.nodeType){return !!(q.compareDocumentPosition(r)&16)}else{if(r.nodeType){return !!this.getAncestorBy(r,function(s){return s==q})}}}return false},batch:function(t,w,v,r){t=(t&&(t.tagName||t.item))?t:$(t);if(!t||!w){return false}var s=(r)?v:window;if(t.tagName||t.length===undefined){return w.call(s,t,v)}var u=new Array(t.length),q=0;while(t[q]){u[q]=w.call(s,t[q++],v)}return u},getDocumentHeight:function(){return Math.max(l.documentElement.scrollHeight,dom.getViewportHeight())},getDocumentWidth:function(){return Math.max(l.documentElement.scrollWidth,dom.getViewportWidth())},getViewportHeight:function(){if((l.compatMode||g)&&!c){return function(){return l.documentElement.clientHeight}}else{return function(){return self.innerHeight}}}(),getViewportWidth:function(){return(l.compatMode||g)?l.documentElement.clientWidth:self.innerWidth},getAncestorBy:function(q,r){while((q=q.parentNode)){if(d(q,r)){return q}}return null},getScroll:function(q){return{top:this.getDocumentScrollTop(q),left:this.getDocumentScrollLeft(q)}},getDocumentScrollLeft:function(q){q=q||l;return Math.max(q.documentElement.scrollLeft,q.body.scrollLeft)},getDocumentScrollTop:function(q){q=q||l;return Math.max(q.documentElement.scrollTop,q.body.scrollTop)},nextNode:function(q){do{q=q.nextSibling}while(q&&q.nodeType!=1);return q},prevNode:function(q){do{q=q.previousSibling}while(q&&q.nodeType!=1);return q},firstChild:function(q){q=q.firstChild;if(q.nodeType==1){return q}else{return this.nextNode(q)}},xmlText:function(){if(g){return function(q){return q.text}}else{return function(q){return q.textContent}}}(),xmlSerialize:function(q){if(typeof XMLSerializer!="undefined"){return(new XMLSerializer()).serializeToString(q)}else{if(q.xml){return q.xml}}return null},xmlParse:function(q){if(window.DOMParser){return(new DOMParser()).parseFromString(q,"text/xml").documentElement}else{if(g){var r=new ActiveXObject("Microsoft.XMLdom");r.async="false";r.loadXML(q);return r.documentElement}}return null},cssAdd:function(){if(!l.styleSheets){return function(){}}if(g){return function(t){var s=l.styleSheets[0],r=0,q=t.length;for(;r<q;r+=2){s.addRule(t[r],t[r+1])}}}else{return function(t){var s=l.styleSheets[0],r=0,q=t.length;for(;r<q;r+=2){s.insertRule(t[r]+"{"+t[r+1]+"}",0)}}}}(),hide:function(){var q=arguments.length;while(q--){$(arguments[q]).style.display="none"}},show:function(){if(g){return function(){var q=arguments.length;while(q--){$(arguments[q]).style.display="block"}}}else{return function(){var q=arguments.length,r;while(q--){r=$(arguments[q]);r.style.display=n[r.tagName]||"block"}}}}(),toggle:function(){var q=arguments.length,r;while(q--){r=$(arguments[q]);if(!dom.dataExists(r,b)){dom.data(r,b,j(r,"display"))}if(j(r,"display")=="none"){if(dom.data(r,b)!="none"){r.style.display=""}else{dom.show(r)}}else{dom.hide(r)}}},fadeOut:function(q,r){if(!r){r=0.5}q=$(q);var s=new Anim(q,{opacity:{from:parseFloat(j(q,"opacity")),to:0}},r,Easing.easeOut);s.onComplete.subscribe(function(){if(g){q.style.removeAttribute("filter")}dom.hide(q)});s.animate()},fadeIn:function(r,s){r=$(r);i(r,"opacity",0);dom.show(r);var q=new Anim(r,{opacity:{from:0,to:1}},s||0.75,Easing.easeOut);q.animate()},fadeInOut:function(q,r,s){if(!s){s=0.5}r=$(r);var t=new Anim(r,{opacity:{from:parseFloat(j(r,"opacity")),to:0}},s,Easing.easeOut);t.onComplete.subscribe(dom.fadeInOutEnd.callback($(q),r,s));t.animate()},fadeInOutEnd:function(q,s,t){dom._setStyle(q,"opacity",0);dom.show(q);dom.hide(s);dom._setStyle(s,"opacity",1);var r=new Anim(q,{opacity:{from:0,to:1}},t,Easing.easeOut);r.animate()},focusTo:null,setFocus:function(q){var r=q||dom.focusTo;this.focusTo=null;if(!r||r.disabled||r.readOnly){return false}try{if(r.select){r.select()}if(r.length&&r.type!="select-one"){if(r[0].focus){r[0].focus()}}else{if(r.focus){r.focus()}}return true}catch(s){return false}},focus:function(r){for(var s=0,t=cssQuery("input.text,select,textarea,button",r||l.body),q=t.length;s<q;s++){if(dom.setFocus(t[s])){break}}},hideHeavy:function(r,q){Array.forEach($$("select",q),function(s){s.style.visibility=r?"hidden":"visible"})},selectText:function(q){return q[q.selectedIndex].text},formPost:function(q){if(!q.onsubmit||q.onsubmit()){q.submit()}return false},radioSet:function(r,s){if(!r.length){r.checked=(r.value==s)}else{var q=r.length;while(q--){r[q].checked=(r[q].value==s)}}},addOption:function(r,x,y,t){var w=(g?-1:null),q=l.createElement("option"),u=0,s,v;q.value=x;q.text=y;if(t){for(v=r.options.length;u<v;){s=r.options[u++];if(s.text>y){w=u;break}}s=null;r.add(q,(g?w:r.options[w]))}else{r.add(q,w)}return q},delOption:function(r,u){var t=null,s=0,q=r.options.length;for(;s<q;s++){t=r.options[s];if(t.value==u){break}}return t?r.remove(s):null},confirm:function(r){var s=app.row,q=confirm(r);app.row=s;return q},panel:function(r,s,q){v8.Panel.show('<div class="msg"><img src="http://images.hiphop.gr/'+v8.icons[e[r][2]]+'" alt="" /> '+decodeURIComponent(s)+"</div>")},console:function(q,r){Dialog.open(r,{id:"console-msg",header:e[q][0],headerClass:e[q][1],icon:v8.icons[e[q][2].toLowerCase()],buttons:[{label:"Close"}]})}};var h=function(){if(l.documentElement.getBoundingClientRect){return function(r){var s=r.getBoundingClientRect(),q=r.ownerDocument.documentElement;return[s.left+q.scrollLeft,s.top+q.scrollTop]}}else{return function(s){var t=[s.offsetLeft,s.offsetTop],r=s.offsetParent,q=(k&&s.style.position=="absolute"&&s.offsetParent==s.ownerDocument.body);if(r!=s){while(r){t[0]+=r.offsetLeft+parseFloat(j(r,"borderLeftWidth"));t[1]+=r.offsetTop+parseFloat(j(r,"borderTopWidth"));if(!q&&k&&r.style.position=="absolute"){q=true}r=r.offsetParent}}if(q){t[0]-=s.ownerDocument.body.offsetLeft;t[1]-=s.ownerDocument.body.offsetTop}r=s.parentNode;while(r.tagName&&!p.test(r.tagName)){if(r.scrollTop||r.scrollLeft){if(!o.test(dom.getStyle(r,"display"))){if(!c||dom.getStyle(r,"overflow")!=="visible"){t[0]-=r.scrollLeft;t[1]-=r.scrollTop}}}r=r.parentNode}return t}}}();(function(){var r=0,s="data-uid",q={};dom.dataCache=function(t){return t?q[t[s]]:q};dom.data=function(u,t,v){var w=0;if(u!==window){w=u[s];if(!w){w=u[s]=++r}}if(!q[w]){q[w]={}}if(v!==undefined){q[w][t]=v}return t?q[w][t]:w};dom.dataExists=function(u,t){var v=(u===window)?0:u[s];return(v!==undefined&&q[v]&&q[v][t])};dom.dataSet=function(u,t,v){return this.dataExists(u,t)?this.data(u,t):this.data(u,t,v)};dom.dataClear=function(u,t){var w=(u===window)?0:u[s];if(t){if(q[w]){delete q[w][t];t="";for(t in q[w]){break}if(!t){dom.dataClear(u)}}}else{if(u!==window){try{delete u[s]}catch(v){if(u.removeAttribute){u.removeAttribute(s)}}}delete q[w]}}})();(function(){var y=0,u=window.dom,z="events",s={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},v=JS.isArray;function q(A){if(!A){return false}if(A.tagName){return false}else{if(v(A)){return true}}return(typeof A!=="string"&&typeof A.length!=="undefined"&&!A.alert&&typeof A[0]!=="undefined")}function x(B){try{if(B&&3==B.nodeType){return B.parentNode}}catch(A){}return B}function t(D,G){if(!u.dataExists(D,z)){return}var C=u.data(D,z);if(C){var B,F,E=[];if(G){if(C[G]){for(B in C[G]){E.push(C[G][B])}return E}}else{for(var A in C){for(B in C[A]){E.push(C[A][B])}}return E}}return null}function r(G){var H=t(window,"unload"),D=0,A,F,C;if(H){for(A=H.length;D<A;D++){F=H[D];if(F){C=window;if(F[4]){C=F[4]===true?F[3]:F[4]}F[2].call(C,w(G,F[0]),F[3]);H[D]=null}}F=C=H=null}var B=u.dataCache();for(D in B){if(D>0&&B[D][z]){for(var E in B[D][z]){for(F in B[D][z][E]){Event.purgeElement(B[D][z][E][F][0]);break}break}}}Event._simpleRemove(window,"unload",r)}function w(C,A){var B=C||window.event;if(!B){var D=w.caller;while(D){B=D.arguments[0];if(B&&Event==B.constructor){break}D=D.caller}}return B}Event={addListener:function(C,A,J,E,I){if(typeof C=="string"){C=$(C)}else{if(q(C)){for(var F=0,G=C.length;F<G;F++){this.on(C[F],A,J,E,I)}return}}if(C&&C.nodeType!=3&&C.nodeType!=8){var B=C,K=u.dataSet(C,z,{});if(I){B=I===true?E:I}if(!J.guid){J.guid=y++}if(!K[A]){K[A]={}}if(!K[A][J.guid]){var D=function(L){return J.call(B,w(L,C),E)};K[A][J.guid]=[C,A,J,D,B,E,I];if(A!="unload"){try{this._simpleAdd(C,A,D)}catch(H){this.removeListener(C,A,J)}}}}},removeListener:function(B,A,H){if(typeof B=="string"){B=$(B)}else{if(q(B)){for(var C=0,D=B.length;C<D;C++){this.removeListener(B[C],A,H)}return}}if(B&&B.nodeType!=3&&B.nodeType!=8){if(!H||!H.call){return this.purgeElement(B,false,A)}var I=u.data(B,z);if(I&&I[A]){var G=I[A][H.guid];if(G){if(A!="unload"){try{this._simpleRemove(B,A,G[3])}catch(F){}}delete I[A][H.guid];for(var E in I[A]){break}if(!E){delete I[A]}E=null;for(E in I){break}if(!E){u.dataClear(B,z)}}}}},purgeElement:function(D,F,G){D=$(D);var C=t(D,G),B,A,E;if(C){for(B=C.length-1;B>-1;B--){E=C[B];this.removeListener(D,E[1],E[2])}}if(F&&D&&D.childNodes){for(B=0,A=D.childNodes.length;B<A;B++){if(D.childNodes[B].nodeType!=3&&D.childNodes[B].nodeType!=8){this.purgeElement(D.childNodes[B],1,G)}}}},_simpleAdd:function(){if(window.addEventListener){return function(B,C,A){B.addEventListener(C,A,false)}}else{if(window.attachEvent){return function(B,C,A){B.attachEvent("on"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(B,C,A){B.removeEventListener(C,A,false)}}else{if(window.detachEvent){return function(B,C,A){B.detachEvent("on"+C,A)}}else{return function(){}}}}(),fire:function(){if(window.addEventListener){return function(B,D){var A=(~D.indexOf("mouse")||D=="click")?"MouseEvents":"Events",C=l.createEvent(A);C.initEvent(D,false,true);B.dispatchEvent(C)}}else{return function(A,B){A.fireEvent("on"+B)}}}(),getTarget:function(B){var A=B.target||B.srcElement;return x(A)},getPageX:function(B){var A=B.pageX;if(!A&&0!==A){A=B.clientX||0;if(Env.ie){A+=u.getDocumentScrollLeft()}}return A},getPageY:function(A){var B=A.pageY;if(!B&&0!==B){B=A.clientY||0;if(Env.ie){B+=u.getDocumentScrollTop()}}return B},getXY:function(A){return[this.getPageX(A),this.getPageY(A)]},getRelatedTarget:function(B){var A=B.relatedTarget;if(!A){if(B.type=="mouseout"){A=B.toElement}else{if(B.type=="mouseover"){A=B.fromElement}}}return x(A)},stopEvent:function(A){this.stopPropagation(A);this.preventDefault(A)},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}},preventDefault:function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},getCharCode:function(B){var A=B.keyCode||B.charCode||0;if(Env.webkit&&(A in s)){A=s[A]}return A},keyNav:function(B){var A=Event.getCharCode(B);if(A>=37&&A<=40){Event.preventDefault(B)}}};Event.on=Event.addListener;Event._simpleAdd(window,"unload",r)})()})();(function(){var l=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,h=JS.isArray,a=Array.make;var b=function(s,o,v,w){v=v||[];o=$(o)||document;if(o.nodeType!==1&&o.nodeType!==9){return[]}if(!s||typeof s!=="string"){return v}var t=[],q,z,C,n,x,p,r=true;l.lastIndex=0;while((q=l.exec(s))!==null){t.push(q[1]);if(q[2]){p=RegExp.rightContext;break}}if(t.length>1&&g.exec(s)){if(t.length===2&&c.relative[t[0]]){z=d(t[0]+t[1],o)}else{z=c.relative[t[0]]?[o]:b(t.shift(),o);while(t.length){s=t.shift();if(c.relative[s]){s+=t.shift()}z=d(s,z)}}}else{var y=w?{expr:t.pop(),set:a(w)}:b.find(t.pop(),t.length===1&&o.parentNode?o.parentNode:o,k(o));z=b.filter(y.expr,y.set);if(t.length>0){C=a(z)}else{r=false}while(t.length){var B=t.pop(),A=B;if(!c.relative[B]){B=""}else{A=t.pop()}if(A==null){A=o}c.relative[B](C,A,k(o))}}if(!C){C=z}if(!C){throw error+(B||s)}if(h(C)){if(!r){v.push.apply(v,C)}else{if(o.nodeType===1){for(var u=0;C[u]!=null;u++){if(C[u]&&(C[u]===true||C[u].nodeType===1&&e(o,C[u]))){v.push(z[u])}}}else{for(var u=0;C[u]!=null;u++){if(C[u]&&C[u].nodeType===1){v.push(z[u])}}}}}else{a(C,v)}if(p){b(p,o,v,w);if(sortOrder){hasDuplicate=false;v.sort(sortOrder);if(hasDuplicate){for(var u=1;u<v.length;u++){if(v[u]===v[u-1]){v.splice(u--,1)}}}}}return v};b.matches=function(n,o){return b(n,null,null,o)};b.find=function(u,n,v){var t,r;if(!u){return[]}for(var q=0,p=c.order.length;q<p;q++){var s=c.order[q];if((r=c.match[s].exec(u))){var o=RegExp.leftContext;if(o.substr(o.length-1)!=="\\"){r[1]=(r[1]||"").replace(/\\/g,"");t=c.find[s](r,n,v);if(t!=null){u=u.replace(c.match[s],"");break}}}}if(!t){t=n.getElementsByTagName("*")}return{set:t,expr:u}};b.filter=function(x,w,A,q){var p=x,C=[],u=w,s,n,t=w&&w[0]&&k(w[0]);while(x&&w.length){for(var v in c.filter){if((s=c.match[v].exec(x))!=null){var o=c.filter[v],B,z;n=false;if(u==C){C=[]}if(c.preFilter[v]){s=c.preFilter[v](s,u,A,C,q,t);if(!s){n=B=true}else{if(s===true){continue}}}if(s){for(var r=0;(z=u[r])!=null;r++){if(z){B=o(z,s,r,u);var y=q^!!B;if(A&&B!=null){if(y){n=true}else{u[r]=false}}else{if(y){C.push(z);n=true}}}}}if(B!==undefined){if(!A){u=C}x=x.replace(c.match[v],"");if(!n){return[]}break}}}if(x==p){if(n==null){throw error+x}else{break}}p=x}return u};var c=b.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(n){return n.getAttribute("href")}},relative:{"+":function(u,n,t){var r=typeof n==="string",v=r&&!/\W/.test(n),s=r&&!v;if(v&&!t){n=n.toUpperCase()}for(var q=0,p=u.length,o;q<p;q++){if((o=u[q])){while((o=o.previousSibling)&&o.nodeType!==1){}u[q]=s||o&&o.nodeName===n?o||false:o===n}}if(s){b.filter(n,u,true)}},">":function(t,o,u){var r=typeof o==="string";if(r&&!/\W/.test(o)){o=u?o:o.toUpperCase();for(var p=0,n=t.length;p<n;p++){var s=t[p];if(s){var q=s.parentNode;t[p]=q.nodeName===o?q:false}}}else{for(var p=0,n=t.length;p<n;p++){var s=t[p];if(s){t[p]=r?s.parentNode:s.parentNode===o}}if(r){b.filter(o,t,true)}}},"":function(q,o,s){var p=f++,n=m;if(!o.match(/\W/)){var r=o=s?o:o.toUpperCase();n=j}n("parentNode",o,p,q,r,s)},"~":function(q,o,s){var p=f++,n=m;if(typeof o==="string"&&!o.match(/\W/)){var r=o=s?o:o.toUpperCase();n=j}n("previousSibling",o,p,q,r,s)}},find:{ID:function(o,p,q){if(typeof p.getElementById!=="undefined"&&!q){var n=p.getElementById(o[1]);return n?[n]:[]}},NAME:function(p,s,t){if(typeof s.getElementsByName!=="undefined"){var o=[],r=s.getElementsByName(p[1]);for(var q=0,n=r.length;q<n;q++){if(r[q].getAttribute("name")===p[1]){o.push(r[q])}}return o.length===0?null:o}},TAG:function(n,o){return o.getElementsByTagName(n[1])}},preFilter:{CLASS:function(q,o,p,n,t,u){q=" "+q[1].replace(/\\/g,"")+" ";if(u){return q}for(var r=0,s;(s=o[r])!=null;r++){if(s){if(t^(s.className&&(" "+s.className+" ").indexOf(q)>=0)){if(!p){n.push(s)}}else{if(p){o[r]=false}}}}return false},ID:function(n){return n[1].replace(/\\/g,"")},TAG:function(o,n){for(var p=0;n[p]===false;p++){}return n[p]&&k(n[p])?o[1]:o[1].toUpperCase()},CHILD:function(n){if(n[1]=="nth"){var o=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(n[2]=="even"&&"2n"||n[2]=="odd"&&"2n+1"||!/\D/.test(n[2])&&"0n+"+n[2]||n[2]);n[2]=(o[1]+(o[2]||1))-0;n[3]=o[3]-0}n[0]=f++;return n},ATTR:function(r,o,p,n,s,t){var q=r[1].replace(/\\/g,"");if(!t&&c.attrMap[q]){r[1]=c.attrMap[q]}if(r[2]==="~="){r[4]=" "+r[4]+" "}return r},PSEUDO:function(r,o,p,n,s){if(r[1]==="not"){if(r[3].match(l).length>1||/^\w/.test(r[3])){r[3]=b(r[3],null,null,o)}else{var q=b.filter(r[3],o,p,true^s);if(!p){n.push.apply(n,q)}return false}}else{if(c.match.POS.test(r[0])||c.match.CHILD.test(r[0])){return true}}return r},POS:function(n){n.unshift(true);return n}},filters:{enabled:function(n){return n.disabled===false&&n.type!=="hidden"},disabled:function(n){return n.disabled===true},checked:function(n){return n.checked===true},selected:function(n){n.parentNode.selectedIndex;return n.selected===true},parent:function(n){return !!n.firstChild},empty:function(n){return !n.firstChild},has:function(p,o,n){return !!b(n[3],p).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){return"text"===n.type},radio:function(n){return"radio"===n.type},checkbox:function(n){return"checkbox"===n.type},file:function(n){return"file"===n.type},password:function(n){return"password"===n.type},submit:function(n){return"submit"===n.type},image:function(n){return"image"===n.type},reset:function(n){return"reset"===n.type},button:function(n){return"button"===n.type||n.nodeName.toUpperCase()==="BUTTON"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)}},setFilters:{first:function(o,n){return n===0},last:function(p,o,n,q){return o===q.length-1},even:function(o,n){return n%2===0},odd:function(o,n){return n%2===1},lt:function(p,o,n){return o<n[3]-0},gt:function(p,o,n){return o>n[3]-0},nth:function(p,o,n){return n[3]-0==o},eq:function(p,o,n){return n[3]-0==o}},filter:{PSEUDO:function(t,p,q,u){var o=p[1],r=c.filters[o];if(r){return r(t,q,p,u)}else{if(o==="contains"){return(t.textContent||t.innerText||"").indexOf(p[3])>=0}else{if(o==="not"){var s=p[3];for(var q=0,n=s.length;q<n;q++){if(s[q]===t){return false}}return true}}}},CHILD:function(n,q){var t=q[1],o=n;switch(t){case"only":case"first":while(o=o.previousSibling){if(o.nodeType===1){return false}}if(t=="first"){return true}o=n;case"last":while(o=o.nextSibling){if(o.nodeType===1){return false}}return true;case"nth":var p=q[2],w=q[3];if(p==1&&w==0){return true}var s=q[0],v=n.parentNode;if(v&&(v.sizcache!==s||!n.nodeIndex)){var r=0;for(o=v.firstChild;o;o=o.nextSibling){if(o.nodeType===1){o.nodeIndex=++r}}v.sizcache=s}var u=n.nodeIndex-w;if(p==0){return u==0}else{return(u%p==0&&u/p>=0)}}},ID:function(o,n){return o.nodeType===1&&o.getAttribute("id")===n},TAG:function(o,n){return(n==="*"&&o.nodeType===1)||o.nodeName===n},CLASS:function(o,n){return(" "+(o.className||o.getAttribute("class"))+" ").indexOf(n)>-1},ATTR:function(s,q){var p=q[1],n=c.attrHandle[p]?c.attrHandle[p](s):s[p]!=null?s[p]:s.getAttribute(p),t=n+"",r=q[2],o=q[4];return n==null?r==="!=":r==="="?t===o:r==="*="?t.indexOf(o)>=0:r==="~="?(" "+t+" ").indexOf(o)>=0:!o?t&&n!==false:r==="!="?t!=o:r==="^="?t.indexOf(o)===0:r==="$="?t.substr(t.length-o.length)===o:r==="|="?t===o||t.substr(0,o.length+1)===o+"-":false},POS:function(r,o,p,s){var n=o[2],q=c.setFilters[n];if(q){return q(r,p,o,s)}}}};var g=c.match.POS;for(var i in c.match){c.match[i]=new RegExp(c.match[i].source+/(?![^\[]*\])(?![^\(]*\))/.source)}if(document.documentElement.compareDocumentPosition){sortOrder=function(o,n){var p=o.compareDocumentPosition(n)&4?-1:o===n?0:1;if(p===0){hasDuplicate=true}return p}}else{if("sourceIndex" in document.documentElement){sortOrder=function(o,n){var p=o.sourceIndex-n.sourceIndex;if(p===0){hasDuplicate=true}return p}}else{if(document.createRange){sortOrder=function(q,o){var p=q.ownerDocument.createRange(),n=o.ownerDocument.createRange();p.selectNode(q);p.collapse(true);n.selectNode(o);n.collapse(true);var r=p.compareBoundaryPoints(Range.START_TO_END,n);if(r===0){hasDuplicate=true}return r}}}}(function(){var o=document.createElement("form"),p="script"+(new Date).getTime();o.innerHTML="<input name='"+p+"'/>";var n=document.documentElement;n.insertBefore(o,n.firstChild);if(!!document.getElementById(p)){c.find.ID=function(r,s,t){if(typeof s.getElementById!=="undefined"&&!t){var q=s.getElementById(r[1]);return q?q.id===r[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===r[1]?[q]:undefined:[]}};c.filter.ID=function(s,q){var r=typeof s.getAttributeNode!=="undefined"&&s.getAttributeNode("id");return s.nodeType===1&&r&&r.nodeValue===q}}n.removeChild(o)})();(function(){var n=document.createElement("div");n.appendChild(document.createComment(""));if(n.getElementsByTagName("*").length>0){c.find.TAG=function(o,s){var r=s.getElementsByTagName(o[1]);if(o[1]==="*"){var q=[];for(var p=0;r[p];p++){if(r[p].nodeType===1){q.push(r[p])}}r=q}return r}}n.innerHTML="<a href='#'></a>";if(n.firstChild&&typeof n.firstChild.getAttribute!=="undefined"&&n.firstChild.getAttribute("href")!=="#"){c.attrHandle.href=function(o){return o.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var n=b;b=function(s,r,p,q){r=$(r)||document;if(!q&&r.nodeType===9&&!k(r)){try{return a(r.querySelectorAll(s),p)}catch(t){}}return n(s,r,p,q)};for(var o in n){b[o]=n[o]}})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var n=document.createElement("div");n.innerHTML="<div class='test e'></div><div class='test'></div>";if(n.getElementsByClassName("e").length===0){return}n.lastChild.className="e";if(n.getElementsByClassName("e").length===1){return}c.order.splice(1,0,"CLASS");c.find.CLASS=function(o,p,q){if(typeof p.getElementsByClassName!=="undefined"&&!q){return p.getElementsByClassName(o[1])}}})()}function j(o,t,s,x,u,w){var v=o=="previousSibling"&&!w;for(var q=0,p=x.length;q<p;q++){var n=x[q];if(n){if(v&&n.nodeType===1){n.sizcache=s;n.sizset=q}n=n[o];var r=false;while(n){if(n.sizcache===s){r=x[n.sizset];break}if(n.nodeType===1&&!w){n.sizcache=s;n.sizset=q}if(n.nodeName===t){r=n;break}n=n[o]}x[q]=r}}}function m(o,t,s,x,u,w){var v=o=="previousSibling"&&!w;for(var q=0,p=x.length;q<p;q++){var n=x[q];if(n){if(v&&n.nodeType===1){n.sizcache=s;n.sizset=q}n=n[o];var r=false;while(n){if(n.sizcache===s){r=x[n.sizset];break}if(n.nodeType===1){if(!w){n.sizcache=s;n.sizset=q}if(typeof t!=="string"){if(n===t){r=true;break}}else{if(b.filter(t,[n]).length>0){r=n;break}}}n=n[o]}x[q]=r}}}var e=document.compareDocumentPosition?function(o,n){return o.compareDocumentPosition(n)&16}:function(o,n){return o!==n&&(o.contains?o.contains(n):true)};var k=function(n){return n.nodeType===9&&n.documentElement.nodeName!=="HTML"||!!n.ownerDocument&&n.ownerDocument.documentElement.nodeName!=="HTML"};var d=function(n,u){var q=[],r="",s,p=u.nodeType?[u]:u;while((s=c.match.PSEUDO.exec(n))){r+=s[0];n=n.replace(c.match.PSEUDO,"")}n=c.relative[n]?n+"*":n;for(var t=0,o=p.length;t<o;t++){b(n,p[t],q)}return b.filter(r,q)};window.cssQuery=b})();function CustomEvent(c,b,a){this.type=c;this.scope=b||window;this.signature=a||CustomEvent.LIST;this.subscribers=[];var d="_YUICEOnSubscribe";if(c!==d){this.subscribeEvent=new CustomEvent(d,this,true)}this.lastError=null}CustomEvent.LIST=0;CustomEvent.FLAT=1;CustomEvent.prototype={subscribe:function(a,b,c){if(this.subscribeEvent){this.subscribeEvent.fire(a,b,c)}this.subscribers.push(new Subscriber(a,b,c))},unsubscribe:function(d,f){if(!d){return this.unsubscribeAll()}var e=false;for(var b=0,a=this.subscribers.length;b<a;++b){var c=this.subscribers[b];if(c&&c.contains(d,f)){this._delete(b);e=true}}return e},fire:function(){this.lastError=null;var l=[],d=this.subscribers.length;if(!d){return true}var j=[].slice.call(arguments,0),g=true,c,k=false;var b=this.subscribers.slice();for(c=0;c<d;++c){var n=b[c];if(!n){k=true}else{var m=n.getScope(this.scope);if(this.signature==CustomEvent.FLAT){var a=null;if(j.length>0){a=j[0]}try{g=n.fn.call(m,a,n.obj)}catch(f){this.lastError=f;throw f}}else{try{g=n.fn.call(m,this.type,j,n.obj)}catch(h){this.lastError=h;throw h}}if(false===g){break}}}return(g!==false)},unsubscribeAll:function(){var a=this.subscribers.length,b=a-1;for(;b>-1;b--){this._delete(b)}this.subscribers=[];return a},_delete:function(a){var b=this.subscribers[a];if(b){delete b.fn;delete b.obj}this.subscribers.splice(a,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}};function Subscriber(a,b,c){this.fn=a;this.obj=JS.undef(b)?null:b;this.overrideContext=c}Subscriber.prototype.getScope=function(a){if(this.overrideContext){if(this.overrideContext===true){return this.obj}else{return this.overrideContext}}return a};Subscriber.prototype.contains=function(a,b){if(b){return(this.fn==a&&this.obj==b)}else{return(this.fn==a)}};Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"};function EventProvider(){}EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,c,f,e){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[a];if(d){d.subscribe(c,f,e)}else{this.__yui_subscribers=this.__yui_subscribers||{};var b=this.__yui_subscribers;if(!b[a]){b[a]=[]}b[a].push({fn:c,obj:f,overrideContext:e})}},unsubscribe:function(c,e,g){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(c){var f=a[c];if(f){return f.unsubscribe(e,g)}}else{var b=true;for(var d in a){if(JS.hasOwnProperty(a,d)){b=b&&a[d].unsubscribe(e,g)}}return b}return false},unsubscribeAll:function(a){return this.unsubscribe(a)},createEvent:function(b,h){this.__yui_events=this.__yui_events||{};var f=h||{};var d=this.__yui_events;if(d[b]){}else{var e=f.scope||this;var g=new CustomEvent(b,e,CustomEvent.FLAT);d[b]=g;if(f.onSubscribeCallback){g.subscribeEvent.subscribe(f.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var a=this.__yui_subscribers[b];if(a){for(var c=0;c<a.length;++c){g.subscribe(a[c].fn,a[c].obj,a[c].overrideContext)}}}return d[b]},fireEvent:function(b){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[b];if(!d){return null}var a=[];for(var c=1;c<arguments.length;++c){a.push(arguments[c])}return d.fire.apply(d,a)},hasEvent:function(a){if(this.__yui_events){if(this.__yui_events[a]){return true}}return false}};(function(){var pageload="app-init",buffer={};buffer[pageload]=[];function addMethod(method,callback,context,name,args){if(!name){name=pageload}if(!buffer[name]){buffer[name]=[]}if(typeof callback=="function"){buffer[name][method](callback.delegate(context||window.page||null,args))}else{buffer[name][method](JS.eval.callback(callback))}}Queue={getBuffer:function(name){return buffer[name]||null},add:function(callback,context,name,args){addMethod("push",callback,context,name,args)},stack:function(callback,context,name,args){addMethod("unshift",callback,context,name,args)},parse:function(name){if(!name){name=pageload}if(buffer[name]){var i=0;while(buffer[name][i]){buffer[name][i++].call()}Queue.clear(name)}},clear:function(name){if(!name){name=pageload}if(buffer[name]){delete buffer[name]}}}})();function BehaviorRule(){this.applyRule=function(a){};this.removeRule=function(a){}}var Behavior=function(){var b=[],a=[];return{applyDynamic:function(c){c=$(c)||document.body;Array.forEach(a,function(d){d.applyRule(c)})},removeDynamic:function(c){c=$(c)||document.body;Array.forEach(a,function(d){d.removeRule(c)})},apply:function(c){c=$(c)||document.body;Array.forEach(b.concat(a),function(d){d.applyRule(c)})},remove:function(c){c=$(c)||document.body;Array.forEach(b.concat(a),function(d){d.removeRule(c)})},addStatic:function(c){b.push(c)},addDynamic:function(c){a.push(c)}}}();(function(){var a=window.dom;Anim=function(c,b,d,e){this.init(c,b,d,e)};Anim.NAME="Anim";Anim.prototype={toString:function(){var b=this.getEl();return(this.constructor.NAME+": "+(b.id||b.tagName))},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(b,d,c){return this.method(this.currentFrame,d,c-d,this.totalFrames)},setAttribute:function(b,e,d){var c=this.getEl();if(this.patterns.noNegatives.test(b)){e=(e>0)?e:0}if("style" in c){a._setStyle(c,b,e+d)}else{if(b in c){c[b]=e}}},getAttribute:function(b){var d=this.getEl(),f=a._getStyle(d,b);if(f!=="auto"&&!this.patterns.offsetUnit.test(f)){return parseFloat(f)}var c=this.patterns.offsetAttribute.exec(b)||[],g=!!(c[3]),e=!!(c[2]);if("style" in d){if(e||(a._getStyle(d,"position")=="absolute"&&g)){f=d["offset"+c[0].charAt(0).toUpperCase()+c[0].substr(1)]}else{f=0}}else{if(b in d){f=d[b]}}return f},getDefaultUnit:function(b){return this.patterns.defaultUnit.test(b)?"px":""},setRuntimeAttribute:function(c){var g,d,e=this.attributes;this.runtimeAttributes[c]={};if(!isset(e[c].to)&&!isset(e[c].by)){return false}g=(isset(e[c].from))?e[c].from:this.getAttribute(c);if(isset(e[c].to)){d=e[c].to}else{if(isset(e[c].by)){if(g.constructor==Array){d=[];for(var f=0,b=g.length;f<b;++f){d[f]=g[f]+e[c].by[f]*1}}else{d=g+e[c].by*1}}}this.runtimeAttributes[c].start=g;this.runtimeAttributes[c].end=d;this.runtimeAttributes[c].unit=(isset(e[c].unit))?e[c].unit:this.getDefaultUnit(c);return true},init:function(d,i,h,b){var c=false,e=null,g=0;d=d.tagName?d:$(d);this.attributes=i||{};this.duration=h||1;this.method=b||Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=AnimMgr.fps;this.setEl=function(l){d=$(l)};this.getEl=function(){return d};this.isAnimated=function(){return c};this.getStartTime=function(){return e};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1}AnimMgr.registerElement(this);return true};this.stop=function(l){if(!this.isAnimated()){return}if(l){this.currentFrame=this.totalFrames;this._onTween.fire()}AnimMgr.stop(this)};var k=function(){this.onStart.fire();this.runtimeAttributes={};for(var l in this.attributes){this.setRuntimeAttribute(l)}c=true;g=0;e=new Date()};var j=function(){var n={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};n.toString=function(){return("duration: "+n.duration+", currentFrame: "+n.currentFrame)};this.onTween.fire(n);var m=this.runtimeAttributes;for(var l in m){this.setAttribute(l,this.doMethod(l,m[l].start,m[l].end),m[l].unit)}g+=1};var f=function(){var l=(new Date()-e)/1000;var m={duration:l,frames:g,fps:g/l};m.toString=function(){return("duration: "+m.duration+", frames: "+m.frames+", fps: "+m.fps)};c=false;g=0;this.onComplete.fire(m)};this._onStart=new CustomEvent("_start",this);this.onStart=new CustomEvent("start",this);this.onTween=new CustomEvent("tween",this);this._onTween=new CustomEvent("_tween",this);this.onComplete=new CustomEvent("complete",this);this._onComplete=new CustomEvent("_complete",this);this._onStart.subscribe(k);this._onTween.subscribe(j);this._onComplete.subscribe(f)}};AnimMgr=new function(){var d=null,c=[],b=0;this.fps=1000;this.delay=1;this.registerElement=function(g){c[c.length]=g;b+=1;g._onStart.fire();this.start()};this.unRegister=function(h,g){g=g||f(h);if(!h.isAnimated()||g==-1){return false}h._onComplete.fire();c.splice(g,1);b-=1;if(b<=0){this.stop()}return true};this.start=function(){if(d===null){d=setInterval(this.run,this.delay)}};this.stop=function(j){if(!j){clearInterval(d);for(var h=0,g=c.length;h<g;++h){this.unRegister(c[0],0)}c=[];d=null;b=0}else{this.unRegister(j)}};this.run=function(){for(var j=0,g=c.length;j<g;++j){var h=c[j];if(!h||!h.isAnimated()){continue}if(h.currentFrame<h.totalFrames||h.totalFrames===null){h.currentFrame+=1;if(h.useSeconds){e(h)}h._onTween.fire()}else{AnimMgr.stop(h,j)}}};function f(j){for(var h=0,g=c.length;h<g;++h){if(c[h]==j){return h}}return -1}function e(h){var k=h.totalFrames,j=h.currentFrame,i=(h.currentFrame*h.duration*1000/h.totalFrames),g=(new Date()-h.getStartTime()),l=0;if(g<h.duration*1000){l=Math.round((g/i-1)*h.currentFrame)}else{l=k-(j+1)}if(l>0&&isFinite(l)){if(h.currentFrame+l>=k){l=k-(j+1)}h.currentFrame+=l}}};(function(){ColorAnim=function(e,d,f,g){ColorAnim.superclass.constructor.call(this,e,d,f,g)};ColorAnim.NAME="ColorAnim";ColorAnim.DEFAULT_BGCOLOR="#fff";JS.extend(ColorAnim,Anim);var c=ColorAnim.superclass,b=ColorAnim.prototype;b.patterns.color=/color$/i;b.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;b.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;b.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;b.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;b.parseColor=function(d){if(d.length==3){return d}var e=this.patterns.hex.exec(d);if(e&&e.length==4){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}e=this.patterns.rgb.exec(d);if(e&&e.length==4){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}e=this.patterns.hex3.exec(d);if(e&&e.length==4){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}return null};b.getAttribute=function(d){var f=this.getEl();if(this.patterns.color.test(d)){var h=a._getStyle(f,d);var g=this;if(this.patterns.transparent.test(h)){var e=a.getAncestorBy(f,function(i){return !g.patterns.transparent.test(h)});if(e){h=a._getStyle(e,d)}else{h=ColorAnim.DEFAULT_BGCOLOR}}}else{h=c.getAttribute.call(this,d)}return h};b.doMethod=function(e,j,f){var h;if(this.patterns.color.test(e)){h=[];for(var g=0,d=j.length;g<d;++g){h[g]=c.doMethod.call(this,e,j[g],f[g])}h="rgb("+Math.floor(h[0])+","+Math.floor(h[1])+","+Math.floor(h[2])+")"}else{h=c.doMethod.call(this,e,j,f)}return h};b.setRuntimeAttribute=function(e){c.setRuntimeAttribute.call(this,e);if(this.patterns.color.test(e)){var g=this.attributes,j=this.parseColor(this.runtimeAttributes[e].start),f=this.parseColor(this.runtimeAttributes[e].end);if(typeof g[e].to==="undefined"&&typeof g[e].by!=="undefined"){f=this.parseColor(g[e].by);for(var h=0,d=j.length;h<d;++h){f[h]=j[h]+f[h]}}this.runtimeAttributes[e].start=j;this.runtimeAttributes[e].end=f}}})();Easing={easeNone:function(f,e,h,g){return h*f/g+e},easeIn:function(f,e,h,g){return h*(f/=g)*f+e},easeOut:function(f,e,h,g){return -h*(f/=g)*(f-2)+e},easeBoth:function(f,e,h,g){if((f/=g/2)<1){return h/2*f*f+e}return -h/2*((--f)*(f-2)-1)+e},easeInStrong:function(f,e,h,g){return h*(f/=g)*f*f*f+e},easeOutStrong:function(f,e,h,g){return -h*((f=f/g-1)*f*f*f-1)+e},easeBothStrong:function(f,e,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+e}return -h/2*((f-=2)*f*f*f-2)+e},elasticIn:function(g,e,k,j,f,i){if(g==0){return e}if((g/=j)==1){return e+k}if(!i){i=j*0.3}var h;if(!f||f<Math.abs(k)){f=k;h=i/4}else{h=i/(2*Math.PI)*Math.asin(k/f)}return -(f*Math.pow(2,10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i))+e},elasticOut:function(g,e,k,j,f,i){if(g==0){return e}if((g/=j)==1){return e+k}if(!i){i=j*0.3}var h;if(!f||f<Math.abs(k)){f=k;h=i/4}else{h=i/(2*Math.PI)*Math.asin(k/f)}return f*Math.pow(2,-10*g)*Math.sin((g*j-h)*(2*Math.PI)/i)+k+e},elasticBoth:function(g,e,k,j,f,i){if(g==0){return e}if((g/=j/2)==2){return e+k}if(!i){i=j*(0.3*1.5)}var h;if(!f||f<Math.abs(k)){f=k;h=i/4}else{h=i/(2*Math.PI)*Math.asin(k/f)}if(g<1){return -0.5*(f*Math.pow(2,10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i))+e}return f*Math.pow(2,-10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i)*0.5+k+e},backIn:function(f,e,i,h,g){if(typeof g=="undefined"){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+e},backOut:function(f,e,i,h,g){if(typeof g=="undefined"){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+e},backBoth:function(f,e,i,h,g){if(typeof g=="undefined"){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+e}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+e},bounceIn:function(f,e,h,g){return h-Easing.bounceOut(g-f,0,h,g)+e},bounceOut:function(f,e,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+e}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+e}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+e}}}return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+e},bounceBoth:function(f,e,h,g){if(f<g/2){return Easing.bounceIn(f*2,0,h,g)*0.5+e}return Easing.bounceOut(f*2-g,0,h,g)*0.5+h*0.5+e}};(function(){Motion=function(f,e,g,h){if(f){Motion.superclass.constructor.call(this,f,e,g,h)}};Motion.NAME="Motion";JS.extend(Motion,ColorAnim);var d=Motion.superclass,c=Motion.prototype;c.patterns.points=/^points$/i;c.setAttribute=function(e,g,f){if(this.patterns.points.test(e)){f=f||"px";d.setAttribute.call(this,"left",g[0],f);d.setAttribute.call(this,"top",g[1],f)}else{d.setAttribute.call(this,e,g,f)}};c.getAttribute=function(e){if(this.patterns.points.test(e)){var f=[d.getAttribute.call(this,"left"),d.getAttribute.call(this,"top")]}else{f=d.getAttribute.call(this,e)}return f};c.doMethod=function(e,h,f){if(this.patterns.points.test(e)){var g=this.method(this.currentFrame,0,100,this.totalFrames)/100;return Bezier(this.runtimeAttributes[e],g)}else{return d.doMethod.call(this,e,h,f)}};c.setRuntimeAttribute=function(o){if(this.patterns.points.test(o)){var f=this.getEl(),h=this.attributes,e,k=h.points["control"]||[],g,l,n;if(k.length>0&&!(k[0] instanceof Array)){k=[k]}else{var j=[];for(l=0,n=k.length;l<n;++l){j[l]=k[l]}k=j}if(a._getStyle(f,"position")=="static"){f.style.position="relative"}if(isset(h.points["from"])){a.setXY(f,h.points["from"])}else{a.setXY(f,a.getXY(f))}e=this.getAttribute("points");if(isset(h.points["to"])){g=b.call(this,h.points["to"],e);var m=a.getXY(this.getEl());for(l=0,n=k.length;l<n;++l){k[l]=b.call(this,k[l],e)}}else{if(isset(h.points["by"])){g=[e[0]+h.points["by"][0],e[1]+h.points["by"][1]];for(l=0,n=k.length;l<n;++l){k[l]=[e[0]+k[l][0],e[1]+k[l][1]]}}}this.runtimeAttributes[o]=[e];if(k.length>0){this.runtimeAttributes[o]=this.runtimeAttributes[o].concat(k)}this.runtimeAttributes[o][this.runtimeAttributes[o].length]=g}else{d.setRuntimeAttribute.call(this,o)}};var b=function(e,g){var f=a.getXY(this.getEl());e=[e[0]-f[0]+g[0],e[1]-f[1]+g[1]];return e}})()})();(function(){var a=[],e=function(){var p=[0,0,0],k="Shockwave Flash",i="ShockwaveFlash.ShockwaveFlash",j="undefined",h=navigator,m=null;if(typeof h.plugins!=j&&typeof h.plugins[k]=="object"){m=h.plugins[k].description;if(m){m=m.replace(/^.*\s+(\S+\s+\S+$)/,"$1");p[0]=parseInt(m.replace(/^(.*)\..*$/,"$1"),10);p[1]=parseInt(m.replace(/^.*\.(.*)\s.*$/,"$1"),10);p[2]=/r/.test(m)?parseInt(m.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof window.ActiveXObject!=j){var n=null,o=false;try{n=new ActiveXObject(i+".7")}catch(l){try{n=new ActiveXObject(i+".6");p=[6,0,21];n.AllowScriptAccess="always"}catch(l){if(p[0]==6){o=true}}if(!o){try{n=new ActiveXObject(i)}catch(l){}}}if(!o&&n){try{m=n.GetVariable("$version");if(m){m=m.split(" ")[1].split(",");p=[parseInt(m[0],10),parseInt(m[1],10),parseInt(m[2],10)]}}catch(l){}}}}return p}();if(Env.ie){function b(j){for(var h in j){if(typeof j[h]=="function"){j[h]=null}}}Event.on(window,"unload",function(){for(var i in a){var h=$(a[i]);if(h){b(h);h.parentNode.removeChild(h);h=null}}})}function c(j,h){var n=j.options,q=j.attributes,p=h.ownerDocument,l,k;if(!q.id){q.id=h.id}q.style="width:"+j.width+"px;height:"+j.height+"px;"+q.style;if(Env.ie&&Env.win){var o="",m="";for(l in q){switch(l){case"className":o+=' class="'+q[l]+'"';break;default:o+=" "+l+'="'+q[l]+'"'}}n.movie=j.movie;for(l in n){m+='<param name="'+l+'" value="'+n[l]+'" />'}h.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+o+">"+m+"</object>";a.push(q.id);return}if(Env.webkit&&Env.webkit<312){j.attributes.src=j.movie;k=p.createElement("embed");for(l in n){k.setAttribute(l,n[l])}}else{j.attributes.data=j.movie;k=p.createElement("object");for(l in n){d(k,l,n[l])}}for(l in q){if(l=="className"){k.className=q[l]}else{k.setAttribute(l,q[l])}}h.parentNode.replaceChild(k,h)}function d(j,h,i){var k=j.ownerDocument.createElement("param");k.setAttribute("name",h);k.setAttribute("value",i);j.appendChild(k)}function g(i){var h=i.split(".");h[0]=parseInt(h[0],10);h[1]=parseInt(h[1],10);h[2]=parseInt(h[2],10);return(e[0]>h[0]||(e[0]==h[0]&&e[1]>h[1])||(e[0]==h[0]&&e[1]==h[1]&&e[2]>=h[2]))?true:false}var f={width:300,height:120,version:"9.0.45",attributes:{type:"application/x-shockwave-flash",style:""},options:{wmode:"transparent",menu:"false",allowscriptaccess:"always",seamlesstabbing:"false"}};flash={embed:function(h){JS.augmentTree(h,f);if(g(h.version)){c(h,$(h.target));h.target=null;return true}else{return false}},remove:function(h){h=$(h);if(Env.ie){b(h)}h.parentNode.removeChild(h)},getFlashPlayerVersion:function(){return{major:e[0],minor:e[1],release:e[2]}},hasFlashPlayerVersion:g}})();;(function(){var e=JS.keys;if(Env.legacy){function d(){this.className="hover";trace("yo")}function a(){this.className=""}}function c(h){if(Event.getCharCode(h)==e.ESCAPE){if(v8.Calendar.state){v8.Calendar.close()}else{if(modal.count>0){var g=modal.get();if(g.allowClose&&g.ready){modal.close()}}}Event.stopEvent(h);return false}return true}function f(i){var h=Event.getCharCode(i);switch(h){case e.ENTER:if(form.stopPost){form.stopPost=false;Event.preventDefault(i);return false}var g=Event.getTarget(i);if(g.form&&g.tagName!="TEXTAREA"&&g.name!="debugInp"){Event.preventDefault(i);if(g.getAttribute("dataType")){app.enterKey=true;Event.fire(g,"change");return false}g.blur();return dom.formPost(g.form)}break;case 96:case 167:if(app.debug&&!Event.getTarget(i).form){Event.stopEvent(i);v8.console.toggle();return false}break}return true}function b(){ajax.unload();v8.Panel.hide(true);Behavior.remove();app.row=dom.focusTo=null}v8={absolute:Env.legacy||(Env.gecko&&!isset(document.documentElement.getClientRects)),util:{},emptyFn:function(){},icons:{warn:"notice.png",alert:"error.png",block:"delete.png",help:"help.png",info:"theme/hiphop16.png",tip:"tip16_1.gif",success:"accept.png"},init:function(){modal.init();if(Env.legacy){try{document.execCommand("BackgroundImageCache",false,true)}catch(h){}var g=cssQuery(".mainmenu > ul li:has(ul)");Event.on(g,"mouseenter",d);Event.on(g,"mouseleave",a)}Event.on(window,"unload",b);Event.on(document,"keypress",f);Event.on(document,"keydown",c);if(!module.preload()){app.init()}if(Env.mobile&&dom.getDocumentScrollTop()===0){window.scrollTo(0,1)}v8.init=null},nav:function(g,h){if(app.loaded){Dialog.open(h||"Γίνεται μεταφορά σε άλλη σελίδα. Παρακαλώ περιμένετε&#8230;",{header:"Παρακαλώ περιμένετε&#8230;",allowClose:false})}document.location=decodeURI(g);return false}};v8.parseUri=String.parseUri;Queue.add(v8.init,null,"boot")})();(function(){var e={},b=[],a="_v8",d=parseInt($$("link")[0].getAttribute("href").split("-")[1],10);function f(j,l,k,i){if(l){Queue.add(l,k,a+j,i)}e[j]={appended:false,loaded:false}}function g(i){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){if(!module.preload()){h()}}}function c(i,j){if(!Array.exists(b,i)){b.splice(Array.indexOf(b,j),0,i)}}function h(){var l=0,j=b.length,p,q,k=true;for(;l<j;l++){q=b[l];p=e[q];if(!p.loaded){if(p.requirements){for(var o=0;o<p.requirements.length;o++){var m=p.requirements[o];if(!e[m]||!e[m].loaded){c(m,q);if(!e[m]){module.load(m)}k=false;break}}if(!k){continue}}p.loaded=true;Queue.parse(a+q)}}if(k&&!app.loaded){setTimeout(app.init.delegate(app),0)}}window.module={require:function(j,l,k,i){if(!e[j]){f(j,l,k,i)}},preload:function(){for(var i in e){if(!e[i].appended){module.load(i);return true}}return false},prerequisite:function(i,j){e[i].requirements=j},load:function(k,n,l,j){if(!e[k]){f(k,n,l,j)}var m=e[k];if(m.appended){return}m.appended=true;if(!Array.exists(b,k)){b.push(k)}var i=document.createElement("script");i.src="http://static.hiphop.gr/"+k+"-"+d+".js";i.charset="utf-8";i.onload=i.onreadystatechange=g.delegate(i,[k]);$$("head")[0].appendChild(i)},loaded:function(i){return isset(e[i])&&e[i].loaded},revision:function(){return d},style:function(j){var i=document.createElement("link");i.href="http://static.hiphop.gr/"+j+"-"+d+".css";i.setAttribute("rel","stylesheet");i.setAttribute("type","text/css");$$("head")[0].appendChild(i)}}})();(function(){var f=[],c=null,b="form-err",a=/^[a-zA-Z]\w+?$/,g=/^[α-ωά-ώa-z][α-ωά-ώ\w \-_]+?$/i;function e(){c=$(b);if(c){dom.hide(c);Event.removeListener(document,"click",e);Event.removeListener(document,"keydown",e);c=null}}function d(){c=$(b);dom.show(c);dom.setXY(c,[f[0]-5,f[1]-c.offsetHeight-6]);Event.on(document,"click",e,this,true);Event.on(document,"keydown",e,this,true);if(modal.count){modal.onClose(modal.top,e)}}window.form={stopPost:false,run:function(k,j,i){if(this.stopPost||!app.loaded){return false}switch(typeof(k)){case"boolean":return k;case"function":if(!i){i=page}var h=(j)?k.apply(i,j):k.apply(i);return h;default:return Boolean(k)}},error:function(j,i){if(i&&(!i.length||i.type=="select-one")){f=dom.getXY(i);if(f){c=$(b);if(!c){c=dom.add("div",b);dom.add("span",0,0,c);dom.add("div",0,"tail",c)}c.firstChild.innerHTML=j;var h=f[1]-60;if(dom.getDocumentScrollTop()>h){document.documentElement.scrollTop=h}setTimeout(d,0);return false}else{if(/INPUT|TEXTAREA|SELECT/.test(i.tagName)){dom.focusTo=i}}}dom.console(5,j);return false},trimValues:function(l,k){var h=k.split(","),j=h.length;while(j--){l[h[j]].value=l[h[j]].value.trim()}},hasValue:function(k){if(!k.length){return(k.type=="radio"||k.type=="checkbox")?k.checked:(k.value.length>0)}else{if(k[0]){if(k[0].type=="radio"||k[0].type=="checkbox"){for(var j=0,h=k.length;j<h;j++){if(k[j].checked){return true}}return false}else{if(k.type=="select-one"){return(k.selectedIndex!=-1&&k.options[k.selectedIndex].value.length)}}}}return form.error("Unsupported input type.",null)},getValue:function(j){if(!j.length){switch(j.type){case"radio":case"checkbox":if(!j.checked){return false}break;default:break}return j.value}else{if(j[0]){if(j[0].type=="radio"||j[0].type=="checkbox"){for(var h=0;h<j.length;h++){if(j[h].checked){return j[h].value}}return false}else{if(j.type=="select-one"){return j.options[j.selectedIndex].value}}}}return false},setValue:function(k,j){if(!k.length){switch(k.type){case"radio":case"checkbox":k.checked=j!="0";Event.fire(k,"click");break;default:k.value=j}}else{if(k[0]){if(k[0].type=="radio"||k[0].type=="checkbox"){for(var h=0;h<k.length;h++){if(k[h].value==j){k[h].checked=true;Event.fire(k[h],"click");break}}}}}},getDisplay:function(j){if(j.type=="select-one"){var h=j.selectedIndex,i=j.options;if(h==-1){return false}else{if(!j[h].value.length){return null}}return i[h].innerHTML}return false},radioSet:function(j,k){if(!j.length){j.checked=(j.value==k)}else{for(var h=j.length-1;h>=0;h--){j[h].checked=(j[h].value==k)}}},selectAdd:function(j,p,q,l){var o=(Env.ie?-1:null),h=document.createElement("option"),m=0,k,n;h.value=p;h.text=q;if(l){for(n=j.options.length;m<n;){k=j.options[m++];if(k.text>q){o=m;break}}k=null;j.add(h,(isIE?o:j.options[o]))}else{j.add(h,o)}return h},selectDel:function(j,m){var l=null,k=0,h=j.options.length;for(;k<h;k++){l=j.options[k];if(l.value==m){break}}return l?j.remove(k):null},validateVar:function(i,h){if(typeof(i)=="object"){i=i.value}return i.length&&i.match(h?g:a)},validateRangeValue:function(i,h,j){if(h!==null){if(i<h){return false}}if(j!==null){if(i>j){return false}}return true},validateRange:function(i,h,j){if(typeof(i)=="object"){i=parseFloat(i.value)}return form.validateRangeValue(i,h,j)},isValidNumber:function(l,q,n,o){if(l===null){return false}l=(typeof(l)=="object")?l.value:l.toString();var k=false,h=false,p=false,j=0,m;while(j<l.length){m=l.charAt(j++);if("0"<=m&&m<="9"){h=true;break}else{if(m=="+"||m=="-"){break}else{if(o&&m=="."){k=true;break}else{if(m!=" "){return false}}}}}while(j<l.length){m=l.charAt(j++);if("0"<=m&&m<="9"){if(p){return false}h=true}else{if(o&&m=="."){if(k){return false}k=true}else{if(m==" "){p=true}else{return false}}}}if(!h){return false}return form.validateRangeValue(o?parseFloat(l):parseInt(l,10),q,n)},validateNumber:function(i,h,j){return form.isValidNumber(i,h,j,true)},validateInt:function(i,h,j){return form.isValidNumber(i,h,j,false)},isValidDate:function(k,h,j){var i=31;if(h==4||h==6||h==9||h==11){i=30}else{if(h==2){if(k%4>0){i=28}else{if(k%100===0&&k%400>0){i=28}else{i=29}}}}return form.validateRange(j,1,i)},validateDate:function(j){if(typeof(j)=="object"){j=j.value}if(!j.length){return false}var i=j.indexOf("/");if(i==-1){i=j.indexOf(".")}if(i==-1||i==j.length){return false}var k=j.substring(0,i),m=i+1;i=j.indexOf("/",m);if(i==-1){i=j.indexOf(".",m)}if(i==-1||(i+1)==j.length){return false}var h=j.substring(k.length+1,i),l=j.substring(i+1);return(form.validateInt(l,1753,9999)&&form.validateInt(h,1,12)&&form.validateInt(k,1,31)&&form.isValidDate(l,h,k))},dateValidatePeriod:function(k,j,i,h){if(!k.disabled&&!form.validateDate(k)){return h?false:form.error("Please input a valid starting date.",k)}if(!j.disabled&&!form.validateDate(j)){return h?false:form.error("Please input a valid ending date.",j)}if(k.disabled||j.disabled){return true}if(i===null){i=0}if(k.value.toDate().dayDiff(j.value.toDate())<i){return h?false:form.error("Please input a valid date period.",j)}return true},validateEmail:function(j){var z=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/,w=/^(.+)@(.+)$/,u='\\(\\)><@,;:\\\\\\"\\.\\[\\]',p="[^\\s"+u+"]",l='("[^"]*")',v=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/,h=p+"+",t="("+h+"|"+l+")",q=new RegExp("^"+t+"(\\."+t+")*$"),k=j.match(w);if(k===null){return false}var x=k[1],y=k[2];for(var r=0,s=x.length;r<s;r++){if(x.charCodeAt(r)>127){return false}}for(r=0,s=y.length;r<s;r++){if(y.charCodeAt(r)>127){return false}}if(x.match(q)===null){return false}var o=y.match(v);if(o!==null){for(r=1;r<=4;r++){if(o[r]>255){return false}}return true}var n=new RegExp("^"+h+"$"),m=y.split(".");for(r=0,s=m.length;r<s;r++){if(m[r].search(n)==-1){return false}}if(m[m.length-1].length!=2&&m[m.length-1].search(z)==-1){return false}return(s>=2)},fixHtmlTokens:function(h){return h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},validateLen:function(k,h){for(var j in h){if(form.fixHtmlTokens(form.getValue(k[j])).length>h[j]){return form.error("Το κείμενο του πεδίου δεν μπορεί να ξεπερνά τους "+h[j]+" χαρακτήρες.",k[j])}}return true}}})();(function(){var m=null,f=[],g=[],n=null,c=null,d=null,l=/(["][A-Z_]+["][:])/g,a={xml:"application/xml, text/xml",html:"text/html",json:"application/json, text/javascript",plain:"text/plain"};function k(o,p,r,q){return p.toLowerCase()}function j(o,p){return{xmlDoc:null,json:null,text:null,type:o,name:p}}function e(q,p,u,s){if(n){g.push({url:q,name:p,msg:u,type:s,post:c});return}q=Env.ie<8?q.replace(app.uri.protocol+"://"+app.uri.host,""):q;modal.close(p,true,true);if(u){Dialog.open(u+" Παρακαλώ περιμένετε&#8230;",{id:p,allowClose:false,header:"Working&#8230;",append:'<div class="working"><img src="http://images.hiphop.gr/loading-balls.gif" style="width:41px;height:9px;" alt="" /></div>'})}f[p]=j(s,p);n=p;var v=c===null?"GET":"POST",r=0,o,t=["X-Requested-With","XMLHttpRequest","Accept",a[s]+", */*"];m=new XMLHttpRequest();if(!m){alert("Your browser does not meet the basic requirements for this website.");return}m.open(v,encodeURI(decodeURI(q)),true);if(v=="POST"){t.push("Content-Type","application/x-www-form-urlencoded")}for(o=t.length;r<o;r=r+2){m.setRequestHeader(t[r],t[r+1])}d=setInterval(i,13);m.send(c);if(!~q.indexOf("session.cfm")){if(app.logged){app.sessionRenew()}if(v8.tracker){v8.tracker._trackPageview(q)}}c=null}function i(){if(!n||!m||m.readyState!=4){return}if(d){clearInterval(d)}var r=f[n],q=false,o;try{o=m.status;q=(o>=200&&o<300)||o==304||o==1223||(Env.webkit&&o===undefined)}catch(p){}modal.close(r.name,true,r.type=="html");r.text=m.responseText;switch(r.type){case"html":modal.open({id:r.name,allowClose:true,contents:modal.header+r.text+modal.footer});if(Env.opera){dom.classAdd(cssQuery("td.ajax",r.name)[0],"opera")}break;case"xml":r.xmlDoc=m.responseXML;if(!r.xmlDoc||!r.xmlDoc.documentElement||r.xmlDoc.documentElement.tagName=="parsererror"){q=false;if(app.debug){v8.console.debugXML(r.text)}}break;case"json":try{r.json=JSON.parse(r.text.trim().replace(l,k))}catch(p){q=false;if(app.debug){v8.console.debugJSON(p,r.text)}}break}if(q){Queue.parse(r.name);if(g.length){setTimeout(b,0)}}else{Queue.clear(r.name);modal.initModal();if(!app.debug){dom.console(3,"An error has occured. Please refresh the page and try again.")}}m=d=n=null}function b(){var o=g.shift();c=o.post;e(o.url,o.name,o.msg,o.type)}function h(p){if(n==p){if(m){m.abort()}Queue.clear(p);delete f[p];n=null;if(g.length){setTimeout(b,0)}}else{for(var o=0;o<g.length;o++){if(g[o].name==p){Array.remove(g,o)}}}}window.ajax={unload:function(o){if(o){h(o)}else{Array.clear(g);if(n){h(n)}}},running:function(){return n},connection:function(){return m},queue:function(r,p,q,o){Queue.add(r,q,p,o)},stack:function(r,p,q,o){Queue.stack(r,q,p,o)},load:function(p,o,q){e(p,o,q,"html")},loadXML:function(p,o,q){e(p,o,q,"xml")},loadJSON:function(p,o,q){e(p,o,q,"json")},ping:function(p,o,q){e(p,o,q,"plain")},getXML:function(o){return f[o].xmlDoc.documentElement},getJSON:function(o){return f[o].json},response:function(o){if(f[o].type=="xml"){var p=ajax.getXML(o);return{flag:parseInt(p.getAttribute("flag"),10),msg:p.getAttribute("msg")}}else{return ajax.getJSON(o)}},checkResult:function(p){var o=ajax.response(p),q=o.flag==1;dom[q?"panel":"console"](o.flag,o.msg);return q},post:function(o){if(typeof o=="string"){c=o;return o}var v=[],w=0,u=form.getValue;if(typeof o.childNodes=="undefined"){for(w in o){v.push(w+"="+o[w])}c=v.join("&")}else{var r,s,t,q=[],x=arguments.length,p=$$("input",o).concat($$("select",o)).concat($$("textarea",o));if(x>1){if(x==2){q=arguments[1].split(",")}else{if(x>2){for(t=1;t<x;t++){q.push(arguments[t])}}}p=Array.filter(p,function(y){return Array.exists(q,y.name)})}while((s=p[w++])){if(!s.name||s.disabled){continue}if(s.tagName=="INPUT"){switch(s.type){case"radio":case"checkbox":if(s.checked){v.push(s.name+"="+encodeURIComponent(s.value))}break;case"text":case"hidden":case"password":v.push(s.name+"="+encodeURIComponent(s.value))}}else{if(s.tagName=="SELECT"){r=u(s);if(r!==false){v.push(s.name+"="+encodeURIComponent(r))}}else{if(s.tagName=="TEXTAREA"){v.push(s.name+"="+encodeURIComponent(s.value))}}}}s=p=null}c=v.join("&");return c}}})();(function(){var b="index.cfm",o="app-login",v="ajax-act",q="app-register",n="app-recover",r="user-bar",l=[{m:/\/forum$/,r:"forums.cfm"},{m:/\/(forum_topic|forum|forum_topics|forum_replies|forum_track|page|account_profile)\/([0-9]+)\/?$/,r:"$1.cfm?ID=$2"},{m:/\/(forum_topic|forum|forum_topics|forum_replies|forum_track)\/([0-9]+)\/([0-9]+)\/?$/,r:"$1.cfm?ID=$2&page=$3"},{m:/\/([a-z0-9_]+)$/,r:"$1.cfm"},{m:/\/pages\/([0-9]+)\/?$/,r:"pages.cfm?type=$1"},{m:/\/pages\/([0-9]+)\/([0-9]+)\/?$/,r:"pages.cfm?type=$1&page=$2"}],a,t,m="ssn-tick";function p(x){if(modal.top){if($$("form",modal.top).length){return"Αν έχετε εισάγει κείμενο στη φόρμα, θα το χάσετε."}}if(app.protectUnload){return app.protectUnloadMsg||""}}window.app={uri:v8.parseUri(w(document.location.href)),query:null,page:null,enterKey:false,debug:false,protectUnload:false,protectUnloadMsg:null,meta:{},logged:false,init:function(){app.query=app.uri.query;app.page=app.uri.file;var y=$$("meta"),x=y.length;while(x--){app.meta[y[x].getAttribute("name")]=y[x].getAttribute("content")}if(app.meta.flag){Queue.add(dom.panel,dom,null,[app.meta.flag,app.meta.msg.replace(/[\\][']/g,"'")])}if(Env.isHost){window.onbeforeunload=p}else{top.location.href=self.location.href}Event.on(window,"unload",u);if(app.meta.logged){app.logged=true;if(Env.isHost){c()}}Behavior.apply();Queue.parse();$("container").className="init";app.loaded=true;app.init=null},register:function(){ajax.load("/ajax/register.cfm",q,"Γίνεται φόρτωση της φόρμας εγγραφής.")},registerHnd:function(x){form.trimValues(x,"username,password,email");if(!form.hasValue(x.username)){return form.error("Παρακαλώ, εισάγετε το username.",x.username)}if(!form.validateVar(x.username,true)){return form.error("Το username που διαλέξατε δεν είναι αποδεκτό. Παρακαλώ, χρησιμοποιείστε μόνο αλφαβητικούς χαρακτήρες.<br/>Επιτρέπονται επίσης οι χαρακτήρες κενό, παύλα, κάτω-παύλα και οι αριθμοί, όχι όμως στην αρχή της λέξης.",x.username)}if(!form.hasValue(x.password)){return form.error("Παρακαλώ, εισάγετε το password.",x.password)}if(!form.hasValue(x.email)){return form.error("Παρακαλώ εισάγετε τη διεύθυνση του email σας.",x.email)}if(!form.validateEmail(x.email.value)){return form.error("Η email διεύθυνση έχει κάποιο λάθος. Παρακαλώ, διορθώστε.",x.email)}if(!x.agreement.checked){return form.error("Πρέπει να επιλέξετε πως συμφωνήτε με τους όρους χρήσης του site.",x.agreement)}ajax.post(x);ajax.queue(g,v);ajax.loadJSON(x.action,v,"Γίνεται αίτηση εγγραφής.");return false},login:function(){if(app.logged){dom.panel(1,"Είστε ήδη συνδεμένος.");return}ajax.load("/ajax/login.cfm",o,"Γίνεται φόρτωση της φόρμας του sign in.")},loginCheck:function(x){if(!form.hasValue(x.username)){return form.error("Παρακαλώ, εισάγετε το username σας.",x.username)}if(!form.hasValue(x.password)){return form.error("Παρακαλώ, εισάγετε το password του account σας.",x.password)}ajax.post(x);ajax.queue(d,v);ajax.loadJSON(x.action,v,"Γίνεται έλεγχος στοιχείων και είσοδος στο σύστημα.");return false},loginRecover:function(){ajax.load("/ajax/login-recover.cfm",n,"Γίνεται φόρτωση της φόρμας ανάκλυσης κωδικού/username.")},loginRecoverHnd:function(x){if(form.hasValue(x.username)){}else{if(form.hasValue(x.email)){if(!form.validateEmail(x.email.value)){return form.error("Η email διεύθυνση έχει κάποιο λάθος. Παρακαλώ, διορθώστε.",x.email)}}else{return form.error("Παρακαλώ, εισάγετε είτε το username σας, είτε το email του account σας.",x.username)}}ajax.post(x);ajax.queue(f,v);ajax.loadJSON(x.action,v,"Γίνεται ανάκλυση των στοιχείων του λογαριασμού σας.");return false},logout:function(x){ajax.queue(k,o);ajax.loadJSON("/ajax/login.cfc?method=logout"+(x?"&keep":""),o,"Γίνεται αποσύνδεση από το σύστημα.")},sessionRenew:function(){u();c()}};function w(x){for(var y in l){if(x.match(new RegExp(l[y].m))){return x.replace(l[y].m,"/"+l[y].r)}}return x}function c(){t=18;a=setInterval(s,300000)}function u(){if(a){clearInterval(a)}}function i(){return"Για λόγους ασφαλείας, θα γίνει αυτόματη αποσύνδεση σε λιγότερο από "+t*5+" λεπτά."}function s(){if(--t<=0){Dialog.close();return app.logout(true)}else{if(t==1){e()}}ajax.queue(h,m);ajax.loadJSON("/session.cfm",m)}function j(){t=19;s()}function e(){Dialog.open(i(),{icon:v8.icons.alert,allowClose:false,header:"Session notice",headerClass:"red",buttons:[{label:"Ανανέωση για μισή ώρα",callback:j},{label:"Sign Out",callback:app.logout.callback(true)}]})}function h(){if(!ajax.getJSON(m).logged){v8.nav("/"+b)}}function g(){var x=ajax.getJSON(v);if(x.flag==1){ajax.load("/ajax/register.additional.cfm",q,"Η αίτηση εγγραφής ολοκληρώθηκε επιτυχώς.")}else{dom.console(x.flag,x.msg)}}function d(){var x=ajax.getJSON(v);if(ajax.checkResult(v)){app.logged=true;modal.close(o);$(r).innerHTML=x.bar;if(Env.isHost){c()}}}function k(){app.logged=false;$(r).innerHTML=ajax.getJSON(o).bar;u();if(app.meta["X-Private"]){v8.nav("/forums.cfm")}else{dom.panel(4,"Έγινε αποσύνδεση του λογαριασμού σας από το σύστημα.")}}function f(){var x=ajax.getJSON(v);if(x.flag==1){modal.close(n);dom.console(1,"Σας στείλαμε με email τα στοιχεία του λογαριασμού σας. Παρακαλώ, ελέγξτε το και χρησιμοποιήστε τη φόρμα για να κάνετε login.")}else{dom.console(2,"Δεν μπορέσαμε να βρούμε το λογαριασμό σας με τα στοιχεία που δώσατε.")}}})();(function(){var c=0,l,i=["Top","Right","Bottom","Left"],h="inp-watched",k="inp-type",b="inp-previous",g="data-max",j="data-index",f="data-bind";function e(r,o,p){var n=dom.data(o,b),m=o.attributes["data-min"],q=o.attributes[g];if(r=="num"){if(m&&p<parseInt(m.nodeValue,10)){n.nodeValue=m.nodeValue;return false}m=q;if(m&&p>parseInt(m.nodeValue,10)){n.nodeValue=m.nodeValue;return false}}else{if(m&&p<parseFloat(m.nodeValue)){n.nodeValue=m.nodeValue;return false}m=q;if(m&&p>parseFloat(m.nodeValue)){n.nodeValue=m.nodeValue;return false}}return true}function a(n){form.stopPost=true;n.value=dom.data(n,b);if(!dom.focusTo){dom.focusTo=n}var m={color:{to:dom._getStyle(n,"color")}};n.style.color="#fff";if(!Env.legacy){m.backgroundColor={to:dom._getStyle(n,"backgroundColor")};n.style.backgroundColor="#f00"}else{Array.forEach(i,function(p){var o="border"+p+"Color";m[o]={to:dom._getStyle(n,o)};n.style[o]="#f00"})}if(l){l.stop()}l=new ColorAnim(n,m,0.3);l.onComplete.subscribe(d);l.animate();Event.fire(n,"change");return false}function d(){form.stopPost=false;if(dom.focusTo){dom.focusTo.focus();dom.focusTo.select();dom.focusTo=null}}v8.FInput={add:function(o){if(!dom.dataExists(o,h)&&(o.type=="text"||o.type=="password")&&o.className!="hidden"){dom.data(o,h,1);var m=o.className.match(/num|cur|date|dec|time/);if(m){var n=dom.dataCache(o);n[k]=m[0];n[b]=o.defaultValue;Event.on(o,"change",this.validate);if(m=="num"||m=="date"){n[j]=++c}}}},remove:function(m){if(dom.dataExists(m,h)){if(m.className.match(/num|cur|date|dec|time/)){Event.removeListener(m,"change",this.validate)}Event.purgeElement(m);dom.dataClear(m)}},validate:function(u,w,r){var t=dom.data(this,k),o=this.value,n=u.ctrlKey||u.metaKey,s=u.altKey,v,m;if(o.length){switch(t){case"dec":case"cur":o=parseFloat(o.replace(/,/g,"."));if(isNaN(o)){return a(this)}if(w!==undefined){if(n){w*=(s?10:0.1)}else{if(s){w*=0.01}}o+=w}if(!e(t,this,o)){return a(this)}if(t=="cur"){o=o.currencyFormat()}else{o=o.toString();if(o.indexOf(".")<0){o+=".0"}}break;case"num":o=parseInt(o,10);if(isNaN(o)||!e(t,this,o)){return a(this)}if(w!==undefined){if(n){w*=(s?1000:10)}else{if(s){w*=100}}o+=w}if(!e(t,this,o)){return a(this)}break;case"date":o=Date.parse(o);if(!o||o.getFullYear()>2100||o.getFullYear()<1900){return a(this)}if(w!==undefined){w=-1*w;if(n&&!s){o.setMonth(o.getMonth()+w)}else{if(s&&!n){o.setFullYear(o.getFullYear()+w)}else{o.dayAdd(w)}}}if(this.getAttribute(f)){m=this.form[this.getAttribute(f)];if(m&&m.value.length){v=m.value.toDate();if(dom.data(this,j)<dom.data(m,j)){if(o.dayDiff(v)<0){var p=new Date(o.valueOf());m.value=p.dayAdd(1).format()}}else{if(v.dayDiff(o)<0){var q=new Date(o.valueOf());m.value=q.dayAdd(-1).format()}}}}o=o.format();break;case"time":o=Time.parse(o);if(!o){return a(this)}if(w!==undefined){if(n){w*=(s?15:60)}else{if(s){w*=30}}o=timeMinOp(o.toString(),w)}else{o=o.toString()}break}this.value=o}dom.data(this,b,o);if(r){Event.fire(this,"change")}if(app.enterKey){app.enterKey=false;dom.formPost(this.form);try{this.blur()}catch(u){}}return(w===undefined)}}})();(function(){function f(j){this.allowClose=false;this.id=j;this.ready=false;this.onClose=new CustomEvent("onclose",this);this.onChange=new CustomEvent("onchange",this);this.prev=null;this.next=null;this.scrollTop=0}var e=v8.absolute,b=window.dom,c=v8.emptyFn,h={},a="modal-fix",g=Env.mobile,i="modalOpen";if(e){c=function(j){$(a).style.height=j?1:b.getDocumentHeight()+"px"}}function d(j){modal.close();Event.stopEvent(j);return false}modal={init:function(){var j=b.add("div",a);if(e){j.style.position="absolute"}j=null},header:'<div class="modal-p"><table cellspacing="0" class="modal" summary=""><tr><td class="ajax"><div class="x-close"><div></div></div>',footer:"</td></tr></table></div>",count:0,top:null,get:function(j){return h[j||modal.top]||null},open:function(l){var j=window.modal;if(h[l.id]){j.close(l.id,false,true)}var k=new f(l.id);k.allowClose=(l.allowClose===true);if(l.closeHnd){k.onClose.subscribe(l.closeHnd)}if(l.changeHnd){k.onClose.subscribe(l.changeHnd)}if(j.count>0){b.hide(j.top);k.prev=h[j.top];h[j.top].next=k}else{c(true);if(Env.legacy){b.hideHeavy(1)}else{b.classAdd(document.body,i)}b.show(a);Event.on(window,"scroll",j.pos,j,true);Event.on(window,"resize",j.pos,j,true)}h[k.id]=k;j.top=k.id;j.count++;var m=b.add("div",k.id,"modal");m.innerHTML=l.contents;if(!l.nobehavior){Behavior.apply(m)}if(!k.allowClose){b.classAdd(m,"noclose")}Event.on(cssQuery("div.x-close",m)[0],"click",d);m=null;if(Queue.getBuffer(k.id)&&!l.forcePos){Queue.add(j.initModal,j,k.id)}else{j.initModal()}},pos:function(q){var m=h[modal.top];if(!m){return}c();var l=$(m.id),k=l.offsetHeight,p=l.offsetTop,o=b.getDocumentScrollTop(),j=b.getViewportHeight(),n=p;if(k<=j){n=o+(j*0.5)-(k*0.5)}else{if(o<=p){n=o}else{if(o+j>p+k){n=o+j-k;if(k+n>b.getDocumentHeight()){n=0}}}}if(n!=p){l.style.top=n+"px";m.onChange.fire()}l=null},initModal:function(){var l=h[modal.top],j=$(l.id),k=j.offsetHeight,m=b.getDocumentScrollTop();l.scrollTop=m;c();if(k>b.getViewportHeight()){if(m>0){if(k+m>b.getDocumentHeight()){document.documentElement.scrollTop=0}else{j.style.top=m+"px"}}}else{modal.pos();setTimeout(b.focus.callback(modal.top),0)}j=null;l.ready=true},close:function(j,k,o){var l=window.modal,m=j||l.top,n=h[m];if(!n){return}n.onChange.unsubscribeAll();if(!k){n.onClose.fire()}n.onClose.unsubscribeAll();l.count--;b.trash(m);document.documentElement.scrollTop=n.scrollTop;if(l.count>0){if(n.next){if(n.prev){n.prev.next=n.next;n.next.prev=n.prev}else{n.next.prev=null}}else{c(true);n.prev.next=null;l.top=n.prev.id;b.show(l.top);c()}}else{Event.removeListener(window,"scroll",l.pos);Event.removeListener(window,"resize",l.pos);c(true);if(!o){if(Env.legacy){b.hideHeavy(0)}else{b.classRemove(document.body,i)}b.hide(a)}l.top=null}delete h[m];b.setFocus()},onChange:function(j,l,m,k){h[j].onChange.subscribe(l,m,k)},onClose:function(j,l,m,k){h[j].onClose.subscribe(l,m,k)},allowClose:function(j,k){h[j].allowClose=k;b[k?"classRemove":"classAdd"]($(j),"noclose")},closeAll:function(){for(var j in h){if(h[j].allowClose){modal.close(j)}}}};if(g){}})();(function(){var prevRow=null,handlers=null,modalCnt=0,defaults={allowClose:true,icon:v8.icons.info,header:"Dialog"};window.Dialog={open:function(msg,options){prevRow=app.row;JS.augmentTree(options,defaults);var mHtml='<div class="modal-p"><table class="modal" cellspacing="0" summary=""><tr><td class="vm-dh'+(options.headerClass?" "+options.headerClass:"")+'">';if(options.icon.length){mHtml+='<img src="http://images.hiphop.gr/'+options.icon+'" alt="" />'}mHtml+=options.header+'</td><tr><td class="mdC"><div class="vm-db">'+decodeURIComponent(msg);if(options.buttons){handlers=options.buttons;mHtml+='<hr/><div class="btn">';for(var i=0,len=handlers.length;i<len;i++){mHtml+='<button type="button" onclick="Dialog.close('+i+')">';if(handlers[i].image){mHtml+='<img src="'+handlers[i].image+'" alt="" />'}mHtml+=handlers[i].label+"</button>"}mHtml+="</div>"}mHtml+="</div>";if(options.append){mHtml+=options.append}mHtml+=modal.footer;var mId=options.id||"v8-dialog-"+(++modalCnt);modal.open({id:mId,allowClose:options.allowClose,closeHnd:this.cleanup.delegate(this),contents:mHtml,forcePos:true,nobehavior:true})},cleanup:function(){prevRow=handlers=null},close:function(btn){app.row=prevRow;prevRow=null;var modalId=modal.top;if(handlers){var hnd=handlers[btn];if(hnd&&hnd.callback){if(hnd.callback.apply){hnd.callback.apply(hnd.context||window.page,hnd.arguments||[])}else{JS.eval(hnd.callback)}}}modal.close(modalId)},confirm:function(msg,fn,args,cntxt){this.open(msg,{header:"Επιβεβαίωση",id:"confirm-dialog",icon:v8.icons.help,buttons:[{label:"Συνέχεια",callback:fn,"arguments":args,context:cntxt},{label:"Άκυρο"}]})}}})();(function(){var l="v8Cal",f="v8cl-msel",h=null,n=null,d=null;if(Env.legacy){function g(o){this.runtimeStyle.backgroundColor="#ddf"}function b(o){this.runtimeStyle.backgroundColor=""}}function j(o){if(v8.Calendar.state){Event.removeListener(document,"click",e);Event.removeListener(document,"keydown",i);Event.removeListener(document,"keypress",Event.keyNav);Event.removeListener(f,"change",k);dom.hide(l);if(o){d.value=n.format();Event.fire(d,"change")}if(Env.legacy){dom.hideHeavy(0,modal.top)}v8.Calendar.state=false;d=null}}function a(t){d=dom.prevNode(Event.getTarget(t));if(d.disabled||d.readOnly){d=null;return}n=Date.parse(d.value);if(!n){n=Date.today();if(d.form&&d.getAttribute("data-bind")){var o=d.form[d.getAttribute("data-bind")];if(hasValue(o)){n=Date.parse(o.value)}}}h=n.clone();var v=$(l);if(!v){v=dom.add("div",l);v.setAttribute("tabindex",0);var s='<table id="v8cl-tbl" cellspacing="2" summary="Calendar"><tr>',w=Date.locale.shortestDayNames,p=Date.locale.monthNames;for(var r=1;r<7;r++){s+='<th scope="col">'+w[r]+"</th>"}s+='<th scope="col">'+w[0]+"</th></tr>";for(r=1;r<=6;r++){s+="<tr>";for(var u=1;u<=7;u++){s+="<td></td>"}s+="</tr>"}s+='</table><div id="v8cl-mon"><img src="http://images.hiphop.gr/prev.gif" alt="previous month" /><select id="v8cl-msel"></select><img src="http://images.hiphop.gr/next.gif" alt="next month" /></div><div id="v8cl-year"></div><div id="v8cl-yPrev"></div><div id="v8cl-yNext"></div><div id="v8cl-date"></div>';v.innerHTML=s;var q=$(f);for(r=0;r<12;r++){dom.addOption(q,r,p[r])}}if(Env.ie){Array.forEach(cssQuery("div,img",l),function(x){x.unselectable="on"})}setTimeout(m.callback(v,Event.getXY(t)),0);v=null}function m(o,q){if(Env.legacy){dom.hideHeavy(1,modal.top);$(f).style.visibility="visible"}dom.show(o);dom.setXY(o,q);o.focus();c();var p=q[1]+o.offsetHeight-dom.getViewportHeight()-dom.getDocumentScrollTop()+20;if(p>0){document.documentElement.scrollTop=dom.getDocumentScrollTop()+p}Event.on(document,"click",e);Event.on(document,"keydown",i);Event.on(document,"keypress",Event.keyNav);Event.on(f,"change",k);v8.Calendar.state=true}function i(r){var q=1,o="addDays",p=Event.getCharCode(r);Event.stopEvent(r);switch(p){case JS.keys.ENTER:j(1);return;case JS.keys.LEFT:q=-1;case JS.keys.RIGHT:if(r.ctrlKey||r.metaKey){o="addMonths"}break;case JS.keys.DOWN:q=-1;case JS.keys.UP:if(r.ctrlKey||r.metaKey){o="addYears"}else{q*=-7}break;default:return}n[o](q);c()}function k(o){n.addMonths(this.selectedIndex-n.getMonth());c()}function c(){var v=n.clone().moveToFirstDayOfMonth(),p=v.getDay(),q=$$("td","v8cl-tbl"),u=0,s=n.getMonth(),r=n.getFullYear(),o=Date.today(),t=[];$("v8cl-year").innerHTML=r;$("v8cl-yPrev").innerHTML=r-1;$("v8cl-yNext").innerHTML=r+1;$(f).selectedIndex=s;p=(p===0?6:p-1);v.dayAdd(-p);for(;u<42;u++){t=[];q[u].innerHTML=v.getDate();if(v.getMonth()!=s){t.push("out")}if(Date.compare(v,n)===0){t.push("sel")}if(Date.compare(v,o)===0){t.push("today")}if(v.getDay()==6||v.getDay()===0){t.push("wkend")}q[u].className=t.join(" ");v.dayAdd(1)}$("v8cl-date").innerHTML=n.toLongDateString()}function e(q){var o=Event.getTarget(q);if(o!=$(l)&&!$(l).contains(o)){Event.stopEvent(q);j(0);return false}if(o.tagName=="TD"){var p=parseInt(o.innerHTML,10);if(dom.hasClass(o,"out")){n.addMonths(p>15?-1:1)}n.setDate(p);return j(1)}else{if(o.tagName=="IMG"){n.addMonths(o.alt.split(" ")[0]=="next"?1:-1);$(f).selectedIndex=n.getMonth()}else{if(o.id=="v8cl-yPrev"){n.addYears(-1)}else{if(o.id=="v8cl-yNext"){n.addYears(1)}else{return true}}}}c();return true}v8.Calendar={state:false,watch:function(o){if(Env.ie){o.hideFocus=true}Event.on(o,"click",a,this,true);if(Env.legacy){Event.on(o,"mouseenter",g);Event.on(o,"mouseleave",b)}if(modal.count){modal.onClose(modal.top,j.callback(0))}},close:function(){j()}}})();v8.Panel=function(){var b="v8-panel",c=null,e=null;function a(){var h=dom.getScroll(),i=$(b);var g=dom.getViewportWidth()+h.left-i.offsetWidth-30;var j=dom.getViewportHeight()+h.top-i.offsetHeight-30;var f={points:{from:[g*0.83,j],to:[g,j]}};if(!Env.legacy){dom.setStyle(i,"opacity",0.1);f.opacity={to:1}}i.style.visibility="visible";i=null;c=new Motion(b,f,0.5,Easing.easeOut);c.animate();e=setTimeout(d,3500)}function d(){c=new Anim(b,{opacity:{to:0}},0.5,Easing.easeOut);c.onComplete.subscribe(v8.Panel.hide.callback(true));c.animate()}return{show:function(g){this.hide();var f=dom.add("div",b);f.innerHTML=g;f=null;setTimeout(a,10)},hide:function(f){var g=$(b);if(e){clearTimeout(e)}if(!f&&c){AnimMgr.stop(c)}if(g&&g.parentNode){g.removeNode(true)}g=e=null}}}();v8.modal={launch:function(b,a){if(b.ctrlKey||b.shiftKey||b.metaKey){return true}Event.preventDefault(b);ajax.load(a.href,v8.parseUri(a.href).file.replace(/[.]/g,"-"),"Loading");return false}};(function(){var e=/<[^>]+>/g,a="link-frame",d="frame-modal";function b(g,f){var h=$(a);h.style.height=dom.getViewportHeight()-110+"px";h.style.width=(f||dom.getViewportWidth()-110)+"px";modal.pos()}function c(){Event.removeListener(window,"resize",b);Event.removeListener(window,"scroll",b)}v8.frame={launch:function(g,f){if(g.ctrlKey||g.shiftKey||g.metaKey){return true}Event.preventDefault(g);v8.frame.load(f.href,(f.title.length?f.title:f.innerHTML.replace(e,"")));return false},load:function(f,h,g){modal.open({id:d,allowClose:true,nobehavior:true,contents:modal.header+(typeof h=="string"&&h.length?'<strong class="right">'+h+"</strong>":"")+'<div><button onclick="modal.close();" style="margin-bottom:3px" title="Click to close frame">Close</button></div><iframe src="'+f+'" id="'+a+'" frameborder="0" style="border:1px solid black"></iframe>'+modal.footer});b();Event.on(window,"resize",b,g);Event.on(window,"scroll",b,g);modal.onClose(d,c)}}})();(function(){var f=cssQuery,b=new BehaviorRule(),h="click",c=-1,g=[],e={external:function(i){i.target="_blank"},nofollow:function(i){if(!~i.href.indexOf(app.uri.host)){i.target="_blank"}},modal:function(i){Event.on(i,h,v8.modal.launch,i)},frame:function(i){Event.on(i,h,v8.frame.launch,i)}};b.applyRule=function(i){Array.forEach($$("input",i),v8.FInput.add,v8.FInput)};Behavior.addDynamic(b);function a(l){var j=l.rel.split(" "),k=j.length;while(k--){if(e[j[k]]){e[j[k]](l)}}}g[++c]=new BehaviorRule();g[c].applyRule=function(i){Array.forEach(f("div.v8cal img",i),v8.Calendar.watch);Array.forEach(f("a[rel]",i),a)};if(!Env.ie){function d(i){i.style.borderCollapse="separate";i.style.borderSpacing=i.getAttribute("cellspacing")+"px"}g[++c]=new BehaviorRule();g[c].applyRule=function(i){Array.forEach(f("table[cellspacing][cellspacing!=0]",i),d)}}while(c>-1){Behavior.addStatic(g[c--])}})();