navigation


rioOIDs[0] = "knet-rioovATmJKZdIAwMRdCiQ"; rloOIDs[0] = "knet-ATmJKZdIAwMRdCiQ"; rioOIDs[1] = "knet-ATmJKQhABgUyeEQg"; rloOIDs[1] = "knet-ATmJKZdpCAIEEElw"; rioOIDs[2] = "knet-ATmJKQhiBQU1VJIQ"; rloOIDs[2] = "knet-ATmJKZdpCAIEEElw"; rioOIDs[3] = "knet-ATmJKQiEBAkZmAGA"; rloOIDs[3] = "knet-ATmJKZdpCAIEEElw"; rioOIDs[4] = "knet-ATmJKQhXAAiARpIA"; rloOIDs[4] = "knet-ATmJKZdpCAIEEElw"; rioOIDs[5] = "knet-ATmJKQiJBAUSAEIg"; rloOIDs[5] = "knet-ATmJKZdpCAIEEElw"; rioOIDs[6] = "knet-ATmJKRiSBggRIJIw"; rloOIDs[6] = "knet-ATmJKRgSCAmAAGiQ"; rioOIDs[7] = "knet-ATmJKRhkCAkXGFUw"; rloOIDs[7] = "knet-ATmJKRgSCAmAAGiQ"; rioOIDs[8] = "knet-ATmJKRgHAwICJIgQ"; rloOIDs[8] = "knet-ATmJKRgSCAmAAGiQ"; rioOIDs[9] = "knet-ATmJKRhpCAJ1NQiA"; rloOIDs[9] = "knet-ATmJKRgSCAmAAGiQ"; rioOIDs[10] = "knet-ATmJKShRBgRlI4Uw"; rloOIDs[10] = "knet-ATmJKRgSCAmAAGiQ"; rioOIDs[11] = "knet-ATmJKSgEBgc4URkw"; rloOIDs[11] = "knet-ATmJKRgSCAmAAGiQ"; rioOIDs[12] = "knet-ATmJKSgXCAcVMIZw"; rloOIDs[12] = "knet-ATmJKRgSCAmAAGiQ"; rioOIDs[13] = "knet-ATmJKSgJBgYgUHJg"; rloOIDs[13] = "knet-ATmJKRgSCAmAAGiQ"; rioOIDs[14] = "knet-riosmATmJKTgwAQdFMZYA"; rloOIDs[14] = "knet-ATmJKTgwAQdFMZYA"; imageHint = new Image(); imageHint.src = "../../../../../ccna3/pl/images/common/hintup.gif"; image2off = new Image(); image2off.src = "../../../../../ccna3/pl/images/common/b2up.gif"; image2on = new Image(); image2on.src = "../../../../../ccna3/pl/images/common/b2ov.gif"; image2hint = new Image(); image2hint.src = "../../../../../ccna3/pl/images/common/b2hint.gif"; image3off = new Image(); image3off.src = "../../../../../ccna3/pl/images/common/b3up.gif"; image3on = new Image(); image3on.src = "../../../../../ccna3/pl/images/common/b3ov.gif"; image3hint = new Image(); image3hint.src = "../../../../../ccna3/pl/images/common/b3hint.gif"; image4dim = new Image(); image4dim.src = "../../../../../ccna3/pl/images/common/b4dim.gif"; image4off = new Image(); image4off.src = "../../../../../ccna3/pl/images/common/b4up.gif"; image4on = new Image(); image4on.src = "../../../../../ccna3/pl/images/common/b4ov.gif"; image4hint = new Image(); image4hint.src = "../../../../../ccna3/pl/images/common/b4hint.gif"; image5dim = new Image(); image5dim.src = "../../../../../ccna3/pl/images/common/b5dim.gif"; image5off = new Image(); image5off.src = "../../../../../ccna3/pl/images/common/b5up.gif"; image5on = new Image(); image5on.src = "../../../../../ccna3/pl/images/common/b5ov.gif"; image5hint = new Image(); image5hint.src = "../../../../../ccna3/pl/images/common/b5hint.gif"; image6dim = new Image(); image6dim.src = "../../../../../ccna3/pl/images/common/b6dim.gif"; image6off = new Image(); image6off.src = "../../../../../ccna3/pl/images/common/b6up.gif"; image6on = new Image(); image6on.src = "../../../../../ccna3/pl/images/common/b6ov.gif"; image6hint = new Image(); image6hint.src = "../../../../../ccna3/pl/images/common/b6hint.gif"; image7dim = new Image(); image7dim.src = "../../../../../ccna3/pl/images/common/b7dim.gif"; image7off = new Image(); image7off.src = "../../../../../ccna3/pl/images/common/b7up.gif"; image7on = new Image(); image7on.src = "../../../../../ccna3/pl/images/common/b7ov.gif"; image7hint = new Image(); image7hint.src = "../../../../../ccna3/pl/images/common/b7hint.gif"; image9dim = new Image(); image9dim.src = "../../../../../ccna3/pl/images/common/sitewide_search_dim.gif"; image9off = new Image(); image9off.src = "../../../../../ccna3/pl/images/common/sitewide_search.gif"; image9on = new Image(); image9on.src = "../../../../../ccna3/pl/images/common/sitewide_search_ov.gif"; image9hint = new Image(); image9hint.src = "../../../../../ccna3/pl/images/common/sitewide_text_search.gif"; imagePFimage2off = new Image(); imagePFimage2off.src = "../../../../../ccna3/pl/images/common/sitewide_feedback_up.gif"; imagePFimage2on = new Image(); imagePFimage2on.src = "../../../../../ccna3/pl/images/common/sitewide_feedback_ov.gif"; function changeImages() { if (document.images) { for (var i=0; i < changeImages.arguments.length; i+=2) { imageName = changeImages.arguments[i]; imageID = changeImages.arguments[i+1]; if ((imageName == 'image4' && top.glossaryEntryID == '') || (imageName == 'image7' && top.commandEntryID == '') ) { return; } if (imageName == 'image6' && current == rioCount) { return; } else if (imageName == 'image5' && current == 1) { return; } else if (imageName == 'image2' && top.topName == 'feedbackframeset') { document[imageName].src = eval("imagePF"+imageID + ".src"); } else { document[imageName].src = eval(imageID + ".src"); } } } } function pageInit() { var storedContentID = ""; // must use the toString() method // on the top.currentPage due to some // weird string reference issues with // the IE browser. If toString is not // used, at unexpected times you will // get a js error that says something // like "Unexpected call to method or // property." var currentPage = top.currentPage.toString(); var isFeedback = "false"; if (currentPage != "") { storedContentID = currentPage; // Do a loop through the rioOIDs array to find the index. for (i=0; i < rioOIDs.length; i++) { if (rioOIDs[i] == storedContentID) { current = i + 1; } } } else { current = 1; storedContentID = rioOIDs[current-1]; } top.currentChapter = "knet-AYhFAXk3BAMGOGgg"; if (rioCount < 1) { document['image6'].src = image6dim.src; document['image5'].src = image5dim.src; } else if (current == rioCount) { document['image6'].src = image6dim.src; if (current == 1) { document['image5'].src = image5dim.src; } else { document['image5'].src = image5off.src; } } else if (current == 1) { document['image5'].src = image5dim.src; document['image6'].src = image6off.src; } else { document['image5'].src = image5off.src; document['image6'].src = image6off.src; } if (top.topName == 'feedbackframeset') { document['image2'].src = imagePFimage2off.src; } if (!isFeedback) { if (top.glossaryEntryID == '') { document['image4'].src = image4dim.src; } if (top.commandEntryID == '') { document['image7'].src = image7dim.src; } } } function ChangeContent(rio,rlo) { top.currentPage = rio; top.currentRLO = rlo; chapterID = "knet-AYhFAXk3BAMGOGgg"; top.currentChapter = chapterID; nbparams = "CHAPID="+chapterID+"/RLOID="+rlo+"/RIOID="+rio; dash = chapterID.indexOf('-'); sub1 = chapterID.substring(0,dash); sub2 = chapterID.substring(dash+1); newContentRef = "../../../../../"+ nbparams +"/"+ sub1 +"/"+ sub2 +"/"; eval('parent.frames.content_frame.location.href="'+newContentRef+'content.html"'); eval('parent.frames.media_frame.location.href="'+newContentRef+'media.html"'); } function QPopUp(url) { if (top.qpopup) { if (top.qpopup.closed) { top.qpopup = window.open(url,"QuizWin","scrollbars=yes,width=940,height=772,top=70,left=120,resizable=yes"); } else { top.qpopup.window.location = url; } } else { top.qpopup=window.open(url,"QuizWin","scrollbars=yes,width=940,height=772,top=70,left=120,resizable=yes"); } top.qpopup.window.focus(); } function QPopUp_rlo(url) { if (top.qpopup_rlo) { if (top.qpopup_rlo.closed) { top.qpopup_rlo = window.open(url,"QuizWin_rlo","scrollbars=yes,width=740,height=388,top=70,left=120,resizable=yes"); } else { top.qpopup_rlo.window.location = url; } } else { top.qpopup_rlo = window.open(url,"QuizWin_rlo","scrollbars=yes,width=740,height=388,top=70,left=120,resizable=yes"); } top.qpopup_rlo.focus(); } function launchQuiz(quizID) { var isStatic = 'true'; var url = ''; var versID = 'learner'; if (isStatic == 'true') { // get the static url location var staticRoot = new String(window.location); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')); staticRoot = staticRoot.substring(0, staticRoot.lastIndexOf('/')+1); // done getting static url location var rootOID = 'knet-31AYhFAXkAAAl1Qmlw'; dash = rootOID.indexOf('-'); sub1 = rootOID.substring(0,dash); sub2 = rootOID.substring(dash+1); url = new String(window.location); url = url.substring(0,url.lastIndexOf('/')); url = url.substring(0,url.lastIndexOf('/')); url = url.substring(0,url.lastIndexOf('/')); url = url.substring(0,url.lastIndexOf('/')); url = url.substring(0,url.lastIndexOf('/')); url = url.substring(0,url.lastIndexOf('/')+1); if (versID == 'instructor') versID = '2'; else versID = '1'; url = "http://curriculum.netacad.net/servlet/org.cli.delivery.rendering.servlet.StynamicServlet/Static=true,COURSE_VERSION=knet-31AYhFAXkAAAl1Qmlw,EXAM_IDENT=knet-"+quizID+",LMSID=,Engine=dynamic,Theme=ccna3theme,Style=ccna3,Language=pl,Version="+versID+",RootID=knet-31AYhFAXkAAAl1Qmlw/CHAPID=null/RLOID=null/RIOID=null/"+sub1+"/"+sub2+"/blank.html?staticRoot="+staticRoot; } else { url = 'http://curriculum.netacad.net/servlet/org.cli.delivery.assessment.servlet.RedirectionServlet'+'?EXAM_IDENT=knet-'+quizID+'&VERSION='+'learner'+'&LANGUAGE='+'pl'+'&THEME='+'ccna3theme'+'&STYLE='+'ccna3'+'&COURSE_VERSION='+'knet-31AYhFAXkAAAl1Qmlw'+'&LMSID='+''+'&SID='+top.sessionID; } QPopUp(url); } function launchQuiz_rlo(quizID, flag) { chapterID = "knet-AYhFAXk3BAMGOGgg"; nbparams = "CHAPID="+chapterID+"/RLOID="+"knet-AUmVUhl1CAJIBwUA"+"/RIOID="+"knet-AUmVUhlWBgEglQhQ"; dash = chapterID.indexOf('-'); sub1 = chapterID.substring(0,dash); sub2 = chapterID.substring(dash+1); ContentRef = "../../../../../"+ nbparams +"/"+ sub1 +"/"+ sub2 +"/"; if (flag) { top.currentSupport = 0; //alert(ContentRef); eval('top.frames.main_frame.location.href="'+ContentRef+'pageframesetrio.html"'); //added for navigating between Quiz and Review and back to regular Chapter pages top.currentSupport++; top.firstSupportPage = quizID; top.prevPage = quizID; top.contentResourceID = ''; } else { // use a popup window. url = ContentRef+"media.html"; top.QPopUp_rlo(url); } } function NextPage(pageNumber) { oldChap = current; if (rioCount > 1) { if (current == rioCount) { return; } else if ((current + 1) == rioCount) { document['image6'].src = image6dim.src; document['image5'].src = image5off.src; //tTrack 1142 } else { document['image5'].src = image5off.src; } current++; rio = new String(rioOIDs[current-1]); rlo = new String(rloOIDs[current-1]); ChangeContent(rio,rlo); if (top.topName == 'feedbackframeset') { if(top.opener != null){ treeArrayId = top.opener.getTreeId(rio); top.opener.pfTree.redisplay(treeArrayId,"content"); } } } } function PrevPage(pageNumber) { oldChap = current; if (rioCount > 1) { if (current == 1) { return; } else if (current == 2) { document['image5'].src = image5dim.src; document['image6'].src = image6off.src; //tTrack 1142 } else if ((current - 1) < rioCount){ document['image6'].src = image6off.src; } current--; rio = new String(rioOIDs[current-1]); rlo = new String(rloOIDs[current-1]); ChangeContent(rio,rlo); if (top.topName == 'feedbackframeset') { treeArrayId = top.getTreeId(rio); top.pfTree.redisplay(treeArrayId,"content"); } } } function loadIndex() { if (top.topName == 'feedbackframeset') { top.opener.pfTree.openTreeToView(); } else { url = "../../../../../CHAPID=knet-AYhFAXk3BAMGOGgg/RLOID=null/RIOID=null/knet/31AYhFAXkAAAl1Qmlw/indexframeset.html"; //changed to use a loader in top because the top frameset is never changed. //this allows the index to use window.opener... for setting/loading vars, which //allows the correct nav bar to be loaded. // popup = window.open(url,"IndexWin","scrollbars=yes,width=640,height=600,top=70,left=120,resizable=yes"); // popup.focus(); top.loadIndex(url); } } function loadSearch() { url = "../../../../../CHAPID=knet-AYhFAXk3BAMGOGgg/RLOID=null/RIOID=null/knet/31AYhFAXkAAAl1Qmlw/indexframesetsearch.html"; popup = window.open(url,"IndexWin","scrollbars=yes,width=640,height=600,top=70,left=120,resizable=yes"); popup.focus(); } function loadGlossary() { if (top.glossaryEntryID != '') { url = "../../../../../CHAPID=null/RLOID=null/RIOID=null/knet/" + top.glossaryEntryID + "/entryframeset.html"; popup = window.open(url,"GlossaryWin","scrollbars=yes,width=640,height=390,top=70,left=120"); popup.focus(); } } function loadCommands() { if (top.commandEntryID != '') { url = "../../../../../CHAPID=null/RLOID=null/RIOID=null/knet/" + top.commandEntryID + "/entryframeset.html"; popup = window.open(url,"GlossaryWin","scrollbars=yes,width=640,height=390,top=70,left=120"); popup.focus(); } } //--> if (top.glossaryEntryID != ''){ document.write(''); } if (top.commandEntryID != ''){ document.write(''); }

Wyszukiwarka

Podobne podstrony:
navigation
navigating method content rmc?F6A24C
navigation
NavigationFilter FilterBypass
navigation
navigation
Navigating the Other Worlds
TAB 6 Navigational Safety Chapter 29 Position Reporting Systems
Volkswagen Navigation Western Europe
sap step by step navigation guide for beginners

więcej podobnych podstron