// File: b_browser_969.js

Browser=function(){this.exclude=1;this.agt=navigator.userAgent.toLowerCase();this.win=0;this.mac=0;this.lin=1;if(this.agt.indexOf("win")!=-1){this.win=1;this.lin=0}if(this.agt.indexOf("mac")!=-1){this.mac=1;this.lin=0}this.lnx=0;if(this.lin){this.lnx=1}this.ice=0;this.ie=0;this.ie4=0;this.ie5=0;this.ie6=0;this.com=0;this.dcm;this.op5=0;this.op6=0;this.op7=0;this.ns4=0;this.ns6=0;this.ns7=0;this.mz7=0;this.kde=0;this.saf=0;if(typeof navigator.vendor!="undefined"&&navigator.vendor=="KDE"){this.thisKDE=agt;this.splitKDE=this.thisKDE.split("konqueror/");this.aKDE=this.splitKDE[1].split("; ");this.KDEn=parseFloat(this.aKDE[0]);if(this.KDEn>=2.2){this.kde=1;this.ns6=1;this.exclude=0}}else{if(this.agt.indexOf("webtv")!=-1){this.exclude=1}else{if(typeof window.opera!="undefined"){this.exclude=0;if(/opera[\/ ][5]/.test(agt)){this.op5=1}if(/opera[\/ ][6]/.test(agt)){this.op6=1}if(/opera[\/ ][7-9]/.test(agt)){this.op7=1}}else{if(typeof document.all!="undefined"&&!this.kde){this.exclude=0;this.ie=1;if(typeof document.getElementById!="undefined"){this.ie5=1;if(this.agt.indexOf("msie 6")!=-1){this.ie6=1;this.dcm=document.compatMode;if(this.dcm!="BackCompat"){this.com=1}}}else{this.ie4=1}}else{if(typeof document.getElementById!="undefined"){this.exclude=0;if(this.agt.indexOf("netscape/6")!=-1||this.agt.indexOf("netscape6")!=-1){this.ns6=1}else{if(this.agt.indexOf("netscape/7")!=-1||this.agt.indexOf("netscape7")!=-1){this.ns6=1;this.ns7=1}else{if(this.agt.indexOf("gecko")!=-1){this.ns6=1;this.mz7=1}}}if(this.agt.indexOf("safari")!=-1||(typeof document.childNodes!="undefined"&&typeof document.all=="undefined"&&typeof navigator.taintEnabled=="undefined")){this.mz7=0;this.ns6=1;this.saf=1}}else{if((this.agt.indexOf("mozilla")!=-1)&&(parseInt(navigator.appVersion)>=4)){this.exclude=0;this.ns4=1;if(typeof navigator.mimeTypes["*"]=="undefined"){this.exclude=1;this.ns4=0}}}}}}}if(this.agt.indexOf("escape")!=-1){this.exclude=1;this.ns4=0}if(typeof navigator.__ice_version!="undefined"){this.exclude=1;this.ie4=0}};var g_browser=new Browser();


// File: b_utils_1543.js

Utils=function(){};Utils.prototype.isset=function(A){var B=typeof (A);return(B!="undefined"&&B!="function")};Utils.prototype.gimme_elem_x_y=function(D){var B=0;var E=0;if(D.clientWidth){var C=D.clientWidth;var A=D.clientHeight}else{var C=D.offsetWidth;var A=D.offsetHeight}if(D.offsetParent){while(D.offsetParent){B+=D.offsetLeft;E+=D.offsetTop;D=D.offsetParent}}else{if(D.x){B+=D.x;E+=D.y}}return[B,E,C,A]};Utils.prototype.gimme_mouse_x_y=function(B){if(!B){var B=window.event}var A=0;var C=0;if(B.pageX||B.pageY){A=B.pageX;C=B.pageY}else{if(B.clientX||B.clientY){A=B.clientX+document.body.scrollLeft;C=B.clientY+document.body.scrollTop}}return[A,C]};Utils.prototype.getElementsByClass=function(G,E,A){var D=new Array();if(E==null){E=document}if(A==null){A="*"}var C=E.getElementsByTagName(A);var B=C.length;var F=new RegExp("(^|\\s)"+G+"(\\s|$)");for(i=0,j=0;i<B;i++){if(F.test(C[i].className)){D[j]=C[i];j++}}return D};Utils.prototype.utc_to_mid_str=function(D,A){var C=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var F=new Date();var E=F.getTimezoneOffset()*60*1000;F.setTime((parseInt(D)*1000)-E);var B=C[F.getMonth()]+" "+F.getDate()+", "+F.getFullYear();if(A){B+=" "+F.getHours()+":"+F.getMinutes()}return B};Utils.prototype.encode64=function(D){var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";var A="";var K,I,G;var J,H,F,E;var C=0;do{K=D.charCodeAt(C++);I=D.charCodeAt(C++);G=D.charCodeAt(C++);J=K>>2;H=((K&3)<<4)|(I>>4);F=((I&15)<<2)|(G>>6);E=G&63;if(isNaN(I)){F=E=64}else{if(isNaN(G)){E=64}}A=A+B.charAt(J)+B.charAt(H)+B.charAt(F)+B.charAt(E)}while(C<D.length);return A};Utils.prototype.decode64=function(D){var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";var A="";var K,I,G;var J,H,F,E;var C=0;D=D.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{J=B.indexOf(D.charAt(C++));H=B.indexOf(D.charAt(C++));F=B.indexOf(D.charAt(C++));E=B.indexOf(D.charAt(C++));K=(J<<2)|(H>>4);I=((H&15)<<4)|(F>>2);G=((F&3)<<6)|E;A=A+String.fromCharCode(K);if(F!=64){A=A+String.fromCharCode(I)}if(E!=64){A=A+String.fromCharCode(G)}}while(C<D.length);return A};Utils.prototype.redirect=function(C,B,A){if(B){g_trace.log("Redirecting now to "+C+"#"+B);location.href="/redirect.html?redir="+C+"&hash="+B+"&hash_var="+A}else{g_trace.log("Redirecting now to "+C);location.href="/redirect.html?redir="+C}};Utils.prototype.redirect_to_sign_in=function(){var A=g_utils.encode64(window.location.href);window.location="/sign_in.html?goto="+A};Utils.prototype.cursor_to_drag=function(A){document.getElementById(A).style.cursor='url("/i/new/hand_open.cur"), move'};Utils.prototype.cursor_dragging=function(A){document.getElementById(A).style.cursor='url("/i/new/hand_closed.cur"), move'};Utils.prototype.cursor_auto=function(A){document.getElementById(A).style.cursor="auto"};Utils.prototype.preload_drag_cursors=function(){var A=new Image();A.src="/i/new/hand_open.cur";A.src="/i/new/hand_closed.cur"};g_utils=new Utils();


// File: b_events_1376.js

g_events=new Array();g_events.listeners=new Array();g_events.has_dom_loaded=0;g_events.stored_listeners=new Array();g_events.add=function(G,H,F,D,E){if(H=="ondomload"){if(g_browser.saf){H="onload"}}var B=G+H;if(!this.has_dom_loaded&&G!="window"){var A=new Array();A.element_id_str=G;A.event_type=H;A.listener=F;A.listener_obj=D;A.listener_param=E;g_events.stored_listeners[g_events.stored_listeners.length]=A;return }var C;switch(G){case"window":C=window;break;case"document":C=document;break;case"body":C=document.body;break;default:C=document.getElementById(G);if(!(!(C))){break}g_trace.log("(Event) Invalid element: "+G+" with event_type: "+H);return }if(H=="onclick"&&g_browser.ie){C.style.cursor="hand"}if(g_events.listeners[B]==undefined){g_events.listeners[B]=new Event(C,H);g_events.listeners[B].add_listener(F,D,E)}else{g_events.listeners[B].add_listener(F,D,E)}};g_events.remove=function(G,H,F,D){var B=G+H;if(!this.has_dom_loaded&&G!="window"){var C,A,E;for(C=0,A=this.stored_listeners.length;C<A;C++){E=this.stored_listeners[C];if(G==E.element_id_str&&E.event_type==H&&F==E.listener){this.stored_listeners.splice(C,1);return }}}if(g_events.listeners[B]==undefined){g_trace.log("error - remove event failed for "+G+"("+H+")");return }g_events.listeners[B].remove_listener(F,D);if(g_events.listeners[B].gimme_length()==0){g_events.listeners[B].clear(H);delete g_events.listeners[B]}};g_events.trigger_resize=function(){var A="windowonresize";g_events.listeners[A].notify()};g_events.domloaded=function(){var A;this.has_dom_loaded=1;while(this.stored_listeners.length>0){A=this.stored_listeners.shift();this.add(A.element_id_str,A.event_type,A.listener,A.listener_obj,A.listener_param)}};var g_domload_event_object=null;Event=function(A,B){this.listeners=new Array();this.event_type=B;this.element=A;switch(B){case"onblur":A.r_onblur=this;A[B]=Event.cb_onblur;break;case"onclick":A.r_onclick=this;A[B]=Event.cb_onclick;break;case"onchange":A.r_onchange=this;A[B]=Event.cb_onchange;break;case"onfocus":A.r_onfocus=this;A[B]=Event.cb_onfocus;break;case"onload":A.r_onload=this;A[B]=Event.cb_onload;break;case"onmousedown":A.r_onmousedown=this;A[B]=Event.cb_onmousedown;break;case"onmousemove":A.r_onmousemove=this;A[B]=Event.cb_onmousemove;break;case"onmouseup":A.r_onmouseup=this;A[B]=Event.cb_onmouseup;break;case"onmouseover":A.r_onmouseover=this;A[B]=Event.cb_onmouseover;break;case"onmouseout":A.r_onmouseout=this;A[B]=Event.cb_onmouseout;break;case"onmove":A.r_onmove=this;A[B]=Event.cb_onmove;break;case"onkeydown":A.r_onkeydown=this;A[B]=Event.cb_onkeydown;break;case"onkeyup":A.r_onkeyup=this;A[B]=Event.cb_onkeyup;break;case"onkeypress":A.r_onkeypress=this;A[B]=Event.cb_onkeypress;break;case"onresize":A.r_onresize=this;A[B]=Event.cb_onresize;break;case"onselect":A.r_onselect=this;A[B]=Event.cb_onselect;break;case"onsubmit":A.r_onsubmit=this;A[B]=Event.cb_onsubmit;break;case"onunload":A.r_onunload=this;A[B]=Event.cb_onunload;break;case"onbeforeunload":A.r_onbeforeunload=this;A[B]=Event.cb_onbeforeunload;break;case"onmousewheel":A.r_onmousewheel=this;if(window.addEventListener){A.addEventListener("DOMMouseScroll",Event.cb_onmousewheel,false)}A[B]=Event.cb_onmousewheel;break;case"onefchange":g_ef.set_listener(this.notify,this);g_ef.start_detect();break;case"onboardresize":g_board.register_adjust_me_too(this,this.notify);break;case"ondomload":g_domload_event_object=this;break;default:g_trace.log("error - invalid event_type - "+B);break}};Event.prototype.clear=function(A){if(A=="onmousewheel"&&window.addEventListener){this.element.removeEventListener("DOMMouseScroll",Event.cb_onmousewheel_moz,false)}switch(A){case"onblur":this.element.r_onblur=null;break;case"onclick":this.element.r_onclick=null;break;case"onchange":this.element.r_onchange=null;break;case"onfocus":this.element.r_onfocus=null;break;case"onload":this.element.r_onload=null;break;case"onmousedown":this.element.r_onmousedown=null;break;case"onmousemove":this.element.r_onmousemove=null;break;case"onmouseup":this.element.r_onmouseup=null;break;case"onmouseover":this.element.r_onmouseover=null;break;case"onmouseout":this.element.r_onmouseout=null;break;case"onmove":this.element.r_onmove=null;break;case"onkeydown":this.element.r_onkeydown=null;break;case"onkeyup":this.element.r_onkeyup=null;break;case"onkeypress":this.element.r_onkeypress=null;break;case"onresize":this.element.r_onresize=null;break;case"onselect":this.element.r_onselect=null;break;case"onsubmit":this.element.r_onsubmit=null;break;case"onunload":this.element.r_onunload=null;break;case"onbeforeunload":this.element.r_onbeforeunload=null;break;case"onmousewheel":this.element.r_onmousewheel=null;break;case"onefchange":g_ef.stop_detect();break;case"onboardresize":g_board.unregister_adjust_me_too();break;case"ondomload":break;default:g_trace.log("events: error clearing invalid event_type - "+A);break}this.element[A]=null;delete this.listeners;this.element=null};Event.prototype.add_listener=function(D,B,C){if(this.remove_listener(D,B)==1){g_trace.log("duplicate event for element: "+this.element+" event_type: "+this.event_type+" listener: "+D+" removed before adding again")}var A=new Array();A.listener=D;if(B=="undefined"||B==null){A.listener_obj=this}else{A.listener_obj=B}A.listener_param=C;this.listeners[this.listeners.length]=A};Event.prototype.remove_listener=function(D,B){var C=this.listeners;if(B==undefined){for(var A=0;A<C.length;A++){if(C[A].listener==D){C.splice(A,1);return 1}}}else{for(var A=0;A<C.length;A++){if(C[A].listener==D&&C[A].listener_obj==B){C.splice(A,1);return 1}}}return 0};Event.prototype.gimme_length=function(){return this.listeners.length};Event.prototype.notify=function(E){var G=new Array();var D,B,C;for(D=0,B=this.listeners.length;D<B;D++){G[D]=this.listeners[D]}for(D=0,B=G.length;D<B;D++){var F=G[D].listener;var H=G[D].listener_obj;var A=G[D].listener_param;C=F.call(H,E,A)}delete G;return C};Event.callback=function(B){var C=B||window.event;var A=this.event_router;return A.notify(C)};Event.cb_onblur=function(A){return this.r_onblur.notify(A||window.event)};Event.cb_onclick=function(A){return this.r_onclick.notify(A||window.event)};Event.cb_onchange=function(A){return this.r_onchange.notify(A||window.event)};Event.cb_onfocus=function(A){return this.r_onfocus.notify(A||window.event)};Event.cb_onload=function(A){return this.r_onload.notify(A||window.event)};Event.cb_onmousedown=function(A){return this.r_onmousedown.notify(A||window.event)};Event.cb_onmousemove=function(A){return this.r_onmousemove.notify(A||window.event)};Event.cb_onmouseup=function(A){return this.r_onmouseup.notify(A||window.event)};Event.cb_onmouseover=function(A){return this.r_onmouseover.notify(A||window.event)};Event.cb_onmouseout=function(A){return this.r_onmouseout.notify(A||window.event)};Event.cb_onmove=function(A){return this.r_onmove.notify(A||window.event)};Event.cb_onkeydown=function(A){return this.r_onkeydown.notify(A||window.event)};Event.cb_onkeyup=function(A){return this.r_onkeyup.notify(A||window.event)};Event.cb_onkeypress=function(A){return this.r_onkeypress.notify(A||window.event)};Event.cb_onresize=function(A){return this.r_onresize.notify(A||window.event)};Event.cb_onselect=function(A){return this.r_onselect.notify(A||window.event)};Event.cb_onsubmit=function(A){return this.r_onsubmit.notify(A||window.event)};Event.cb_onunload=function(A){return this.r_onunload.notify(A||window.event)};Event.cb_onbeforeunload=function(A){return this.r_onbeforeunload.notify(A||window.event)};Event.cb_onmousewheel=function(A){if(!A){A=window.event}if(A.wheelDelta){delta=A.wheelDelta/120;if(window.opera){delta=-delta}}else{delta=-A.detail/3}return this.r_onmousewheel.notify(delta)};Event.domload_callback=function(){if(g_domload_event_object==null){return }var A=g_domload_event_object;A.notify()};g_events.add("window","ondomload",g_events.domloaded,g_events);


