
function loadjscssfile(e,f,g){if(f=="js"){var h=document.createElement("script");h.setAttribute("type","text/javascript");h.setAttribute("src",e);h.onload=g;h.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){g()}}}else{if(f=="css"){var h=document.createElement("link");h.setAttribute("rel","stylesheet");h.setAttribute("type","text/css");h.setAttribute("href",e)}}if(typeof h!="undefined"){document.getElementsByTagName("head")[0].appendChild(h)}}function p_widget_switzerland(){$.getJSON("http://www.greenpeace.org/switzerland/Templates/Planet3/Handlers/PetitionWidgetHtmlHandler.ashx?uiculture=de-CH&format=json&jsoncallback=?",function(b){$("#p_widget_switzerland").html(b.html);$(".petition_box a.activate","#p_widget_switzerland").click(function(){$(this).parents("div.petition_box").siblings(".active").children(".petition_content:first").slideToggle("fast",function(){$(this).slideToggle("fast")});$(".petition_box",$(this).closest(".widget-main")).removeClass("active");$(this).parent().parent().css("display","none");$(this).parent().parent().addClass("active");$(this).parent().parent().slideDown("slow");return false})})}document.write('<div id="p_widget_switzerland">&nbsp;</div>');loadjscssfile("http://www.greenpeace.org/switzerland/Templates/Planet3/Styles/petition-widget.css","css");loadjscssfile("http://www.greenpeace.org/switzerland/Templates/Planet3/Javascripts/jquery/jquery-1.4.3.min.js","js",p_widget_switzerland);
