jQuery.fn.iflip=function(B,A){jQuery(this).click(function(){curr=jQuery(this).find("img").attr("src");if(curr==B){jQuery(this).find("img").attr("src",A)}else{if(curr==A){jQuery(this).find("img").attr("src",B)}}})};function genQ(A,B,C){var D='<object width="'+B+'" height="'+C+'" id="quicktimevideo" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B">';D+='<param value="'+A+'" name="src"/>';D+='<param value="FALSE" name="controller"/>';D+='<param value="myself" name="target"/>';D+='<param value="video/quicktime" name="type"/>';D+='<embed src="'+A+'" width="'+B+'" height="'+C+'" showlogo="true" type="video/quicktime" target="myself" autoplay="true" loop="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/">';D+="</object>";return D}function lQ(B,A){B.find("img").hide();B.prepend(genQ(A,pW,pH))}function lUTube(F,C,B){F.find("img").hide();var D=C;var A=D.match(/v=([^&]+)/);var E=A[1];F.find("img").hide();var G={allowScriptAccess:"always"};F.prepend('<div id="utube'+B+'"></div>');swfobject.embedSWF("http://www.youtube.com/v/"+E+"&enablejsapi=1&playerapiid=ytplayer","utube"+B,pW,pH,"8",null,null,G,null)}function loadImage(C,G,B){var E=jQuery("#poster"+C);var D=jQuery("#gallery"+C);var F=jQuery("#description"+C);var A=jQuery("#abstract"+C);E.find("a").attr("href",cP+iD+G+fS);E.find("img").attr("src",cP+iD+G+pS);jQuery.ajax({type:"GET",async:false,cache:false,dataType:"json",data:{imageId:G},url:iU,success:function(H){E.find("#quicktimevideo").remove();E.find("img").show();A.html(H.text);if(H.mediaurl.length>0){E.find("a").attr("href","#");if(H.mediaurl.toLowerCase().indexOf(".mov")>-1){lQ(E,H.mediaurl)}else{if(H.mediaurl.toLowerCase().indexOf("youtube")>-1){lUTube(E,H.mediaurl,C)}}}}});if(B){A.addClass("abstractLandscape");F.addClass("descriptionLandscape");D.addClass("galleryLandscape");E.addClass("posterLandscape")}else{A.removeClass("abstractLandscape");F.removeClass("descriptionLandscape");D.removeClass("galleryLandscape");E.removeClass("posterLandscape")}}function loadWeatherData(A,B){jQuery.ajax({type:"GET",async:true,cache:false,dataType:"xml",url:cP+"/weather/"+A+".xml",success:function(D){var C=jQuery.xmlToJSON(D);jQuery(B).html(C.channel[0].item[0].condition[0].temp+"&#176;C")}})}jQuery(document).ready(function(){if(cId){jQuery('div#categories a[href*="categoryId='+cId+'"]').attr("class","fat")}if(fId){jQuery('div#filter a[href*="filterId='+fId+'"]').attr("class","fat")}if(l){jQuery('div#i8n a[href*="request_locale='+l+'"]').attr("class","fat")}if(jQuery.browser.safari){jQuery(".sform").html('<span class="left"></span><input name="q" type="text" class="middle" accesskey="s" tabindex="0" value="'+q+'" style="-webkit-appearance: none;-webkit-background-clip: border;-webkit-background-origin: padding;-webkit-rtl-ordering: logical;-webkit-user-select: text;outline-style: auto;outline-width: 0px" /><span class="right"></span>')}else{jQuery(".sform").html('<span class="left"></span><input name="q" type="text" class="middle" accesskey="s" tabindex="0" value="'+q+'" /><span class="right"></span>')}jQuery(".lightbox").lightbox();loadWeatherData("GMXX0040","#wffm");loadWeatherData("GMXX1273","#wberlin")});