function go_feedback(){document.location.href=ff_base+"?feedback=1"}function js_share_facebook(a){window.open("http://api.addthis.com/oexchange/0.8/forward/facebook/offer?url="+a,"Popup_Share","menubar=no,width=680,height=356,toolbar=no, scrollbars=yes")}function js_sign_out_guest(){if(confirm("You have not signed up, and so your images will be lost if you sign out! Click OK to sign out, Cancel to stay signed in."))document.location.href=ff_base+"?login=2"} function js_show_why_connect(){window.open(ff_base+"?whyconnect=1","Popup_Whyconnect","menubar=no,width=400,height=320,toolbar=no, scrollbars=yes")}function js_show_gd_verify(){window.open("https://seal.godaddy.com/verifySeal?sealID=1537060071075cfa89010120a5fe488c37fdd9425985614483235834911","Seal","status=no,menubar=no,scrollbars=no,resizable=yes,toolbar=no,width=537,height=433")} function js_show_pp_verified(){window.open("https://www.paypal.com/us/verified/pal=contact@fotofriend.com","Paypal")}function js_show_rbs(){window.open("http://www.worldpay.com","WorldPay")}function js_sign_in(a){js_show_sign_in_popup(1,a)}function js_sign_up(a){js_show_sign_in_popup("sign_up",a)}function js_sign_in_facebook(a){js_show_sign_in_popup("fb_connect",a)} function js_show_sign_in_popup(a,d){var b=document.getElementById("sel_gift"),c="";b&&(c="&co="+document.getElementById("sel_country").value+"&gift="+b.value);window.open(ff_base_secure+"?logon="+a+"&do="+d+c,"Popup_SignIn","menubar=no,width=680,height=356,toolbar=no, scrollbars=yes").focus()}function js_login_reload(){document.location.reload(!0)}var error_ajax_obj=null,last_timeout_id=null,retry_seconds=5,ajax_active_keys=[]; function ajax_handle_error(a,d,b,c){var e=document.getElementById(d),b=b?b:error_ajax_obj;if("timeout"==a){if(e)e.innerHTML="Please wait, retrying...";jQuery.ajax(b)}else if(0==retry_seconds-c){if(e)e.innerHTML="Please wait, retrying...";retry_seconds*=2;jQuery.ajax(b)}else error_ajax_obj=b,last_timeout_id=window.setTimeout('ajax_handle_error("'+a+'", "'+d+'", null, '+(c+1)+")",1E3)}function ajax_init(){retry_seconds=5;last_timeout_id&&window.clearTimeout(last_timeout_id)} function ajax_check_for_expired_session(){var a=document.getElementById("hi_expired");if(a)top.location.href=ff_base+"?login=3";return a}function ajax_start_uploads(){jQuery.ajax({type:"GET",url:ff_base,timeout:3E4,data:"ajax=1&start_upload=1&ts="+(new Date).getTime(),success:function(){},error:function(a,d){"timeout"==d?jQuery.ajax(this):window.setTimeout("ajax_start_uploads()",1E4)}})} function js_edit(a,d,b,c,e,f){window.open(ff_base+"?edit="+(f?2:1)+"&pid="+d+"&u="+b+"&w="+c+"&h="+e+"&file="+a,"Popup","status=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=yes,width="+(screen.availWidth-10)+", height="+(screen.availHeight-40)+",location=yes").focus()} function js_show_hide_link(a,d,b,c,e){if(a.firstChild.data==c){if(a.firstChild.data=b,document.getElementById(d).style.display="none",e)document.getElementById(e).style.display=""}else if(a.firstChild.data=c,document.getElementById(d).style.display="",e)document.getElementById(e).style.display="none"} function js_set_free_gift(a){var d=document.getElementById("a_gift_W"),b=document.getElementById("a_gift_C"),c=document.getElementById("a_gift_8");document.getElementById("sel_gift").value=a;"W"==a?(d.blur(),d.className="hover_wallets_on"):d.className="hover_wallets";"C"==a?(b.blur(),b.className="hover_card_on"):b.className="hover_card";"8"==a?(c.blur(),c.className="hover_panoramic_on"):c.className="hover_panoramic"} function js_claim_gift(a,d){var b=document.getElementById("sel_gift"),c=b.value;if(d&&!c)alert("Select a gift to continue"),b.focus();else{var e=b="";a?b=a:"C"==c?(b="GC",e="&sku=30550&step=2"):b="8"==c?"P48G":c;top.location.href=b?ff_base+"?create="+b+e+"&claim="+c+"&co="+document.getElementById("sel_country").value:ff_base+"?prod=1&claim="+c+"&co="+document.getElementById("sel_country").value}};
