function cpaint(){this.version="2.0.3";var A=new Array();A.debugging=-1;A.proxy_url="";A.transfer_mode="GET";A.async=true;A.response_type="OBJECT";A.persistent_connection=false;A.use_cpaint_api=true;var B=0;this.capable=-1;this.set_transfer_mode=function(){if(arguments[0].toUpperCase()=="GET"||arguments[0].toUpperCase()=="POST"){A.transfer_mode=arguments[0].toUpperCase()}};this.set_async=function(){if(typeof arguments[0]=="boolean"){A.async=arguments[0]}};this.set_response_type=function(){if(arguments[0].toUpperCase()=="TEXT"||arguments[0].toUpperCase()=="XML"||arguments[0].toUpperCase()=="OBJECT"){A.response_type=arguments[0].toUpperCase()}};this.set_persistent_connection=function(){if(typeof arguments[0]=="boolean"){A.persistent_connection=arguments[0]}};this.call=function(){var C=-1;if(A.persistent_connection===true&&__cpaint_stack[0]!=null){switch(__cpaint_stack[0].get_http_state()){case -1:C=0;break;case 4:C=0;break}}else{if(A.persistent_connection===true){C=0;__cpaint_stack[C]=new cpaint_call(C,A,this.version)}else{C=B;__cpaint_stack[C]=new cpaint_call(C,A,this.version)}}if(C!=-1){__cpaint_stack[C].set_client_callback(arguments[2]);__cpaint_stack[C].call_direct(arguments);B++}}}var __cpaint_stack=new Array();var __cpaint_transformer=new cpaint_transformer();function cpaint_call(){var B=arguments[2];var D=new Array();D.debugging=arguments[1]["debugging"];D.proxy_url=arguments[1]["proxy_url"];D.transfer_mode=arguments[1]["transfer_mode"];D.async=arguments[1]["async"];D.response_type=arguments[1]["response_type"];D.persistent_connection=arguments[1]["persistent_connection"];D.use_cpaint_api=arguments[1]["use_cpaint_api"];var F=false;var A;var E=arguments[0];this.set_client_callback=function(){if(typeof arguments[0]=="function"){A=arguments[0]}};this.get_http_state=function(){var I=-1;if(typeof F=="object"){I=F.readyState}return I};this.call_direct=function(M){var J=M[0];var L=M[1];var I="";var K=0;if(J=="SELF"){J=document.location.href}for(K=3;K<M.length;K++){if((typeof M[K]=="string"&&M[K]!=""&&M[K].search(/^\s+$/g)==-1)&&!isNaN(M[K])&&isFinite(M[K])){I+="&cpaint_argument[]="+encodeURIComponent(JSON.stringify(Number(M[K])))}else{I+="&cpaint_argument[]="+encodeURIComponent(JSON.stringify(M[K]))}}I+="&cpaint_response_type="+D.response_type;if(D.transfer_mode=="GET"){if(J.indexOf("?")!=-1){J=J+"&cpaint_function="+L+I}else{J=J+"?cpaint_function="+L+I}}else{I="cpaint_function="+L+I}C();F.open(D.transfer_mode,J,D.async);if(D.transfer_mode=="POST"){F.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}F.onreadystatechange=H;if(D.transfer_mode=="GET"){F.send(null)}else{F.send(I)}if(D.async===true){H()}};var C=function(){var J=false;var K=false;if(D.persistent_connection===false){K=true}else{if(typeof F!="object"){K=true}}if(K===true){try{F=new XMLHttpRequest()}catch(M){try{F=new ActiveXObject("Msxml2.XMLHTTP")}catch(L){try{F=new ActiveXObject("Microsoft.XMLHTTP")}catch(I){F=null}}}if(!F){}else{J=true}}if(F.readyState!=4){F.abort()}return J};var H=function(){var I=null;if(F.readyState==4&&F.status==200){switch(D.response_type){case"XML":I=__cpaint_transformer.xml_conversion(F.responseXML);break;case"OBJECT":I=__cpaint_transformer.object_conversion(F.responseXML);break;case"TEXT":I=__cpaint_transformer.text_conversion(F.responseText);break}if(I!=null&&typeof A=="function"){A(I,F.responseText)}G()}else{if(F.readyState==4&&F.status!=200){}}};var G=function(){if(typeof E=="number"&&__cpaint_stack[E]&&D.persistent_connection===false){__cpaint_stack[E]=null}}}function cpaint_transformer(){this.object_conversion=function(C){var D=new cpaint_result_object();var F=0;var H="";if(typeof C=="object"&&C!=null){for(F=0;F<C.childNodes.length;F++){if(C.childNodes[F].nodeType==1){H=C.childNodes[F].nodeName;break}}var G=C.getElementsByTagName(H);D[H]=new Array();for(F=0;F<G.length;F++){var E=A(G[F]);E.id=G[F].getAttribute("id");D[H].push(E)}}return D};this.xml_conversion=function(C){return C};this.text_conversion=function(C){return B(C)};var A=function(H){var C=new cpaint_result_object();var D="";var F=0;var G=0;if(H.hasChildNodes()===true){for(F=0;F<H.childNodes.length;F++){D=H.childNodes[F].nodeName;D=D.replace(/[^a-zA-Z0-9_]*/g,"");if(typeof C[D]!="object"){C[D]=new Array()}if(H.childNodes[F].nodeType==1){var E=A(H.childNodes[F]);for(G=0;G<H.childNodes[F].attributes.length;G++){E.set_attribute(H.childNodes[F].attributes[G].nodeName,H.childNodes[F].attributes[G].nodeValue)}C[D].push(E)}else{if(H.childNodes[F].nodeType==3){C.data=B(String(H.firstChild.data))}}}}return C};var B=function(H){var J="";var G=0;var I=0;var F=0;var D=0;var C=0;var E=0;while(G<H.length){if(H.charAt(G)=="\\"&&H.charAt(G+1)=="u"){C=0;for(j=2;j<6;j+=1){E=parseInt(H.charAt(G+j),16);if(!isFinite(E)){break}C=C*16+E}J+=String.fromCharCode(C);G+=6}else{J+=H.charAt(G);G++}}if(J!=""&&J.search(/^\s+$/g)==-1&&!isNaN(J)&&isFinite(J)){J=Number(J)}return J}}function cpaint_result_object(){this.id=0;this.data="";var A=new Array();this.get_attribute=function(){var B=null;var C=arguments[0];if(typeof A[C]!="undefined"){B=A[C]}return B};this.set_attribute=function(){A[arguments[0]]=arguments[1]}}Array.prototype.______array="______array";var JSON={stringify:function(A){var G,E,B,F="",C;var D=true;switch(typeof A){case"object":if(A){if(A.______array=="______array"){for(E in A){if(E!="______array"&&(isNaN(E)||!isFinite(E))){D=false;break}}if(D===true){for(E=0;E<A.length;++E){if(typeof A[E]!="undefined"){C=this.stringify(A[E]);if(F){F+=","}F+=C}else{F+=",null"}}return"["+F+"]"}else{for(E in A){if(E!="______array"){C=A[E];if(typeof C!="undefined"&&typeof C!="function"){C=this.stringify(C);if(F){F+=","}F+=this.stringify(E)+":"+C}}}return"{"+F+"}"}}else{if(typeof A.toString!="undefined"){for(E in A){C=A[E];if(typeof C!="undefined"&&typeof C!="function"){C=this.stringify(C);if(F){F+=","}F+=this.stringify(E)+":"+C}}return"{"+F+"}"}}}return"null";case"number":return isFinite(A)?String(A):"null";case"string":B=A.length;F='"';for(E=0;E<B;E+=1){G=A.charAt(E);if(G>=" "){if(G=="\\"||G=='"'){F+="\\"}F+=G}else{switch(G){case"\b":F+="\\b";break;case"\f":F+="\\f";break;case"\n":F+="\\n";break;case"\r":F+="\\r";break;case"\t":F+="\\t";break;default:G=G.charCodeAt();F+="\\u00"+Math.floor(G/16).toString(16)+(G%16).toString(16)}}}return F+'"';case"boolean":return String(A);default:return"null"}}};initAjax();function initAjax(){var C=new Array("MSIE||Mac_PowerPC","Opera||7||Windows","MSIE 5.0","Konqueror/3.2","Safari/100.1");for(i=0;i<C.length;i++){var A=0;var B=C[i].split("||");for(j=0;j<B.length;j++){if(navigator.userAgent.indexOf(B[j])>-1){A++}}}cp=new cpaint();cp.set_transfer_mode("GET");cp.set_response_type("OBJECT")}function form_expand_optional(){var C=document.getElementById("id_form_optional-foldeable");var B=document.getElementById("form_icon_expand");var A=document.getElementById("form_icon_lock");if(C.style.display=="none"){C.style.display="inline";A.style.display="inline";B.src="http://gfx.fotocommunity.com/ram/gfx/form/form_icon_unexpand.gif"}else{C.style.display="none";A.style.display="none";B.src="http://gfx.fotocommunity.com/ram/gfx/form/form_icon_expand.gif"}return(false)}function form_lock_unlock(){var B=document.getElementById("formular_status");var A=document.getElementById("form_icon_lock");if(B.value=="1"){B.value="0";A.src="http://gfx.fotocommunity.com/ram/gfx/form/form_icon_unlocked.gif"}else{B.value="1";A.src="http://gfx.fotocommunity.com/ram/gfx/form/form_icon_locked.gif"}}function form_cancel(A){window.location.href=A;return(false)}function checkKey(A){if(A==chr(13)){return j_wait()}else{return false}}function j_wait(){document.getElementById("wait").innerHTML="<?php echo $t_e_comment_button_passive; ?>";document.getElementById("wait").style.paddingTop="4px";document.getElementById("butt").style.position="absolute";document.getElementById("butt").style.visibility="hidden";return true}function checkmailoption(){if(document.getElementById("datesec").checked==false){document.getElementById("datesec2").checked=false}}function checkmailoption2(){if(document.getElementById("datesec2").checked==true){document.getElementById("datesec").checked=true}}function takeit(B){var C="";C+='<table align="left" width="140" border="0" cellspacing="0" cellpadding="2">';C+='	<tr bgcolor="#666666">';C+='		<td><b><font color="#FFFFFF">verwendung in: <br> ';C+='<select name="takeit_verw" size="1">';for(var A=1;A<=56;A++){C+='<option value="'+A+'">'+A+". KW</option>"}C+='</select><input type="submit" class="Button" value="Absenden" onclick="takeit2('+B+');"></font></b></td>';C+="	</tr>";C+="</table>";C+="";C+="";document.getElementById("takeit"+B).innerHTML=C}function takeit2(A){cp.call("/pc/inc/ajax_castandcrew.inc.php","takeit",resulttakeit,A,document.getElementsByName("takeit_verw")[0].value)}function resulttakeit(A){used=A.ajaxResponse[0].listitem[0].used[0].data;descr=A.ajaxResponse[0].listitem[0].descr[0].data;if(used==1){document.getElementById("takeit"+descr).innerHTML='<font color="#00FF00"><a onclick="takeit('+descr+');">[verwenden]</a></font>'}else{document.getElementById("takeit"+descr).innerHTML='<font color="#FF0000"><a onclick="takeit('+descr+');">[in Verwendung]</a></font>'}}function ClipBoard(A){Copied=A.createTextRange();Copied.execCommand("Copy")}function ClipPaste(B){var A=window.clipboardData.getData("Text");B.innerText=A}function checkemail(){if(document.getElementById("empfaengeer").value==-2){document.getElementById("email").style.display="inline";document.getElementById("email_description").style.display="inline";document.getElementById("name").style.display="inline";document.getElementById("name_description").style.display="inline"}else{document.getElementById("email").style.display="none";document.getElementById("email_description").style.display="none";document.getElementById("name").style.display="none";document.getElementById("name_description").style.display="none"}}function zitieren(){document.getElementById("nachricht").value=document.getElementById("nachricht").value+document.getElementById("hide").value;document.getElementById("nachricht").focus()}function search_checkInput(){if(document.getElementById("searchstring").value.length<3){document.getElementById("searchstring").focus();return false}else{return true}}function show_full_log(){document.getElementById("sql_log").style.display="inline";document.getElementById("memcache_log").style.display="inline";document.getElementById("search_log").style.display="inline"}function MM_reloadPage(init){if(init==true){with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage}}}else{if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH){location.reload()}}}function doCheck(){var A="349547";window.document.myPlayer.SetVariable("revisor",A)}function creativecommons_toggle_licence_status(){var D="licence_selection_commercial";var B="licence_selection_modifications";var A="licence_selection";var C=document.getElementById(A).value;if(C==0){document.getElementById(D).disabled=true;document.getElementById(B).disabled=true;document.getElementById(D).style.color="#999999";document.getElementById(B).style.color="#999999";document.getElementById(D).style.background="#E9E9E9";document.getElementById(B).style.background="#E9E9E9"}else{document.getElementById(D).disabled=false;document.getElementById(B).disabled=false;document.getElementById(D).style.color="#000000";document.getElementById(B).style.color="#000000";document.getElementById(D).style.background="#FFFFFF";document.getElementById(B).style.background="#FFFFFF"}}function check_all_checkboxes(A){var D=document.forms[1];if(D.feed_checkall.checked==true){var C=true}else{var C=false}for(var B=0;B<D.length;B++){if(D[B].name.substr(0,14)=="formdata[feed_"){D[B].checked=C}}return }function deleteActivity(A,F,D){var C="line_"+A;var B=document.getElementById(C);var E=new YAHOO.util.Anim(B,{opacity:{to:0}},0.25,YAHOO.util.Easing.easeOut);E.animate();window.setTimeout("setDisplayNone('"+C+"')",300);cp.call("/pc/inc/ajax_deleteactivity.inc.php","delete_activity",checkRestActivity,F,D)}function checkRestActivity(B){var A=B.ajaxResponse[0].data;if(A==0){setDisplayNone("activities")}}function setDisplayNone(A){document.getElementById(A).style.display="none"}var gfx_base_url="http://gfx.fotocommunity.com/ram/gfx";var gfx_menu_url=gfx_base_url+"/menu";var menu_cookie_lifetime=30;var menu_cookie_prefix="m_";var icon_arrow_left=gfx_menu_url+"/arrow_left.gif";var icon_arrow_down=gfx_menu_url+"/arrow_down.gif";var icon_arrow_left_small=gfx_menu_url+"/arrow_left_small.gif";var icon_arrow_down_small=gfx_menu_url+"/arrow_down_small.gif";var menu_header_img_left=gfx_base_url+"/header/header_menu_left.gif";var menu_header_img_down=gfx_base_url+"/header/header_menu_down.gif";var menu_header_img_left_mail=gfx_base_url+"/header/header_menu_left_mail.gif";var menu_header_img_down_mail=gfx_base_url+"/header/header_menu_down_mail.gif";var textcolor_default="#FFFFFF";var textcolor_active="#000000";var backgroundcolor_active="#FF7920";var backgroundcolor_alert="#FFCC00";var backgroundcolor_level1="#585757";var backgroundcolor_level2="#333333";function menu_hoover_button(){document.getElementById("fc_header_menukopf").style.backgroundImage="url("+menu_header_img_down_mail+")"}function menu_createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{var A=""}document.cookie=C+"="+D+A+"; path=/"}function menu_readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function menu_change_menuImage(){var A=document.getElementById("fc_header_menukopf").className;if(A=="fc_header_menukopf_hidden"){document.getElementById("fc_header_menukopf").style.backgroundImage="url("+menu_header_img_down+")"}if(A=="fc_header_menukopf_hidden_mail"){document.getElementById("fc_header_menukopf").style.backgroundImage="url("+menu_header_img_down_mail+")"}}function menu_change(A,C){menu_createCookie("fc_menu_"+A,1);var B=document.getElementById("menulayer_"+A);if(B.style.display=="none"||B.style.width=="0px"||(B.style.display==""&&B.style.width=="")){if(B.innerHTML.length<2||B.innerHTML=="&nbsp;"){cp.call("/pc/inc/ajax_menu.inc.php","menu_load",menu_render,A,C,menu_current_channel,menu_current_section,false)}else{menu_createCookie(menu_cookie_prefix+A,1,menu_cookie_lifetime);B.style.display="block";B.style.clear="both";B.style.width="150px";B.style.height="auto";B.style.lineHeight="normal";B.style.fontSize="12px"}}else{menu_createCookie(menu_cookie_prefix+A,0,menu_cookie_lifetime);B.style.width="0px";B.style.height="0px";B.style.lineHeight="0px";B.style.fontSize="0px";if(navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion.indexOf("MSIE 6.0")>0){B.innerHTML="&nbsp;";B.style.clear="none"}else{B.style.display="none"}}if(A=="main"){menu_change_menuImage()}}function menu_render(G){var B=G.ajaxResponse[0];var A=B.b[0].data;var E=menu_render_recrusivly(B,A);var F=B.n[0].data;var D=B.lvl[0].data;var C=document.getElementById("menulayer_"+F);var H=document.getElementById("menu_container");C.innerHTML=E;C.style.display="block";C.style.width="150px";C.style.clear="both";C.style.height="auto";C.style.lineHeight="normal";C.style.fontSize="12px";H.style.display="block";if(D>0){menu_createCookie(menu_cookie_prefix+F,1,menu_cookie_lifetime)}}function menu_render_recrusivly(U,A){var P=U.n[0].data;var O=U.lvl[0].data;var F=U.i.length;var Q;var J="";var G;var T;var H;var E;var N;var K;var S;var D;var M=new Array();var I=0;if(F>0){for(Q=0;Q<F;Q++){H="#";E="";N=0;K=0;S=0;onclick_call="";G=U.i[Q].k[0].data;T=U.i[Q].n[0].data;if(typeof U.i[Q].l!="undefined"){H=U.i[Q].l[0].data;H=H.replace(/%URL%/,A)}if(typeof U.i[Q].cl!="undefined"){E=U.i[Q].cl[0].data;E=E.replace(/%URL%/,A)}if(typeof U.i[Q].a!="undefined"){K=U.i[Q].a[0].data}if(typeof U.i[Q].c!="undefined"){S=U.i[Q].c[0].data}if(H=="#"&&E==""){E='menu_change("'+G+'", "'+O+'"); return (false);'}if(E!=""){onclick_call="onclick='"+E+"'"}if(K==1){var L=gfx_menu_url+"/background_alert_level_0.gif";var C="menu_style_div_1_alert";var B="menu_style_div_2_alert";var R="menu_link_black"}else{var L=gfx_menu_url+"/background_level_0.gif";var C="menu_style_div_1_notactive";var B="menu_style_div_2_notactive";var R="menu_link_white"}if(O==0){if(S==0){J+='<div class="menu_style_div_0" style="background-image:url('+L+');" id="menu_'+G+'" OnMouseOver="m_ac(\''+G+"', '0')\"";J+=" OnMouseOut=\"m_na('"+G+"', '"+O+"', '"+K+"', '0')\">";J+='<div class="menu_link_cont_0"><div class="menu_style_0"><a id="menu_link_'+G+'" href="'+H+'" class="'+R+'" '+onclick_call+">"+T+"</a></div></div>";J+='<div class="menu_icon_cont_0"><a id="menu_link_'+G+'" href="'+H+'"><img src="'+gfx_menu_url+"/"+G+'.gif" class="menu_icon" id="icon_'+G+'" alt="'+T+'"></a></div>';J+="</div>"}else{J+='<div class="menu_style_div_0" style="background-image:url('+L+');"';J+=' id="menu_'+G+'">';J+='<div class="menu_link_cont_0" OnMouseOver="m_ac(\''+G+"', '"+O+"')\"";J+=" OnMouseOut=\"m_na('"+G+"', '"+O+"', '"+K+"', '0')\">";J+='<div class="menu_style_0"><a id="menu_link_'+G+'" href="'+H+'" class="'+R+'" '+onclick_call+">"+T+"</a></div>";J+="</div>";J+='<div class="menu_icon_cont_0" OnMouseOver="m_iover(\''+G+"')\"";J+=" OnMouseOut=\"m_iout('"+G+"')\">";J+='<a id="menu_icon_'+G+'" href="#" class="'+R+'" onClick="menu_change(\''+G+"', '0'); return(false);\">";J+='<img src="'+gfx_menu_url+"/"+G+'.gif" class="menu_icon" id="icon_'+G+'" alt="'+T+'"></a>';J+="</div>";J+="</div>"}}else{if(O==1){if(S==0){J+='<div class="'+C+'" id="menu_'+G+'"';J+=" OnMouseOver=\"m_ac('"+G+"', '"+O+"')\"";J+=" OnMouseOut=\"m_na('"+G+"', '"+O+"', '"+K+"', '0')\">";J+='<div class="menu_link_cont_100"><div class="menu_style_1">';J+='<a id="menu_link_'+G+'" href="'+H+'" class="'+R+'" '+onclick_call+">"+T+"</a>";J+="</div></div>";J+="</div>"}else{J+='<div class="'+C+'" id="menu_'+G+'">';J+='<div class="menu_link_cont_1"';J+=" OnMouseOver=\"m_ac('"+G+"', '"+O+"')\"";J+=" OnMouseOut=\"m_na('"+G+"', '"+O+"', '"+K+"', '0')\">";J+='<div class="menu_style_1">';J+='<a id="menu_link_'+G+'" href="'+H+'" class="'+R+'" '+onclick_call+">"+T+"</a>";J+="</div></div>";J+='<div class="arrow_left_small.gif" OnMouseOver="m_iover(\''+G+"')\"";J+=" OnMouseOut=\"m_iout('"+G+"')\">";J+='<a id="menu_style_1" href="#" class="'+R+'" onClick="menu_change(\''+G+"', '"+O+"'); return(false);\">";J+='<img src="'+icon_arrow_left_small+'" class="menu_arrow" id="icon_'+G+'" border="0" alt="'+T+'">';J+="</a>";J+="</div>";J+="</div>"}}else{if(O==2){J+='<div class="'+B+'" id="menu_'+G+'"';J+=" OnMouseOver=\"m_ac('"+G+"', '"+O+"')\"";J+=" OnMouseOut=\"m_na('"+G+"', '"+O+"', '"+K+"', '0')\">";J+='<a id="menu_link_'+G+'" href="'+H+'" class="'+R+'" '+onclick_call+">";J+='<div class="menu_link_cont_100"><div class="menu_style_2">'+T+"</div></div>";J+="</a>";J+="</div>"}}}if(S==1){if(typeof U.i[Q].s!="undefined"){J+='<div class="menu" id="menulayer_'+G+'" style="float:left; clear:both; width:150px; height:auto; font-size:12px; line-height:normal;">';J+=menu_render_recrusivly(U.i[Q].s[0],A)}else{J+='<div class="menu" id="menulayer_'+G+'" style="float:left; clear:both; width:0px; height:0px; font-size:0px; line-height:0px;">&nbsp;'}J+="</div>"}if(Q<Number(F-1)){J+='<div class="menu_spacer_row">&nbsp;</div>'}}}return(J)}function m_iover(D){var E=document.getElementById("icon_"+D);var G=gfx_menu_url+"/"+D+".gif";var F="menulayer_"+D;var C=document.getElementById(F);var B=document.getElementById("menu_"+D);var A=document.getElementById("menu_link_"+D);if(E!=null){if(E.src==G){if(C.style.width=="150px"){E.src=icon_arrow_left}else{E.src=icon_arrow_down}}else{if(E.src==icon_arrow_down_small||E.src==icon_arrow_left_small){if(C.style.width=="150px"){E.src=icon_arrow_left_small}else{E.src=icon_arrow_down_small}if(menu_readCookie(menu_cookie_prefix+D)==1){A.style.color=textcolor_active;B.style.backgroundColor=backgroundcolor_active}else{A.style.color=textcolor_default;B.style.backgroundColor=backgroundcolor_level1}}}}}function m_iout(D){var E=document.getElementById("icon_"+D);var G=gfx_menu_url+"/"+D+".gif";var F="menulayer_"+D;var C=document.getElementById(F);var B=document.getElementById("menu_"+D);var A=document.getElementById("menu_link_"+D);if(E!=null){if(E.src==icon_arrow_down||E.src==icon_arrow_left){E.src=G}else{if(E.src==icon_arrow_down_small||E.src==icon_arrow_left_small){if(C.style.width=="150px"){E.src=icon_arrow_down_small}else{E.src=icon_arrow_left_small}if(menu_readCookie(menu_cookie_prefix+D)==1){A.style.color=textcolor_active;B.style.backgroundColor=backgroundcolor_active}else{A.style.color=textcolor_default;B.style.backgroundColor=backgroundcolor_level1}}}}}function m_ac(D,E){var F="menulayer_"+D;var C=document.getElementById(F);var B=document.getElementById("menu_"+D);var A=document.getElementById("menu_link_"+D);if(E==0){var G=gfx_menu_url+"/background_active_level_0.gif";A.style.color=textcolor_active;B.style.backgroundImage="url("+G+")"}else{A.style.color=textcolor_active;B.style.backgroundColor=backgroundcolor_active}}function m_na(I,H,G,D){var C="menulayer_"+I;var E=document.getElementById(C);var F=document.getElementById("menu_"+I);var A=document.getElementById("menu_link_"+I);if(H==0){if(G==1){var B=gfx_menu_url+"/background_alert_level_0.gif";A.style.color=textcolor_active}else{if(D==1){var B=gfx_menu_url+"/background_active_level_0.gif";A.style.color=textcolor_active}else{var B=gfx_menu_url+"/background_level_0.gif";A.style.color=textcolor_default}}F.style.backgroundImage="url("+B+")"}else{if(H==1){if(G==1){A.style.color=textcolor_active;F.style.backgroundColor=backgroundcolor_alert}else{if(D==1){A.style.color=textcolor_active;F.style.backgroundColor=backgroundcolor_active}else{A.style.color=textcolor_default;F.style.backgroundColor=backgroundcolor_level1}}}else{if(H==2){if(G==1){A.style.color=textcolor_active;F.style.backgroundColor=backgroundcolor_alert}else{if(D==1){A.style.color=textcolor_active;F.style.backgroundColor=backgroundcolor_active}else{A.style.color=textcolor_default;F.style.backgroundColor=backgroundcolor_level2}}}}}}function menu_hide_quickmessage(){var A=document.getElementById("menu_quickmessage");if(A!==null){A.style.display="none"}}function make_me_invisible(A){document.getElementById(A).style.visibility="hidden";return true}function sedcard_add_reference(){var A=document.getElementById("fc_fotograf").value;if(A.length>0){cp.call("/pc/inc/ajax_sedcard.inc.php","sedcard_add_reference",sedcard_reference_added,A)}}function sedcard_add_reference_dropdown(){var A=document.getElementById("sedcard_referenz_dropdown").value;if(A.length>0){cp.call("/pc/inc/ajax_sedcard.inc.php","sedcard_add_reference",sedcard_reference_added,A)}}function sedcard_reference_added(A){if(typeof A!="undefined"){var B=A.ajaxResponse[0].data;if(B==1){sedcard_get_referencelist()}}}function sedcard_get_referencelist(){cp.call("/pc/inc/ajax_sedcard.inc.php","sedcard_get_referencelist",sedcard_render_referencelist,0)}function sedcard_render_referencelist(C){var G;var E="";var F;var B=C.ajaxResponse[0].ref;if(typeof B!=="undefined"){E+='<div class="sedcard_referenz">&nbsp;'+sedcard_translation_referenzen_name+"</div>";E+='<div class="sedcard_referenz centered">'+sedcard_translation_referenzen_sortieren+"</div>";E+='<div class="sedcard_referenz">'+sedcard_translation_referenzen_delete2+"</div>";for(G=0;G<B.length;G++){var D=B[G].userid[0].data;var H=B[G].name[0].data;var A=B[G].pos[0].data;if(G%2==0){F="sedcard_referenz_background1"}else{F="sedcard_referenz_background2"}E+='<div class="sedcard_referenz '+F+'">&nbsp;<a href="'+programmurl+"/pc/pc/mypics/"+D+'" class="form_link">'+H+"</a></div>";E+='<div class="sedcard_referenz centered '+F+'">';E+='<img src="http://gfx.fotocommunity.com/ram/gfx/sedcard/arrow_up.gif" class="sedcard_position_arrow" width="11" height="10" onmousedown="sedcard_change_position ('+D+', 1);" />';E+="&nbsp; &nbsp; &nbsp; &nbsp;";E+='<img src="http://gfx.fotocommunity.com/ram/gfx/sedcard/arrow_down.gif" class="sedcard_position_arrow" width="11" height="10" onmousedown="sedcard_change_position ('+D+', 2);"/>';E+="</div>";E+='<div class="sedcard_referenz '+F+'"><input type="button" class="sedcard_referenz_delete" value="'+sedcard_translation_referenzen_delete+'" onClick="sedcard_delete_reference('+D+')"/></div>'}E+='<div style="clear:both;"></div>';document.getElementById("referenzen_liste").innerHTML=E}}function sedcard_delete_reference(A){cp.call("/pc/inc/ajax_sedcard.inc.php","sedcard_delete_reference",sedcard_get_referencelist,A)}function sedcard_change_position(A,B){cp.call("/pc/inc/ajax_sedcard.inc.php","sedcard_change_position",sedcard_get_referencelist,A,B)}function sedcard_search_notification_change(){var A=document.getElementById("email_notification").checked;if(A===true){document.getElementById("save_search").checked=true}}function sedcard_search_showprofile(A){if(A>0){window.location.href="/pc/pc/extra/sedcard/search/"+A}}function sedcard_search_loadprofile(A){if(A>0){window.location.href="/pc/sedcard/search/id/"+A}else{window.location.href="/pc/sedcard/search/profile"}}function sedcard_search_saveprofile(B,A){if(B>0){window.location.href="/pc/sedcard/search/save/"+B+"/name/"+A}}function sedcard_search_deleteprofile(A){if(A>0){window.location.href="/pc/sedcard/search/"+A+"delete"}}function sedcard_delete_image(A){if(A>0){cp.call("/pc/inc/ajax_sedcard.inc.php","sedcard_delete_image",sedcard_delete_image_callback,A)}}function sedcard_delete_image_callback(A){cp.call("/pc/inc/ajax_sedcard.inc.php","sedcard_delete_image_callback",sedcard_change_image,A)}function sedcard_change_image(A){}function sedcard_check_fileupload(){var E=document.getElementById("upload_1").value;var D=document.getElementById("upload_2").value;var C=document.getElementById("upload_3").value;var B=document.getElementById("upload_4").value;var A=document.getElementById("upload_5").value;if(E||D||C||B||A){showUploadOverlay()}}function upload_check_fileupload(A){var B=document.getElementById("photo").value;if(B){showUploadOverlay();cp.call("/pc/inc/log_upload.php","log_upload",do_nothing,A)}}function do_nothing(){}function profile_check_fileupload(){var A=document.getElementById("photo").value;if(A){showUploadOverlay()}}function showUploadOverlay(){var E=document.getElementById("overlay");var A=document.getElementById("lightbox");var C=getPageSize();var B=getPageScroll();E.style.display="block";E.style.height=(C[1]+"px");var F=B[1]+((C[3]-35)/2);var D=((C[0]-400)/2);A.style.top=(F<0)?"0px":F+"px";A.style.left=(D<0)?"0px":D+"px"}function showSpecialOfferOverlay(){var E=document.getElementById("overlay2");var A=document.getElementById("outer_lightbox2");var C=getPageSize();var B=getPageScroll();E.style.display="block";E.style.height=(C[1]+"px");var F=B[1]+((C[3]-345)/2);var D=((C[0]-541)/2);A.style.top=(F<0)?"0px":F+"px";A.style.left=(D<0)?"0px":D+"px"}function hideSpecialOfferOverlay(E,C,G){var F=document.getElementById("overlay2");var B=document.getElementById("lightbox2");F.style.visibility="hidden";var D=new Date();D.setTime(D.getTime()+C);var A="; expires="+D.toGMTString();document.cookie="pay_special_offer="+E+A+"; path=/";document.forms.form_pso.elements.pso_choice.value=E;if(G){window.location.href=G}}function getPageScroll(){var A;if(self.pageYOffset){A=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.body){A=document.body.scrollTop}}}arrayPageScroll=new Array("",A);return arrayPageScroll}function getPageSize(){var C,A;if(window.innerHeight&&window.scrollMaxY){C=document.body.scrollWidth;A=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){C=document.body.scrollWidth;A=document.body.scrollHeight}else{C=document.body.offsetWidth;A=document.body.offsetHeight}}var B,D;if(self.innerHeight){B=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;D=document.body.clientHeight}}}if(A<D){pageHeight=D}else{pageHeight=A}if(C<B){pageWidth=B}else{pageWidth=C}arrayPageSize=new Array(pageWidth,pageHeight,B,D);return arrayPageSize}function div_ref(A){if(document.layers){return document.layers[A]}else{if(document.all){return document.all[A]}else{if(document.getElementById){return document.getElementById(A)}else{return null}}}}function div_ref_style(A){if(document.layers){return document.layers[A]}else{if(document.all){return document.all[A].style}else{if(document.getElementById){return document.getElementById(A).style}else{return null}}}}function footer_print_banner(B){var G=div_ref("temp_super").innerHTML;var D=G.length;if(D>1200){div_ref("super").innerHTML="";div_ref("super").innerHTML=G;div_ref_style("super").width=728+(document.documentElement?"px":"");div_ref_style("super").height=90+(document.documentElement?"px":"");div_ref_style("super").visibility="visible";div_ref("temp_super").innerHTML="";div_ref_style("temp_super").width=0+(document.documentElement?"px":"");div_ref_style("temp_super").height=0+(document.documentElement?"px":"")}var F=div_ref("temp_full").innerHTML;var C=F.length;if(C>1200){div_ref("full").innerHTML="";div_ref("full").innerHTML=F;div_ref_style("full").width=468+(document.documentElement?"px":"");div_ref_style("full").height=60+(document.documentElement?"px":"");div_ref_style("full").visibility="visible";div_ref("temp_full").innerHTML="";div_ref_style("temp_full").width=0+(document.documentElement?"px":"");div_ref_style("temp_full").height=0+(document.documentElement?"px":"")}var E=div_ref("temp_rect").innerHTML;var A=E.length;if(A>1200){div_ref("rect").innerHTML="";div_ref("rect").innerHTML=E;div_ref_style("rect").width=300+(document.documentElement?"px":"");div_ref_style("rect").height=250+(document.documentElement?"px":"");div_ref_style("rect").visibility="visible";div_ref("temp_rect").innerHTML="";div_ref_style("temp_rect").width=0+(document.documentElement?"px":"");div_ref_style("temp_rect").height=0+(document.documentElement?"px":"");if(B.length>1){div_ref_style("aussendiv").width=320+(document.documentElement?"px":"");div_ref_style("aussendiv").height=270+(document.documentElement?"px":"");div_ref_style("aussendiv").visibility="visible";var H=document.layers?"bgColor":"backgroundColor";div_ref_style("aussendiv")[H]=B}}}var toggleFavorite_vc={is_public:"n",movie_id:0,gfx_url:"http://gfx.fotocommunity.com/ram/vcgfx",init:function(C,B,A){toggleFavorite_vc.movie_id=A;if(C==1){toggleFavorite_vc.is_public="n";document.getElementById("img_favorite").style.backgroundImage="url('"+toggleFavorite_vc.gfx_url+"/display_video/but_favorit_a.gif')"}if(B==1){toggleFavorite_vc.is_public="y";document.getElementById("img_favorite_public").style.backgroundImage="url('"+toggleFavorite_vc.gfx_url+"/display_video/but_favorit_a.gif')"}},Change:function(A){toggleFavorite_vc.is_public=A;if(toggleFavorite_vc.movie_id>0){cp.call("/pc/inc/ajax_favorite.inc.php","toggleFavorite",toggleFavorite_vc.callback,toggleFavorite_vc.movie_id,toggleFavorite_vc.is_public)}},callback:function(A){if(typeof A!=="undefined"){var B=A.ajaxResponse[0].data;if(B=="added"){if(toggleFavorite_vc.is_public=="n"){document.getElementById("img_favorite").style.backgroundImage="url('"+toggleFavorite_vc.gfx_url+"/display_video/but_favorit_a.gif')";document.getElementById("img_favorite_public").style.backgroundImage="url('"+toggleFavorite_vc.gfx_url+"/display_video/but_favorit.gif')"}else{document.getElementById("img_favorite").style.backgroundImage="url('"+toggleFavorite_vc.gfx_url+"/display_video/but_favorit.gif')";document.getElementById("img_favorite_public").style.backgroundImage="url('"+toggleFavorite_vc.gfx_url+"/display_video/but_favorit_a.gif')"}}else{if(toggleFavorite_vc.is_public=="n"){document.getElementById("img_favorite").style.backgroundImage="url('"+toggleFavorite_vc.gfx_url+"/display_video/but_favorit.gif')"}else{document.getElementById("img_favorite_public").style.backgroundImage="url('"+toggleFavorite_vc.gfx_url+"/display_video/but_favorit.gif')"}}}}};function PageLogger_expand(){var B="PageLogger_Details";var A=document.getElementById(B);if(A.style.display=="none"){A.style.display="block"}else{A.style.display="none"}}function PageLogger_expandDetails(C,D){var B="PageLogger_Details_"+C+"_"+D;var A=document.getElementById(B);if(A.style.display=="none"){A.style.display="block"}else{A.style.display="none"}}var support_bugfilter={reload:function(){var B=document.getElementById("bugid");var A=document.getElementById("filter").value;B.options.length=0;B.selectedIndex=0;B.options[0]=new Option("loading bug data ...",0);cp.call("/pc/inc/ajax_support.inc.php","loadIssueList",this.callback,A)},callback:function(B){var D,C,F;var G=document.getElementById("bugid");if(typeof B!=="undefined"){var E=B.ajaxResponse[0].ref;var A=E.length}if(A>0){G.options.length=0;G.selectedIndex=0;for(D=0;D<A;D++){F=B.ajaxResponse[0].ref[D].id[0].data;optionStatus=B.ajaxResponse[0].ref[D].status[0].data;C="#"+F+" "+B.ajaxResponse[0].ref[D].desc[0].data+" ("+optionStatus+")";G.options[D]=new Option(C,F)}}}};var ContactList={contactid:false,rowHeight:false,userTags:[],tagList:[],systemConfig:[],init:function(){ContactList.getSystemConfig()},getSystemConfig:function(){ContactList.systemConfig.userid=YDom.get("userid").value;ContactList.systemConfig.baseurl=unescape(YDom.get("baseurl").value);ContactList.systemConfig.programurl=unescape(YDom.get("programurl").value);ContactList.systemConfig.contacttype=YDom.get("contactlisttype").value;ContactList.systemConfig.bytag=YDom.get("bytag").value;ContactList.systemConfig.sorttagsby=YDom.get("sorttagsby").value;ContactList.systemConfig.t_noTags=YDom.get("t_noTags").value;ContactList.systemConfig.t_tagHelp=YDom.get("t_tagHelp").value;ContactList.systemConfig.numContacts=YDom.get("numContacts").value;ContactList.getTagList()},getTagList:function(){if(ContactList.systemConfig.numContacts>0){cp.call("/pc/inc/ajax_contacts.inc.php","getTagListByUserId",ContactList.processTagList,ContactList.systemConfig.userid,ContactList.systemConfig.sorttagsby,ContactList.systemConfig.contacttype)}},processTagList:function(C){if(typeof C!=="undefined"){var B=C.ajaxResponse[0].tags;if(typeof B!=="undefined"){for(i=0;i<B.length;i++){var E=B[i].id[0].data;var A=B[i].tag[0].data;var D=B[i].count[0].data;ContactList.userTags[E]=A;ContactList.tagList[i]=new Array(E,A,D)}YEvent.onAvailable("tagListViewContainer",ContactList.buildTagListView)}}},addTag:function(C){ContactList.contactid=C;YDom.get("addtag_"+ContactList.contactid).style.display="none";var D=YDom.getStyle("row_"+ContactList.contactid,"height");var F=D.length;var G=D.slice(0,F-2);var A=Number(G)+Number(33);ContactList.rowHeight=D;YDom.get("row_"+ContactList.contactid).style.Height=A+"px";var H=document.createElement("div");YDom.addClass(H,"cb");YDom.insertAfter(H,"addtag_"+ContactList.contactid);var J=document.createElement("div");J.setAttribute("id","inputContainer_"+ContactList.contactid);YDom.addClass(J,"fl cb");YDom.addClass(J,"yui-ac");YDom.setStyle(J,"padding-top","5px");YDom.insertAfter(J,H);var E=document.createElement("input");E.setAttribute("id","inputField_"+ContactList.contactid);E.setAttribute("type","text");J.appendChild(E);autocompleteContainer=document.createElement("div");autocompleteContainer.setAttribute("id","autocompleteContainer_"+ContactList.contactid);autocompleteContainer.setAttribute("z-index","99");J.appendChild(autocompleteContainer);buttonContainer=document.createElement("div");buttonContainer.setAttribute("id","buttonContainer_"+ContactList.contactid);YDom.addClass(buttonContainer,"buttonContainer");YDom.addClass(buttonContainer,"fl");YDom.insertAfter(buttonContainer,"inputContainer_"+ContactList.contactid);var B=document.createElement("a");B.setAttribute("id","button_ok_"+ContactList.contactid);B.style.cursor="pointer";YEvent.addListener(B,"click",ContactList.saveTags);YDom.addClass(B,"button");buttonContainer.appendChild(B);button_ok_desc=document.createElement("span");button_ok_desc.innerHTML="OK";B.appendChild(button_ok_desc);var I=document.createElement("a");I.setAttribute("id","button_cancel_"+ContactList.contactid);I.style.cursor="pointer";YEvent.addListener(I,"click",ContactList.normalizeRow);YDom.addClass(I,"button");buttonContainer.appendChild(I);button_cancel_desc=document.createElement("span");button_cancel_desc.innerHTML="Abbrechen";I.appendChild(button_cancel_desc);this.autoCompleteDataSource=new YAHOO.widget.DS_JSArray(ContactList.userTags);this.autoComplete=new YAHOO.widget.AutoComplete("inputField_"+ContactList.contactid,"autocompleteContainer_"+ContactList.contactid,this.autoCompleteDataSource);this.autoComplete.typeAhead=false;this.autoComplete.useIFrame=true;this.autoComplete.queryMatchCase=true;this.autoComplete.allowBrowserAutocomplete=false;this.autoComplete.minQueryLength=0;this.autoComplete.delimChar=[","," "];this.autoComplete.setFooter('<div class="yui-ac-ft">'+ContactList.systemConfig.t_tagHelp+"</div>");YDom.get("inputField_"+ContactList.contactid).focus()},normalizeRow:function(){var B=YDom.get("inputContainer_"+ContactList.contactid);B.parentNode.removeChild(B);var A=YDom.get("buttonContainer_"+ContactList.contactid);A.parentNode.removeChild(A);YDom.get("row_"+ContactList.contactid).style.Height=ContactList.rowHeight;YDom.get("addtag_"+ContactList.contactid).style.display="block"},saveTags:function(){var A=YDom.get("inputField_"+ContactList.contactid).value;ContactList.normalizeRow();cp.call("/pc/inc/ajax_contacts.inc.php","saveTags",ContactList.getTagListByRefId,ContactList.systemConfig.userid,ContactList.contactid,A)},getTagListByRefId:function(){cp.call("/pc/inc/ajax_contacts.inc.php","getTagListByRefId",ContactList.rebuildContactTags,ContactList.contactid)},rebuildContactTags:function(G){if(typeof G!=="undefined"){var C=YDom.get("taglist_"+ContactList.contactid);var D=C.parentNode;taglist=document.createElement("div");taglist.setAttribute("id","taglist_"+ContactList.contactid);YDom.addClass(taglist,"fl");var I=G.ajaxResponse[0].tags;if(typeof I!=="undefined"){if(I.length>0){for(i=0;i<I.length;i++){var B=I[i].id[0].data;var K=I[i].tag[0].data;var A=document.createElement("span");A.setAttribute("id","tag_"+ContactList.contactid+"_"+B);if(i>0){var F=document.createTextNode(", "+K);A.appendChild(F)}else{var F=document.createTextNode(K);A.appendChild(F)}var E=document.createElement("span");E.setAttribute("id","removeTag_"+ContactList.contactid+"_"+B);YDom.addClass(E,"fg_999");YDom.addClass(E,"size10px");taglist.appendChild(A);taglist.appendChild(E);E.innerHTML='<a href="#" onClick="ContactList.removeTag('+ContactList.contactid+","+B+');" class="cancellink"> [x] </a>'}}else{var H=document.createElement("i");var J=document.createTextNode(ContactList.systemConfig.t_noTags);H.appendChild(J);taglist.appendChild(H)}}C.parentNode.removeChild(C);YDom.insertBefore(taglist,"addtag_"+ContactList.contactid);ContactList.getTagList()}},removeTag:function(D,A){var E=YDom.get("tag_"+D+"_"+A);tagParentNode=E.parentNode;E.parentNode.removeChild(E);var C=YDom.get("removeTag_"+D+"_"+A);C.parentNode.removeChild(C);if(tagParentNode.childNodes.length<3){var F=document.createElement("i");var B=document.createTextNode(ContactList.systemConfig.t_noTags);F.appendChild(B);tagParentNode.appendChild(F)}cp.call("/pc/inc/ajax_contacts.inc.php","deleteTagFromContact",ContactList.removeTagCallback,ContactList.systemConfig.userid,D,A)},removeTagCallback:function(){ContactList.getTagList()},buildTagListView:function(){var D=YDom.get("tagListViewContainer");if(D.innerHTML!=""){D.innerHTML=""}if(typeof ContactList.tagList!=="undefined"&&ContactList.tagList.length>0){for(i=0;i<ContactList.tagList.length;i++){var F=false;if(typeof ContactList.tagList[i]!=="undefined"){var C=ContactList.tagList[i][0];var J=ContactList.tagList[i][1];var H=ContactList.tagList[i][2];var E=document.createElement("div");YDom.addClass(E,"count");YDom.addClass(E,"fl");YDom.addClass(E,"cb");YDom.addClass(E,"alignr");YDom.addClass(E,"fg_000");var G=document.createTextNode(H);E.appendChild(G);D.appendChild(E);var B=document.createElement("div");YDom.addClass(B,"tag");YDom.addClass(B,"fl");var I=document.createElement("a");I.setAttribute("href",ContactList.systemConfig.baseurl+"/bytag/"+escape(C));YDom.addClass(I,"orange");if(ContactList.systemConfig.bytag.length>0&&ContactList.systemConfig.bytag==C){YDom.addClass(I,"bold");arrowActive=document.createElement("img");arrowActive.setAttribute("height","11");arrowActive.setAttribute("width","6");arrowActive.setAttribute("src","http://gfx.fotocommunity.com/ram/gfx/contacts_active_arrow.gif");YDom.addClass(arrowActive,"arrowActive");F=true}var A=document.createTextNode(J);I.appendChild(A);B.appendChild(I);if(F==true){B.appendChild(arrowActive)}D.appendChild(B)}}}},dropDownJump:function(){selectedElement=YDom.get("dropdown").value;if(selectedElement!="0"&&selectedElement!="1"&&selectedElement!="2"&&selectedElement!="3"){var A=ContactList.systemConfig.programurl+"/pc/pc/contacts/"+selectedElement;window.location.href=A}else{return(false)}},setRequestResult:function(A,B){var H=function(){G.parentNode.removeChild(G)};var E=function(){var I={height:{to:0,unit:"px"},minHeight:{to:0,unit:"px"}};var J=new YAHOO.util.Anim(G,I,0.35);J.onComplete.subscribe(H);J.animate()};var D=function(I){var K=YDom.getStyle(G,"background-color");var J=new YAHOO.util.ColorAnim(G,{backgroundColor:{from:I,to:K}},1.5);J.onComplete.subscribe(E);J.animate()};var F=function(){cp.call("/pc/inc/ajax_contacts.inc.php","publicBuddyRequest",C,A,B)};var C=function(I){};var G=YDom.get("row_"+B);if(B>0&&(A==1||A==0)){switch(A){case"1":D("#41A62A");break;case"0":D("#CC0000");break}F()}}};var ContactDropDown={contactid:false,ContactOverlay:false,externalView:0,use_button:0,open:function(A,B){ContactDropDown.use_button=B;cp.call("/pc/inc/ajax_contacts.inc.php","getOverlayData",ContactDropDown.render,A)},close:function(){ContactDropDown.ContactOverlay.destroy()},render:function(P){G="profile";if(YDom.get("contactlisttype")!==null){var G=YDom.get("contactlisttype").value}if(typeof P.ajaxResponse[0].user[0]!=="undefined"){var H=P.ajaxResponse[0].user[0];ContactDropDown.contactid=H.id[0].data;var f=H.name[0].data;var X=H.url[0].data;var J=H.can_ignore[0].data;var N=H.can_public[0].data;var Y=H.status[0].data;var d=H.t_contacts_makebuddy[0].data;var a=H.t_contacts_makepublicbuddy[0].data;var Q=H.t_contacts_nofriend[0].data;var W=H.t_contacts_ignore[0].data;var B=H.t_contacts_close[0].data;var V=document.createElement("div");V.setAttribute("id","overlayContainer_"+ContactDropDown.contactid);YDom.addClass(V,"bg_ccc");YDom.addClass(V,"ContactsOverlayContainer");var g=document.createElement("h3");YDom.addClass(g,"fg_000");overlayUsernameText=document.createTextNode(f);g.appendChild(overlayUsernameText);V.appendChild(g);var D=document.createElement("div");YDom.addClass(D,"fl");YDom.setStyle(D,"width","120px");YDom.setStyle(D,"height","110px");V.appendChild(D);var T=document.createElement("img");T.setAttribute("border","0");T.setAttribute("src",X);YDom.addClass(T,"overlayFoto");D.appendChild(T);var L=document.createElement("div");L.setAttribute("id","overlayLinks");YDom.addClass(L,"overlayLinks");YDom.addClass(L,"fg_000");YDom.addClass(L,"fl");YDom.setStyle(L,"width","180px");YDom.setStyle(L,"height","110px");V.appendChild(L);if(Y!="b"){var C=document.createElement("div");YDom.addClass(C,"iconContainer");YDom.addClass(C,"fl cb");L.appendChild(C);var F=document.createElement("img");F.setAttribute("src","http://gfx.fotocommunity.com/ram/gfx/contacticons/is_buddy.gif");F.setAttribute("border","0");F.setAttribute("width","19");F.setAttribute("height","15");C.appendChild(F);var E=document.createElement("div");YDom.addClass(E,"fl");L.appendChild(E);E.innerHTML='<a href="#" onClick="ContactDropDown.action (\'buddy\'); return (false);" class="black functionLink">'+d+"</a>"}if(Y!="p"&&N==1){var A=document.createElement("div");YDom.addClass(A,"iconContainer");YDom.addClass(A,"fl cb");L.appendChild(A);var c=document.createElement("img");c.setAttribute("src","http://gfx.fotocommunity.com/ram/gfx/contacticons/is_public.gif");c.setAttribute("border","0");c.setAttribute("width","19");c.setAttribute("height","15");A.appendChild(c);var U=document.createElement("div");YDom.addClass(U,"fl");YDom.addClass(U,"textContainer");L.appendChild(U);U.innerHTML='<a href="#" onClick="ContactDropDown.action (\'public\'); return (false);" class="black functionLink">'+a+"</a>"}if(Y.length>0){var I=document.createElement("div");YDom.addClass(I,"iconContainer");YDom.addClass(I,"fl cb");L.appendChild(I);var O=document.createElement("img");O.setAttribute("src","http://gfx.fotocommunity.com/ram/gfx/contacticons/is_neutral.gif");O.setAttribute("border","0");O.setAttribute("width","19");O.setAttribute("height","15");I.appendChild(O);var K=document.createElement("div");YDom.addClass(K,"fl");YDom.addClass(K,"textContainer");L.appendChild(K);K.innerHTML='<a href="#" onClick="ContactDropDown.action (\'nobuddy\'); return (false);" class="black functionLink">'+Q+"</a>"}if(Y!="i"&&J==1){var e=document.createElement("div");YDom.addClass(e,"iconContainer");YDom.addClass(e,"fl cb");L.appendChild(e);var Z=document.createElement("img");Z.setAttribute("src","http://gfx.fotocommunity.com/ram/gfx/contacticons/is_ignore.gif");Z.setAttribute("border","0");Z.setAttribute("width","19");Z.setAttribute("height","15");e.appendChild(Z);var S=document.createElement("div");YDom.addClass(S,"fl");YDom.addClass(S,"textContainer");L.appendChild(S);S.innerHTML='<a href="#" onClick="ContactDropDown.action (\'ignore\'); return (false);" class="black functionLink">'+W+"</a>"}var R=document.createElement("div");YDom.addClass(R,"fl");YDom.addClass(R,"alignr");YDom.setStyle(R,"width","290px");V.appendChild(R);R.innerHTML='<a href="#" onClick="ContactDropDown.close(); return(false);" class="black size10px">'+B+" [x]</a>";var M=YDom.get("row_icon_"+ContactDropDown.contactid);if(M!==null){ContactDropDown.ContactOverlay=new YOverlay(V,{width:"300px",height:"155px",context:[M,"tr","br"]})}else{if(ContactDropDown.use_button==1){ContactDropDown.ContactOverlay=new YOverlay(V,{width:"300px",height:"155px",context:["button_buddy","tl","bl"]})}else{ContactDropDown.ContactOverlay=new YOverlay(V,{width:"300px",height:"155px",context:["BuddyIcon_"+ContactDropDown.contactid,"tl","bl"]})}}ContactDropDown.ContactOverlay.render(document.body)}},action:function(D){H="profile";var E=function(){I.parentNode.removeChild(I)};var B=function(){var K={height:{to:0,unit:"px"},minHeight:{to:0,unit:"px"}};var L=new YAHOO.util.Anim(I,K,0.35);L.onComplete.subscribe(E);L.animate()};var C=function(K,M){var N=YDom.getStyle(I,"background-color");var L=new YAHOO.util.ColorAnim("row_"+ContactDropDown.contactid,{backgroundColor:{from:K,to:N}},1.5);if(M==true&&ContactDropDown.externalView==0){L.onComplete.subscribe(B)}L.animate()};var A=function(){cp.call("/pc/inc/ajax_contacts.inc.php","changeContactStatus",F,ContactDropDown.contactid,D)};var F=function(L){var N=false;if(D=="nobuddy"){var M=YDom.get("tagListViewContainer");if(typeof M!=="undefined"){ContactList.getTagList()}}if(D=="public"){if(typeof L.ajaxResponse[0].data!=="undefined"){var O=L.ajaxResponse[0].data.split("||");YDom.get("overlayLinks").innerHTML=O[1];if(Number(O[0])>0){if(Number(O[0])==2){N="public_accepted"}if(typeof I!=="undefined"){if(H=="buddies"){var K="#41A62A";C(K,false);J(N)}else{if(H=="profile"){J(N)}else{if(ContactDropDown.externalView==0){var K="#FF9900";C(K,true)}else{J(N);var K="#FF9900";C(K,true)}}}}else{J(N)}}}}};var J=function(M){var L;var K;if(typeof (M)=="undefined"||M==false){M=D}switch(M){case"buddy":L="http://gfx.fotocommunity.com/ram/gfx/contacticons/is_buddy.gif";K="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_buddy.gif";break;case"public":L="http://gfx.fotocommunity.com/ram/gfx/contacticons/is_pending.gif";K="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_pending.gif";break;case"public_accepted":L="http://gfx.fotocommunity.com/ram/gfx/contacticons/is_public.gif";K="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_public.gif";break;case"nobuddy":L="http://gfx.fotocommunity.com/ram/gfx/contacticons/is_neutral.gif";K="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_neutral.gif";break;case"ignore":L="http://gfx.fotocommunity.com/ram/gfx/contacticons/is_ignore.gif";K="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_ignore.gif";break}if(YDom.get("BuddyIcon_"+ContactDropDown.contactid)!==null){YDom.get("BuddyIcon_"+ContactDropDown.contactid).src=L}if(YDom.get("icon_buddy_button")!==null){YDom.get("icon_buddy_button").src=K}};var I=YDom.get("row_"+ContactDropDown.contactid);if(YDom.get("contactlisttype")!==null){var H=YDom.get("contactlisttype").value;ContactDropDown.externalView=YDom.get("external").value;switch(D){case"buddy":ContactDropDown.ContactOverlay.destroy();if(H=="buddies"){var G="#FF9900";C(G,false);J()}else{if(H=="fotografen"){J()}else{if(ContactDropDown.externalView==0){var G="#FF9900";C(G,true)}else{J();var G="#FF9900";C(G,true)}}}break;case"public":break;case"nobuddy":ContactDropDown.ContactOverlay.destroy();J();var G="#4A4A4A";C(G,true);break;case"ignore":ContactDropDown.ContactOverlay.destroy();J();var G="#CC0000";C(G,true);break}}else{if(D!="public"){ContactDropDown.ContactOverlay.destroy();J()}}A()}};var display_foto={is_privateFavourite:false,is_publicFavourite:false,current_photo:false,nvotenow:false,slider:false,keyboardBuffer:false,keyboardBufferActive:false,fotoWidth:false,resizeListener:false,origMouseOverImg:false,keyboardBufferTimeout:2000,txt_Yes:false,txt_No:false,txt_DeleteTitle:false,txt_DeleteText:false,txt_HomepageTitle:false,txt_HomepageText:false,initPage:function(){YDom.setStyle("fc_body","width","951px");display_foto.fotoWidth=YDom.get("xsize").value;display_foto.correctImagePosition();display_foto.current_photo=YDom.get("current_photo").value;ListenerKeyBack=new YUtil.KeyListener(document,{keys:37},{fn:display_foto.keypress_back});ListenerKeyBack.enable();ListenerKeyForward=new YUtil.KeyListener(document,{keys:39},{fn:display_foto.keypress_forward});ListenerKeyForward.enable();YEvent.onAvailable("sectionname",display_foto.initSectionToolTip);YEvent.onAvailable("psectionname",display_foto.initfotohomeToolTip);YEvent.onAvailable("gallerysection",display_foto.initGalleryToolTip);YEvent.onAvailable("div_public_fav",display_foto.getFavouriteStatus);YEvent.onAvailable("container_right",display_foto.resizeInfoBoxes)},resizeInfoBoxes:function(){var C=YDom.get("container_left").offsetHeight;var A=YDom.get("container_right").offsetHeight;if(C>A){var B=C-A;YDom.get("container_right").style.paddingTop=Number(B/2)+"px";YDom.get("container_right").style.paddingBottom=Number(B/2)+"px"}else{if(A>C){var B=A-C;YDom.get("container_left").style.paddingTop=Number(B/2)+"px";YDom.get("container_left").style.paddingBottom=Number(B/2)+"px"}}},initToolTips:function(){var D=new YAHOO.widget.Tooltip("tooltipQuickMessage",{context:"icon_qm"});var A=new YAHOO.widget.Tooltip("tooltipFotomail",{context:"icon_fm"});var C=new YAHOO.widget.Tooltip("tooltipPrivateFav",{context:"icon_private_fav"});var B=new YAHOO.widget.Tooltip("tooltipPublicFav",{context:"icon_public_fav"});var E=new YAHOO.widget.Tooltip("tooltipGallery",{context:"icon_galerie"})},initSectionToolTip:function(){var A=new YAHOO.widget.Tooltip("tooltipSection",{context:"sectionname"})},initfotohomeToolTip:function(){var A=new YAHOO.widget.Tooltip("tooltipFotohome",{context:"psectionname"})},initGalleryToolTip:function(){var A=new YAHOO.widget.Tooltip("tooltipGallery",{context:"gallerysection"})},initMouseOver:function(){var A=["icon_qm","icon_fm","icon_private_fav","icon_public_fav","icon_galerie"];YEvent.addListener(A,"mouseover",display_foto.mouseOverHandler);YEvent.addListener(A,"mouseout",display_foto.mouseOutHandler)},mouseOverHandler:function(){display_foto.origMouseOverImg=YDom.get(this.id).src;switch(this.id){case"icon_qm":var A="button_icon_QM_active.gif";break;case"icon_fm":var A="button_icon_FM_active.gif";break;case"icon_private_fav":var A="button_icon_fav_active.gif";break;case"icon_public_fav":var A="button_icon_oefav_active.gif";break;case"icon_galerie":var A="button_icon_galerie_active.gif";break}YDom.get(this.id).src="http://gfx.fotocommunity.com/ram/gfx/buttons/"+A},mouseOutHandler:function(){YDom.get(this.id).src=display_foto.origMouseOverImg},correctImagePosition:function(){var D=950;var E=YDom.getViewportWidth();var C=window.navigator.userAgent.toLowerCase();if(display_foto.fotoWidth>D){var A=true;if(display_foto.fotoWidth>E){var B=Math.ceil((E-D)/2);B=Number(B-5);if(C.indexOf("msie 5")>-1||C.indexOf("msie 6")>-1){A=false}}else{var B=Math.ceil((display_foto.fotoWidth-D)/2)}if(A==true){YDom.setStyle("fc_image","left","-"+B+"px");if(display_foto.resizeListener==false){YEvent.addListener(window,"resize",display_foto.correctImagePosition);display_foto.resizeListener=true}}}},getFavouriteStatus:function(){cp.call("/pc/inc/ajax_favorite.inc.php","getFavouriteStatus",display_foto.setFavouriteStatus,display_foto.current_photo)},setFavouriteStatus:function(A){display_foto.is_privateFavourite=false;display_foto.is_publicFavourite=false;if(typeof (A)!=="undefined"){switch(A.ajaxResponse[0].data){case 1:display_foto.is_privateFavourite=true;break;case 2:display_foto.is_publicFavourite=true;break}}display_foto.render_privateFavourite();display_foto.render_publicFavourite();YEvent.onAvailable("icon_public_fav",display_foto.initMouseOver);YEvent.onAvailable("icon_public_fav",display_foto.initToolTips)},render_privateFavourite:function(){var B;var A=YDom.get("div_private_fav");if(A!==null){if(YDom.get("a_userid").value>0){if(display_foto.is_privateFavourite==true){var C=YDom.get("text_private_fav_no").value;B='<a href="#" onClick="this.blur(); display_foto.click_private_favorite(); return (false);"><img class="fl" src="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_fav_active_active.gif" height="18" width="33" alt="'+C+'" id="icon_private_fav" title="'+C+'"/></a>'}else{var C=YDom.get("text_private_fav").value;B='<a href="#" onClick="this.blur(); display_foto.click_private_favorite(); return (false);"><img class="fl" src="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_fav.gif" height="18" width="33" alt="'+C+'" id="icon_private_fav" title="'+C+'"/></a>'}}else{var C=YDom.get("text_private_fav").value;B='<img class="fl" src="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_fav_grau.gif" height="18" width="33" alt="'+C+'" id="icon_private_fav" title="'+C+'"/>'}A.innerHTML=B}},render_publicFavourite:function(){var B;var A=YDom.get("div_public_fav");if(A!==null){if(YDom.get("a_userid").value>0){if(display_foto.is_publicFavourite==true){var C=YDom.get("text_public_fav_no").value;B='<a href="#" onClick="this.blur(); display_foto.click_public_favorite(); return (false);"><img class="fl" src="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_oefav_active_active.gif" height="18" width="33" alt="'+C+'" id="icon_public_fav" title="'+C+'"/></a>'}else{var C=YDom.get("text_public_fav").value;B='<a href="#" onClick="this.blur(); display_foto.click_public_favorite(); return (false);"><img class="fl" src="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_oefav.gif" height="18" width="33" alt="'+C+'" id="icon_public_fav" title="'+C+'"/></a>'}}else{var C=YDom.get("text_public_fav").value;B='<img class="fl" src="http://gfx.fotocommunity.com/ram/gfx/buttons/button_icon_oefav_grau.gif" height="18" width="33" alt="'+C+'" id="icon_private_fav" title="'+C+'"/>'}A.innerHTML=B}},click_private_favorite:function(){var A="n";cp.call("/pc/inc/ajax_favorite.inc.php","setFavouriteStatus",display_foto.setFavouriteStatus,display_foto.current_photo,A)},click_public_favorite:function(){var A="y";cp.call("/pc/inc/ajax_favorite.inc.php","setFavouriteStatus",display_foto.setFavouriteStatus,display_foto.current_photo,A)},keypress_back:function(){var A=YDom.get("prev_photo").value;A=unescape(A);window.location.href=A},keypress_forward:function(){var A=YDom.get("next_photo").value;A=unescape(A);window.location.href=A},initDeleteDialog:function(){display_foto.txt_Yes=YDom.get("txt_Yes").value;display_foto.txt_No=YDom.get("txt_No").value;display_foto.txt_DeleteTitle=YDom.get("txt_DeleteTitle").value;display_foto.txt_DeleteText=YDom.get("txt_DeleteText").value;var B=function(){var D=unescape(YDom.get("dlink").value);window.location.href=D};var A=function(){this.hide()};var C=[{text:display_foto.txt_Yes,handler:B},{text:display_foto.txt_No,handler:A,isDefault:true}];deleteDialog=new YAHOO.widget.SimpleDialog("deleteDialog",{width:"300px",height:"120px",fixedcenter:true,close:false,modal:true,visible:true,draggable:false,iframe:true,underlay:"matte"});deleteDialog.setHeader(display_foto.txt_DeleteTitle);deleteDialog.setBody(display_foto.txt_DeleteText);deleteDialog.cfg.setProperty("icon",YAHOO.widget.SimpleDialog.ICON_INFO);deleteDialog.cfg.queueProperty("buttons",C);deleteDialog.render(document.body)},initHomepageDialog:function(){display_foto.txt_Yes=YDom.get("txt_Yes").value;display_foto.txt_No=YDom.get("txt_No").value;display_foto.txt_HomepageTitle=YDom.get("txt_HomepageTitle").value;display_foto.txt_HomepageText=YDom.get("txt_HomepageText").value;var B=function(){var D=unescape(YDom.get("hplink").value);window.location.href=D};var A=function(){this.hide()};var C=[{text:display_foto.txt_Yes,handler:B},{text:display_foto.txt_No,handler:A,isDefault:true}];homepageDialog=new YAHOO.widget.SimpleDialog("homepageDialog",{width:"300px",height:"120px",fixedcenter:true,close:false,modal:true,visible:true,draggable:false,underlay:"matte"});homepageDialog.setHeader(display_foto.txt_HomepageTitle);homepageDialog.setBody(display_foto.txt_HomepageText);homepageDialog.cfg.setProperty("icon",YAHOO.widget.SimpleDialog.ICON_INFO);homepageDialog.cfg.queueProperty("buttons",C);homepageDialog.render(document.body)},initSlider:function(){display_foto.slider=YAHOO.widget.Slider.getHorizSlider("slider-bg","slider-thumb",0,480);YDom.get("slider-thumb").style.left="15px";display_foto.slider.subscribe("change",display_foto.sliderValueChange);display_foto.nvotenow=YDom.get("nvotenow").value;if(display_foto.nvotenow>0){sliderValue=Number(display_foto.nvotenow-1);sliderValue=Number(sliderValue*53.5);sliderValue=Math.round(sliderValue);display_foto.slider.setValue(sliderValue,true,true)}ListenerContest=new YUtil.KeyListener(document,{keys:[49,97,50,98,51,99,52,100,53,101,54,102,55,103,56,104,57,105,48,96]},{fn:display_foto.sliderKeyListener});contestSendKey=new YUtil.KeyListener(document,{keys:13},{fn:display_foto.sendContestVote});ListenerContest.enable();contestSendKey.enable();YEvent.addListener("slider-thumb","dblclick",display_foto.sendContestVote)},sliderValueChange:function(A){contestPoints=Number(A/53.5);contestPoints=Number(contestPoints+1);YDom.get("contestvalue").innerHTML=contestPoints.toFixed(1)},sliderKeyListener:function(B,D){var C=D[0];var E;var A;switch(C){case 49:case 97:E="1";break;case 50:case 98:E="2";break;case 51:case 99:E="3";break;case 52:case 100:E="4";break;case 53:case 101:E="5";break;case 54:case 102:E="6";break;case 55:case 103:E="7";break;case 56:case 104:E="8";break;case 57:case 105:E="9";break;case 48:case 96:E="10";break}if(display_foto.keyboardBuffer===false||display_foto.keyboardBuffer.length>=2||typeof (display_foto.keyboardBuffer.length)=="undefined"){display_foto.keyboardBuffer=E}else{display_foto.keyboardBuffer+=E;display_foto.keyboardBuffer=Number(display_foto.keyboardBuffer)/10}sliderValue=Number(display_foto.keyboardBuffer-1);sliderValue=Number(sliderValue*53.5);display_foto.slider.setValue(sliderValue);display_foto.keyboardBufferActive=window.setTimeout("display_foto.flushKeyboardBuffer()",display_foto.keyboardBufferTimeout)},flushKeyboardBuffer:function(){display_foto.keyboardBuffer=false;window.clearTimeout(display_foto.keyboardBufferActive)},sendContestVote:function(){var A=unescape(YDom.get("next_photo").value);var B=YDom.get("a_userid").value;var D=YDom.get("current_photo").value;var C=YDom.get("contestvalue").innerHTML;A=A+"/nvoteid/"+D+"/nvotenow/"+C+"/nuserid/"+B;window.location.href=A}};var addComment={commentData:false,buttonid:false,init:function(B,A){addComment.commentData=YAHOO.lang.JSON.parse(unescape(B));addComment.buttonid=A;addComment.renderInputBox()},renderInputBox:function(){var B=document.createElement("div");B.setAttribute("id",addComment.buttonid+"_container");YDom.addClass(B,"flcb");var C=document.createElement("textarea");C.setAttribute("id",addComment.buttonid+"_input");C.setAttribute("wrap","virtual");YDom.addClass(C,"addCommentInput");var A=document.createElement("div");YDom.addClass(A,"flcb");YDom.setStyle(A,"padding-top","3px");A.innerHTML='<a href="#" onClick="addComment.insertComment(); return (false);" class="button"><span>'+addComment.commentData.textOK+'</span></a> <a href="#" onClick="addComment.cancel(); return (false);" class="button"><span>'+addComment.commentData.textCancel+"</span></a>";B.appendChild(C);B.appendChild(A);YDom.get(addComment.buttonid).style.display="none";YDom.insertAfter(B,addComment.buttonid)},insertComment:function(){var E=YDom.get(addComment.buttonid+"_input").value;var B=new Date();var D=addComment.commentData.textToday+" "+B.getHours()+":"+B.getMinutes()+" "+addComment.commentData.textoClock;var C=YDom.get(addComment.buttonid+"_container");C.parentNode.removeChild(C);YDom.get(addComment.buttonid).style.display="block";var G=document.createElement("h4");YDom.addClass(G,"c_submitter");G.innerHTML='<a href="/pc/account?myprofile='+addComment.commentData.userid+'">'+addComment.commentData.username+"</a>, "+D;var A=document.createElement("p");YDom.addClass(A,"c_text");var F=document.createTextNode(E);A.appendChild(F);YDom.insertAfter(G,addComment.buttonid);YDom.insertAfter(A,G);addComment.send(E)},send:function(A){},cancel:function(){var A=YDom.get(addComment.buttonid+"_container");A.parentNode.removeChild(A);YDom.get(addComment.buttonid).style.display="block"}};var membership_selector={show_free:function(){YDom.get("tab_free").style.display="block";YDom.get("tab_basic").style.display="none";YDom.get("tab_pro").style.display="none";YDom.get("tab_world").style.display="none";YDom.get("selected_membership").value="free";if(YDom.get("selected_membership_text")!==null){YDom.get("selected_membership_text").innerHTML=YDom.get("click_free").title}},show_basic:function(){YDom.get("tab_free").style.display="none";YDom.get("tab_basic").style.display="block";YDom.get("tab_pro").style.display="none";YDom.get("tab_world").style.display="none";YDom.get("selected_membership").value="basic";if(YDom.get("selected_membership_text")!==null){YDom.get("selected_membership_text").innerHTML=YDom.get("click_basic").title}},show_pro:function(){YDom.get("tab_free").style.display="none";YDom.get("tab_basic").style.display="none";YDom.get("tab_pro").style.display="block";YDom.get("tab_world").style.display="none";YDom.get("selected_membership").value="pro";if(YDom.get("selected_membership_text")!==null){YDom.get("selected_membership_text").innerHTML=YDom.get("click_pro").title}},show_world:function(){YDom.get("tab_free").style.display="none";YDom.get("tab_basic").style.display="none";YDom.get("tab_pro").style.display="none";YDom.get("tab_world").style.display="block";YDom.get("selected_membership").value="world";if(YDom.get("selected_membership_text")!==null){YDom.get("selected_membership_text").innerHTML=YDom.get("click_world").title}}};var SlideShowPage={feed:false,size:"normal",speed:"normal",init:function(){SlideShowPage.feed=YDom.get("feed_url").value;SlideShowPage.buildEmbedObject()},sizeMouseOver:function(A){A.style.background="#FFFEDC"},sizeMouseOut:function(A){if(A.id==SlideShowPage.size){A.style.background="#D5FCBD"}else{A.style.background="#FFFFFF"}},sizeClick:function(A){YDom.get(SlideShowPage.size).style.background="#FFFFFF";SlideShowPage.size=A.id;A.style.background="#D5FCBD";SlideShowPage.buildEmbedObject()},speedClick:function(A){SlideShowPage.speed=A.value;SlideShowPage.buildEmbedObject()},buildEmbedObject:function(){switch(SlideShowPage.size){case"small":var A="324";var E="243";break;case"big":var A="450";var E="338";break;default:var A="426";var E="321";break}switch(SlideShowPage.speed){case"slow":var D=8;break;case"fast":var D=2;break;default:var D="4";break}var B='<object width="'+A+'" height="'+E+'"><param name="movie" value="http://www.fotocommunity.de/widgets/FCSlideshowWidget.swf?feed='+SlideShowPage.feed+"&intervall="+D+'"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.fotocommunity.de/widgets/FCSlideshowWidget.swf?feed='+SlideShowPage.feed+"&intervall="+D+'" type="application/x-shockwave-flash" allowfullscreen="true" width="'+A+'" height="'+E+'"></embed></object>';YDom.get("EmbedObject").value=B;var C="";C+='<h4 style="margin:2px;">'+YDom.get("SlideShowPreviewTitle").value+"</h4>";C+='<object width="290" height="218"><param name="movie" value="http://www.fotocommunity.de/widgets/FCSlideshowWidget.swf?feed='+SlideShowPage.feed+"&intervall="+D+'"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.fotocommunity.de/widgets/FCSlideshowWidget.swf?feed='+SlideShowPage.feed+"&intervall="+D+'" type="application/x-shockwave-flash" allowfullscreen="true" width="290" height="218"></embed></object>';C+='<p style="font-weight:normal;">'+YDom.get("SlideShowPreviewNote").value+"</p>";YDom.get("SlideShowPreview").innerHTML=C},embedTextClick:function(A){A.select()}};function openCommentWindow(B,A,D){var C=window.navigator.userAgent.toLowerCase();if(C.indexOf("firefox/3")>-1){var A=Number(A)+17}var E="height="+A+", width="+D+", top=300,left=500, resizable=yes, scrollbars=no, location=no, menubar=no, status=no, toolbar=no";commentWindow=window.open(B,"commentWindow",E)}function openQuickMessageWindow(E){var D=415;var A=245;var B="/pc/qmail.pop.php";if(Number(E)>0){B=B+"/newqm/"+E}var C=window.navigator.userAgent.toLowerCase();if(C.indexOf("firefox/3")>-1){var A=Number(A)+22}window.setTimeout("menu_hide_quickmessage()",2000);var F="height="+A+", width="+D+", top=100,left=500, resizable=yes, scrollbars=yes, location=no, menubar=no, status=no, toolbar=no";windowQuickMessage=window.open("","windowQuickMessage",F);if(windowQuickMessage.window.document.title==""||typeof windowQuickMessage.window.document.title==="undefined"){windowQuickMessage.window.location.href=B}}function markAllImages(){checkBoxesOnPage=YDom.getElementsByClassName("thumbnail_checkbox","input");var B=0;if(checkBoxesOnPage.length>0){for(var A in checkBoxesOnPage){if(checkBoxesOnPage[A].checked==true){B++}}for(var A in checkBoxesOnPage){if(B==checkBoxesOnPage.length){checkBoxesOnPage[A].checked=false}else{checkBoxesOnPage[A].checked=true}}}}function show_next_visits(P){var B=P.ajaxResponse[0].ergebnisse[0].zeile;var E=P.ajaxResponse[0].gesamt[0].data;var C=P.ajaxResponse[0].start[0].data;if(B.length>0){var I=0;var F=0;var H=0;document.getElementById("profilevisits").style.display="block";for(H=0;H<B.length;H++){F=H+1;var A="line2_"+F;var O=unescape(B[H].data);document.getElementById(A).innerHTML=O;document.getElementById(A).style.display="block"}if(F<5){for(b=F;b<5;b++){var M=b+1;var A="line2_"+M;document.getElementById(A).innerHTML="";document.getElementById(A).style.display="none"}}var G=0;if(E>5){G=1;if(C>1){var J=C-5;var L='<img src="http://gfx.fotocommunity.com/ram/gfx/d1w2.gif" align="middle" height="10" hspace="6" vspace="7" width="8" style="cursor:pointer;" onClick="javascript:get_next_visits('+J+');">';document.getElementById("navi_back").innerHTML=L;document.getElementById("navi_back").style.display="block"}else{document.getElementById("navi_back").innerHTML="";document.getElementById("navi_back").style.display="none"}var K=C+4;if(E>K){var D=C+5;var N='<img src="http://gfx.fotocommunity.com/ram/gfx/d1w.gif" align="middle" height="10" hspace="6" vspace="7" width="8" style="cursor:pointer;" onClick="javascript:get_next_visits('+D+');">';document.getElementById("navi_fore").innerHTML=N;document.getElementById("navi_fore").style.display="block"}else{document.getElementById("navi_fore").innerHTML="";document.getElementById("navi_fore").style.display="none"}}if(G==1){}else{}}}function changeVisibility(D,B){var A=new Date();var C=A.getTime()+(365*24*60*60*1000);A.setTime(C);if(document.getElementById(D).style.display=="none"){document.getElementById(D).style.display="block";document.getElementById(B).src="http://gfx.fotocommunity.com/ram/gfx/buttons/visits_down.gif";document.cookie="show_profilevisits=1; path=/; expires="+A.toGMTString()}else{document.getElementById(D).style.display="none";document.getElementById(B).src="http://gfx.fotocommunity.com/ram/gfx/buttons/visits_left.gif";document.cookie="show_profilevisits=0; path=/; expires="+A.toGMTString()}}var SlideShowPage={userid:false,feed:false,size:"normal",speed:"normal",popup:null,init:function(){SlideShowPage.feed=YDom.get("feed_url").value;SlideShowPage.userid=YDom.get("userid").value;SlideShowPage.buildEmbedObject()},sizeMouseOver:function(A){A.style.background="#FFFEDC"},sizeMouseOut:function(A){if(A.id==SlideShowPage.size){A.style.background="#D5FCBD"}else{A.style.background="#FFFFFF"}},sizeClick:function(A){YDom.get(SlideShowPage.size).style.background="#FFFFFF";SlideShowPage.size=A.id;A.style.background="#D5FCBD";SlideShowPage.buildEmbedObject()},speedClick:function(A){if(A.value!=SlideShowPage.speed){SlideShowPage.speed=A.value;SlideShowPage.buildEmbedObject()}},embedTextClick:function(A){A.select()},changeMyPicsOption:function(A){SlideShowPage.feed=A.value;SlideShowPage.buildEmbedObject()},buildEmbedObject:function(){SlideShowPage.hideCode();switch(SlideShowPage.size){case"small":var A="324";var E="243";break;case"big":var A="450";var E="338";break;default:var A="426";var E="321";break}switch(SlideShowPage.speed){case"slow":var D=8;break;case"fast":var D=2;break;default:var D=4;break}var B='<div id="FCSlideshowWidget" style="width:'+A+'px; text-align:right; font-size:10px; font-family:Arial;"><object width="'+A+'" height="'+E+'"><param name="movie" value="http://www.fotocommunity.de/widgets/FCSlideshowWidget.swf?feed='+SlideShowPage.feed+"&intervall="+D+'"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.fotocommunity.de/widgets/FCSlideshowWidget.swf?feed='+SlideShowPage.feed+"&intervall="+D+'" type="application/x-shockwave-flash" allowfullscreen="true" width="'+A+'" height="'+E+'"></embed></object><br /><a href="http://www.fotocommunity.de?slideshow='+SlideShowPage.userid+'" style="color:#000;" target="_blank">fotocommunity</a></div>';YDom.get("EmbedObject").value=B;var C="";C+='<h4 style="margin:2px;">'+YDom.get("SlideShowPreviewTitle").value+"</h4>";C+='<object width="290" height="218"><param name="movie" value="http://www.fotocommunity.de/widgets/FCSlideshowWidget.swf?feed='+SlideShowPage.feed+"&intervall="+D+'"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.fotocommunity.de/widgets/FCSlideshowWidget.swf?feed='+SlideShowPage.feed+"&intervall="+D+'" type="application/x-shockwave-flash" allowfullscreen="true" width="290" height="218"></embed></object>';C+='<p style="font-weight:normal;"><a href="#" onClick="SlideShowPage.openPopup('+A+","+E+","+D+'); return (false);" class="form_link">'+YDom.get("SlideShowPreviewPopup").value+"</a></p>";YDom.get("SlideShowPreview").innerHTML=C;if(SlideShowPage.popup!==null&&!SlideShowPage.popup.closed){SlideShowPage.openPopup(A,E,D)}},activateSlideShow:function(){SlideShowPage.showCode();cp.call("/pc/inc/ajax_slideshow.inc.php","activate_slideshow",SlideShowPage.activateSlideShowCallback,SlideShowPage.feed)},activateSlideShowCallback:function(){},showCode:function(){YDom.get("headline_html").style.display="block";YDom.get("EmbedObject").style.display="block";YDom.get("EmbedObject_description").style.display="block";YDom.get("button_generate").style.display="none"},hideCode:function(){YDom.get("headline_html").style.display="none";YDom.get("EmbedObject").style.display="none";YDom.get("EmbedObject_description").style.display="none";YDom.get("button_generate").style.display="block"},openPopup:function(B,G,E){if(YAHOO.env.ua.gecko!=0){var C=15;var A=75}else{if(YAHOO.env.ua.opera!=0){var C=15;var A=55}else{if(YAHOO.env.ua.ie==6){var C=30;var A=80}else{if(YAHOO.env.ua.ie==7){var C=30;var A=100}else{var C=15;var A=40}}}}var D=Number(B)+Number(C);var F=Number(G)+Number(A);SlideShowPage.popup=window.open("/pc/slideshowpreview.php?feed="+SlideShowPage.feed+"&speed="+E+"&sizeX="+B+"&sizeY="+G,"slideshowPopupWindow","width="+D+",height="+F+",location=no,status=no");SlideShowPage.popup.resizeTo(D,F);SlideShowPage.popup.focus()}};function PicLensLink(A){if(PicLensLite.hasClient()===true){PicLensLite.start()}else{window.location.href=A}}if(typeof (YAHOO)!=="undefined"){var YEvent=YAHOO.util.Event;var YDom=YAHOO.util.Dom;var YUtil=YAHOO.util;if(typeof (YAHOO.widget.Overlay)!=="undefined"){YOverlay=YAHOO.widget.Overlay}YEvent.onContentReady("contacts",ContactList.init);YEvent.onContentReady("fc_image",display_foto.initPage);YEvent.onContentReady("contestvalue",display_foto.initSlider);YEvent.onContentReady("slideshow_size",SlideShowPage.init)};