
/* - kde_script.js - */
// http://www.krankheitserfahrungen.de/portal_javascripts/kde_script.js?original=1
var GB_DONE=false;var GB_HEIGHT=470;var GB_WIDTH=810;
function GB_show(caption,url,height,width){GB_HEIGHT=height||GB_HEIGHT;GB_WIDTH=width||GB_WIDTH;if(!GB_DONE){jq(document.body).append("<div id='GB_overlay'></div><div id='GB_window'><div id='GB_caption'></div>"+"<img src='close.gif' alt='Close window'/></div>");jq("#GB_window img").click(GB_hide);jq("#GB_overlay").click(GB_hide);jq(window).resize(GB_position);GB_DONE=true}
jq("#GB_frame").remove();jq("#GB_window").append("<iframe id='GB_frame' frameborder='0' src='"+url+"'></iframe>");jq("#GB_caption").html(caption);jq("#GB_overlay").show();GB_position();if(GB_ANIMATION)
jq("#GB_window").slideDown("slow");else
jq("#GB_window").show()}
function GB_hide(){jq("#GB_window,#GB_overlay").hide()}
function GB_position(){var de=document.documentElement;var w=self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;jq("#GB_window").css({width:GB_WIDTH+"px",height:GB_HEIGHT+"px",left:((w-GB_WIDTH)/2)+"px"});jq("#GB_frame").css("height",GB_HEIGHT-32+"px")}
function updateVideoLinks(){jq("a.video",this).click(function(){var t="krankheitserfahrungen.de";GB_show(t,this.href+'?plone_skin=KdePopupSkin');return false});jq("a.video-noicon",this).click(function(){var t="krankheitserfahrungen.de";GB_show(t,this.href+'?plone_skin=KdePopupSkin');return false});jq("p.video a",this).click(function(){var t="krankheitserfahrungen.de";GB_show(t,this.href+'?plone_skin=KdePopupSkin');return false});jq("p.video-portrait a",this).click(function(){var t="krankheitserfahrungen.de";GB_show(t,this.href+'?plone_skin=KdePopupSkin');return false});jq("p.video-portrait",this).each(function(){link=jq(this).find('a').get(0);jq(this).prepend('<img src="'+link+'/../portrait/image_tile" alt="" />');jq(this).append('<div class="visualClear"><!-- --></div>')})}
var GB_ANIMATION=true;jq(document).ready(updateVideoLinks);
