var IkoduFrontSectionsHandler=Class.create({initialize:function(B){this.navi=B;this.selected=null;var D=null;var E=null;var A=new Array();($$("#content .module")).each((function(F){var G=F.cumulativeOffset();var H=F.id.sub("module_","");if(E===null){E=G.top}D=F;A.push({x:G.top-E,id:H});F.observe("mouseover",this.mouseSelect.bind(this,H));F.observe("mouseout",this.mouseDeselect.bind(this))}).bind(this));var C=0;if(D!=null&&A.length>0){C=A[A.length-1].x+D.getHeight()}A.each(function(F){F.x=C!=0?F.x/C:0});this.module_locations=A;Event.observe(window,"scroll",this.documentScrolled.bind(this))},highlightAuto:function(){var C=document.viewport.getScrollOffsets();var D=document.viewport.getHeight();var A=document.body.getHeight();var E=C.top/(A-D);var B=null;this.module_locations.each(function(F){if(F.x>E){throw $break}B=F.id});this.highlightCertain(B)},highlightCertain:function(A){if(A==null||this.selected==A){return }$$("#content .module_selected").each(function(B){B.removeClassName("module_selected")});$("module_"+A).addClassName("module_selected");this.navi.setDefault(A);this.selected=A},documentScrolled:function(A){this.highlightAuto()},mouseSelect:function(A,B){this.highlightCertain(A)},mouseDeselect:function(A){this.highlightAuto()}});Event.observe(window,"load",function(){var A=$("ikodu_navigation_bar");if(A==null){throw"Can't find Ikodu navigation elements!"}var B=A.iNav;if(B==null){throw"Ikodu navigation not set up propelly!"}new IkoduFrontSectionsHandler(B).highlightAuto();($$(".module_footer .label a")).each(function(C){var D=C.up(".module");var E=D.select(".module_header");E=E[0];if(Object.isElement(E)&&E.hasClassName("noClick")){return }D.setStyle({cursor:"pointer"});D.observe("click",(function(F){document.location=F}).curry(C.readAttribute("href")))})});function showFlash(D,H,E,A,C,B,F){var G;G="";if((null==B)||(B=="")){parambgcolor="";embedbgcolor=""}else{parambgcolor='<param value="'+B+'" name="bgcolor" />';embedbgcolor=' bgcolor="'+B+'"'}if((null==F)||(F=="")){F="opaque"}paramwmode='<param value="'+F+'" name="wmode" />';embedwmode=' wmode="'+F+'"';if((null==C)||(C=="")){paramflashvars="";embedflashvars=""}else{paramflashvars='<param value="'+C+'" name="flashvars" />';embedflashvars=' flashvars="'+C+'"'}G+='<object id="flash_'+D+'" height="'+A+'" width="'+E+'" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">';G+='<param value="'+H+'" name="movie" />';G+='<param value="high" name="quality" />';G+=parambgcolor+paramwmode+paramflashvars;G+='<embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="flash_'+D+'" quality="high" height="'+A+'" width="'+E+'" src="'+H+'"'+embedbgcolor+embedwmode+embedflashvars+"></embed></object>";if(document.getElementById(D)){document.getElementById(D).innerHTML=G}};