function RibbonBackgroundPaintFkt(e,c,h,d){var a=1;var g=14;var j={height:h,width:c,radius:g,radiusTL:23,border:a};e.fillStyle="#99BBFF";$.canvasPaint.roundedRect(e,j);e.fillStyle="#F4F8FF";j.border=1;$.canvasPaint.roundedRect(e,j);var i=d.$content.children(".navareas");var b=i.outerHeight();var f=e.createLinearGradient(0,b,0,h);f.addColorStop(0,"#D8E2F5");f.addColorStop(1,"#EEF5FA");j={y:b,height:h-b,width:c,radius:g,border:0};e.fillStyle="#99BBFF";$.canvasPaint.roundedRect(e,j);j.border=a;e.fillStyle=f;$.canvasPaint.roundedRect(e,j);i.find("li").reverse().each(function(){$this=$(this);var n=d.$content.offset();var o=$this.offset({relativeTo:d.$content[0]});var m=$this.outerWidth();var k=$this.outerHeight();var l={x:o.left-n.left,y:o.top-n.top,height:k,width:m+15,offsetLeft:5,offsetRight:30,radiusLeft:7,radiusRight:7,border:0};e.fillStyle="#CCC";$.canvasPaint.roundTab(e,l);l.border=a;e.fillStyle="#EEF5FA";$.canvasPaint.roundTab(e,l)});i.find("li.active").each(function(){$this=$(this);var n=d.$content.offset();var o=$this.offset({relativeTo:d.$content[0]});var m=$this.outerWidth();var k=$this.outerHeight()+a;var l={x:o.left-n.left,y:o.top-n.top,height:k,width:m+15,offsetLeft:5,offsetRight:30,radiusLeft:7,radiusRight:7,bottomRadiusRight:7,bottomRadiusLeft:5,border:0};e.fillStyle="#99BBFF";$.canvasPaint.roundTab(e,l);l.border=1;e.fillStyle="#D8E2F5";$.canvasPaint.roundTab(e,l)})}function RibbonGroupBackgroundPaintFkt(d,b,i,c){var a=1;var g=10;var j={height:i,width:b,radius:g};d.fillStyle="#99BBFF";$.canvasPaint.roundedRect(d,j);var h=c.$content.children("span");var f=h.outerHeight();var e=d.createLinearGradient(0,0,0,i-a);e.addColorStop(0,"#D8E2F5");e.addColorStop(1,"#EEF5FA");d.fillStyle=e;j={height:i-f,width:b,radius:g,radiusBL:0,radiusBR:0,border:a,borderB:0};$.canvasPaint.roundedRect(d,j);d.fillStyle="#C2D2F3";j={y:i-f,height:f,width:b,radius:g,radiusTL:0,radiusTR:0,border:a,borderT:0};$.canvasPaint.roundedRect(d,j)}function ContentBackgroundPaintFkt(b,o,l,h){var n=$("#Content").outerWidth();var p=o-n;var a=5;var i=4;var f=1;var e=10;var s=1;var d=14;var c={x:0,height:l,width:n,radius:0,radiusTL:d,radiusTR:d,border:0};var g=b.createLinearGradient(0,s,0,l-(2*s));g.addColorStop(0,"#D8E2F5");g.addColorStop(1,"#EEF5FA");if(p>0){b.fillStyle="#FFFFFF";c.radiusTL=0;c.x=n+a;c.width=p-a;$.canvasPaint.roundedRect(b,c);c.border=s;b.fillStyle=g;$.canvasPaint.roundedRect(b,c);var m={x:c.x+i,y:i,height:l-(2*i),width:c.width-(2*i),radiusTR:e,radiusBR:e,radiusTL:e,radiusBL:e,border:0,borderT:0,borderB:0};b.fillStyle="#99BBFF";$.canvasPaint.roundedRect(b,m);var k=$("#NewsBox span");var q=k.outerHeight();m.radiusTL=0;m.radiusTR=0;m.y+=q;m.height-=q;var r=b.createLinearGradient(0,m.y,0,m.height+m.y);r.addColorStop(0,"#EEF5FA");r.addColorStop(1,"#EEF5FA");m.border=f;m.borderB=f;b.fillStyle=r;$.canvasPaint.roundedRect(b,m);m.radiusTL=e;m.radiusTR=e;m.radiusBL=0;m.radiusBR=0;m.borderB=0;m.borderT=f;m.y=i;m.height=q;b.fillStyle="#C2D2F3";$.canvasPaint.roundedRect(b,m);c.radiusTR=0}b.fillStyle="#FFFFFF";c.radiusTL=d;c.border=0;c.x=0;c.width=n;$.canvasPaint.roundedRect(b,c);c.border=s;b.fillStyle=g;$.canvasPaint.roundedRect(b,c);var j=0;h.$content.find(".Article").each(function(){++j});h.$content.find(".Article").each(function(){$this=$(this);var w=h.$content.offset();var x=$this.offset({relativeTo:h.$content[0]});var v=$this.outerWidth();var t=$this.outerHeight();var u={x:x.left-w.left,y:x.top-w.top,height:t,width:v,radius:10,border:0};b.fillStyle="#DDD";$.canvasPaint.roundedRect(b,u);u.border=1;u.radius=u.radius-u.border;b.fillStyle="#FFFEFF";$.canvasPaint.roundedRect(b,u)});h.$content.find("#Formular").each(function(){$this=$(this);var w=h.$content.offset();var x=$this.offset({relativeTo:h.$content[0]});var v=$this.outerWidth();var t=$this.outerHeight();var u={x:x.left-w.left,y:x.top-w.top,height:t,width:v,radius:10,border:0};b.fillStyle="#DDD";$.canvasPaint.roundedRect(b,u);u.border=1;u.radius=u.radius-u.border;b.fillStyle="#FFFEFF";$.canvasPaint.roundedRect(b,u)});h.$content.find("#Document").each(function(){$this=$(this);var w=h.$content.offset();var x=$this.offset({relativeTo:h.$content[0]});var v=$this.outerWidth();var t=$this.outerHeight();var u={x:x.left-w.left,y:x.top-w.top,height:t,width:v,radius:10,border:0};b.fillStyle="#DDD";$.canvasPaint.roundedRect(b,u);u.border=1;u.radius=u.radius-u.border;b.fillStyle="#FFFEFF";$.canvasPaint.roundedRect(b,u)});h.$content.find("fieldset").each(function(){$this=$(this);var w=h.$content.offset();var y=$this.offset({relativeTo:h.$content[0]});var v=$this.outerWidth();var t=$this.outerHeight();var x=12;t-=x;y.top+=x;var u={x:y.left-w.left,y:y.top-w.top,height:t,width:v,radius:10,border:0};b.fillStyle="#99BBFF";$.canvasPaint.roundedRect(b,u);u.border=1;u.radius=u.radius-u.border;b.fillStyle="#FCFEFE";$.canvasPaint.roundedRect(b,u)})}function FooterBackgroundPaintFkt(e,g,b,f){var c=1;var a=14;var d={x:0,height:b,width:g,radius:0,radiusBL:a,radiusBR:a,border:0};var h=e.createLinearGradient(0,0,0,b-(2*c));h.addColorStop(0,"#EEF5FA");h.addColorStop(1,"#D8E2F5");e.fillStyle="#FFFFFF";$.canvasPaint.roundedRect(e,d);d.border=c;e.fillStyle=h;$.canvasPaint.roundedRect(e,d)}function DrawBackground(){if(!$.browser.msie||parseInt(jQuery.browser.version)>6){$("#Navigation").backgroundCanvasPaint(RibbonBackgroundPaintFkt);$("#Navigation .navgroups > li").backgroundCanvasPaint(RibbonGroupBackgroundPaintFkt);$("#ContentLayoutContainer").backgroundCanvasPaint(ContentBackgroundPaintFkt);$("#Footer").backgroundCanvasPaint(FooterBackgroundPaintFkt)}};