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 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(I){E.find("#quicktimevideo").remove();E.find("img").show();A.html(I.text);E.find("a").attr("title",I.text);E.find("img").attr("alt",I.text);if(I.mediaurl.length>0){var H=320;var J=240;E.find("a").attr("href",I.mediaurl);if(I.mediaurl.toLowerCase().indexOf(".mov")>-1){E.find("img").hide();E.prepend(genQ(I.mediaurl,H,J))}}}});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")});
