<!--
document.writeln("<script type=\"text/javascript\">");
document.writeln("");
document.writeln("/***********************************************");
document.writeln("* Translucent Slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)");
document.writeln("* This notice MUST stay intact for legal use");
document.writeln("* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code");
document.writeln("***********************************************/");
document.writeln("");
document.writeln("var trans_width='160px' //slideshow width");
document.writeln("var trans_height='85px' //slideshow height");
document.writeln("var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)");
document.writeln("var degree=10 //animation speed. Greater is faster.");
document.writeln("");
document.writeln("var slideshowcontent=new Array()");
document.writeln("//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]");
document.writeln("slideshowcontent[0]=[\"tfct_1.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"_new\"]");
document.writeln("slideshowcontent[1]=[\"tfct_2.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[2]=[\"tfct_3.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[3]=[\"tfct_4.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[4]=[\"tfct_5.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[5]=[\"tfct_6.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[6]=[\"tfct_7.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[7]=[\"tfct_8.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[8]=[\"tfct_9.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[9]=[\"tfct_10.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[10]=[\"tfct_11.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("slideshowcontent[11]=[\"tfct_12.jpg\", \" http://www.tfc-training.com/moodle/user/view.php?id=3&course=2\", \"\"]");
document.writeln("");
document.writeln("");
document.writeln("////NO need to edit beyond here/////////////");
document.writeln("");
document.writeln("var bgcolor='white'");
document.writeln("");
document.writeln("var imageholder=new Array()");
document.writeln("for (i=0;i<slideshowcontent.length;i++){");
document.writeln("imageholder[i]=new Image()");
document.writeln("imageholder[i].src=slideshowcontent[i][0]");
document.writeln("}");
document.writeln("");
document.writeln("var ie4=document.all");
document.writeln("var dom=document.getElementById&&navigator.userAgent.indexOf(\"Opera\")==-1");
document.writeln("");
document.writeln("if (ie4||dom)");
document.writeln("document.write('<div style=\"position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden\"><div id=\"canvas0\" style=\"position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;\"></div><div id=\"canvas1\" style=\"position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;\"></div></div>')");
document.writeln("else if (document.layers){");
document.writeln("document.write('<ilayer id=tickernsmain visibility=hide width='+trans_width+' height='+trans_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+trans_width+' height='+trans_height+' left=0 top=0>'+'<img src=\"'+slideshowcontent[0][0]+'\"></layer></ilayer>')");
document.writeln("}");
document.writeln("");
document.writeln("var curpos=trans_width*(-1)");
document.writeln("var curcanvas=\"canvas0\"");
document.writeln("var curindex=0");
document.writeln("var nextindex=1");
document.writeln("");
document.writeln("function getslidehtml(theslide){");
document.writeln("var slidehtml=\"\"");
document.writeln("if (theslide[1]!=\"\")");
document.writeln("slidehtml='<a href=\"'+theslide[1]+'\" target=\"'+theslide[2]+'\">'");
document.writeln("slidehtml+='<img src=\"'+theslide[0]+'\" border=\"0\">'");
document.writeln("if (theslide[1]!=\"\")");
document.writeln("slidehtml+='</a>'");
document.writeln("return slidehtml");
document.writeln("}");
document.writeln("");
document.writeln("function moveslide(){");
document.writeln("if (curpos<0){");
document.writeln("curpos=Math.min(curpos+degree,0)");
document.writeln("tempobj.style.left=curpos+\"px\"");
document.writeln("}");
document.writeln("else{");
document.writeln("clearInterval(dropslide)");
document.writeln("if (crossobj.filters)");
document.writeln("crossobj.filters.alpha.opacity=100");
document.writeln("else if (crossobj.style.MozOpacity)");
document.writeln("crossobj.style.MozOpacity=1");
document.writeln("nextcanvas=(curcanvas==\"canvas0\")? \"canvas0\" : \"canvas1\"");
document.writeln("tempobj=ie4? eval(\"document.all.\"+nextcanvas) : document.getElementById(nextcanvas)");
document.writeln("tempobj.innerHTML=getslidehtml(slideshowcontent[curindex])");
document.writeln("nextindex=(nextindex<slideshowcontent.length-1)? nextindex+1 : 0");
document.writeln("setTimeout(\"rotateslide()\",pause)");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("function rotateslide(){");
document.writeln("if (ie4||dom){");
document.writeln("resetit(curcanvas)");
document.writeln("crossobj=tempobj=ie4? eval(\"document.all.\"+curcanvas) : document.getElementById(curcanvas)");
document.writeln("crossobj.style.zIndex++");
document.writeln("if (crossobj.filters)");
document.writeln("document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20");
document.writeln("else if (crossobj.style.MozOpacity)");
document.writeln("document.getElementById(\"canvas0\").style.MozOpacity=document.getElementById(\"canvas1\").style.MozOpacity=0.2");
document.writeln("var temp='setInterval(\"moveslide()\",50)'");
document.writeln("dropslide=eval(temp)");
document.writeln("curcanvas=(curcanvas==\"canvas0\")? \"canvas1\" : \"canvas0\"");
document.writeln("}");
document.writeln("else if (document.layers){");
document.writeln("crossobj.document.write(getslidehtml(slideshowcontent[curindex]))");
document.writeln("crossobj.document.close()");
document.writeln("}");
document.writeln("curindex=(curindex<slideshowcontent.length-1)? curindex+1 : 0");
document.writeln("}");
document.writeln("");
document.writeln("function jumptoslide(which){");
document.writeln("curindex=which");
document.writeln("rotateslide()");
document.writeln("}");
document.writeln("");
document.writeln("function resetit(what){");
document.writeln("curpos=parseInt(trans_width)*(-1)");
document.writeln("var crossobj=ie4? eval(\"document.all.\"+what) : document.getElementById(what)");
document.writeln("crossobj.style.left=curpos+\"px\"");
document.writeln("}");
document.writeln("");
document.writeln("function startit(){");
document.writeln("crossobj=ie4? eval(\"document.all.\"+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub");
document.writeln("if (ie4||dom){");
document.writeln("crossobj.innerHTML=getslidehtml(slideshowcontent[curindex])");
document.writeln("rotateslide()");
document.writeln("}");
document.writeln("else{");
document.writeln("document.tickernsmain.visibility='show'");
document.writeln("curindex++");
document.writeln("setInterval(\"rotateslide()\",pause)");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("if (window.addEventListener)");
document.writeln("window.addEventListener(\"load\", startit, false)");
document.writeln("else if (window.attachEvent)");
document.writeln("window.attachEvent(\"onload\", startit)");
document.writeln("else if (ie4||dom||document.layers)");
document.writeln("window.onload=startit");
document.writeln("");
document.writeln("</script>");
document.writeln("");
document.writeln("");
document.writeln("");
//-->
