Ida.templates.constructors["Certificate"]={construct : function()
{var t=Ida.templates.createObject("IFrame");t.objectName="Certificate";t.objectType="IFrame";t.content.src="SET/html/certificate.html";t.content.certTitle="";t.content.certPerson="";t.content.certContent="";t.content.certDate="";t.script.showStbReferenceLabel=true;t.script.scrolling="auto";t.style.backgroundColor="#FFFFFF";t.style.borderWidth="1px";t.style.borderStyle="solid";t.style.borderColor="#888888";t.style.top="120px";t.style.left="480px";t.style.width="450px";t.style.height="480px";t.style.visibility="visible";t.events.ContentSet=function(event){if(event.name.indexOf("cert")==0){var win=this.getWindow();if(win.constructor&&win.constructor.name=='XPCNativeWrapper')
{var type='object';var sC=win.wrappedJSObject.setContent;}else
{var type='function';sC=win.setContent;}if(sC&&typeof sC==type)
{sC(event.name,Ida.formatContent(event.value, null, "html"));}}};t.events.FrameLoad=function(event){var win=this.getWindow();if(win.constructor&&win.constructor.name=='XPCNativeWrapper')
{var type='object';var sC=win.wrappedJSObject.setContent;}else
{var type='function';sC=win.setContent;}if(sC&&typeof sC==type)
{var vals=["Title","Person","Content","Date"];var curVal;for(var i=0;i<vals.length;i++)
{curVal="cert" + vals[i];sC(curVal,Ida.formatContent(this.get(curVal),null,"html"));}}};return t;}};Ida.templates.constructors["ColoredButton"]={construct : function()
{var t=Ida.templates.createObject("textobject");t.objectName="ColoredButton";t.authorCreateable="true";t.objectType="textobject";t.style.height="33px";t.style.overflow="visible";t.style.cursor="pointer";t.style.whiteSpace="nowrap";t.events.ContentSet=function(event){if(event.name=="text"){var newText='<table style="overflow:visible;height:33px;font-size:';newText +=Ida.f.getStyle(this.elm,"fontSize");var fw=this.get("fontWeight");if(fw)
newText +=';font-weight:' + fw;var w=this.get("width");if(w)
newText +=';width:' + w;newText +=';color:' + Ida.f.getStyle(this.elm,"color");newText +=';" border="0" cellpadding="0" cellspacing="0">';newText +='<tr style="font-size:inherit;height:33px">';newText +='<td style="width:14px"><img src="';newText +=this.makeURI("SET/pic/btn_left.gif");newText +='" height="33" width="14"><\/td>';newText +='<td style="white-space:nowrap;background-image:';newText +=this.makeCSSURI("SET/pic/btn_mid.gif");newText +=';text-align:center;padding:0px 5px;white-space:nowrap;">';newText +=(event.value||'&nbsp;') + '<\/td>';newText +='<td style="width:16px"><img src="';newText +=this.makeURI("SET/pic/btn_right.gif");newText +='" height="33" width="16"><\/td>';newText +='<\/tr><\/table>';this.elm.innerHTML=newText;}};return t;}};Ida.templates.constructors["DragNDropObject"]={construct : function()
{var t=Ida.templates.createObject("Questionobject");t.objectName="DragNDropObject";t.actionSetter="none";t.objectType="Questionobject";t.children=[];var t_0=Ida.templates.createObject("QObjBtn");t.children.push(t_0);t_0.parent=t;t_0.objectName="QObjBtn";t.script.mustBeAnswered=true;t.script.confirmOn="OKButton";t.script.showOK=true;t.script.immediateFeedback=false;t.initialize=function(){this.mustBeExecuted=this.get("mustBeAnswered")?"yes":"no";Ida.test.register(this);};t.markWrong=function(){this.resetWrongObjects();};t.resetWrongObjects=function(){var regObj=this.getRegisteredObjects();for(var i in regObj){if(regObj[i].dnd_droppedObjects&&!Ida.dragNDrop.isCorrect(regObj[i]))
Ida.dragNDrop.resetWrongObjects(regObj[i]);}};t.checkImmediateFeedback=function(target){var inf=this.get("attempts")=="infinite";var showCorr=this.get("showCorrectAnswer");var icc=Number(this.get("infiniteCorrectCount"));var corState=this.getCorrectState(true);var showAnswer=inf&&showCorr&&corState.correct>=icc;if(!this.get("answerShown")&&this.get("immediateFeedback")&&
(Ida.dragNDrop.getWrongObjects(target).length||this.isCorrect()||showAnswer))
this.ok();};t.isCorrect=function(){return this.getCorrectState()=="correct";};t._isCorrect=function(){return this.isCorrect();};t.getCorrectState=function(){var regObj=this.getRegisteredObjects();var correct=0;var wrong=0;for(var i in regObj){if(Ida.dragNDrop.isCorrect(regObj[i]))
correct++;else
wrong++;}return(wrong==0)?"correct":((correct==0) ? "wrong" : "partly");};t.getResults=function(){return Ida.dragNDrop.getResults();};t.showAnswer=function(){this.setA("answerShown",true);var regObj=this.getRegisteredObjects();for(var i=0;i<regObj.length;i++)
{if(Ida.dragNDrop.isCorrect(regObj[i]))
{continue;}var dragObj=String(regObj[i].get("dnd_correctObjects"));if(dragObj)
{var all=dragObj.split(",");for(var x=0;x<all.length;x++)
{var obj=Ida.getObjectById(all[x]);if(obj)
{if(regObj[i].get("dnd_dropAlign")=="free")
{regObj[i].setA("dnd_dropAlign","center");}Ida.dragNDrop.saveDragStartPosition(obj);obj.toFront();Ida.dragNDrop.drop(obj, regObj[i]);}}}}this.resetWrongObjects();};t.checkImmidiateFeedback=function(target){if(!this.get("answerShown")&&this.get("immediateFeedback")&&
(Ida.dragNDrop.getWrongObjects(target).length||this.isCorrect()))
this.ok();};t.events.PropertyChanged=function(event){if(event.property=="mustBeAnswered"){this.mustBeExecuted=event.value?"yes":"no";Ida.test.checkNavigation();}};return t;}};Ida.templates.constructors["DynamicMenu"]={construct : function()
{var t=Ida.templates.createObject("idaobject");t.objectName="DynamicMenu";t.objectType="idaobject";t.script.actionOnAllVisited="";t.script.mainMenu=false;t.init=function(objects){var allDone=objects.length==Ida.dependency.visitedCount;if(allDone&&this.hasAction("actionOnAllVisited"))
this.runAction("actionOnAllVisited");};t.events.Create=function(event){Ida.dependency.registerMenu(this);var c=this.courseElement;if(c&&!c.course.mainMenu&&this.get("mainMenu"))
{c.course.mainMenu=c.getTargetString(true);}};return t;}};Ida.templates.constructors["headline"]={construct : function()
{var t=Ida.templates.createObject("Group");t.objectName="headline";t.objectType="Group";t.style.left="0px";t.style.top="125px";t.style.width="400px";t.style.overflow="visible";t.children=[];var t_0=Ida.templates.createObject("Field");t.children.push(t_0);t_0.parent=t;t_0.id="_IDA_CHAPTERTITLE";t_0.style.width="100%";t_0.style.padding="0 0 0 45px";t_0.style.fontSize="12px";t_0.style.color="#808080";t_0.events.Ready=function(event){this.setA("text", this.courseElement?this.courseElement.parent.label:Ida.getLangString('WIDGET_DUMMY_LABEL'));};var t_1=Ida.templates.createObject("Field");t.children.push(t_1);t_1.parent=t;t_1.id="_IDA_HEADLINE";t_1.style.width="100%";t_1.style.backgroundColor="transparent";t_1.style.padding="0 0 0 45px";t_1.style.top="18px";t_1.style.borderWidth="1px 0 0 0";t_1.style.borderStyle="dotted";t_1.style.borderColor="#808080";t_1.style.fontSize="24px";t_1.style.fontWeight="bold";t_1.style.color="#0C07BC";t_1.events.Ready=function(event){if(!this.get("text")) this.setA("text", this.courseElement?this.courseElement.label:Ida.getLangString('WIDGET_DUMMY_LABEL'));};return t;}};Ida.templates.constructors["HotSpot"]={construct : function()
{var t=Ida.templates.createObject("Questionobject");t.objectName="HotSpot";t.actionSetter="none";t.objectType="Questionobject";t.children=[];var t_0=Ida.templates.createObject("QObjBtn");t.children.push(t_0);t_0.parent=t;t_0.objectName="QObjBtn";t.script.markWhenWrong="never";t.script.confirmOn="OKButton";t.script.immediateFeedback=false;t.showAnswer=function(){this.setA("answerShown",true);var regObj=this.getRegisteredObjects();for(var i in regObj){if(regObj[i].get("hil_isCorrect"))
Ida.highlight.on(regObj[i]);else
Ida.highlight.off(regObj[i]);}};t.isCorrect=function(){return this.getCorrectState()=="correct";};t._isCorrect=function(){return this.isCorrect();};t.getResults=function(){var ret={wrong:0,correct:0,missing:0,total:0};var regObj=this.getRegisteredObjects();var cor;for(var i in regObj){cor=regObj[i].get("hil_isCorrect");if(regObj[i].get("hil_highlighted")){if(cor) ret.correct++;else ret.wrong++;}else if(cor)
ret.missing++;ret.total++;}return ret;};t.getCorrectState=function(){var res=this.getResults();return(res.wrong==0&&res.missing==0)?"correct":((res.correct==0) ? "wrong" : "partly");};return t;}};Ida.templates.constructors["Login"]={construct : function()
{var t=Ida.templates.createObject("Group");t.objectType="Login";t.objectName="Login";t.content.messageNoFirstName="";t.content.messageNoLastName="";t.content.messageNoAddress="";t.content.messageNoPassword="";t.script.usePassword=false;t.script.alwaysOnTop=true;t.style.width="400px";t.children=[];var t_0=Ida.templates.createObject("Field");t.children.push(t_0);t_0.parent=t;t_0.id="_IDA_wLoginHint";t_0.script.hideWhenEmpty=true;t_0.style.backgroundColor="transparent";t_0.style.position="relative";var t_1=Ida.templates.createObject("Group");t.children.push(t_1);t_1.parent=t;t_1.id="wLoginInnerGroup";t_1.style.position="relative";t_1.style.paddingTop="20px";t_1.children=[];var t_1_0=Ida.templates.createObject("Choice");t_1.children.push(t_1_0);t_1_0.parent=t_1;t_1_0.id="_IDA_wLoginAddressMale";t_1_0.script.nocheck=true;t_1_0.script.type="single";t_1_0.style.position="absolute";t_1_0.style.left="10px";t_1_0.style.width="130px";var t_1_1=Ida.templates.createObject("Choice");t_1.children.push(t_1_1);t_1_1.parent=t_1;t_1_1.id="_IDA_wLoginAddressFemale";t_1_1.script.nocheck=true;t_1_1.script.type="single";t_1_1.style.position="absolute";t_1_1.style.left="150px";t_1_1.style.width="130px";t_1.actions.click=new Ida.ActionList();t_1.actions.click.name="click";t_1.actions.click.event="click";t_1.actions.click.mustBeExecuted="no";t_1.actions.click.dLayer=t_1;t_1.actions.click.addAction(new Ida.Action("setFocus",null,"_IDA_wLoginFirstName",null,null));var t_2=Ida.templates.createObject("Field");t.children.push(t_2);t_2.parent=t;t_2.id="_IDA_wLoginCaptionFirstName";t_2.style.backgroundColor="transparent";t_2.style.position="relative";t_2.style.marginTop="50px";var t_3=Ida.templates.createObject("Simpleinputfield");t.children.push(t_3);t_3.parent=t;t_3.id="_IDA_wLoginFirstName";t_3.style.position="relative";t_3.style.width="100%";t_3.events.keydown=function(event){if(event.keyCode==13)
this.parent.ok();};var t_4=Ida.templates.createObject("Field");t.children.push(t_4);t_4.parent=t;t_4.id="_IDA_wLoginCaptionLastName";t_4.style.backgroundColor="transparent";t_4.style.position="relative";t_4.style.marginTop="20px";var t_5=Ida.templates.createObject("Simpleinputfield");t.children.push(t_5);t_5.parent=t;t_5.id="_IDA_wLoginLastName";t_5.style.position="relative";t_5.style.width="100%";t_5.events.keydown=function(event){if(event.keyCode==13)
this.parent.ok();};var t_6=Ida.templates.createObject("Field");t.children.push(t_6);t_6.parent=t;t_6.id="_IDA_wLoginCaptionPassword";t_6.style.backgroundColor="transparent";t_6.style.position="relative";t_6.style.marginTop="20px";t_6.style.display="none";var t_7=Ida.templates.createObject("Simpleinputfield");t.children.push(t_7);t_7.parent=t;t_7.id="_IDA_wLoginPassword";t_7.script.password=true;t_7.style.position="relative";t_7.style.width="100%";t_7.style.display="none";t_7.events.keydown=function(event){if(event.keyCode==13)
this.parent.ok();};var t_8=Ida.templates.createObject("Field");t.children.push(t_8);t_8.parent=t;t_8.id="_IDA_wLoginAdditionalHint";t_8.script.hideWhenEmpty=true;t_8.style.backgroundColor="transparent";t_8.style.position="relative";t_8.style.marginTop="20px";var t_9=Ida.templates.createObject("ColoredButton");t.children.push(t_9);t_9.parent=t;t_9.objectName="ColoredButton";t_9.id="_IDA_wLoginBtn";t_9.script.behaviour="pushbutton";t_9.style.position="relative";t_9.style.top="40px";t_9.events.click=function(event){this.parent.ok();};t.ok=function(){var fn=this.getChildById("_IDA_wLoginFirstName").getValue();var ln=this.getChildById("_IDA_wLoginLastName").getValue();var pwd=this.getChildById("_IDA_wLoginPassword").getValue();var men=this.getChildById("_IDA_wLoginAddressMale").isChecked();var women=this.getChildById("_IDA_wLoginAddressFemale").isChecked();var correct=true;var message="";if(!fn)
message=this.get("messageNoFirstName");else if(!ln)
message=this.get("messageNoLastName");else if(!men&&!women)
message=this.get("messageNoAddress");else if(this.get("usePassword")&&!pwd)
message=this.get("messageNoPassword");else{var sal=this.getChildById(men?"_IDA_wLoginAddressMale":"_IDA_wLoginAddressFemale").getText();cn="";Ida.login(fn,ln,sal,men,pwd||null,cn);return true;}if(message)
Ida.msgBox("",message);return false;};t.showHidePasswd=function(){var visible=this.get("usePassword");var elm=this.getChildById("_IDA_wLoginPassword");elm.setA("display",visible?"block":"none");elm=this.getChildById("_IDA_wLoginCaptionPassword");elm.setA("display",visible?"block":"none");};t.events.PageLoaded=function(event){this.getChildById("_IDA_wLoginFirstName").focus();this.showHidePasswd();if(this.courseElement)
{this.courseElement.isLogin=true;}if(Ida.loggedIn)
{if(Ida.currentUser)
{this.getChildById("_IDA_wLoginFirstName").setA("text",Ida.currentUser.firstName);this.getChildById("_IDA_wLoginLastName").setA("text",Ida.currentUser.lastName);if(this.get("usePassword")) this.getChildById("_IDA_wLoginPassword").setA("text",Ida.currentUser.password);this.getChildById("_IDA_wLoginAddress" +(Ida.currentUser.isMale?"Male":"Female")).setChecked(true);}this.setA("disabled",true);}};t.events.ShowOverview=function(event){return false;};t.events.PropertyChanged=function(event){if(event.property=="usePassword")
this.showHidePasswd();else if(event.property=="disabled"){var val=event.value;this.getChildById("_IDA_wLoginFirstName").setA("disabled",val);this.getChildById("_IDA_wLoginLastName").setA("disabled",val);this.getChildById("_IDA_wLoginPassword").setA("disabled",val);this.getChildById("_IDA_wLoginAddressMale").setA("disabled",val);this.getChildById("_IDA_wLoginAddressFemale").setA("disabled",val);}};return t;}};Ida.templates.constructors["Maximizer"]={construct : function()
{var t=Ida.templates.createObject("Picture");t.objectType="Maximizer";t.objectName="Maximizer";t.script.isVisible=true;t.content.src="SET/pic/minimize.gif";t.style.top="1px";t.style.left="auto";t.style.right="1px";t.style.width="";t.style.height="";t.style.borderColor="#fff";t.style.backgroundColor="transparent";t.style.borderWidth="1px";t.events.mouseover=function(event){this.elm.style.borderColor="#ddd #444 #444 #ddd";this.elm.style.backgroundColor="#fff";};t.events.mousedown=function(event){this.elm.style.borderColor="#444 #ddd #ddd #444";};t.events.mouseup=function(event){this.elm.style.borderColor="#ddd #444 #444 #ddd";};t.events.mouseout=function(event){this.elm.style.borderColor="#fff";this.elm.style.backgroundColor="transparent";};t.events.click=function(event){var isVisible=(this.get("isVisible"));this.parent.getChildrenByObjectName("Field")[0].elm.style.display=isVisible?"none":"block";this.parent.elm.style.height=isVisible?"15px":"auto";this.setA("src",isVisible?"SET/pic/maximize.gif":"SET/pic/minimize.gif");this.setA("isVisible",!isVisible);};return t;}};Ida.templates.constructors["MsgBox"]={construct : function()
{var t=Ida.templates.createObject("Group");t.objectName="MsgBox";t.ignore="true";t.id="_IDA_MSGBOX";t.objectType="Group";t.script.dontSave=true;t.script.alwaysOnTop=true;t.script.dnd_draggable=true;t.style.width="368px";t.style.height="354px";t.style.display="none";t.showMsg=function(title,content,btn1,btn2,btn3){var btnText='<a href="#" onkeydown="if(event.keyCode==13) this.ok=true"' +
' onkeypress="return this.ok==true"' +
' onclick="this.parentNode.parentNode.parentNode.dLayer.btnClick(this);return false"' +
' class="msgbox-btn" id="IDA_MSGBOX_BTN';var htmlContent='<div id="IDA_MSGBOX" style="background-image:' +
this.makeCSSURI("SET/pic/msgbox.jpg") + '">' +
'<div id="IDA_MSGBOX_TITLE">' + title + '</div>' +
'<div id="IDA_MSGBOX_TEXT" onmousedown="event.cancelBubble=true;return false">' + content + '</div>' +
'<div id="IDA_MSGBOX_BTN_CONTAINER">' +
btnText + '1">' + btn1 + '</a>';if(btn2) htmlContent +=btnText + '2">' + btn2 + '</a>';if(btn3) htmlContent +=btnText + '3">' + btn3 + '</a>';htmlContent +='</div></div>';this.elm.innerHTML=htmlContent;this.center();this.toFront(false);this.setA("display","block");var doc=Ida.getDocument();var elm=doc.getElementById("IDA_MSGBOX_TEXT");if(elm)
elm.scrollTop=0;elm=doc.getElementById("IDA_MSGBOX_BTN1");if(elm)
{try{elm.focus();}catch(e){};}};t.hideMsg=function(){var elm=Ida.getDocument().getElementById("IDA_MSGBOX_BTN1");if(elm)
{try{elm.blur();}catch(e){}}this.setA("display","none");};t.btnClick=function(btn,canceled){this.hideMsg();e=new Ida.Event("MsgBoxNotify",this,Ida.msgBox);e.clickedButton=btn.id[btn.id.length-1];e.canceled=(canceled===false);e.dispatch();};return t;}};Ida.templates.constructors["MultipleChoice"]={construct : function()
{var t=Ida.templates.createObject("Questionobject");t.objectName="MultipleChoice";t.actionSetter="none";t.objectType="Questionobject";t.children=[];var t_0=Ida.templates.createObject("Choice");t.children.push(t_0);t_0.parent=t;t_0.changeable="true";var t_1=Ida.templates.createObject("Choice");t.children.push(t_1);t_1.parent=t;t_1.changeable="true";var t_2=Ida.templates.createObject("Choice");t.children.push(t_2);t_2.parent=t;t_2.changeable="true";var t_3=Ida.templates.createObject("Choice");t.children.push(t_3);t_3.parent=t;t_3.changeable="true";var t_4=Ida.templates.createObject("Choice");t.children.push(t_4);t_4.parent=t;t_4.changeable="true";var t_5=Ida.templates.createObject("Choice");t.children.push(t_5);t_5.parent=t;t_5.changeable="true";var t_6=Ida.templates.createObject("QObjBtn");t.children.push(t_6);t_6.parent=t;t_6.objectName="QObjBtn";t_6.style.position="relative";t_6.style.top="30px";t.script.multipleSelect=true;t.script.mustBeAnswered=true;t.script.markWhenWrong="never";t.script.alwaysOnTop=false;t.script.random=false;t.script.confirmOn="OKButton";t.script.showStbReferenceLabel=true;t.script.userDeletable=true;t.script.showOK=true;t.style.visibility="visible";t.initialize=function(){this.mustBeExecuted=this.get("mustBeAnswered")?"yes":"no";Ida.test.register(this);if(!this.get("multipleSelect"))
this.setType("single");if(this.get("random"))
this.randomize();};t.randomize=function(rand){var num1,num2,reg=this.getRegisteredObjects();var len=reg.length;if(len>1){if(rand!=false){for(var i=0;i<len;i++){num1=num2=Ida.f.getRandomNumber(0,len-1);while(num1==num2){num2=Ida.f.getRandomNumber(0,len-1);}reg[num1].elm.parentNode.insertBefore(reg[num2].elm,reg[num1].elm);}}else{for(var i=0;i<len-1;i++)
reg[i].elm.parentNode.insertBefore(reg[i].elm,reg[len-1].elm);}}};t.getRegisteredObjects=function(){var ret=[];for(var i=0;i<this.children.length;i++){if(this.children[i].objectType=="Choice"&&this.children[i].isVisible())
ret[ret.length]=this.children[i];}return ret;};t.showAnswer=function(){this.setA("answerShown",true);var regObj=this.getRegisteredObjects();for(var i in regObj){regObj[i].showCorrect();}};t.getCorrectState=function(){var regObj=this.getRegisteredObjects();var correct=0;var wrong=0;for(var i in regObj){if(regObj[i].isCorrect()){if(regObj[i].isChecked())
correct++;}else
wrong++;}return(wrong==0)?"correct":((correct==0) ? "wrong" : "partly");};t.setType=function(aType){var children=this.getChildrenByObjectType("Choice",false);for(var i=0;i<children.length;i++){children[i].setA("type",aType);}};t.events.PropertyChanged=function(event){if(event.property=="multipleSelect")
this.setType(event.value?"multiple":"single");if(event.property=="random")
this.randomize(event.value);else if(event.property=="mustBeAnswered"){this.mustBeExecuted=event.value?"yes":"no";Ida.test.checkNavigation();}else if(event.property=="showOK"){var btn=this.getChildrenByObjectName("QObjBtn")[0];btn.setA("showOK",event.value);}};return t;}};Ida.templates.constructors["naviTop"]={construct : function()
{var t=Ida.templates.createObject("Navigation");t.objectName="naviTop";t.objectType="Navigation";t.style.top="0px";t.style.left="0px";t.style.width="1016px";t.style.height="105px";t.children=[];var t_0=Ida.templates.createObject("Picture");t.children.push(t_0);t_0.parent=t;t_0.id="navibg";t_0.content.src="SET/pic/navigation_bg.jpg";var t_1=Ida.templates.createObject("Group");t.children.push(t_1);t_1.parent=t;t_1.id="naviTop_GROUP";t_1.style.fontSize="14px";t_1.style.fontWeight="bold";t_1.style.color="#000066";t_1.style.left="300px";t_1.style.top="82px";t_1.children=[];var t_1_0=Ida.templates.createObject("Field");t_1.children.push(t_1_0);t_1_0.parent=t_1;t_1_0.id="NavigationMenu";t_1_0.content.text="Menü |";t_1_0.style.position="relative";t_1_0.style.display="inline";t_1_0.style.cursor="pointer";t_1_0.style.backgroundColor="transparent";t_1_0.events.click=function(event){if(this.get("disabled")) return;Ida.navigation.goMenu(this);};var t_1_1=Ida.templates.createObject("Field");t_1.children.push(t_1_1);t_1_1.parent=t_1;t_1_1.id="NavigationGlossary";t_1_1.content.text="Lexikon |";t_1_1.style.position="relative";t_1_1.style.display="inline";t_1_1.style.cursor="pointer";t_1_1.style.backgroundColor="transparent";t_1_1.events.click=function(event){if(this.get("disabled")) return;Ida.navigation.showGlossary();};var t_1_2=Ida.templates.createObject("Field");t_1.children.push(t_1_2);t_1_2.parent=t_1;t_1_2.id="NavigationOverview";t_1_2.content.text="Übersicht";t_1_2.style.position="relative";t_1_2.style.display="inline";t_1_2.style.cursor="pointer";t_1_2.style.backgroundColor="transparent";t_1_2.events.click=function(event){if(this.get("disabled")) return;Ida.navigation.showOverview();};return t;}};Ida.templates.constructors["pagelist"]={construct : function()
{var t=Ida.templates.createObject("textobject");t.objectName="pagelist";t.authorCreateable="true";t.objectType="textobject";t.style.width="300px";t.style.height="450px";t.style.fontSize="13px";t.style.lineHeight="22px";t.style.borderColor="#888888";t.style.color="#000066";t.style.overflow="auto";t.script.showDelimiter=true;t.script.checkSymbol="SET/pic/pagelist_checksymbol.gif";t.script.hoverColor="#FFB300";t.script.pushedColor="#888888";t.script.focusColor="#888888";t.setStyle=function(event,style,on){var target=event.target||event.srcElement;var targetPage=target.getAttribute("targetPage");if(targetPage){if(style=="hover"){var hColor=this.get("hoverColor");if(hColor)
target.style.color=on?hColor:this.get("color");}else if(style=="pushed"){var pColor=this.get("pushedColor");if(pColor)
target.style.color=on?pColor:this.get("color");}}};t.paint=function(){if(this.courseElement)
{var dmp=1;var curPage=this.courseElement;var chapter=curPage.parent;var children=[];for(var i=0;i<chapter.children.length;i++){if(!chapter.children[i].canHaveChildren)
children[children.length]=chapter.children[i];}var style="style=\"padding-left:25px;";if(this.get("showDelimiter"))
style +="border-bottom: 1px solid " + Ida.f.cssShortHandArray(this.get("borderColor"))[2] + ";";var checkSymbol="background:" +
this.makeCSSURI(this.get("checkSymbol")) +
" 4px 50% no-repeat;";var txt="";for(i=0;i<children.length;i++){txt +="<div ";if(children[i]!=curPage)
txt +="targetPage='" + children[i].id + "' " + style + ";cursor:pointer;";else
txt +=style + "color:" + this.get("focusColor") + ";cursor:default;";if(children[i].isVisited())
txt +=checkSymbol;txt +="\"\>" + children[i].label.replace(/ /g,"&nbsp;") + "</div>";}this.elm.innerHTML=txt;}};t.events.Ready=function(event){this.paint();};t.events.click=function(event){var t=event.target||event.srcElement;var targetPage=t.getAttribute("targetPage");if(targetPage)
Ida.navigation.goToPage(targetPage)
};t.events.mouseover=function(event){this.setStyle(event,"hover",true);};t.events.mouseout=function(event){this.setStyle(event,"hover",false);};t.events.mousedown=function(event){this.setStyle(event,"pushed",true);};t.events.mouseup=function(event){this.setStyle(event,"pushed",false);};t.events.PropertyChanged=function(event){if(event.property.isInList("showDelimiter,checkSymbol"))
this.paint();};return t;}};Ida.templates.constructors["QObjBtn"]={construct : function()
{var t=Ida.templates.createObject("Group");t.objectName="QObjBtn";t.objectType="Group";t.script.showOK=true;t.children=[];var t_0=Ida.templates.createObject("ColoredButton");t.children.push(t_0);t_0.parent=t;t_0.objectName="ColoredButton";t_0.id="_IDA_wQObjBtnOK";t_0.style.display="none";t_0.style.position="relative";t_0.style.margin="10px 0px 0px 0px";t_0.style.width="100px";t_0.events.click=function(event){this.parent.parent.ok();};var t_1=Ida.templates.createObject("ColoredButton");t.children.push(t_1);t_1.parent=t;t_1.objectName="ColoredButton";t_1.id="_IDA_wQObjBtnShowAnswer";t_1.style.display="none";t_1.style.position="relative";t_1.style.margin="10px 0px 0px 0px";t_1.events.click=function(event){this.setA("display","none");this.parent.parent.showAnswer();this.parent.parent.markAsComplete();};var t_2=Ida.templates.createObject("ColoredButton");t.children.push(t_2);t_2.parent=t;t_2.objectName="ColoredButton";t_2.id="_IDA_wQObjBtnNext";t_2.style.display="none";t_2.style.position="relative";t_2.style.margin="10px 0px 0px 0px";t_2.events.click=function(event){this.setA("display","none");this.parent.parent.next();};t.events.PropertyChanged=function(event){if(event.property=="showOK"){this.children[0].setA("display",event.value?"block":"none");}};t.events.Ready=function(event){if(this.get("showOK"))
this.children[0].setA("display","block");};return t;}};Ida.templates.constructors["QuestionTable"]={construct : function()
{var t=Ida.templates.createObject("Table");t.objectName="QuestionTable";t.authorCreateable="true";t.objectType="Table";t.content.columnHeaders="correctWrong";t.style.width="690px";t.style.height="360px";t.script.showStbReferenceLabel=true;t.script.markColorCorrect="";t.script.markColorWrong="#FFE6E6";t.script.flexibleColumn="left";t.script.sizingBehaviour="fixed";t.script.type="single";t.script.settings="";t.script.random=false;t.script.numberOfQuestionsToUse=0;t.isCorrect=function(){return this.getResults().wrong==0;};t.getResults=function(){var t=this.getTable();var ret={wrong:0,correct:0,wrongRows:[],correctRows:[],wrongCells:[],correctCells:[]};if(t){var c, correct;for(var i=1;i<t.rows.length;i++){c=t.rows[i].cells;t.rows[i].isCorrect=true;for(var x=1;x<c.length;x++){if((c[x].getAttribute("isCorrect")=="true")==(c[x].className.indexOf("checked")>=0))
ret.correctCells[ret.correctCells.length]=c[x];else{ret.wrongCells[ret.wrongCells.length]=c[x];t.rows[i].isCorrect=false;}}if(t.rows[i].isCorrect)
ret.correctRows[ret.correctRows.length]=t.rows[i];else
ret.wrongRows[ret.wrongRows.length]=t.rows[i];}ret.wrong=ret.wrongRows.length;ret.correct=ret.correctRows.length;ret.total=ret.wrong + ret.correct;}return ret;};t.showCorrect=function(){var c, t=this.getTable();if(!t) return;var cName=this.get("type")=="multiple"?"checkbox":"radio";for(var i=1;i<t.rows.length;i++){c=t.rows[i].cells;for(var x=1;x<c.length;x++)
c[x].className=c[x].getAttribute("isCorrect")=="true"?(cName + "-checked"):cName;}};t.mark=function(markCells){var tb=this.getTable();if(!tb) return;var res=this.getResults();var colorC=this.get("markColorCorrect");var colorW=this.get("markColorWrong");var elm, cells, i, x;if(markCells){for(i=0;i<res.correctCells.length;i++)
res.correctCells[i].style.backgroundColor=colorC;for(i=0;i<res.wrongCells.length;i++)
res.wrongCells[i].style.backgroundColor=colorW;}else{for(i=1;i<tb.rows.length;i++){for(x=1;x<tb.rows[i].cells.length;x++){elm=tb.rows[i].cells[x];if(typeof elm.originalColor=="undefined")
elm.originalColor=elm.style.backgroundColor;elm.style.backgroundColor=tb.rows[i].isCorrect?(colorC||elm.originalColor):colorW;}}}};t.register=function(){Ida.qObj.register(this);Ida.test.register(this);Ida.test.markAsComplete(this,this.isCorrect(),false);};t.unregister=function(){Ida.qObj.unregister(this);Ida.test.unregister(this);};t.randomize=function(rand){var t=this.getTable();if(!t) return;var rows=t.rows;var num1,num2;var len=rows.length;if(len>2){if(rand!=false){for(var i=0;i<len;i++){num1=num2=Ida.f.getRandomNumber(1,len-1);while(num1==num2)
num2=Ida.f.getRandomNumber(1,len-1);rows[num1].parentNode.insertBefore(rows[num2],rows[num1]);}}else
this.elm.innerHTML=this.get("text");}};t.updateClasses=function(){var t=this.getTable();if(!t) return;var td=t.getElementsByTagName("td");var type=this.get("type")=="single"?"radio":"checkbox";for(var i=0;i<td.length;i++){if(td[i].parentNode.rowIndex>0&&td[i].cellIndex>0)
td[i].className=type;else
td[i].className="";}};t.showPool=function(num){if(!num) return;var t=this.getTable();if(t&&t.rows&&num<t.rows.length){var x=0;var rowsToHide=t.rows.length-1 - num;while(x<rowsToHide){var rand=Ida.f.getRandomNumber(1,t.rows.length-1);t.rows[rand].parentNode.removeChild(t.rows[rand]);x++;}}};t.events.Ready=function(event){this.register();this.updateClasses();if(this.get("random"))
this.randomize();var t=this.getTable();var a=Ida.isAuthor();if(t&&!a){var num=this.get("numberOfQuestionsToUse");if(num)
this.showPool(num);}else if(a&&!t)
setTimeout(function(elm){if(!elm.getTable()) elm.editProperty("settings");elm=null},100,this);};t.events.click=function(event){var t=event.target||event.srcElement;var td=Ida.f.getParentNodeByName(t,"td",true);if(td){if(Ida.f.hasClassName(td,"radio")){for(var i=1;i<td.parentNode.cells.length;i++)
td.parentNode.cells[i].className="radio";td.className="radio-checked";}else if(Ida.f.hasClassName(td,"checkbox"))
td.className="checkbox-checked";else if(Ida.f.hasClassName(td,"checkbox-checked"))
td.className="checkbox";}};t.events.PropertyChanged=function(event){this.handlePropChanges(event);if(event.property.isInList("text,type"))
this.updateClasses();else if(event.property=="random")
this.randomize(event.value);};return t;}};Ida.templates.constructors["RoundedField"]={construct : function()
{var t=Ida.templates.createObject("Field");t.objectName="RoundedField";t.authorCreateable="true";t.objectType="Field";t.content.headline="";t.script.arrowPosition="none";t.script.colorTheme="blueBar";t.script.dnd_draggable=true;t.script.showMinimizeButton=true;t.style.borderWidth="0px";t.style.backgroundColor="transparent";t.style.padding="0 0 0 0";t.style.width="120px";t.style.height="60px";t.style.overflow="visible";t.style.cursor="move";t.paint=function(cont){var val=typeof cont!="undefined"?cont:this.get("text")||"&nbsp;";var colorTheme=this.get("colorTheme");var cur="cursor:" + this.get("cursor") + ";";var tl=this.makeURI("SET/pic/rc_" + colorTheme + "_tl.gif");var tr=this.makeURI("SET/pic/rc_" + colorTheme + "_tr.gif");var bl=this.makeURI("SET/pic/rc_" + colorTheme + "_bl.gif");var br=this.makeURI("SET/pic/rc_" + colorTheme + "_br.gif");var t=this.makeURI("SET/pic/rc_" + colorTheme + "_t.gif");var r=this.makeURI("SET/pic/rc_" + colorTheme + "_r.gif");var b=this.makeURI("SET/pic/rc_" + colorTheme + "_b.gif");var l=this.makeURI("SET/pic/rc_" + colorTheme + "_l.gif");var bgColor=this.makeURI("SET/pic/rc_" + colorTheme + "_background.gif");var headl=this.get("headline");var headlColor=colorTheme.hasString("blue") ? "#008" :(
colorTheme.hasString("green") ? "#060" :(
colorTheme.hasString("yellow") ? "#a70" : "#000"
)
);var size="s";var pos=this.get("arrowPosition").split("-");var bdSize=14;var newText='<table UNSELECTABLE="on" border="0" style="width:100%;height:100%" ' +
'cellspacing="0" cellpadding="0">' +
'<tr UNSELECTABLE="on" style="height:' + bdSize + 'px">' +
'<td UNSELECTABLE="on" style="' + cur + 'background-image:url(' + tl + ');width:' + bdSize + 'px;"></td>' +
'<td UNSELECTABLE="on" style="' + cur + 'color:' + headlColor + ';text-align:center;font-weight:bold;font-size:11px;background:url(' + t + ') top repeat-x;">' + headl + '</td>' +
'<td UNSELECTABLE="on" style="' + cur + 'background-image:url(' + tr + ');width:' + bdSize + 'px;"></td>' +
'</tr>';if(Ida.isRuntime())
newText +='<tr style="height:' +(this.elm.offsetHeight-(bdSize*2)) + 'px;">';else
newText +='<tr>';newText +='<td style="background:url(' + l + ') left repeat-y"></td>' +
'<td style="background-image:url(' + bgColor + ');vertical-align:top;' +
'text-align:left;font-size:' + Ida.f.getStyle(this.elm,"fontSize") + ';' +
(colorTheme.indexOf("Bar")>0?'padding-top:10px;' : '') + '">' +
Ida.formatContent(val,null,"html") + '</td>' +
'<td style="background:url(' + r + ') right repeat-y;"></td>' +
'</tr>' +
'<tr style="height:' + bdSize + 'px">' +
'<td style="background-image:url(' + bl + ');width:' + bdSize + 'px;"></td>' +
'<td style="background:url(' + b + ') bottom repeat-x;"></td>' +
'<td style="background-image:url(' + br + ');width:' + bdSize + 'px;"></td>' +
'</table>';if(pos[0]!="none"){var posChar=pos[0].charAt(0);colorTheme=colorTheme.replace(/Bar/,"");var arrow=this.makeURI("SET/pic/fieldarrow_" + colorTheme + "_" + size + posChar + ".gif");var arrowStyle="position:absolute;";arrowStyle +=pos[0] + ":-27px;";arrowStyle +=pos[1] + ":20%;";var wh=pos[0].isInList("left,right")?'width="28" height="27"':'width="27" height="28"';newText +='<img src="' + arrow + '" style="' + arrowStyle + '" ' + wh + ' border="0">';}this.elm.innerHTML=newText;if(!Ida.isRuntime()&&this.elm.firstChild.offsetHeight>this.elm.offsetHeight)
this.set("height",this.elm.firstChild.offsetHeight + "px");if(this.get("showMinimizeButton")) this._createMinimizer();};t._createMinimizer=function(){var img=this.doc.createElement("img");if(img.wrappedJSObject){img=img.wrappedJSObject;}img.unselectable="on";img.style.position="absolute";img.style.border="1px solid #fff";img.style.right="8px";img.style.top="3px";img.style.cursor="default";img.src=this.makeURI("SET/pic/minimize.gif");img.onmouseover=function(){this.style.borderColor="#ddd #444 #444 #ddd";this.style.backgroundColor="#fff";};img.onmousedown=function(){this.style.borderColor="#444 #ddd #ddd #444";};img.ommouseup=function(){this.style.borderColor="#ddd #444 #444 #ddd";};img.onmouseout=function(){this.style.borderColor="#fff";this.style.backgroundColor="transparent";};img.onclick=function(){this.parentNode.dLayer.setMinimize(!this.parentNode.dLayer.isVisible());};this.elm.appendChild(img);this.minimizer=img;img=null;};t.setMinimize=function(val){if(!val) val=this.get("isVisible")==false;this.setA("isVisible",val);var tr=this.elm.getElementsByTagName("tr");for(var i=1;i<tr.length;i++){tr[i].style.visibility=val?"visible":"hidden";}var img=this.elm.getElementsByTagName("img");for(i=0;i<img.length;i++){if(img[i]!=this.minimizer)
img[i].style.visibility=val?"visible":"hidden";}if(this.minimizer){this.minimizer.src=this.makeURI("SET/pic/" +(val?"minimize":"maximize") + ".gif");this.minimizer.style.borderWidth=val?"1px":"0px";}};t.events.ContentSet=function(event){if(event.name=="text"){this.paint(event.value);if(event.value&&event.value.indexOf("<input class='gap'")>=0){this.register();this.hasGaps=true;}else if(this.hasGaps){this.unregister();this.hasGaps=false;}if(this.get("hideWhenEmpty")){var lTarget=this.get("hideContainer");if(lTarget){lTarget=this.getTarget(lTarget);if(lTarget)
lTarget.setA("display",event.value?"block":"none");}}}};t.events.PropertyChanged=function(event){if(event.property.isInList("arrowSize,arrowPosition,colorTheme,text,headline,showMinimizeButton"))
this.paint();};return t;}};Ida.templates.constructors["Slideshow"]={construct : function()
{var t=Ida.templates.createObject("graphicalobject");t.objectName="Slideshow";t.defaultProperty="files";t.authorCreateable="true";t.objectType="graphicalobject";t.content.files="";t.script.languageDependent=false;t.script.imageBounds="";t.script.random=false;t.script.sizing="stretchLargeToFit";t.script.keepProportions=true;t.script.playCount=1;t.script.playMethod="auto";t.script.interval=5;t.script.transition="fading";t.script.transitionDuration=1;t.script.currentIndex=0;t.style.overflow="hidden";t.style.width="320px";t.style.height="240px";t.reset=function(rebuildBounds){this.setA("currentIndex",0);this._usedImg=1;this._playCounter=0;var files=this.get("files");this._files=String(files).split(",");this._filesIndex=[];if(files){for(var i=0;i<this._files.length;i++)
this._filesIndex[i]=i;}if(rebuildBounds){var sizeList=files?this.getPictureSizeList(this._files).join(";"):"";this.set("imageBounds",sizeList);}var bounds=this.get("imageBounds");this._bounds=bounds?String(bounds).split(";"):[];};t.start=function(){this.stop();this._timer=new Ida.Timer(this.get("interval")*1000,this,0);this._timer.start();this.next();};t.stop=function(){if(this._timer)
this._timer.stop();};t.next=function(){var index=this.get("currentIndex");if(!this._files[index]){this.stop();return;}if(index==0&&this.get("random")&&Ida.isReader())
this.randomize();var currentImg=this._images[this._usedImg];var nextImgIndex=this._usedImg==1?0:1;var nextImg=this._images[nextImgIndex];var anim=this.get("transition");var useAnim=anim!="none";var fileIndex=this._filesIndex[index];nextImg.src=this.makeURI(this._files[fileIndex]);var bounds=this._bounds[fileIndex].split(",");var imgW=bounds[0];var imgH=bounds[1];var w=parseInt(this.get("width"));var h=parseInt(this.get("height"));var proportion=w/h;var imgProportion=imgW/imgH;var keepProportions=this.get("keepProportions");var sizing=this.get("sizing");if(sizing=="stretchToFit"||(sizing=="stretchLargeToFit"&&(imgW>w||imgH>h))){if(proportion>imgProportion){imgH=h;imgW=keepProportions?h*imgProportion:w;}else{imgW=w;imgH=keepProportions?w/imgProportion:h;}}if(imgW){nextImg.width=imgW;nextImg.style.left=Math.round((w/2)-(imgW/2)) + "px";}if(imgH){nextImg.height=imgH;nextImg.style.top=Math.round((h/2)-(imgH/2)) + "px";}if(useAnim&&currentImg.anim&&nextImg.anim){Ida.f.setOpacity(nextImg,0);nextImg.anim.start(true,0,1);currentImg.anim.start(true,1,0);}else
currentImg.style.display="none";nextImg.style.display="block";var nextIndex=index+1;if(nextIndex>=this._files.length){var p=this.get("playCount");if(p==0||p-1>this._playCounter)
nextIndex=0;else if(this._timer)
this._timer.stop();this._playCounter++;}this._usedImg=nextImgIndex;this.setA("currentIndex",nextIndex);};t.randomize=function(){if(this._filesIndex&&this._filesIndex.length>1){var file=this._playCounter==0?"-":this._filesIndex[this._filesIndex.length-1];do{Array.randomize(this._filesIndex);}while(this._filesIndex[0]==file);}};t.events.TimerNotify=function(event){this.next();};t.events.Ready=function(event){this._images=[];var doc=Ida.getDocument();var elm;var reader=Ida.isReader();var useAnim=reader&&this.get("transition")!="none";var animDur=useAnim?this.get("transitionDuration")*1000:0;var interval=this.get("interval")*1000||0;if(useAnim&&animDur>(interval -100)){animDur=interval -100;}for(var i=0;i<2;i++){elm=doc.createElement("img");this.elm.appendChild(elm);elm.style.position="absolute";elm.style.left="0px";elm.style.top="0px";elm.style.display="none";if(useAnim){elm.anim=new Ida.Animation.Fade(elm, animDur, 1, 0, 1);elm.anim.useCurrent=false;}this._images[i]=elm;}this.reset();if(reader){if(this.get("playMethod")=="auto")
this.start();}else this.next();};t.events.click=function(event){if(this.get("playMethod")=="click")
this.next();};t.events.PropertyChanged=function(event){if(event.property.isInList("files,sizing,width,height,keepProportions")){this.reset(event.property=="files"&&!Ida.isReader());}};return t;}};Ida.templates.constructors["eval_object"]={construct : function()
{var t=Ida.templates.createObject("Group");t.objectName="eval_object";t.objectType="Group";t.script.evl_minScore="75%";t.script.evl_details="simple";t.script.evl_scope="book_id_1";t.script.evl_grading="half";t.script.evl_nextPageOnSuccess="";t.script.evl_nextPageOnFail="";t.script.evl_failed=true;t.script.showStbReferenceLabel=true;t.style.width="500px";t.style.height="250px";t.createResults=function(runActions){var scope=Ida.course.getCourseElementById(this.get("evl_scope"));var results=Ida.evaluator.getResults(scope,this.get("evl_grading"));var minScore=this.get("evl_minScore");var isGood;if(String(minScore).indexOf("%")>0)
{isGood=results.percent>=Number(minScore.replace(/[^\d.]/g,""));}else
{isGood=results.reachedScore>=minScore;}this.setA("evl_failed",!isGood);if(runActions&&Ida.isReader())
{this.courseElement.setVisited(isGood);if(isGood)
{this.runAction("evl_actionOnSuccess");}else
{this.runAction("evl_actionOnFail");}}Ida.setVariable("_IDA_EVL_TOTALSCORE",Math.roundExt(results.totalScore));Ida.setVariable("_IDA_EVL_REACHEDSCORE",Math.roundExt(results.reachedScore));Ida.setVariable("_IDA_EVL_REACHEDPERCENT",Math.roundExt(results.percent));if(this.exists)
{var details=this.get("evl_details");var children=this.getChildrenByObjectType("Table");var tbElm=this.getChildrenByObjectType("Table")[0];if(details=="none")
{tbElm.setA("display","none");return;}tbElm.setA("display","block");var isSimple=details=="simple";var b=Ida.course;var tbl="<table class='evl_table' border='1' frame='void' bordercolor='#444444' rules='all' cellpadding='2' cellspacing='0'>"
+ "<tr class='evl_th'>"
+ "<th class='evl_firstCol'>"
+(b.getContent("evl_exercise")||"")
+ "</th><th>"
+(b.getContent("evl_totalScore")||"")
+ "</th><th>"
+(b.getContent("evl_reachedScore")||"")
+ "</th>";if(!isSimple)
{tbl +="<th>" +(b.getContent("evl_attempts")||"") + "</th>";tbl +="<th>" +(b.getContent("evl_tryCount")||"") + "</th>";}tbl +="</tr>";for(var i=0;i<results.objects.length;i++)
{if(results.objects[i].inScope)
{tbl +="<tr><td>";tbl +=results.objects[i].page.label + "</td><td>";tbl +=results.objects[i].maxScore + "</td><td>";tbl +=Math.roundExt(results.objects[i].score) + "</td>";if(!isSimple)
{tbl +="<td align='center'>" + results.objects[i].attempts + "</td>";tbl +="<td align='center'>" + results.objects[i].tryCount + "</td>";}tbl +="</tr>";}}tbl +="<tr class='evl_tb'><td>"
+(b.getContent("evl_sum")||"")
+ "</td><td>"
+ Math.roundExt(results.totalScore)
+ "</td><td>"
+ Math.roundExt(results.reachedScore)
+ "</td>";if(!isSimple)
{tbl +="<td>" + results.attempts +"</td><td>" + results.tryCount + "</td>";}tbl +="</tr></table>";tbElm.elm.innerHTML=tbl;if(Ida.IE)
{tbElm.elm.style.position="absolute";var s=this.getChildrenByObjectType("Field")[0].elm.style;s.position="absolute";s.top=this.get("height");}}};t.events.Ready=function(event){this.courseElement.autoSetVisited=false;this.createResults(true);};t.events.PageShown=function(event){var nextPage=this.get("evl_nextPageOn" +(this.get("evl_failed")?"Fail":"Success"));if(nextPage)
this.getPage().setA("nextPage",nextPage);};t.events.PropertyChanged=function(event){if(event.property.isInList("evl_minScore,evl_details,evl_scope,evl_grading"))
this.createResults();};t.children=[];var t_0=Ida.templates.createObject("Table");t.children.push(t_0);t_0.parent=t;t_0.id="_IDA_EVAL_RESULTTABLE";t_0.style.position="relative";t_0.style.overflow="auto";t_0.style.width="100%";t_0.style.height="100%";var t_1=Ida.templates.createObject("Field");t.children.push(t_1);t_1.parent=t;t_1.id="_IDA_EVAL_RESULTFIELD";t_1.content.text="Result:<variable idatype=\"variable\" idadefaultvalue=\"\" idapattern=\"_IDA_EVL_REACHEDPERCENT\"></variable>%";t_1.style.width="100%";t_1.style.marginTop="20px";t_1.style.position="relative";t_1.style.fontWeight="bold";t_1.style.backgroundColor="transparent";t_1.script.showStbReferenceLabel=false;return t;}};Ida.templates.constructors["OV_naviMovable"]={construct : function()
{var t=Ida.templates.createObject("Navigation");t.objectName="OV_naviMovable";t.objectType="Navigation";t.script.alwaysOnTop=true;t.style.left="780px";t.style.top="15px";t.style.width="217px";t.style.height="57px";t.style.borderWidth="1px";t.style.borderStyle="solid";t.style.borderColor="#444444";t.style.backgroundColor="#FFFFFF";t.style.whiteSpace="nowrap";t.children=[];var t_0=Ida.templates.createObject("Picture");t.children.push(t_0);t_0.parent=t;t_0.id="NavigationTitlebar";t_0.content.src="SET/pic/navititlebar.gif";t_0.script.dnd_draggable=true;t_0.script.dnd_dragContainer="PARENT";t_0.script.dnd_isDragNDrop=false;t_0.style.width="215px";t_0.style.height="16px";t_0.style.cursor="move";var t_1=Ida.templates.createObject("Field");t.children.push(t_1);t_1.parent=t;t_1.id="NavigationTitle";t_1.script.dnd_draggable=true;t_1.script.dnd_dragContainer="PARENT";t_1.script.dnd_isDragNDrop=false;t_1.style.backgroundColor="transparent";t_1.style.color="#000000";t_1.style.width="100%";t_1.style.textAlign="center";t_1.style.cursor="move";t_1.style.fontSize="11px";t_1.events.Ready=function(event){t="<span style='color:#000'>"+(this.courseElement?this.courseElement.parent.label:Ida.getLangString('WIDGET_DUMMY_LABEL')) + "</span><br>";this.setA("text",t);};var t_2=Ida.templates.createObject("Button");t.children.push(t_2);t_2.parent=t;t_2.id="NavigationMenu";t_2.content.normalGraphic="SET/pic/menu_n.jpg";t_2.style.left="0px";t_2.style.top="18px";t_2.style.width="45px";t_2.style.height="37px";t_2.style.borderWidth="0px";t_2.events.click=function(event){if(!this.get("disabled"))
Ida.navigation.goMenu(this);};var t_3=Ida.templates.createObject("Button");t.children.push(t_3);t_3.parent=t;t_3.id="NavigationGlossary";t_3.content.normalGraphic="SET/pic/glossary_n.jpg";t_3.style.left="45px";t_3.style.top="18px";t_3.style.width="51px";t_3.style.height="37px";t_3.style.borderWidth="0px";t_3.events.click=function(event){if(!this.get("disabled"))
Ida.navigation.showGlossary();};var t_4=Ida.templates.createObject("Button");t.children.push(t_4);t_4.parent=t;t_4.id="NavigationOverview";t_4.content.normalGraphic="SET/pic/nav_overview.gif";t_4.style.left="89px";t_4.style.top="18px";t_4.style.width="40px";t_4.style.height="37px";t_4.style.borderWidth="0px";t_4.events.click=function(event){if(!this.get("disabled"))
Ida.navigation.showOverview();};var t_5=Ida.templates.createObject("Button");t.children.push(t_5);t_5.parent=t;t_5.id="NavigationPrevious";t_5.content.normalGraphic="SET/pic/buttonleft_n.jpg";t_5.content.disabledGraphic="SET/pic/buttonleft_i.jpg";t_5.content.pushedGraphic="SET/pic/buttonleft_p.jpg";t_5.style.left="126px";t_5.style.top="18px";t_5.style.width="45px";t_5.style.height="37px";t_5.style.borderWidth="0px";t_5.events.click=function(event){if(!this.get("disabled"))
Ida.navigation.goPreviousPage(this);};var t_6=Ida.templates.createObject("Button");t.children.push(t_6);t_6.parent=t;t_6.id="NavigationNext";t_6.content.normalGraphic="SET/pic/buttonright_n.jpg";t_6.content.disabledGraphic="SET/pic/buttonright_i.jpg";t_6.content.pushedGraphic="SET/pic/buttonright_p.jpg";t_6.style.left="171px";t_6.style.top="18px";t_6.style.width="44px";t_6.style.height="37px";t_6.style.borderWidth="0px";t_6.events.click=function(event){if(!this.get("disabled"))
Ida.navigation.goNextPage(this);};var t_7=Ida.templates.createObject("Field");t.children.push(t_7);t_7.parent=t;t_7.id="NavigationInfo";t_7.style.backgroundColor="#ffffff";t_7.style.MozOpacity="0.7";t_7.style.width="100%";t_7.style.textAlign="center";t_7.style.top="56px";t_7.style.fontSize="11px";t_7.style.fontWeight="normal";t_7.style.color="#000000";t_7.style.cursor="default";t_7.events.Ready=function(event){var cE=this.courseElement;if(cE)
{var book=cE.course;if(!book) return;var pCount=cE.parent.getChildCount(false,"page");var curNr=cE.getPageIndex()+1;var t=book.getContent("pageXofY");this.setA("text",t?t.expandString(curNr,pCount):"");}};return t;}};Ida.templates.constructors["OV_naviPrevNext"]={construct : function()
{var t=Ida.templates.createObject("Navigation");t.objectName="OV_naviPrevNext";t.objectType="Navigation";t.script.alwaysOnTop=true;t.style.top="655px";t.style.left="860px";t.style.width="130px";t.style.textAlign="center";t.style.fontSize="14px";t.style.fontWeight="bold";t.style.color="#000066";t.children=[];var t_0=Ida.templates.createObject("Field");t.children.push(t_0);t_0.parent=t;t_0.id="NavigationPrevious";t_0.style.position="relative";t_0.style.display="inline";t_0.style.cursor="pointer";t_0.style.backgroundColor="transparent";t_0.events.click=function(event){if(this.get("disabled")) return;Ida.navigation.goPreviousPage(this);};var t_1=Ida.templates.createObject("Field");t.children.push(t_1);t_1.parent=t;t_1.id="NavigationNext";t_1.style.position="relative";t_1.style.display="inline";t_1.style.cursor="pointer";t_1.style.backgroundColor="transparent";t_1.events.click=function(event){if(this.get("disabled")) return;Ida.navigation.goNextPage(this);};var t_2=Ida.templates.createObject("Field");t.children.push(t_2);t_2.parent=t;t_2.id="NavigationInfo";t_2.style.position="relative";t_2.style.backgroundColor="transparent";t_2.style.top="6px";t_2.style.fontSize="11px";t_2.style.fontWeight="normal";t_2.style.color="#666666";t_2.events.Ready=function(event){var cE=this.courseElement;if(cE)
{var book=cE.course;if(!book) return;var pCount=cE.parent.getChildCount(false,"page");var curNr=cE.getPageIndex()+1;var t=book.getContent("pageXofY");this.setA("text",t?t.expandString(curNr,pCount):"");}};return t;}};Ida.templates.constructors["naviMovable"]={construct : function()
{var t=Ida.templates.createObject("OV_naviMovable");t.objectName="naviMovable";t.objectType="Navigation";var id_0=t.getChildById("NavigationMenu");id_0.content.normalGraphic="SET/pic/nav_menu.gif";var id_1=t.getChildById("NavigationGlossary");id_1.content.normalGraphic="SET/pic/nav_glossary.gif";var id_2=t.getChildById("NavigationPrevious");id_2.content.normalGraphic="SET/pic/nav_previous.gif";id_2.content.disabledGraphic="SET/pic/nav_previous_i.gif";id_2.content.pushedGraphic="SET/pic/nav_previous_p.gif";var id_3=t.getChildById("NavigationNext");id_3.content.normalGraphic="SET/pic/nav_next.gif";id_3.content.disabledGraphic="SET/pic/nav_next_i.gif";id_3.content.pushedGraphic="SET/pic/nav_next_p.gif";id_0.style.width="43px";id_1.style.width="43px";id_2.style.width="43px";id_3.style.width="43px";return t;}};Ida.templates.constructors["naviPrevNext"]={construct : function()
{var t=Ida.templates.createObject("OV_naviPrevNext");t.objectName="naviPrevNext";t.objectType="Navigation";t.style.top="630px";var id_0=t.getChildById("NavigationPrevious");id_0.style.color="#0768B2";var id_1=t.getChildById("NavigationNext");id_1.style.color="#0768B2";return t;}};Ida.templates.constructors["pageBackGround"]={construct : function()
{var t=Ida.templates.createObject("Group");t.objectName="pageBackGround";t.objectType="Group";t.style.top="0px";t.style.left="0px";t.style.width="1016px";t.style.height="92px";t.children=[];var t_0=Ida.templates.createObject("Picture");t.children.push(t_0);t_0.parent=t;t_0.id="navibg";t_0.content.src="SET/pic/navigation_bg.jpg";return t;}};Ida.templates.constructors["eval_object"]={construct : function()
{var t=Ida.templates.createObject("Group");t.objectName="eval_object";t.objectType="Group";t.script.evl_minScore="75%";t.script.evl_details="simple";t.script.evl_scope="book_id_1";t.script.evl_grading="half";t.script.evl_nextPageOnSuccess="";t.script.evl_nextPageOnFail="";t.script.evl_failed=true;t.script.showStbReferenceLabel=true;t.style.width="500px";t.style.height="250px";t.createResults=function(runActions){var scope=Ida.course.getCourseElementById(this.get("evl_scope"));var results=Ida.evaluator.getResults(scope,this.get("evl_grading"));var minScore=this.get("evl_minScore");var isGood;if(String(minScore).indexOf("%")>0)
{isGood=results.percent>=Number(minScore.replace(/[^\d.]/g,""));}else
{isGood=results.reachedScore>=minScore;}this.setA("evl_failed",!isGood);if(runActions&&Ida.isReader())
{this.courseElement.setVisited(isGood);if(isGood)
{this.runAction("evl_actionOnSuccess");}else
{this.runAction("evl_actionOnFail");}}Ida.setVariable("_IDA_EVL_TOTALSCORE",Math.roundExt(results.totalScore));Ida.setVariable("_IDA_EVL_REACHEDSCORE",Math.roundExt(results.reachedScore));Ida.setVariable("_IDA_EVL_REACHEDPERCENT",Math.roundExt(results.percent));if(this.exists)
{var details=this.get("evl_details");var children=this.getChildrenByObjectType("Table");var tbElm=this.getChildrenByObjectType("Table")[0];if(details=="none")
{tbElm.setA("display","none");return;}tbElm.setA("display","block");var isSimple=details=="simple";var b=Ida.course;var tbl="<table class='evl_table' border='1' frame='void' bordercolor='#444444' rules='all' cellpadding='2' cellspacing='0'>"
+ "<tr class='evl_th'>"
+ "<th class='evl_firstCol'>"
+(b.getContent("evl_exercise")||"")
+ "</th><th>"
+(b.getContent("evl_totalScore")||"")
+ "</th><th>"
+(b.getContent("evl_reachedScore")||"")
+ "</th>";if(!isSimple)
{tbl +="<th>" +(b.getContent("evl_attempts")||"") + "</th>";tbl +="<th>" +(b.getContent("evl_tryCount")||"") + "</th>";}tbl +="</tr>";for(var i=0;i<results.objects.length;i++)
{if(results.objects[i].inScope)
{tbl +="<tr><td>";tbl +=results.objects[i].page.label + "</td><td>";tbl +=results.objects[i].maxScore + "</td><td>";tbl +=Math.roundExt(results.objects[i].score) + "</td>";if(!isSimple)
{tbl +="<td align='center'>" + results.objects[i].attempts + "</td>";tbl +="<td align='center'>" + results.objects[i].tryCount + "</td>";}tbl +="</tr>";}}tbl +="<tr class='evl_tb'><td>"
+(b.getContent("evl_sum")||"")
+ "</td><td>"
+ Math.roundExt(results.totalScore)
+ "</td><td>"
+ Math.roundExt(results.reachedScore)
+ "</td>";if(!isSimple)
{tbl +="<td>" + results.attempts +"</td><td>" + results.tryCount + "</td>";}tbl +="</tr></table>";tbElm.elm.innerHTML=tbl;if(Ida.IE)
{tbElm.elm.style.position="absolute";var s=this.getChildrenByObjectType("Field")[0].elm.style;s.position="absolute";s.top=this.get("height");}}};t.events.Ready=function(event){this.courseElement.autoSetVisited=false;this.createResults(true);};t.events.PageShown=function(event){var nextPage=this.get("evl_nextPageOn" +(this.get("evl_failed")?"Fail":"Success"));if(nextPage)
this.getPage().setA("nextPage",nextPage);};t.events.PropertyChanged=function(event){if(event.property.isInList("evl_minScore,evl_details,evl_scope,evl_grading"))
this.createResults();};t.children=[];var t_0=Ida.templates.createObject("Table");t.children.push(t_0);t_0.parent=t;t_0.id="_IDA_EVAL_RESULTTABLE";t_0.style.position="relative";t_0.style.overflow="auto";t_0.style.width="100%";t_0.style.height="100%";var t_1=Ida.templates.createObject("Field");t.children.push(t_1);t_1.parent=t;t_1.id="_IDA_EVAL_RESULTFIELD";t_1.content.text="Result:<variable idatype=\"variable\" idadefaultvalue=\"\" idapattern=\"_IDA_EVL_REACHEDPERCENT\"></variable>%";t_1.style.width="100%";t_1.style.marginTop="20px";t_1.style.position="relative";t_1.style.fontWeight="bold";t_1.style.backgroundColor="transparent";t_1.script.showStbReferenceLabel=false;return t;}};
Ida.include.fileIsLoaded = true;
