core - (function(el,args)cfw_var

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
(function(el,args){var d=document,elCur=el,awd=ArgOrDefault,curslide=1,bNext,bPrev,htsEl,lExp,tsEl=d.ge tElementById("ts"),psEl=d.getElementById("ps"),elEl=d.getElementById("el"),plEl= d.getElementById("pl"),eldEl=d.getElementById("eld"),pldEl=d.getElementById("pld "),titleText=d.title,expand=false,numslides=awd(args.numslides,0);if(numslides>0 ){var elPrev,elNext,elDisp;elCur=cEl(elCur,"ul");elCur.className="cf";elPrev=cEl(elCur ,"li");elNext=cEl(elCur,"li");elDisp=cEl(elCur,"li");elPrev.className="button back disabled";elNext.className="button next";elDisp.className="last";bPrev=addLink(elPrev,"Back");bNext=addLink(elNext, "Next");clickPrev.hook(bPrev,"click");clickNext.hook(bNext,"click");var hslide=window.location.hash;hslide=hslide.substring(1,hslide.length);if(Number(h {curslide=hslide;if(curslide>1)elPrev.className="button {elPrev.className="button back disabled";LastPage()}}function clickPrev(ev) {if(curslide>1)curslide--;if(curslide==1)elPrev.className="button back disabled";ev.cancelBubble=true;updateSlide();updateToolbar();Ping()}function clickNext(ev){ev.cancelBubble=true;if(curslide++<numslides) {updateSlide();updateToolbar()}else{elPrev.className="button back disabled";LastPage()}elPrev.className="button back";Ping()}function LastPage() {var lp=d.getElementById("lp"),pc=d.getElementById("pc"),sshero=d.getElementById("ssh ero"),fg=d.getElementById("fg");lp.style.display="";pc.style.display="none";sshe ro.style.display="none";fg.style.display="none";tsEl.style.display="none";plEl.s tyle.display="none";bNext.href="#"+curslide;d.title=titleText+" - Page "+curslide+" of "+(numslides+1);UpdatePagename()}function clickExpand(ev) {expand=expand==true?false:true;ShowText()}function updateSlide(){var psnEl=d.getElementById("ps"+curslide.toString()),tsnEl=d.getElementById("ts"+cur slide.toString()),elnEl=d.getElementById("el"+curslide.toString()),plnEl=d.getEl ementById("pl"+curslide.toString());elnEl=elnEl==null? eldEl:elnEl;plnEl=plnEl==null? pldEl:plnEl;psEl.innerHTML=psnEl==null?"":psnEl.innerHTML;tsEl.innerHTML=tsnEl== null?"":tsnEl.innerHTML;elEl.innerHTML=elnEl==null?"":elnEl.innerHTML;plEl.inner HTML=plnEl==null?"":plnEl.innerHTML;d.title=titleText+" - Page "+curslide+" of "+(numslides+1);elDisp.innerHTML="Slide "+curslide+" of "+ (numslides+1);bNext.href="#"+curslide;bPrev.href="#"+curslide;UpdatePagename();h tsEl=d.getElementById("hts"+curslide.toString());if(htsEl!=null) {lExp=addLink(tsEl,"READ MORE");clickExpand.hook(lExp,"click");ShowText()}}function updateToolbar(){var tbEl=d.getElementById("atoolb");if(tbEl!=null)for(var ndx=0;ndx<tbEl.childNodes.length;++ndx){var sHref=tbEl.childNodes[ndx].firstChild.href,hIdx=sHref.indexOf("#");if(sHref.subs tring(hIdx,hIdx+1)=="#")tbEl.childNodes[ndx].firstChild.href="#"+curslide}}funct ion UpdatePagename() {if(d.getElementById("omni"))s.pageName=s.pageName.replace(/SlideShow\|[0-
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 10/29/2011 for the course MNGT 350C at Jackson State.

Page1 / 5

core - (function(el,args)cfw_var

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online