// File: b_trace_1090.js

function Trace(B){if(!window.console||!console.firebug){var C=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var A=0;A<C.length;++A){window.console[C[A]]=function(){}}}this.embedded=0;this.trace_on=1;this.store=0;this.stored="";this.trace_object=document.getElementById(B);if(!this.trace_object){this.store=1;this.trace_id=B;if(!window.console||!console.firebug){g_events.add("window","ondomload",this.flush_trace_store,this)}}else{this.clear()}}Trace.prototype.embed=function(){this.embedded=1;document.write('<div id="'+this.trace_id+'"></div>')};Trace.prototype.trace_on=function(){this.trace_on=1};Trace.prototype.trace_off=function(){this.trace_on=0};Trace.prototype.clear=function(){if(!window.console||!console.firebug){}};Trace.prototype.log=function(A){if(!window.console||!console.firebug){}else{console.log(A)}};Trace.prototype.flush_trace_store=function(){if((this.trace_object=document.getElementById(this.trace_id))==null){alert("replaceme still isn't defined");return }this.clear();this.store=0;this.trace_object.innerHTML+=this.stored;this.stored=""};g_trace=new Trace("replaceme");


// File: b_cookie_1128.js

Cookie=function(A){this.name=A;this.domain=".flickaway.com"};Cookie.prototype.set=function(D,C){var B=new Date();B.setTime(B.getTime());if(C){var A=new Date(B.getTime()+(parseInt(C)*60*1000))}document.cookie=this.name+"="+escape(D)+((A)?"; expires="+A.toGMTString():"")+"; path=/; domain="+this.domain;if(document.cookie.indexOf(this.name+"="+D,0)<0){return false}return true};Cookie.prototype.clear=function(){document.cookie=this.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain="+this.domain;if(document.cookie.indexOf(this.name+"=",0)<0){return true}return false};Cookie.prototype.get=function(){var A=document.cookie.indexOf(this.name+"=");if(A!=-1){A=A+this.name.length+1;end=document.cookie.indexOf(";",A);if(end==-1){end=document.cookie.length}return unescape(document.cookie.substring(A,end))}return null};


// File: b_timezone_1376.js

TZ=function(){d=new Date();this.offset=d.getTimezoneOffset()*-1;tc=new Cookie("zc");if(tc.get()!=this.offset){tc.set(this.offset,525600)}};g_tz=new TZ();


// File: b_js_info_1753.js

JSInfo=function(){this.jis=jis};JSInfo.prototype.is_active=function(){if(jis.status=="a"){return true}return false};JSInfo.prototype.is_expired=function(){if(parseInt(jis.exp)!=0){return true}return false};JSInfo.prototype.is_suspended=function(){if(jis.status=="s"||jis.status=="t"){return true}return false};JSInfo.prototype.is_sponsor=function(){return(jis.spid!=0)};JSInfo.prototype.gimme_sp_anchor=function(){var A="/sponsors.html?spid=";return'<a href="'+A+jis.spid+'">'+jis.sp_name+"</a>"};JSInfo.prototype.is_owner=function(){if(jis.username&&jis.album_user){return(jis.username==jis.album_user)}else{return false}};JSInfo.prototype.is_signed_in=function(){if(jis.username){return true}else{return false}};JSInfo.prototype.gimme_username=function(){return jis.username};JSInfo.prototype.gimme_album_ver=function(){return jis.album_ver};JSInfo.prototype.are_tools_enabled=function(){return jis.tools_enabled};JSInfo.prototype.disable_tools=function(){jis.tools_enabled=false};JSInfo.prototype.enable_tools=function(){jis.tools_enabled=true};JSInfo.prototype.gimme_parent_and_album=function(){var A=jis.album_path.split("/");var B=A.pop();var C=A.join("/");return[C,B]};JSInfo.prototype.gimme_parent_user_album_path=function(){var A=jis.user_album_path.split("/");A.pop();var B=A.join("/");return B};JSInfo.prototype.files_base_url=function(){return jis.files_base_url};JSInfo.prototype.gimme_file_count=function(){return jis.files.length};JSInfo.prototype.gimme_album_name=function(){return jis.album_name};JSInfo.prototype.gimme_album_desc=function(){return jis.album_desc};JSInfo.prototype.gimme_album_username=function(){return jis.album_user};JSInfo.prototype.gimme_album_path=function(){return jis.album_path};JSInfo.prototype.gimme_user_album_path=function(){return jis.user_album_path};JSInfo.prototype.gimme_fid_path=function(A){return jis.files[A].fid_path};JSInfo.prototype.gimme_video_url=function(A){return jis.files_base_url+"/"+jis.files[A].fid_path+".flv"};JSInfo.prototype.gimme_image_url_no_ver=function(A,B){return jis.files_base_url+"/"+jis.files[A].fid_path+"_"+B+".jpg"};JSInfo.prototype.gimme_orig_url=function(A){return jis.files_base_url+"/"+jis.files[A].fid_path+"."+jis.files[A].type};JSInfo.prototype.gimme_image_width=function(A,B){if(B=="sq"){return this.gimme_default_max_width("sq")}else{return jis.files[A].sizes[B].w}};JSInfo.prototype.gimme_image_height=function(A,B){if(B=="sq"){return this.gimme_default_max_height("sq")}else{return jis.files[A].sizes[B].h}};JSInfo.prototype.gimme_video_stage_width=function(A,B){if(B=="sq"){return this.gimme_default_max_width("sq")}else{return jis.files[A].sizes[B].w+12}};JSInfo.prototype.gimme_video_stage_height=function(A,B){if(B=="sq"){return this.gimme_default_max_height("sq")}else{return jis.files[A].sizes[B].h+49}};JSInfo.prototype.gimme_image_ver=function(A){return jis.files[A].version};JSInfo.prototype.gimme_caption=function(A){return jis.files[A].caption};JSInfo.prototype.gimme_image_type=function(A){return jis.files[A].type};JSInfo.prototype.gimme_short_fid=function(B){var A=jis.files[B].fid_path;var D=A.substring(A.lastIndexOf("/")+1);var C=D.substr(0,D.length-6);return C};JSInfo.prototype._gimme_sizev=function(A){switch(A){case"m":return 6;case"s":return 4;case"l":return 10;case"x":return 15;case"o":return 20;case"sq":return 1;case"t":return 2;default:g_trace.log("gimme_default_max_width: no such size - "+A)}};JSInfo.prototype.is_size_protected=function(A){return(this._gimme_sizev(A)>this._gimme_sizev(jis.msize))};JSInfo.prototype.gimme_msize=function(){return jis.msize};JSInfo.prototype.gimme_image_url=function(D,B){if(B!="sq"&&B!="t"&&B!="s"){var E=this._gimme_sizev(jis.msize);var A=this._gimme_sizev(B);var C=this._gimme_sizev(jis.files[D].asize);if(A>C){B=jis.files[D].asize;A=this._gimme_sizev(B)}if(A>E){if(this.is_owner){return jis.files_base_url+"/p/"+jis.files[D].fid_path+"_"+B+".jpg?v="+jis.files[D].version}else{throw new Error("cannot use "+B+" size as it is protected.")}}}return jis.files_base_url+"/"+jis.files[D].fid_path+"_"+B+".jpg?v="+jis.files[D].version};JSInfo.prototype.gimme_index_from_sfid=function(C){var B,A;for(B=0,A=jis.files.length;B<A;B++){if(this.gimme_short_fid(B)==C){return B}}return null};JSInfo.prototype.gimme_max_width=function(A){return this.gimme_default_max_width(A)};JSInfo.prototype.gimme_max_height=function(A){return this.gimme_default_max_height(A)};JSInfo.prototype.is_album_private=function(){return(jis.album_priv=="v")};JSInfo.prototype.gimme_subalbum_count=function(){return jis.albums.length};JSInfo.prototype.gimme_subalbum_name=function(A){return jis.albums[A].name};JSInfo.prototype.gimme_subalbum_url_name=function(A){return jis.albums[A].url_name};JSInfo.prototype.gimme_subalbum_pwd_id=function(A){return jis.albums[A].pwd_id};JSInfo.prototype.gimme_subalbum_privacy=function(A){return jis.albums[A].priv.substr(0,1)};JSInfo.prototype.is_subalbum_locked=function(A){return(jis.albums[A].priv.length==2)};JSInfo.prototype.gimme_subalbum_desc=function(A){return jis.albums[A].desc};JSInfo.prototype.gimme_subalbum_num_files=function(A){return jis.albums[A].num_files};JSInfo.prototype.gimme_subalbum_num_subalbums=function(A){return jis.albums[A].num_subalbums};JSInfo.prototype.gimme_subalbum_teaser_fid_path=function(A){return jis.albums[A].teaser_fid_path};JSInfo.prototype.gimme_subalbum_teaser_ver=function(A){return jis.albums[A].teaser_ver};JSInfo.prototype.gimme_index_from_subalbum=function(D){var C,A;var B=jis;for(C=0,A=B.albums.length;C<A;C++){if(B.albums[C].url_name==D){return C}}return null};JSInfo.prototype.gimme_pwd=function(){if(typeof (jis.px)=="undefined"){return""}else{return jis.px}};JSInfo.prototype.gimme_default_max_width=function(A){switch(A){case"sq":return 74;case"t":return 120;case"s":return 324;case"m":return 576;case"l":return 800;case"x":return 1152;default:g_trace.log("gimme_default_max_width: no such size - "+A)}};JSInfo.prototype.gimme_default_max_height=function(A){switch(A){case"sq":return 74;case"t":return 110;case"s":return 310;case"m":return 470;case"l":return 640;case"x":return 800;default:g_trace.log("gimme_default_max_height: no such size - "+A)}};ji=new JSInfo();


// File: b_style_1213.js

Style=function(){};Style.prototype.tools_width=function(){return sis.tools_width};Style.prototype.boarder_margin_left=function(A){if(A){return sis.boarder_t_margin_left}else{return sis.boarder_nt_margin_left}};Style.prototype.boarder_margin_right=function(A){if(A){return sis.boarder_t_margin_right}else{return sis.boarder_nt_margin_right}};Style.prototype.boarder_top=function(){return sis.boarder_top};Style.prototype.boarder_right=function(){return sis.boarder_right};Style.prototype.boarder_bottom=function(){return sis.boarder_bottom};Style.prototype.boarder_left=function(){return sis.boarder_left};Style.prototype.album_icon_width=function(){return sis.a.album_icon_width};Style.prototype.album_icon_height=function(){return sis.a.album_icon_height};Style.prototype.album_total_width=function(){return sis.a.album_total_width};Style.prototype.album_right_padding=function(){return sis.a.album_right_padding};Style.prototype.album_total_height=function(){return sis.a.album_total_height};Style.prototype.album_board_padding_left=function(){return sis.a.board_padding_left};Style.prototype.album_board_padding_right=function(){return sis.a.board_padding_right};Style.prototype.thumb_sq_total_width=function(){return sis.f.thumb_sq_total_width};Style.prototype.thumb_sq_total_height=function(){return sis.f.thumb_sq_total_height};Style.prototype.preview_border_top=function(){return sis.f.preview_border_top};Style.prototype.preview_border_right=function(){return sis.f.preview_border_right};Style.prototype.preview_border_bottom=function(){return sis.f.preview_border_bottom};Style.prototype.preview_border_left=function(){return sis.f.preview_border_left};Style.prototype.preview_margin_left=function(){return sis.f.preview_margin_left};Style.prototype.preview_margin_center=function(){return sis.f.preview_margin_center};Style.prototype.preview_margin_right=function(){return sis.f.preview_margin_right};Style.prototype.solo_border_top=function(){return sis.f.preview_border_top};Style.prototype.solo_border_right=function(){return sis.f.preview_border_right};Style.prototype.solo_border_bottom=function(){return sis.f.preview_border_bottom};Style.prototype.solo_border_left=function(){return sis.f.preview_border_left};Style.prototype.solo_matte_width=function(){return 0.05};Style.prototype.solo_matte_height=function(){return 0.06};si=new Style();


// File: b_json_1021.js

if(!Object.prototype.hasOwnProperty){Object.prototype.hasOwnProperty=function(B){try{var A=this.constructor.prototype;while(A){if(A[B]==this[B]){return false}A=A.prototype}}catch(C){}return true}}if(!Object.prototype.toJSONString){Array.prototype.toJSONString=function(){var B=[],D,A=this.length,C;for(D=0;D<A;D+=1){C=this[D];switch(typeof C){case"object":if(C){if(typeof C.toJSONString==="function"){B.push(C.toJSONString())}}else{B.push("null")}break;case"string":case"number":case"boolean":B.push(C.toJSONString())}}return"["+B.join(",")+"]"};Boolean.prototype.toJSONString=function(){return String(this)};Date.prototype.toJSONString=function(){function A(B){return B<10?"0"+B:B}return'"'+this.getUTCFullYear()+"-"+A(this.getUTCMonth()+1)+"-"+A(this.getUTCDate())+"T"+A(this.getUTCHours())+":"+A(this.getUTCMinutes())+":"+A(this.getUTCSeconds())+'Z"'};Number.prototype.toJSONString=function(){return isFinite(this)?String(this):"null"};Object.prototype.toJSONString=function(){var A=[],C,B;for(C in this){if(typeof C==="string"&&this.hasOwnProperty(C)){B=this[C];switch(typeof B){case"object":if(B){if(typeof B.toJSONString==="function"){A.push(C.toJSONString()+":"+B.toJSONString())}}else{A.push(C.toJSONString()+":null")}break;case"string":case"number":case"boolean":A.push(C.toJSONString()+":"+B.toJSONString())}}}return"{"+A.join(",")+"}"};(function(s){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};s.parseJSON=function(filter){var j;function walk(k,v){var i;if(v&&typeof v==="object"){for(i in v){if(v.hasOwnProperty(i)){v[i]=walk(i,v[i])}}}return filter(k,v)}if(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(this.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){j=eval("("+this+")");return typeof filter==="function"?walk("",j):j}throw new SyntaxError("parseJSON")};s.toJSONString=function(){if(/["\\\x00-\x1f]/.test(this)){return'"'+this.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+this+'"'}})(String.prototype)};


// File: b_ef_969.js

EF=function(){this.e_name="ef_embed";this.embedded=0;this.started=0;this.listener=null;this.l_obj=null;this.interval=null;this.interval_delay=200;this.value=null};EF.prototype.gimme_ef=function(A){return A*this.value};EF.prototype.gimme_ef_unit=function(){return this.value};EF.prototype.embed=function(){document.write('<span style="position: absolute; left: -9999px;" id="'+this.e_name+'">m&nbsp;</span>');this.embedded=1;if(this.started){this.start_detect()}this.value=document.getElementById(this.e_name).offsetWidth};EF.prototype.set_listener=function(A,B){this.listener=A;if(B=="undefined"||B==null){this.l_obj=this}else{this.l_obj=B}};EF.prototype.start_detect=function(){this.started=1;if(this.interval){return }if(!this.embedded){return }var B=this;var D=document.getElementById(this.e_name);var C=D.offsetWidth;function A(){var E=D.offsetWidth;if(E!=C){C=E;B.value=E;B.listener.call(B.l_obj,E)}}this.interval=setInterval(A,this.interval_delay)};EF.prototype.stop_detect=function(){this.started=0;clearInterval(this.interval);this.interval=null};g_ef=new EF();


// File: b_board_1543.js

Board=function(){this.board=null;this.boarder=null;if(g_min_win_width){this.min_win_width=g_min_win_width}else{this.min_win_width=792}};Board.prototype.set_min_board_width=function(A){this.min_board_width=A;if(this.boarder){this.adjust()}};Board.prototype.unset_min_board_width=function(){this.min_board_width=null;if(this.boarder){this.adjust()}};Board.prototype.write_top_board=function(){var D=this.gimme_boarder_width();var A=this.gimme_board_width();var B=this._gimme_boarder_margin();var C="";C+='<div id="boarder" style="margin-left: '+B+"px; width: "+D+'px;" >';C+='<div id="bstl" class="shtl" style="width: '+A+'px;" ><div></div></div>';C+='<div class="shtr"><div></div></div>';C+='<div id="bsl" class="shl" ><div></div></div>';C+='<div id="board" class="shc" style="width: '+A+'px;" >';document.write(C)};Board.prototype.write_bottom_board=function(){var B="";var A=g_board.gimme_board_width();B+="  </div>";B+=' <div id="bsr" class="shr"><div></div></div>';B+='<div id="bsbl" class="shbl" style="width: '+A+'px;" ><div></div></div>';B+='<div class="shbr"><div></div></div>';document.write(B)};Board.prototype._gimme_boarder_margin=function(){if(ji.are_tools_enabled()){return si.boarder_margin_left(true)+si.tools_width()}else{return si.boarder_margin_left(false)}};Board.prototype._gimme_window_width_to_use=function(){var A;if(this.min_board_width){if(ji.are_tools_enabled()){var B=this.min_board_width+si.tools_width()+si.boarder_margin_left(true)+si.boarder_margin_right(true)}else{var B=this.min_board_width+si.boarder_margin_left(false)+si.boarder_margin_right(false)}}if(document.all){A=document.body.offsetWidth}else{if(document.getElementById||document.layers){A=window.innerWidth;if(g_browser.saf){A=window.outerWidth}}}if(A<this.min_win_width){A=this.min_win_width}if(document.all){A-=4}if(B){if(A<B){A=B}}return A};Board.prototype.gimme_main_w_width=function(){var A=this._gimme_window_width_to_use();if(document.all){A-=17}else{A-=17}if(g_browser.saf){A-=20}return A};Board.prototype.gimme_window_width=function(){var A;if(document.all){A=document.body.offsetWidth}else{if(document.getElementById||document.layers){A=window.innerWidth}}return A};Board.prototype.gimme_window_height=function(){if(document.all){return document.body.offsetHeight-4}return window.innerHeight};Board.prototype.gimme_boarder_width=function(){var A=this._gimme_window_width_to_use();if(ji.are_tools_enabled()){this.boarder_width=A-si.tools_width()-si.boarder_margin_left(true)-si.boarder_margin_right(true)+si.boarder_left()+si.boarder_right()}else{this.boarder_width=A-si.boarder_margin_left(false)-si.boarder_margin_right(false)+si.boarder_left()+si.boarder_right()}return this.boarder_width};Board.prototype.gimme_board_width=function(){var A=this._gimme_window_width_to_use();if(ji.are_tools_enabled()){this.board_width=A-si.tools_width()-si.boarder_margin_left(true)-si.boarder_margin_right(true)}else{this.board_width=A-si.boarder_margin_left(false)-si.boarder_margin_right(false)}return this.board_width};Board.prototype.register_adjust_me_too=function(B,A){this.adjust_me_too_obj=B;this.adjust_me_too_func=A};Board.prototype.unregister_adjust_me_too=function(){this.adjust_me_too_obj=null;this.adjust_me_too_func=null};Board.prototype.adjust=function(){this.boarder.style.marginLeft=this._gimme_boarder_margin()+"px";this.boarder.style.width=this.gimme_boarder_width()+"px";this.board.style.width=this.gimme_board_width()+"px";this.main_wrapper.style.width=this.gimme_main_w_width()+"px";if(this.adjust_me_too_func){this.adjust_me_too_func.call(this.adjust_me_too_obj)}this.render_board_shadow()};Board.prototype.render_board_shadow=function(){var A=this.board.offsetHeight;var B=this.board.offsetWidth;this.board_shadow_t.style.width=B+"px";this.board_shadow_b.style.width=B+"px";this.board_shadow_l.style.height=A+"px";this.board_shadow_r.style.height=A+"px";var C=this.board_shadow_l.offsetWidth*2;this.boarder.style.width=(B+C)+"px"};Board.prototype.gimme_board_x_y=function(){return g_utils.gimme_elem_x_y(document.getElementById("board"))};Board.prototype.gimme_good_board_height=function(){var B=screen.height;var C=g_board.gimme_window_height();var A=B*0.6;if(C<A){C=A}return C-71-23};Board.prototype.gimme_small_board_height=function(){var B=screen.height;var C=g_board.gimme_window_height();var A=B*0.5;if(C<A){C=A}return C-90-50};Board.prototype.load=function(){this.board=document.getElementById("board");this.boarder=document.getElementById("boarder");this.board_shadow_t=document.getElementById("bstl");this.board_shadow_b=document.getElementById("bsbl");this.board_shadow_l=document.getElementById("bsl");this.board_shadow_r=document.getElementById("bsr");this.main_wrapper=document.getElementById("main_w");g_events.add("window","onresize",this.adjust,this);g_events.add("window","onefchange",this.adjust,this);this.adjust()};g_board=new Board();g_events.add("window","ondomload",g_board.load,g_board);


// File: b_yahoo_all_969.js

if(typeof YAHOO=="undefined"){var YAHOO={}}YAHOO.namespace=(function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]]}}return E});YAHOO.log=(function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C)}else{return false}});YAHOO.init=(function(){this.namespace("util","widget","example");if(typeof YAHOO_config!="undefined"){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break}}if(D){A.push(B)}}}});YAHOO.register=(function(A,E,D){var I=YAHOO.env.modules;if(!I[A]){I[A]={versions:[],builds:[]}}var B=I[A],H=D.version,G=D.build,F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(var C=0;C<F.length;C=C+1){F[C](B)}if(E){E.VERSION=H;E.BUILD=G}else{YAHOO.log("mainClass is undefined for module "+A,"warn")}});YAHOO.env=YAHOO.env||{modules:[],listeners:[],getVersion:(function(A){return YAHOO.env.modules[A]||null})};YAHOO.lang={isArray:(function(A){if(A&&A.constructor&&A.constructor.toString().indexOf("Array")>-1){return true}else{return YAHOO.lang.isObject(A)&&A.constructor==Array}}),isBoolean:(function(A){return typeof A=="boolean"}),isFunction:(function(A){return typeof A=="function"}),isNull:(function(A){return A===null}),isNumber:(function(A){return typeof A=="number"&&isFinite(A)}),isObject:(function(A){return A&&(typeof A=="object"||YAHOO.lang.isFunction(A))}),isString:(function(A){return typeof A=="string"}),isUndefined:(function(A){return typeof A=="undefined"}),hasOwnProperty:(function(A,B){if(Object.prototype.hasOwnProperty){return A.hasOwnProperty(B)}return !YAHOO.lang.isUndefined(A[B])&&A.constructor.prototype[B]!==A[B]}),extend:(function(D,E,C){if(!E||!D){throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.")}var B=(function(){});B.prototype=E.prototype;D.prototype=new B();D.prototype.constructor=D;D.superclass=E.prototype;if(E.prototype.constructor==Object.prototype.constructor){E.prototype.constructor=E}if(C){for(var A in C){D.prototype[A]=C[A]}}}),augment:(function(E,D){if(!D||!E){throw new Error("YAHOO.lang.augment failed, please check that all dependencies are included.")}var C=E.prototype,F=D.prototype,A=arguments,B,G;if(A[2]){for(B=2;B<A.length;B=B+1){C[A[B]]=F[A[B]]}}else{for(G in F){if(!C[G]){C[G]=F[G]}}}})};YAHOO.init();YAHOO.util.Lang=YAHOO.lang;YAHOO.augment=YAHOO.lang.augment;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.2.1",build:"193"});YAHOO.util.CustomEvent=(function(D,B,C,A){this.type=D;this.scope=B||window;this.silent=C;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true)}});YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:(function(B,C,A){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,A)}this.subscribers.push(new YAHOO.util.Subscriber(B,C,A))}),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(){var A=this.subscribers.length;if(!A&&this.silent){return true}var C=[],B=true,D;for(D=0;D<arguments.length;++D){C.push(arguments[D])}var G=C.length;if(!this.silent){}for(D=0;D<A;++D){var F=this.subscribers[D];if(F){if(!this.silent){}var E=F.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var H=null;if(C.length>0){H=C[0]}B=F.fn.call(E,H,F.obj)}else{B=F.fn.call(E,this.type,C,F.obj)}if(false===B){if(!this.silent){}return false}}}return true}),unsubscribeAll:(function(){for(var B=0,A=this.subscribers.length;B<A;++B){this._delete(A-1-B)}return B}),_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+"', scope: "+this.scope})};YAHOO.util.Subscriber=(function(B,C,A){this.fn=B;this.obj=C||null;this.override=A});YAHOO.util.Subscriber.prototype.getScope=(function(A){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return A});YAHOO.util.Subscriber.prototype.contains=(function(A,B){if(B){return(this.fn==A&&this.obj==B)}else{return(this.fn==A)}});YAHOO.util.Subscriber.prototype.toString=(function(){return"Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }"});if(!YAHOO.util.Event){YAHOO.util.Event=(function(){var H=false;var J=false;var I=[];var K=[];var F=[];var D=[];var C=0;var E=[];var B=[];var A=0;var G=null;return{POLL_RETRYS:200,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:(/KHTML/gi).test(navigator.userAgent),webkit:(function(){var L=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if(L&&L[1]){return L[1]}return null})(),isIE:(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),_interval:null,startInterval:(function(){if(!this._interval){var L=this;var M=(function(){L._tryPreloadAttach()});this._interval=setInterval(M,this.POLL_INTERVAL)}}),onAvailable:(function(N,L,O,M){E.push({id:N,fn:L,obj:O,override:M,checkReady:false});C=this.POLL_RETRYS;this.startInterval()}),onDOMReady:(function(L,N,M){this.DOMReadyEvent.subscribe(L,N,M)}),onContentReady:(function(N,L,O,M){E.push({id:N,fn:L,obj:O,override:M,checkReady:true});C=this.POLL_RETRYS;this.startInterval()}),addListener:(function(N,L,W,R,M){if(!W||!W.call){return false}if(this._isValidCollection(N)){var X=true;for(var S=0,U=N.length;S<U;++S){X=this.on(N[S],L,W,R,M)&&X}return X}else{if(typeof N=="string"){var Q=this.getEl(N);if(Q){N=Q}else{this.onAvailable(N,(function(){YAHOO.util.Event.on(N,L,W,R,M)}));return true}}}if(!N){return false}if("unload"==L&&R!==this){K[K.length]=[N,L,W,R,M];return true}var Z=N;if(M){if(M===true){Z=R}else{Z=M}}var O=(function(a){return W.call(Z,YAHOO.util.Event.getEvent(a),R)});var Y=[N,L,W,O,Z];var T=I.length;I[T]=Y;if(this.useLegacyEvent(N,L)){var P=this.getLegacyIndex(N,L);if(P==-1||N!=F[P][0]){P=F.length;B[N.id+L]=P;F[P]=[N,L,N["on"+L]];D[P]=[];N["on"+L]=(function(a){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(a),P)})}D[P].push(Y)}else{try{this._simpleAdd(N,L,O,false)}catch(V){this.lastError=V;this.removeListener(N,L,W);return false}}return true}),fireLegacyEvent:(function(P,N){var R=true,L,T,S,U,Q;T=D[N];for(var M=0,O=T.length;M<O;++M){S=T[M];if(S&&S[this.WFN]){U=S[this.ADJ_SCOPE];Q=S[this.WFN].call(U,P);R=(R&&Q)}}L=F[N];if(L&&L[2]){L[2](P)}return R}),getLegacyIndex:(function(M,N){var L=this.generateId(M)+N;if(typeof B[L]=="undefined"){return -1}else{return B[L]}}),useLegacyEvent:(function(M,N){if(this.webkit&&("click"==N||"dblclick"==N)){var L=parseInt(this.webkit,10);if(!isNaN(L)&&L<418){return true}}return false}),removeListener:(function(M,L,U){var P,S;if(typeof M=="string"){M=this.getEl(M)}else{if(this._isValidCollection(M)){var V=true;for(P=0,S=M.length;P<S;++P){V=(this.removeListener(M[P],L,U)&&V)}return V}}if(!U||!U.call){return this.purgeElement(M,false,L)}if("unload"==L){for(P=0,S=K.length;P<S;P++){var W=K[P];if(W&&W[0]==M&&W[1]==L&&W[2]==U){K.splice(P,1);return true}}return false}var Q=null;var R=arguments[3];if("undefined"==typeof R){R=this._getCacheIndex(M,L,U)}if(R>=0){Q=I[R]}if(!M||!Q){return false}if(this.useLegacyEvent(M,L)){var O=this.getLegacyIndex(M,L);var N=D[O];if(N){for(P=0,S=N.length;P<S;++P){W=N[P];if(W&&W[this.EL]==M&&W[this.TYPE]==L&&W[this.FN]==U){N.splice(P,1);break}}}}else{try{this._simpleRemove(M,L,Q[this.WFN],false)}catch(T){this.lastError=T;return false}}delete I[R][this.WFN];delete I[R][this.FN];I.splice(R,1);return true}),getTarget:(function(N,M){var L=N.target||N.srcElement;return this.resolveTextNode(L)}),resolveTextNode:(function(L){if(L&&3==L.nodeType){return L.parentNode}else{return L}}),getPageX:(function(M){var L=M.pageX;if(!L&&0!==L){L=M.clientX||0;if(this.isIE){L+=this._getScrollLeft()}}return L}),getPageY:(function(L){var M=L.pageY;if(!M&&0!==M){M=L.clientY||0;if(this.isIE){M+=this._getScrollTop()}}return M}),getXY:(function(L){return[this.getPageX(L),this.getPageY(L)]}),getRelatedTarget:(function(M){var L=M.relatedTarget;if(!L){if(M.type=="mouseout"){L=M.toElement}else{if(M.type=="mouseover"){L=M.fromElement}}}return this.resolveTextNode(L)}),getTime:(function(N){if(!N.time){var M=(new Date()).getTime();try{N.time=M}catch(L){this.lastError=L;return M}}return N.time}),stopEvent:(function(L){this.stopPropagation(L);this.preventDefault(L)}),stopPropagation:(function(L){if(L.stopPropagation){L.stopPropagation()}else{L.cancelBubble=true}}),preventDefault:(function(L){if(L.preventDefault){L.preventDefault()}else{L.returnValue=false}}),getEvent:(function(M){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break}N=N.caller}}return L}),getCharCode:(function(L){return L.charCode||L.keyCode||0}),_getCacheIndex:(function(P,Q,O){for(var N=0,M=I.length;N<M;++N){var L=I[N];if(L&&L[this.FN]==O&&L[this.EL]==P&&L[this.TYPE]==Q){return N}}return -1}),generateId:(function(L){var M=L.id;if(!M){M="yuievtautoid-"+A;++A;L.id=M}return M}),_isValidCollection:(function(L){return(L&&L.length&&typeof L!="string"&&!L.tagName&&!L.alert&&typeof L[0]!="undefined")}),elCache:{},getEl:(function(L){return document.getElementById(L)}),clearCache:(function(){}),DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:(function(M){if(!H){H=true;var L=YAHOO.util.Event;L._ready();if(this.isIE){L._simpleRemove(window,"load",L._load)}}}),_ready:(function(M){if(!J){J=true;var L=YAHOO.util.Event;L.DOMReadyEvent.fire();L._simpleRemove(document,"DOMContentLoaded",L._ready)}}),_tryPreloadAttach:(function(){if(this.locked){return false}if(this.isIE&&!J){return false}this.locked=true;var Q=!H;if(!Q){Q=(C>0)}var P=[];var R=(function(T,U){var S=T;if(U.override){if(U.override===true){S=U.obj}else{S=U.override}}U.fn.call(S,U.obj)});var M,L,O,N;for(M=0,L=E.length;M<L;++M){O=E[M];if(O&&!O.checkReady){N=this.getEl(O.id);if(N){R(N,O);E[M]=null}else{P.push(O)}}}for(M=0,L=E.length;M<L;++M){O=E[M];if(O&&O.checkReady){N=this.getEl(O.id);if(N){if(H||N.nextSibling){R(N,O);E[M]=null}}else{P.push(O)}}}C=(P.length===0)?0:C-1;if(Q){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true}),purgeElement:(function(O,P,R){var Q=this.getListeners(O,R);if(Q){for(var N=0,L=Q.length;N<L;++N){var M=Q[N];this.removeListener(O,M.type,M.fn)}}if(P&&O&&O.childNodes){for(N=0,L=O.childNodes.length;N<L;++N){this.purgeElement(O.childNodes[N],P,R)}}}),getListeners:(function(N,L){var Q=[],M;if(!L){M=[I,K]}else{if(L=="unload"){M=[K]}else{M=[I]}}for(var P=0;P<M.length;++P){var T=M[P];if(T&&T.length>0){for(var R=0,S=T.length;R<S;++R){var O=T[R];if(O&&O[this.EL]===N&&(!L||L===O[this.TYPE])){Q.push({type:O[this.TYPE],fn:O[this.FN],obj:O[this.OBJ],adjust:O[this.ADJ_SCOPE],index:R})}}}}return(Q.length)?Q:null}),_unload:(function(S){var R=YAHOO.util.Event,P,O,M,L,N;for(P=0,L=K.length;P<L;++P){M=K[P];if(M){var Q=window;if(M[R.ADJ_SCOPE]){if(M[R.ADJ_SCOPE]===true){Q=M[R.OBJ]}else{Q=M[R.ADJ_SCOPE]}}M[R.FN].call(Q,R.getEvent(S),M[R.OBJ]);K[P]=null;M=null;Q=null}}K=null;if(I&&I.length>0){O=I.length;while(O){N=O-1;M=I[N];if(M){R.removeListener(M[R.EL],M[R.TYPE],M[R.FN],N)}O=O-1}M=null;R.clearCache()}for(P=0,L=F.length;P<L;++P){F[P][0]=null;F[P]=null}F=null;R._simpleRemove(window,"unload",R._unload)}),_getScrollLeft:(function(){return this._getScroll()[1]}),_getScrollTop:(function(){return this._getScroll()[0]}),_getScroll:(function(){var L=document.documentElement,M=document.body;if(L&&(L.scrollTop||L.scrollLeft)){return[L.scrollTop,L.scrollLeft]}else{if(M){return[M.scrollTop,M.scrollLeft]}else{return[0,0]}}}),regCE:(function(){}),_simpleAdd:(function(){if(window.addEventListener){return(function(N,O,M,L){N.addEventListener(O,M,(L))})}else{if(window.attachEvent){return(function(N,O,M,L){N.attachEvent("on"+O,M)})}else{return(function(){})}}})(),_simpleRemove:(function(){if(window.removeEventListener){return(function(N,O,M,L){N.removeEventListener(O,M,(L))})}else{if(window.detachEvent){return(function(M,N,L){M.detachEvent("on"+N,L)})}else{return(function(){})}}})()}})();(function(){var B=YAHOO.util.Event;B.on=B.addListener;if(B.isIE){document.write('<script id="_yui_eu_dr" defer="true" src="//:"><\/script>');var A=document.getElementById("_yui_eu_dr");A.onreadystatechange=(function(){if("complete"==this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready()}});A=null;YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true)}else{if(B.webkit){B._drwatch=setInterval((function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(B._drwatch);B._drwatch=null;B._ready()}}),B.POLL_INTERVAL)}else{B._simpleAdd(document,"DOMContentLoaded",B._ready)}}B._simpleAdd(window,"load",B._load);B._simpleAdd(window,"unload",B._unload);B._tryPreloadAttach()})()}YAHOO.util.EventProvider=(function(){});YAHOO.util.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,override:E})}}),unsubscribe:(function(A,B,D){this.__yui_events=this.__yui_events||{};var C=this.__yui_events[A];if(C){return C.unsubscribe(B,D)}else{return false}}),unsubscribeAll:(function(A){return this.unsubscribe(A)}),createEvent:(function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=A.silent||null;var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C<F.length;++C){B.subscribe(F[C].fn,F[C].obj,F[C].override)}}}return I[G]}),fireEvent:(function(E,D,A,C){this.__yui_events=this.__yui_events||{};var G=this.__yui_events[E];if(G){var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F])}return G.fire.apply(G,B)}else{return null}}),hasEvent:(function(A){if(this.__yui_events){if(this.__yui_events[A]){return true}}return false})};YAHOO.util.KeyListener=(function(A,F,B,C){if(!A){}else{if(!F){}else{if(!B){}}}if(!C){C=YAHOO.util.KeyListener.KEYDOWN}var D=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof A=="string"){A=document.getElementById(A)}if(typeof B=="function"){D.subscribe(B)}else{D.subscribe(B.fn,B.scope,B.correctScope)}function E(K,J){if(!F.shift){F.shift=false}if(!F.alt){F.alt=false}if(!F.ctrl){F.ctrl=false}if(K.shiftKey==F.shift&&K.altKey==F.alt&&K.ctrlKey==F.ctrl){var H;var G;if(F.keys instanceof Array){for(var I=0;I<F.keys.length;I++){H=F.keys[I];if(H==K.charCode){D.fire(K.charCode,K);break}else{if(H==K.keyCode){D.fire(K.keyCode,K);break}}}}else{H=F.keys;if(H==K.charCode){D.fire(K.charCode,K)}else{if(H==K.keyCode){D.fire(K.keyCode,K)}}}}}this.enable=(function(){if(!this.enabled){YAHOO.util.Event.addListener(A,C,E);this.enabledEvent.fire(F)}this.enabled=true});this.disable=(function(){if(this.enabled){YAHOO.util.Event.removeListener(A,C,E);this.disabledEvent.fire(F)}this.enabled=false});this.toString=(function(){return"KeyListener ["+F.keys+"] "+A.tagName+(A.id?"["+A.id+"]":"")})});YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.2.1",build:"193"});YAHOO.util.Connect={_msxml_progid:["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",(function(B){var A=YAHOO.util.Event.getTarget(B);if(A.type=="submit"){YAHOO.util.Connect._submitElementValue=encodeURIComponent(A.name)+"="+encodeURIComponent(A.value)}}));return true}return false})(),setProgId:(function(A){this._msxml_progid.unshift(A)}),setDefaultPostHeader:(function(A){this._use_default_post_header=A}),setDefaultXhrHeader:(function(A){this._use_default_xhr_header=A}),setPollingInterval:(function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A}}),createXhrObject:(function(E){var D,A;try{A=new XMLHttpRequest();D={conn:A,tId:E}}catch(C){for(var B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);D={conn:A,tId:E};break}catch(C){}}}finally{return D}}),getConnectionObject:(function(){var B;var C=this._transaction_id;try{B=this.createXhrObject(C);if(B){this._transaction_id++}}catch(A){}finally{return B}}),asyncRequest:(function(E,B,D,A){var C=this.getConnectionObject();if(!C){return null}else{if(this._isFormSubmit){}C.conn.open(E,B,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true)}}if(this._isFormSubmit||(A&&this._use_default_post_header)){this.initHeader("Content-Type",this._default_post_header);if(this._isFormSubmit){this.resetFormState()}}if(this._has_default_headers||this._has_http_headers){this.setHeader(C)}this.handleReadyState(C,D);C.conn.send(A||null);return C}}),handleReadyState:(function(B,C){var A=this;if(C&&C.timeout){this._timeOut[B.tId]=window.setTimeout((function(){A.abort(B,C,true)}),C.timeout)}this._poll[B.tId]=window.setInterval((function(){if(B.conn&&B.conn.readyState===4){window.clearInterval(A._poll[B.tId]);delete A._poll[B.tId];if(C&&C.timeout){delete A._timeOut[B.tId]}A.handleTransactionResponse(B,C)}}),this._polling_interval)}),handleTransactionResponse:(function(E,F,A){if(!F){this.releaseObject(E);return }var C,B;try{if(E.conn.status!==undefined&&E.conn.status!==0){C=E.conn.status}else{C=13030}}catch(D){C=13030}if(C>=200&&C<300||C===1223){B=this.createResponseObject(E,F.argument);if(F.success){if(!F.scope){F.success(B)}else{F.success.apply(F.scope,[B])}}}else{switch(C){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:B=this.createExceptionObject(E.tId,F.argument,(A?A:false));if(F.failure){if(!F.scope){F.failure(B)}else{F.failure.apply(F.scope,[B])}}break;default:B=this.createResponseObject(E,F.argument);if(F.failure){if(!F.scope){F.failure(B)}else{F.failure.apply(F.scope,[B])}}}}this.releaseObject(E);B=null}),createResponseObject:(function(A,G){var D={};var I={};try{var C=A.conn.getAllResponseHeaders();var F=C.split("\n");for(var E=0;E<F.length;E++){var B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=F[E].substring(B+2)}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(typeof G!==undefined){D.argument=G}return D}),createExceptionObject:(function(H,D,A){var F=0;var G="communication failure";var C=-1;var B="transaction aborted";var E={};E.tId=H;if(A){E.status=C;E.statusText=B}else{E.status=F;E.statusText=G}if(D){E.argument=D}return E}),initHeader:(function(A,D,C){var B=(C)?this._default_headers:this._http_headers;if(B[A]===undefined){B[A]=D}else{B[A]=D+","+B[A]}if(C){this._has_default_headers=true}else{this._has_http_headers=true}}),setHeader:(function(A){if(this._has_default_headers){for(var B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B])}}}if(this._has_http_headers){for(var B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B])}}delete this._http_headers;this._http_headers={};this._has_http_headers=false}}),resetDefaultHeaders:(function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false}),abort:(function(B,C,A){if(this.isCallInProgress(B)){B.conn.abort();window.clearInterval(this._poll[B.tId]);delete this._poll[B.tId];if(A){delete this._timeOut[B.tId]}this.handleTransactionResponse(B,C,true);return true}else{return false}}),isCallInProgress:(function(A){if(A.conn){return A.conn.readyState!==4&&A.conn.readyState!==0}else{return false}}),releaseObject:(function(A){A.conn=null;A=null})};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.2.1",build:"193"});YAHOO.util.History=(function(){var M=null;var F="unknown";var N=null;var H=null;var I=false;var E=false;var B=false;var D=[];var C=[];function O(P){return P.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1")}function L(){var P;var Q;P=top.location.href;Q=P.indexOf("#");return Q>=0?P.substr(Q+1):null}function A(){var Q;var R;var S=[];var P=[];for(Q in D){if(YAHOO.lang.hasOwnProperty(D,Q)){R=D[Q];S.push(Q+"="+R.initialState);P.push(Q+"="+R.currentState)}}H.value=S.join("&")+"|"+P.join("&");if(F=="safari"){H.value+="|"+C.join(",")}}function J(){var R;var P;var Q;if(!N.contentWindow||!N.contentWindow.document){setTimeout(J,10);return }R=N.contentWindow.document;P=R.getElementById("state");Q=P?P.innerText:null;setInterval((function(){var V;var W;var S;var T;var U;R=N.contentWindow.document;P=R.getElementById("state");V=P?P.innerText:null;if(V!=Q){Q=V;K(Q);if(!Q){S=[];for(T in D){if(YAHOO.lang.hasOwnProperty(D,T)){U=D[T];S.push(T+"="+U.initialState)}}W=S.join("&")}else{W=Q}top.location.replace("#"+W);A()}}),50);B=true;YAHOO.util.History.onLoadEvent.fire()}function K(P){var U;var V;var Q;var S;var T;var X;var W;var R;if(!P){for(Q in D){if(YAHOO.lang.hasOwnProperty(D,Q)){S=D[Q];S.currentState=S.initialState;S.onStateChange(unescape(S.currentState))}}return }T=[];X=P.split("&");for(U=0,V=X.length;U<V;U++){W=X[U].split("=");if(W.length==2){Q=W[0];R=W[1];T[Q]=R}}for(Q in D){if(YAHOO.lang.hasOwnProperty(D,Q)){S=D[Q];R=T[Q];if(!R||S.currentState!=R){S.currentState=R||S.initialState;S.onStateChange(unescape(S.currentState))}}}}function G(){var W;var Y;var U;var a;var Q;var S;var Z;var T;var X;var R;var P;var V;H=document.getElementById("yui_hist_field");U=H.value.split("|");if(U.length>1){Z=U[0].split("&");for(W=0,Y=Z.length;W<Y;W++){a=Z[W].split("=");if(a.length==2){Q=a[0];T=a[1];S=D[Q];if(S){S.initialState=T}}}X=U[1].split("&");for(W=0,Y=X.length;W<Y;W++){a=X[W].split("=");if(a.length>=2){Q=a[0];R=a[1];S=D[Q];if(S){S.currentState=R}}}}if(U.length>2){C=U[2].split(",")}E=true;if(F=="msie"){N=document.getElementById("yui_hist_iframe");J()}else{P=history.length;V=L();setInterval((function(){var d;var b;var c;b=L();c=history.length;if(b!=V){V=b;P=c;K(V);A()}else{if(c!=P){V=b;P=c;d=C[P-1];K(d);A()}}}),50);B=true;YAHOO.util.History.onLoadEvent.fire()}}M=navigator.userAgent.toLowerCase();if(M.indexOf("opera")!=-1){F="opera"}else{if(M.indexOf("msie")!=-1){F="msie"}else{if(M.indexOf("safari")!=-1){F="safari"}else{if(M.indexOf("gecko")!=-1){F="gecko"}}}}return{onLoadEvent:new YAHOO.util.CustomEvent("onLoad"),register:(function(S,P,U,V,R){var T;var Q;if(typeof S!="string"||O(S)===""||typeof P!="string"||typeof U!="function"){throw new Error("Missing or invalid argument passed to YAHOO.util.History.register")}if(D[S]){throw new Error("A module cannot be registered twice")}if(I){throw new Error("All modules must be registered before calling YAHOO.util.History.initialize")}S=escape(S);P=escape(P);T=null;if(R===true){T=V}else{T=R}Q=(function(W){return U.call(T,W,V)});D[S]={name:S,initialState:P,currentState:P,onStateChange:Q}}),initialize:(function(P){if(I){return }if(F=="unknown"){throw new Error("Your web browser is not supported by the Browser History Manager")}if(!P){P="blank.html"}if(typeof P!="string"||O(P)===""){throw new Error("Invalid argument passed to YAHOO.util.History.initialize")}document.write('<input type="hidden" id="yui_hist_field">');if(F=="msie"){if(location.protocol=="https:"){document.write('<iframe id="yui_hist_iframe" src="'+P+'" style="position:absolute;left:0px;top:0px;visibility:hidden;"></iframe>')}else{document.write('<iframe id="yui_hist_iframe" src="javascript:document.open();document.write(&quot;'+(new Date()).getTime()+'&quot;);document.close();" style="position:absolute;visibility:hidden;"></iframe>')}}g_events.add("window","ondomload",G);I=true}),navigate:(function(U,Q){var W;var R;var T;var S;var P;var V;var Y;if(typeof U!="string"||typeof Q!="string"){throw new Error("Missing or invalid argument passed to YAHOO.util.History.navigate")}if(!B){throw new Error("The Browser History Manager is not initialized")}if(!D[U]){throw new Error("The following module has not been registered: "+U)}U=escape(U);Q=escape(Q);W=[];for(R in D){if(YAHOO.lang.hasOwnProperty(D,R)){T=D[R];S=(R==U)?Q:T.currentState;W.push(R+"="+S)}}P=W.join("&");if(F=="msie"){V='<html><body><div id="state">'+P+"</div></body></html>";try{Y=N.contentWindow.document;Y.open();Y.write(V);Y.close()}catch(X){return false}}else{top.location.hash=P;if(F=="safari"){C[history.length]=P;A()}}return true}),getBookmarkedState:(function(T){var S;var P;var V;var Q;var U;var R;if(typeof T!="string"){throw new Error("Missing or invalid argument passed to YAHOO.util.History.getBookmarkedState")}V=top.location.hash.substr(1);Q=V.split("&");for(S=0,P=Q.length;S<P;S++){U=Q[S].split("=");if(U.length==2){R=U[0];if(R==T){return unescape(U[1])}}}return null})}})();YAHOO.register("history",YAHOO.util.History,{version:"2.2.1",build:"193"});


// File: b_scene_1441.js

Scene=function(A){if(A){this.hash="";this.old_hash=null;this.index=null;this.mode=null;this.action=null;this.mode_obj=null;this.tools=new Tools();this.tools_enabled=false;this.history_broken=false;this.ignore_next_state_change=false;this.reload_page=false;this.nav_protection=false;this.count=this._gimme_count();this.related_stack=new Array();this.r_data_to_use=null;this.page_expired=false;this.cf_timestamp=null;this.cf_in_progress=false;this.dont_check=false;this.init_phase=true;this.breach=false;this.nav_protection_short_msg="Your changes will not be saved.";this.nav_protection_long_msg='Warning: your changes will not be saved.  Press "OK" to continue and leave this page, or "Cancel" to stay on this page.'}};Scene.prototype._gimme_count=function(){};Scene.prototype._gimme_index=function(A){};Scene.prototype._gimme_id=function(A){};Scene.prototype._dummy=function(){this.hash_var=null;this.mode_list=null};Scene.prototype._initialize_scene=function(){this.cf_timestamp=new Date();this.orig_hash=YAHOO.util.History.getBookmarkedState(this.hash_var);if(this.orig_hash){var A=this._decode_hash(this.orig_hash);this.hash=this.orig_hash;this.index=parseInt(A[0]);this.mode=A[2];this.action=A[3];if(this.count==0){this._create_mode_obj(this.mode);if(!this._call_mode("can_you_handle_empty",this.action)){this.mode=this.action=this._gimme_default_mode()}}}else{g_trace.log("thumb count is "+this.count);if(this.count>0){this.index=0;this.orig_hash=this._gimme_id(this.index);var A=this._decode_hash(this.orig_hash);this.hash=this.orig_hash;this.index=parseInt(A[0]);this.mode=A[2];this.action=A[3]}else{this.orig_hash="";this.index="";this.mode=this.action=this._gimme_default_mode()}}this._check_sign_in(false);this._check_for_breach(this.mode);if(!this.breach){this._create_mode_obj(this.mode)}};Scene.prototype.init_tools=function(){this._init_history();if(this.breach){this.tools_enabled=true}else{this.tools_enabled=this._call_mode("are_tools_enabled",this.action,this.index)}switch(this.tools_enabled){case false:this.tools.init(false,false);break;case true:this.tools.init(true,false);break;case 2:this.tools.init(true,true);break}this._init_mode(this.action,this.index)};Scene.prototype._disable_tools=function(){g_trace.log("disable tools called");this.tools_enabled=false;this.tools.disable()};Scene.prototype._enable_tools=function(A){this.tools_enabled=A;if(A==2){this.tools.enable(true)}else{this.tools.enable(false)}};Scene.prototype._init_mode=function(D,C,B){var A=this._call_mode("init",D,C,B);if(A==1){this.page_expired=true}};Scene.prototype._output_tools=function(){if(this.page_expired||this.breach){var B="";var A="/"+ji.gimme_user_album_path();if(this.page_expired){B+="<h1>This page has expired.</h1>";B+="<p>The <em>back button</em> will probably take you to the place you want to go.</p><p>If not, click"}else{B+="<h1>Sign in required.</h1>";B+="<p>This page requires you to sign in.</p><p>Click"}B+=' <a href="'+A+'" onclick="g_utils.redirect(\''+A+"');return false;\" >here to return to the album</a></p>";B+='<div class="two_spacers"><div></div></div>';return B}else{if((!ji.is_owner())||(ji.is_active()&&!ji.is_expired())){return this._call_mode("output_tools",this.action,this.index)}else{var B="";if(ji.is_expired()){B+="<h1>Your account has expired.</h1>"}else{if(ji.is_suspended()){B+="<h1>Your account has been suspended.</h1>"}else{B+="<h1>Your account is not active.</h1>"}}B+='<div class="spacer"><div></div></div>';B+='<p>Please go to your <a href="/my_account.html">My Account</a> page for details.</p>';B+='<div class="two_spacers"><div></div></div>';return B}}};Scene.prototype.write_tools=function(){if(!this.tools_enabled){return }this.tools.write(this._output_tools())};Scene.prototype._output_board=function(){if(this.page_expired){var A='<div id="empty_board">This page has expired</div><div style="clear: both;"><div></div></div>';return A}else{if(this.breach){var A='<div id="empty_board">This page requires you to sign in.</div><div style="clear: both;"><div></div></div>';return A}else{return this._call_mode("output_board",this.action,this.index)}}};Scene.prototype.write_board=function(){document.write(this._output_board())};Scene.prototype.gimme_hash=function(){return this.hash_var+"="+this.hash};Scene.prototype.gimme_id=function(){return this._gimme_id(this.index)};Scene.prototype._init_history=function(){var A=this;YAHOO.util.History.register(this.hash_var,this.orig_hash,function(C){A.history_change(C)});try{YAHOO.util.History.initialize("/blank.html")}catch(B){g_trace.log("history broken");this.history_broken=true}};Scene.prototype.history_change=function(D){this.old_hash=this.hash;this.hash=D;if(this.reload_page){window.location.reload();return }if(this.cf_in_progress){return }if(!this.dont_check){var B=this._decode_hash(D);var E=B[2];this._check_sign_in(true)}if(!this.dont_check){var A=new Date();var C=(A.getTime()-this.cf_timestamp.getTime())/1000;g_trace.log("Time difference is "+C);if(C>60){this.cf_in_progress=true;this.cf_timestamp=A;this._check_album();return }}this.dont_check=false;this._do_history_change_now()};Scene.prototype._do_history_change_now=function(){var E=this._decode_hash(this.hash);var B=parseInt(E[0]);var D=E[2];var G=E[3];var A=document.getElementById("board");if(this.ignore_next_state_change){this.ignore_next_state_change=false;return }if(D!=this.mode){if(!this.related_check(B,G,this.index,this.action)){this.erase_related();if(this._can_we_navigate()==false){this.ignore_next_state_change=true;YAHOO.util.History.navigate(this.hash_var,this.old_hash);return }}this._call_mode("cleanup");this._cleanup_nav_protection();this.tools.cleanup();this._check_for_breach(D);this.index=B;this.mode=D;this.action=G;this.page_expired=false;if(this.breach){var F=true}else{this._create_mode_obj(D);var F=this._call_mode("are_tools_enabled",G,B)}if(F!=this.tools_enabled){if(F){this._enable_tools(F)}else{this._disable_tools()}}this._init_mode(G,B,this.r_data_to_use);if(F){this.tools.update(this._output_tools())}A.innerHTML=this._output_board();g_events.trigger_resize();this._call_mode("load")}else{this.index=B;this._call_mode("change_page",G,B)}if(window.pageTracker){var C=document.location.pathname+document.location.search+document.location.hash;pageTracker._trackPageview(C)}};Scene.prototype._check_album=function(A){var B={success:this._cf_success,failure:this._cf_failed,scope:this};YAHOO.util.Connect.asyncRequest("GET","/check_album.json?username="+ji.gimme_album_username()+"&p="+ji.gimme_album_path()+"&aver="+ji.gimme_album_ver(),B)};Scene.prototype._cf_success=function(o){this.cf_in_progress=false;if(o.responseText.substr(0,1)!="{"){g_trace.log("Bad Check Album response of "+o.responseText)}else{eval("var resp="+o.responseText);switch(resp.status){case 0:if(resp.match!=1){window.location.reload();break}else{this._do_history_change_now()}break;case 1:alert("You are no longer signed in, your session timed out due to inactivity.");window.location.reload();break;case 2:alert("You are no longer signed in.");window.location.reload();break;case 10:alert("This album no longer exists.");window.location="/"+ji.gimme_album_username();break;case 3:case 4:default:g_trace.log("Check album bad resp (err: "+resp.status+").");this._do_history_change_now();break}}};Scene.prototype._cf_failed=function(A){this.cf_in_progress=false;g_trace.log("Check Album failed");window.location.reload()};Scene.prototype._check_sign_in=function(A){var B=new Cookie("sc");if(ji.is_signed_in()){if(B.get()==null){if(A){alert("You are no longer signed in.")}window.location.reload()}}else{if(B.get()!=null){window.location.reload()}}};Scene.prototype._check_for_breach=function(A){this.breach=false;if(!ji.is_signed_in()){if(this.mode_list[A].sign_in){this.breach=true}}};Scene.prototype._decode_hash=function(C){var F,D,B,E;if((E=C.indexOf("*"))!=-1){F=C.substring(0,E);D=C.substr(E+1,1);B=C.substr(E+1);if(!(D in this.mode_list)){g_trace.log("invalid action code: "+B);D=this._gimme_default_mode();B=D}}else{F=C;D=this._gimme_default_mode();B=D}var A=this._gimme_index(F)||0;return[A,F,D,B]};Scene.prototype._gimme_default_mode=function(){for(var A in this.mode_list){if(typeof (this.mode_list[A])!="function"){return A}}};Scene.prototype._create_mode_obj=function(new_mode){this.mode_obj=null;eval("this.mode_obj = new "+this.mode_list[new_mode].mode_name+'(this, "'+this.hash_var+'")')};Scene.prototype._call_mode=function(A,D,C,B){if(this.page_expired||this.breach){g_trace.log("this page has expired or been breached - "+A+" not exexuted")}else{return this.mode_obj[A](D,C,B)}};Scene.prototype.related_add=function(D,F,C,A,E){this.erase_forward_related(D,F);var B={from_index:D,from_action:F,to_index:C,to_action:A,data:E};g_trace.log("ADDING - ");g_trace.log(B);this.related_stack[this.related_stack.length]=B};Scene.prototype.related_check=function(F,G,D,B){var C,A,E;for(C=0,A=this.related_stack.length;C<A;C++){E=this.related_stack[C];if((E.from_index==F&&E.from_action==G&&E.to_index==D&&E.to_action==B)||(E.from_index==D&&E.from_action==B&&E.to_index==F&&E.to_action==G)){g_trace.log("Found related data to use");this.r_data_to_use=E.data;return true}}this.r_data_to_use=null;return null};Scene.prototype.erase_forward_related=function(D,E){var B,A,C;for(B=0,A=this.related_stack.length;B<A;B++){C=this.related_stack[B];if(C.from_index==D&&C.from_action==E){g_trace.log("Erased forward history with "+(B)+" : "+(A-B));this.related_stack.splice(B,A-B);return }}g_trace.log("Did not find forward history to erase");return false};Scene.prototype.erase_related=function(){this.related_stack=new Array()};Scene.prototype._calc_hash=function(B,C){if(B===""){var A="none"}else{var A=this._gimme_id(B)}if(C){A+="*"+C}return A};Scene.prototype.navigate=function(B,C){this.unprotect_from_navigation();var A=this._calc_hash(B,C);return this.navigate_hash(A)};Scene.prototype.navigate_related=function(A,C,B){this.dont_check=true;this.related_add(this.index,this.action,A,C,B);this.navigate(A,C)};Scene.prototype.navigate_with_no_history=function(B,C){this.dont_check=true;var A=this._calc_hash(B,C);this.history_change(A);return false};Scene.prototype.navigate_hash=function(A){if(this.history_broken){g_trace.log("History is broken - call directly");this.history_change(A)}else{YAHOO.util.History.navigate(this.hash_var,A)}return false};Scene.prototype.navigate_hash_with_no_history=function(A){this.history_change(A);return false};Scene.prototype.reload_default=function(){if(this.init_phase){g_utils.redirect(ji.gimme_user_album_path(),this._gimme_id(this.index),this.hash_var)}else{this.reload_specific(0)}};Scene.prototype.reload_specific=function(B,C){if(this.init_phase){var A=this._calc_hash(B,C);g_utils.redirect(ji.gimme_user_album_path(),A,this.hash_var)}else{this.reload_page=true;this.navigate(B,C)}};Scene.prototype.reload_this_page=function(){window.location.reload()};Scene.prototype.protect_from_navigation=function(){if(this.nav_protection==false){this.nav_protection=true;g_events.add("window","onbeforeunload",this._beforeunload_callback,this)}};Scene.prototype.unprotect_from_navigation=function(){if(this.nav_protection){this.nav_protection=false;g_events.remove("window","onbeforeunload",this._beforeunload_callback)}};Scene.prototype._cleanup_nav_protection=function(){this.unprotect_from_navigation()};Scene.prototype._beforeunload_callback=function(A){A.returnValue=this.nav_protection_short_msg;return this.nav_protection_short_msg};Scene.prototype._can_we_navigate=function(){if(this.nav_protection==false){return true}return confirm(this.nav_protection_long_msg)};Scene.prototype._sign_in_out_clicked=function(){var A="http://www.flickaway.com/"+ji.gimme_user_album_path()+"#"+this.hash_var+"=";if(ji.is_signed_in()&&this.mode_list[this.mode].sign_in){A+=this._gimme_id(this.index)}else{A+=this.hash}if(ji.is_album_private()){A="http://www.flickaway.com"}var B=g_utils.encode64(A);g_trace.log("this path is "+g_utils.decode64(B));document.getElementById("a_sign").href+="?goto="+B};Scene.prototype._last_breadcrumb_clicked=function(){if(this.count>0){this.navigate(this.index)}return false};Scene.prototype._onload=function(){var A=document.getElementById("acpic_img");A.style.display="block";g_events.add("a_sign","onclick",this._sign_in_out_clicked,this);g_events.add("bc_last","onclick",this._last_breadcrumb_clicked,this);this.init_phase=false;this._call_mode("load")};


// File: b_mode_1376.js

Mode=function(B,A){if(B){this.scene_obj=B;this.hash_var=A}};Mode.prototype._set_hash_in_tools=function(E){var D,B,C;var A=g_utils.getElementsByClass("hashable",document.getElementById("tools"),"a");for(D=0,B=A.length;D<B;D++){this._replace_a_hash(A[D],E)}};Mode.prototype._replace_a_hash=function(H,C){var F=null;var B=H.href;var D=B;var I=B.indexOf("#");if(I>=0){var G=B.substr(I+1);var A=G.indexOf("*");if(A>=0){F=G.substr(A+1)}D=B.substr(0,I)}if(F){var E=D+"#"+this.hash_var+"="+C+"*"+F}else{var E=D+"#"+this.hash_var+"="+C}H.href=E};Mode.prototype._json_post=function(A,B){var D={success:this._json_response,failure:this._json_failed,scope:this};var C=new Cookie("sc");B+="&sis="+C.get();YAHOO.util.Connect.asyncRequest("POST",A,D,B)};Mode.prototype._json_response=function(o){if(o.responseText.substr(0,1)!="{"){g_trace.log("ERROR response - o.responseText = "+o.responseText);var resp={status:4}}else{eval("var resp="+o.responseText)}if(resp.status==0){this._json_success()}else{this._handle_bad_json_resp(resp)}};Mode.prototype._handle_bad_json_resp=function(A){if(!A.status){g_trace.log("resp.status not present");A.status=4}switch(A.status){case 0:break;case 1:alert("You are not signed in anymore, your session timed out due to inactivity.");break;case 2:alert("You are not signed in");break;case 3:alert("This request was invalid.  It has been reported and we be investigated.  Please try again later.");this.scene_obj.reload_default();break;case 10:alert("This album no longer exists (or was moved).  You will be directed to your home page.");window.location="/"+ji.gimme_album_username();break;case 11:alert("The destination album no longer exists (or was moved).  You will be directed back to your album - please try again.");this.scene_obj.reload_default();break;case 4:default:alert("We're sorry!  There was an error during processing of this request (err: "+A.status+").  It has been reported and will be investigated.  Please try again later.");this.scene_obj.reload_default();break}};Mode.prototype._json_success=function(A){this.scene_obj.reload_default()};Mode.prototype._json_failed=function(A){alert("Cannot communicate with the FlickAway website.  Please check your internet connection.")};


// File: b_note_1376.js

if(window.g_note_z_index==undefined){g_note_z_index=1000}Note=function(){this.my_div=null;this.my_frame=null;this.pointy=null;this.max_width=500;this.min_width=200;this.class_name=null;this.delay=null;this.offer_x=true;this.z_index=g_note_z_index;g_note_z_index+=10};Note.prototype.snap=function(D,F,B,A,E,C){this.snap_id=F;this.snap_x_offset=B;this.snap_y_offset=A;this.snap_w_factor=E;this.snap_h_factor=C;this.type=D};Note.prototype.set_width_bounds=function(B,A){this.min_width=B;this.max_width=A};Note.prototype.disable_x=function(){this.offer_x=false};Note.prototype.set_class_name=function(A){this.class_name=A;this.max_width=width};Note.prototype.create=function(H,G,F,A,E,B){this.id=H;this.close_id=H+"_close";this.title=G;this.text=F;if(this.class_name==null){this.class_name="note note_"+this.type}if(A){this.close_timeout=A}else{this.close_timeout=0}if(E){this.close_callback=E;this.close_callback_scope=B}var D="";D+=' <table cellpadding="0" cellspacing="0" >';D+='  <tr><td class="tl"></td><td class="t"></td><td class="tr"></td></tr>';D+='  <tr><td class="l"></td>';D+='  <td id="'+this.id+'_content" class="content">';if(this.offer_x){D+='<a href="#" class="close" id="'+this.close_id+'"><img src="/i/s.gif" /></a>'}D+="   <h1>"+G+"</h1>";D+="   <p>"+F+"</p>";D+='  </td><td class="r"></td></tr>';D+='  <tr><td class="bl"></td><td class="b"></td><td class="br"></td></tr>';D+=" </table>";this.my_div=document.createElement("div");this.my_div.id=H;this.my_div.className=this.class_name;this.my_div.style.zIndex=this.z_index+1;document.body.appendChild(this.my_div,0);this.my_div.style.visibility="hidden";this.my_div.innerHTML=D;this.pointy=document.createElement("div");document.body.appendChild(this.pointy,0);this.pointy.style.visibility="hidden";this.pointy.style.zIndex=this.z_index+2;this.pointy.className="pointy pointy_"+this.type;this._position_note(1);var C=this;setTimeout(function(){C._position_note()},100);if(this.offer_x){g_events.add(this.close_id,"onclick",this.close,this,true)}g_events.add("document","onboardresize",this._delayed_position_note,this)};Note.prototype._delayed_position_note=function(){var A=this;clearTimeout(this.delay);this.delay=setTimeout(function(){A._position_note()},20)};Note.prototype._position_note=function(N){if(this.snap_id){this.my_div.style.width="auto";var H=g_utils.gimme_elem_x_y(document.getElementById(this.id+"_content"));var I=H[2];var J=I+34;if(J<this.min_width){J=this.min_width}else{if(J>this.max_width){J=this.max_width}}this.my_div.style.width=J+"px";var H=g_utils.gimme_elem_x_y(document.getElementById(this.snap_id));var L=H[0];var K=H[1];var M=H[2];var E=H[3];var H=g_utils.gimme_elem_x_y(this.my_div);var J=H[2];var C=H[3];var A=0,O=0;switch(this.type){case"tl":A=-9;O=26;break;case"tr":A=-1*J+20;O=26;break;case"bl":A=-9;O=-1*C-22;break;case"br":A=-1*J+15;O=-1*C-22;break;case"lt":A=22;O=-8;break;case"rt":A=-1*J-24;O=-8;break;case"lb":A=24;O=-1*C+16;break;case"rb":A=-1*J-24;O=-1*C+16;break}var D=L+(this.snap_w_factor*M)+this.snap_x_offset+A;var B=K+(this.snap_h_factor*E)+this.snap_y_offset+O;var G=0,F=0;switch(this.type){case"tl":G=D+11;F=B-24;break;case"tr":G=D+J-66;F=B-24;break;case"bl":G=D+11;F=B+C-14;break;case"br":G=D+J-61;F=B+C-14;break;case"lt":G=D-25;F=B+10;break;case"rt":G=D+J-12;F=B+10;break;case"lb":G=D-25;F=B+C-54;break;case"rb":G=D+J-12;F=B+C-54;break}this.my_div.style.left=D+"px";this.my_div.style.top=B+"px";this.pointy.style.left=G+"px";this.pointy.style.top=F+"px";if(N==null){this.my_div.style.visibility="visible";this.pointy.style.visibility="visible"}if(document.all){if(this.my_frame!=null){this.my_frame.parentNode.removeChild(this.my_frame)}this.my_frame=document.createElement("iframe");this.my_frame.src="javascript:false;";this.my_frame.style.position="absolute";this.my_frame.style.left=D+"px";this.my_frame.style.top=B+"px";this.my_frame.style.width=J+"px";this.my_frame.style.height=C+"px";this.my_frame.style.border="none";this.my_frame.style.zIndex=this.z_index;this.my_frame.style.display="inline";this.my_frame.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";document.body.appendChild(this.my_frame,0)}}};Note.prototype.close=function(A){if(this.offer_x){g_events.remove(this.close_id,"onclick",this.close,this)}g_events.remove("document","onboardresize",this._delayed_position_note,this);if(document.all&&this.my_frame!=null){this.my_frame.parentNode.removeChild(this.my_frame)}this.my_div.parentNode.removeChild(this.my_div);this.pointy.parentNode.removeChild(this.pointy);if(A&&this.close_callback){this.close_callback.apply(this.close_callback_scope,[])}return false};


// File: b_tour_note_1494.js

TourNote=function(){this.note=null;this.out_timer=null};TourNote.prototype.mouse_over=function(){g_trace.log("tour note mouse_over");if(this.out_timer!=null){clearTimeout(this.out_timer);this.out_timer=null}if(this.note!=null){return }var A="";var B="";A+="You can host your own photos on FlickAway.";this.note=new Note();this.note.disable_x();this.note.snap("rt","tour_link",0,0,0,1);this.note.create("tour_note",B,A,null)};TourNote.prototype.mouse_out=function(){if(this.out_timer!=null){return }var A=this;this.out_timer=setTimeout(function(){A.note.close();A.out_timer=null;A.note=null},300);g_trace.log("tour note mouse_out")};


// File: b_ajax_1543.js

Ajax=function(){this.yc=null};Ajax.prototype.connect=function(B,F,A,C,D,E){this.success_cb=A;this.failure_cb=C;this.scope=D;var H={success:this._json_resp,failure:this._json_failed,scope:this};if(E){}else{var G=new Cookie("sc");F+="&sis="+G.get()}this.yc=YAHOO.util.Connect.asyncRequest("POST",B,H,F)};Ajax.prototype.abort=function(){if(this.yc!=null){YAHOO.util.Connect.abort(this.connect);this.yc=null}};Ajax.prototype._json_failed=function(A){alert("Cannot communicate with the FlickAway website.  Please check your internet connection.");this.failure_cb.apply(this.scope,[null,true])};Ajax.prototype._json_resp=function(o){g_trace.log("transaction id = "+o.tId);g_trace.log("o.status = "+o.status);g_trace.log("o.statusText = "+o.statusText);g_trace.log("o.getResponseHeader[ ] = "+o.getResponseHeader);g_trace.log("o.getAllResponseHeaders = "+o.getAllResponseHeaders);g_trace.log("o.responseText = "+o.responseText);g_trace.log("o.responseXML = "+o.responseXML);g_trace.log("o.argument = "+o.argument);if(o.responseText.substr(0,1)!="{"){g_trace.log("ERROR response - o.responseText = "+o.responseText);var resp={status:4}}else{eval("var resp="+o.responseText)}if(resp.status==0){this.success_cb.apply(this.scope,[resp])}else{this._handle_bad_json_resp(resp)}};Ajax.prototype._handle_bad_json_resp=function(B){var A=true;if(!g_utils.isset(B.status)){g_trace.log("resp.status not present");B.status=4}switch(B.status){case 3:alert("This request was invalid.  It has been reported and we be investigated.  Please try again later.");break;case 70:alert("Your account has expired and is in read-only mode.  You must renew your account first.  Go to your 'my account' pages to do so.");break;case 71:alert("Your account has been suspended and is in read-only mode.  Please check your 'my account' pages for details.");break;case 72:alert("Your account has a bad status.  Please check your 'my account' pages for details.");break;case 1:alert("You are not signed in anymore, your session timed out due to inactivity.");break;case 2:alert("You are not signed in");break;case 4:alert("We're sorry!  There was an error during processing of this request (err: "+B.status+").  It has been reported and will be investigated.  Please try again later.");break;default:A=false}this.failure_cb.apply(this.scope,[B,A])};


// File: b_user_alert_1376.js

UserAlert=function(){};UserAlert.prototype.disable=function(){this.disabled=1};UserAlert.prototype.onload=function(){if(window.uais==undefined||uais.alerts.length==0||this.disabled!=undefined){return }var E=new Cookie("sc");if(E.get().substr(42,1)=="0"){g_trace.log("Alert will not be displayed");return }var C=uais;var D="<p>Hello "+C.fname+",</p>";var A=C.alerts.length;if(A>1){D+="<p>We have several messages for you:</p>"}for(var B=0;B<A;B++){D+="<p>"+C.alerts[B].msg+"</p>";if(!C.alerts[B].can_mark){D+="<p>Note: This message will continue to be shown until action is taken.</p>"}}D+='<p><input type="button" value="ok" onclick="return g_user_alert.ok_clicked(true)" />';this.note=new Note();this.note.disable_x();this.note.snap("lt","logo",0,0,1,1);this.note.set_width_bounds(150,400);this.note.create("user_alert_note","",D)};UserAlert.prototype.ok_clicked=function(G){if(G){this.note.close()}var H="&alert_ids=[";var D=uais;var E=0;for(var C=0,A=D.alerts.length;C<A;C++){if(D.alerts[C].can_mark){E++;H+='"'+D.alerts[C].id+'", '}}if(E==0){g_trace.log("No alert can be marked as read");return }H=H.substr(0,H.length-2);H+="]";var F=new Ajax();var B="/read_alert.json";F.connect(B,H,this._ajax_success,this._ajax_failed,this)};UserAlert.prototype._ajax_success=function(){g_trace.log("ajax success")};UserAlert.prototype._ajax_failed=function(){g_trace.log("ajax failed")};g_user_alert=new UserAlert();g_events.add("window","ondomload",g_user_alert.onload,g_user_alert);


// File: b_ondomload_969.js

function ondomload(C,A){var D=0;var B=setInterval(function(){var E=true;D++;if(!g_trace.embedded){return }if(typeof document.getElementsByTagName!="undefined"&&(document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(g_trace.trace_id)!=null){E=false;if(typeof A=="object"){for(var F in A){if((A[F]=="id"&&document.getElementById(F)==null)||(A[F]=="tag"&&document.getElementsByTagName(F).length<1)){E=true;break}}}if(!E){clearInterval(B);g_trace.log("ondomload took "+D+" loop(s)");C()}}if(D>=1000){clearInterval(B)}},50)}var domloader=new ondomload(Event.domload_callback);


