//<!--
//1@@m11

function EbayHTMLAnchor(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLAnchor";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.getElem=ebHTMLAnchorGetElem;this.enableBase=this.enable;this.enable=ebHTMLAnchorEnable;this.subscribeEvents("onclick");}
function ebHTMLAnchorGetElem(pName)
{var d=this.oDocument.doc,l=null,len=null;l=d.links[pName];if(l)return l;if(d.getElementById)
l=d.getElementById(pName);if(l)return l;if(d.all)
l=d.all[pName];if(l)return l;if(d.layers)
{var lyrs=d.layers;len=lyrs.length;for(var i=0;i<len;i++)
{l=this.getElem(lyrs[i].document,pName);if(l)
return l;}}
len=d.links.length;for(var j=0;j<len;j++)
{l=d.links[j];if(typeof(l.name)=="undefined")
{if(l.onclick)
{var oc=l.onclick.toString();if(oc.indexOf("{#"+pName+"#}")!=-1)
return l;}}
else
{if(l.name==pName)
return l;}
l=null;}
return l;}
function ebHTMLAnchorEnable(pEnable)
{var cur=(pEnable)?"hand":"default";var el=this.eElem;if(el&&el.style)
{el.style.cursor=cur;el.style.color=pEnable?"":"gray";}
this.enableBase(pEnable);}
function setEbayLink(pS)
{return true;}

//2@@m6

function EbayHTMLLayer(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLLayer";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.aBindEvents=new Array;this.getElem=ebHTMLLayerGetElem;this.getValue=ebHTMLLayerGetValue;this.setValue=ebHTMLLayerSetValue;}
function ebHTMLLayerGetElem(pName)
{var s=pName,d=this.oDocument.doc;if(d.getElementById)
return d.getElementById(s);else if(d.all)
return d.all(s);this.throwWarning("Not supported","getElem");}
function ebHTMLLayerGetValue(pIsText)
{if(this.eElem)
{if(pIsText)
{if(this.oDocument.oGlobals.oClient.bFirefox)
return this.eElem.textContent;else
return this.eElem.innerText;}
else
return this.eElem.innerHTML;}
else
return"";}
function ebHTMLLayerSetValue(pVal,pIsText)
{if(this.eElem)
{if(pIsText)
{if(this.oDocument.oGlobals.oClient.bFirefox)
this.eElem.textContent=pVal;else
this.eElem.innerText=pVal;}
else
this.eElem.innerHTML=pVal;}}

//3@@m7

function EbayHTMLImage(pParent,pName,pDisabled,pSource,pDisabledSource,pCfg)
{if(!this.objType)
this.objType="EbayHTMLImage";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.sEnabledSource=this.sDisabledSource=pSource;if(pDisabledSource)
this.sDisabledSource=pDisabledSource;this.getElem=ebHTMLImageGetElem;this.source=ebHTMLImageSource;this.enableBase=this.enable;this.enable=ebHTMLImageEnable;this.subscribeEvents("onclick","onmouseover","onmouseout");}
function ebHTMLImageGetElem(pName)
{return this.getDocElem(pName,'images');}
function ebHTMLImageSource(pSrc,pText)
{var im=this.eElem;if(typeof(im)=='undefined')
return;if(typeof(pSrc)=="undefined")
return(im)?im.src:"";else
{im.src=pSrc;if(pText!=null)
im.alt=pText;}}
function ebHTMLImageEnable(pEnable)
{with(this)
{enableBase(pEnable);if(sDisabledSource&&eElem)
eElem.src=(pEnable)?sEnabledSource:sDisabledSource;}}

//4@@m7

function EbayHTMLForm(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLForm";this.base=EbayHTML;this.base(pParent,pName,pName,false,pCfg);this.getElem=function(){return this.getDocElem(arguments[0],'forms');};this.enable=function(){};this.getElementValue=ebHTMLFormGetElementValue;this.setElementValue=ebHTMLFormSetElementValue;this.getElements=ebHTMLFormGetElements;this.getElement=ebHTMLFormGetElement;this.setAction=ebHTMLFormSetAction;this.getAction=ebHTMLFormGetAction;this.setTarget=ebHTMLFormSetTarget;this.getTarget=ebHTMLFormGetTarget;this.submit=ebHTMLFormSubmit;this.clear=ebHTMLFormClear;this.subscribeEvents("onsubmit");this.onBeforeSubmit=null;this.onAfterSubmit=null;}
function ebHTMLFormGetElements()
{var e=this.eElem;return e?e.elements:new Array;}
function ebHTMLFormGetElement(pName)
{var elems=this.getElements();return elems[pName]?elems[pName]:null;}
function ebHTMLFormGetElementValue(pName)
{var elems=this.getElements();if(elems[pName]&&elems[pName].value)
return elems[pName].value;return"";}
function ebHTMLFormSetElementValue(pName,pValue)
{var elems=this.getElements(),elem=elems[pName];if(elem)
{if(elem.length)
{for(var i=0,len=elem.length;i<len;i++)
elem[i].value=pValue;}
else
elem.value=pValue;}}
function ebHTMLFormSetAction(pAction)
{var e=this.eElem;if(e)
e.action=pAction;}
function ebHTMLFormGetAction()
{var e=this.eElem;if(e)
return e.action;}
function ebHTMLFormSetTarget(pTarget)
{var e=this.eElem;if(e)
e.target=pTarget;}
function ebHTMLFormGetTarget()
{var e=this.eElem;if(e)
return e.target;}
function ebHTMLFormSubmit()
{if(this.onBeforeSubmit)
this.onBeforeSubmit();var e=this.eElem;if(e)
{e.submit();if(this.onAfterSubmit)
this.onAfterSubmit();}
else
this.throwError("Element '"+this.sElemName+"' does not exist on the page","submit");}
function ebHTMLFormClear()
{var elems=this.getElements(),len=elems.length;for(i=0;i<len;i++)
{var elem=elems[i];var type=elem.type;switch(type)
{case"text":case"textarea":elem.value="";break;case"checkbox":elem.checked=false;break;case"select-one":elem.selectedIndex=0;}}}

//5@@m16

function EbayHTMLBaseCheckboxRadio(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLBaseCheckboxRadio";this.base=EbayHTMLFormElem;this.base(pParent,pName,pDisabled,pCfg);this.bGroup=false;this.bindHTML=ebHTMLBaseCheckboxRadioBindHTML;this.bindEvents=ebHTMLBaseCheckboxRadioBindEvents;this.check=ebHTMLBaseCheckboxRadioCheck;this.selectByIndex=ebHTMLBaseCheckboxRadioSelectByIndex;this.selectByValue=ebHTMLBaseCheckboxRadioSelectByValue;this.isCheckedByValue=ebHTMLBaseCheckboxRadioIsCheckedByValue;this.getValueByIndex=ebHTMLBaseCheckboxRadioGetValueByIndex;this.getIndexByValue=ebHTMLBaseCheckboxRadioGetIndexByValue;this.getValue=null;this.enableBase=this.enable;this.enable=ebHTMLBaseCheckboxRadioEnable;this.setValue=this.selectByValue;this.onBeforeCheck=null;this.onAfterCheck=null;this.subscribeEvents("onclick");}
function ebHTMLBaseCheckboxRadioBindHTML()
{with(this)
{eElem=getElem(sElemName);if(eElem)
{if(eElem.length)
{bGroup=true;var len=eElem.length;for(var i=0;i<len;i++)
assignJSObject(eElem[i]);cleanupMemory=ebHTMLBaseCheckboxRadioCleanupMemory;}
else
{bGroup=false;assignJSObject(eElem);}}
if(bDisabled)
enable(false);}}
function ebHTMLBaseCheckboxRadioCleanupMemory()
{var e=this.eElem;if(e)
{var len=e.length;for(var j=0;j<len;j++)
{for(var i in e[j].jsObjs)
{e[j].jsObjs[i]=null;}
e[j].jsObjs=null;}
this.eElem=null;}}
function ebHTMLBaseCheckboxRadioBindEvents()
{with(this)
{if(!eElem)
return;var e=aBindEvents,len=e.length,fStr;for(var i in e)
{var len2=eElem.length;if(len2&&len2>0)
{for(var ii=0;ii<len2;ii++)
eval("eElem[ii]."+e[i]+" = function(){"+this.bindEventString(e[i],ii)+"}");}
else
{eval("eElem."+e[i]+" = new Function(this.bindEventString(e[i],0))");}}}}
function ebHTMLBaseCheckboxRadioCheck(pChecked,pIndex)
{if(pIndex<0)
return;with(this)
{if(eElem)
{if(bGroup&&typeof(pIndex)=='undefined')
{var len=eElem.length;for(var i=0;i<len;i++)
eElem[i].checked=pChecked;}
else if(bGroup&&eElem[pIndex])
eElem[pIndex].checked=pChecked;else if(!bGroup)
eElem.checked=pChecked;}}}
function ebHTMLBaseCheckboxRadioSelectByIndex(pIdx,pCheck)
{var chx=typeof pCheck!='undefined'?pCheck:true;with(this)
{if(onBeforeCheck)
onBeforeCheck();var e=bGroup?eElem[pIdx]:eElem;if(e)
{e.checked=chx;if(onAfterCheck)
onAfterCheck();}}}
function ebHTMLBaseCheckboxRadioSelectByValue(pVal,pCheck)
{var chx=typeof pCheck!='undefined'?pCheck:true;with(this)
{if(onBeforeCheck)
onBeforeCheck();var e=eElem;if(!e)
return;if(bGroup)
{var len=e.length;for(var i=0;i<len;i++)
{if(e[i].value==pVal)
{e[i].checked=chx;if(onAfterCheck)
onAfterCheck();}}}
else
{if(e.value==pVal)
{e.checked=chx;if(onAfterCheck)
onAfterCheck();}}}}
function ebHTMLBaseCheckboxRadioIsCheckedByValue(pValue)
{with(this)
{var e=eElem;if(e&&bGroup)
{var len=e.length;for(var i=0;i<len;i++)
{if(e[i].value==pValue)
return isChecked(i);}}}}
function ebHTMLBaseCheckboxRadioGetValueByIndex(pIndex)
{with(this)
{var e=eElem;if(e&&bGroup)
return e[pIndex].value;return null;}}
function ebHTMLBaseCheckboxRadioGetIndexByValue(pValue)
{with(this)
{var e=eElem;if(e&&bGroup)
{var len=e.length;for(var i=0;i<len;i++)
{if(e[i].value==pValue)
return i;}}
return-1;}}
function ebHTMLBaseCheckboxRadioEnable(pEnable)
{with(this)
{enableBase(pEnable);if(bGroup)
{var v=pEnable?"true":"false",e=eElem,len=e.length;if(e)
{for(var i=0;i<len;i++)
{e[i].onfocus=new Function("return "+v+";");e[i].disabled=!pEnable;}}}}}

//6@@m8

function EbayHTMLRadio(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLRadio";this.base=EbayHTMLBaseCheckboxRadio;this.base(pParent,pName,pDisabled,pCfg);this.getElem=ebHTMLRadioGetElem;this.getValue=ebHTMLRadioGetValue;this.getSelectedIndex=ebHTMLRadioGetSelectedIndex;}
function ebHTMLRadioGetElem(pName)
{return this.oDocument.getFormElem(pName,"radio");}
function ebHTMLRadioGetValue()
{var e=this.eElem;if(!e){return"";}
if(this.bGroup)
{var len=e.length;for(var i=0;i<len;i++)
{if(e[i].checked)
return e[i].value;}}
else
{if(e.checked)
return e.value;}
return"";}
function ebHTMLRadioGetSelectedIndex()
{var e=this.eElem;if(!this.bGroup)
return 0;else
{var len=e.length;for(var i=0;i<len;i++)
{if(e[i].checked)
return i;}}
return-1;}

//7@@m4

function EbayOnepageTutorial(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayOnepageTutorial";this.base=EbayBaseControl;this.base(pParent,pName);var c=this.oConfig=pCfg?pCfg:null;this.iIntroIndex=0;this.iQIndex=0;this.bGoNextQues=false;this.bWrongAns=false;this.bTutorialIntro=true;this.bCurrentQues=false;this.createLayerObjects=ebTutorialNavCreateLayerObjects;this.initialSetup=ebTutorialNavInitialSetup;this.display=ebTutorialNavDisplay;this.getValue=ebTutorialNavGetValue;this.populateQuestion=ebTutorialNavPopulateQuestion;this.populateCorrectAns=ebTutorialNavPopulateCorrectAns;this.populateWrongAns=ebTutorialNavPopulateWrongAns;this.populateExplanation=ebTutorialNavPopulateExplanation
this.displayNav=ebTutorialNavDisplayNav;this.displayQuestion=ebTutorialNavDisplayQuestion;this.enablePrevLink=ebTutorialNavEnablePrevLink;this.enableNextLink=ebTutorialNavEnableNextLink;this.showPrevLink=ebTutorialNavShowPrevLink;this.showNextLink=ebTutorialNavShowNextLink;this.checkAnswer=ebTutorialNavCheckAnswer;this.startTutorial=ebTutorialNavStartTutorial;this.previous=ebTutorialNavPrevious;this.next=ebTutorialNavNext;this.updateCounters=ebTutorialNavUpdateCounters;this.submit=ebTutorialNavSubmit;this.track=ebTutorialNavSojournerTrack;this.init=function()
{var t=new EbayHTMLAnchor(this,c.sStartTutorial);t.onclick=this.startTutorial;this.createLayerObjects();t=new EbayHTMLAnchor(this,c.sSubmitLink);t.onclick=this.checkAnswer;t=new EbayHTMLAnchor(this,c.sTopLinkPrevious,false,c);t.onclick=this.previous;t=new EbayHTMLAnchor(this,c.sTopImgPrevious,false,c);t.onclick=this.previous;t=new EbayHTMLAnchor(this,c.sTopLinkNext,false,c);t.onclick=this.next;t=new EbayHTMLAnchor(this,c.sTopImgNext,false,c);t.onclick=this.next;t=new EbayHTMLAnchor(this,c.sBottomLinkPrevious,false,c);t.onclick=this.previous;t=new EbayHTMLAnchor(this,c.sBottomImgPrevious,false,c);t.onclick=this.previous
t=new EbayHTMLAnchor(this,c.sBottomLinkNext,false,c);t.onclick=this.next;t=new EbayHTMLAnchor(this,c.sBottomImgNext,false,c);t.onclick=this.next;t=new EbayHTMLAnchor(this,c.sFinishImg,false,c);t.onclick=this.submit;new EbayHTMLImage(this,c.sTrackImage);new EbayHTMLForm(this,c.sFormName,c)}
this.init();}
function ebTutorialNavCreateLayerObjects()
{with(this)
{var c=oConfig;for(var i=0;i<c.inumOfIntos;i++)
{new EbayHTMLLayer(this,c.aIntroDivs[i]);}
new EbayHTMLLayer(this,c.sQuestionDiv);new EbayHTMLLayer(this,c.sQuesHeadDiv);new EbayHTMLLayer(this,c.sQuesBodyDiv);new EbayHTMLLayer(this,c.sCorrectAnsDiv);new EbayHTMLLayer(this,c.sCorQuesHeadDiv);new EbayHTMLLayer(this,c.sCorQuesBodyDiv);new EbayHTMLLayer(this,c.sCorAnsContentDiv);new EbayHTMLLayer(this,c.sWrongAnsdiv);new EbayHTMLLayer(this,c.sWrongQuesHeadDiv);new EbayHTMLLayer(this,c.sWrongQuesBodyDiv);new EbayHTMLLayer(this,c.sWrongAnsContentDiv);new EbayHTMLLayer(this,c.sExplanationDiv);new EbayHTMLLayer(this,c.sExplainContentDiv);new EbayHTMLLayer(this,c.sFinalDiv);new EbayHTMLLayer(this,c.sIntroHeaderDiv);new EbayHTMLLayer(this,c.sExplainHeaderDiv);new EbayHTMLLayer(this,c.sTopNavDiv);new EbayHTMLLayer(this,c.sBottomNavDiv);new EbayHTMLLayer(this,c.sTopQuesDiv);new EbayHTMLLayer(this,c.sBottomQuesDiv);new EbayHTMLLayer(this,c.sTopCounterDiv);new EbayHTMLLayer(this,c.sBottomCounterDiv);new EbayHTMLLayer(this,c.sTopPrevDiv);new EbayHTMLLayer(this,c.sTopNextDiv);new EbayHTMLLayer(this,c.sBottomPrevDiv);new EbayHTMLLayer(this,c.sBottomNextDiv);new EbayHTMLLayer(this,c.sTopPrevArrowDiv);new EbayHTMLLayer(this,c.sTopNextArrowDiv);new EbayHTMLLayer(this,c.sBottomPrevArrowDiv);new EbayHTMLLayer(this,c.sBottomNextArrowDiv);}}
function ebTutorialNavInitialSetup()
{with(this)
{var c=oConfig;if(c.inumOfIntos>1)
{displayNav(true);showPrevLink(false);showNextLink(true);}
track(c.aTrackIntroIds[iIntroIndex]);}}
function ebTutorialNavPrevious()
{with(this.parent)
{var c=oConfig;if(bCurrentQues)
{controls[c.sQuestionDiv].show(false);controls[c.sCorrectAnsDiv].show(false);controls[c.sExplainHeaderDiv].show(false);controls[c.sExplanationDiv].show(false);updateCounters(iQIndex);iQIndex--;displayQuestion(iQIndex);enablePrevLink(iQIndex!=0);enableNextLink(false);bWrongAns=false;bGoNextQues=false;bCurrentQues=true;}
else if(bWrongAns)
{controls[c.sWrongAnsdiv].show(false);displayQuestion(iQIndex);enablePrevLink(iQIndex!=0);enableNextLink(false);bWrongAns=false;bGoNextQues=false;bCurrentQues=true;}
else if(bGoNextQues)
{iQIndex--;controls[c.sExplanationDiv].show(false);controls[c.sExplainHeaderDiv].show(false);displayQuestion(iQIndex);enablePrevLink(iQIndex!=0);enableNextLink(false);bWrongAns=false;bGoNextQues=false;bCurrentQues=true;}
else if(bTutorialIntro)
{controls[c.aIntroDivs[iIntroIndex]].show(false);iIntroIndex--;controls[c.aIntroDivs[iIntroIndex]].show(true);if(iIntroIndex==0)
initialSetup();else
{showNextLink(true);track(c.aTrackIntroIds[iIntroIndex]);}}}}
function ebTutorialNavStartTutorial()
{with(this.parent)
{var c=oConfig;controls[c.aIntroDivs[iIntroIndex]].show(false);controls[c.sIntroHeaderDiv].show(false);controls[c.sTopQuesDiv].show(true);controls[c.sBottomQuesDiv].show(true);displayQuestion(iQIndex);showPrevLink(true);showNextLink(true);displayNav(true);enablePrevLink(false);enableNextLink(false);bTutorialIntro=false;bCurrentQues=true;}}
function ebTutorialNavDisplayQuestion(pIndex)
{with(this)
{var c=oConfig;populateQuestion(c.sQuesHeadDiv,c.sQuesBodyDiv,pIndex);controls[c.sQuestionDiv].show(true);track(c.aTrackIds[pIndex][0]);}}
ebTutorialNavDisplay=function(pLayer,pHtml)
{with(this)
{pHtml=pHtml?pHtml:"";controls[pLayer].setValue(pHtml);}}
function ebTutorialNavPopulateQuestion(pHeadDiv,pBodyDiv,pIndex,pSelVal)
{with(this)
{var c=oConfig,n=pIndex;display(pHeadDiv,getValue(c.aQuestionHeads[n]));var txt='<table border="0" cellpadding="0" cellspacing="0" width="100%">';txt+=c.sQuesTemplate.replaceTokens(c.aQuestions[n]);txt+=c.sSpacerTemplate.replaceTokens(20);var cNum=c.aQuestionNums[n],cContent=c.aQuestionChoices[n];for(var i=0,l=cNum.length;i<l;i++)
{var selValue=((typeof(pSelVal)!="undefined")&&(pSelVal==i+1))?"checked=\"checked\"":"";txt+=c.sQuesChoicesTemplate.replaceTokens(i+1,cNum[i],cContent[i],selValue,iQIndex);txt+=c.sSpacerTemplate.replaceTokens(10);}
txt+='</table>';display(pBodyDiv,txt);}}
function ebTutorialNavPopulateCorrectAns(pIndex,pSelvalue)
{with(this)
{var c=oConfig,n=pIndex;populateQuestion(c.sCorQuesHeadDiv,c.sCorQuesBodyDiv,n,pSelvalue);display(c.sCorAnsContentDiv,getValue(c.aRightAnsContent[n]));}}
function ebTutorialNavGetValue(pObj)
{with(this)
{var obj=controls[pObj];if(typeof(obj)=="undefined")
{obj=new EbayHTMLLayer(this,pObj);obj.bind();}
return obj.getValue();}}
function ebTutorialNavPopulateWrongAns(pIndex,pSelvalue)
{with(this)
{var c=oConfig,n=pIndex;populateQuestion(c.sWrongQuesHeadDiv,c.sWrongQuesBodyDiv,n,pSelvalue);display(c.sWrongAnsContentDiv,getValue(c.aWrongAnsContent[n]));}}
function ebTutorialNavPopulateExplanation(pIndex)
{with(this)
{var c=oConfig,n=pIndex;display(c.sExplainContentDiv,getValue(c.aExplainContent[n]));}}
function ebTutorialNavNext()
{with(this.parent)
{var c=oConfig;if(iQIndex==c.iNumOfQuestions)
{controls[c.sQuestionDiv].show(false);controls[c.sCorrectAnsDiv].show(false);controls[c.sExplainHeaderDiv].show(false);controls[c.sExplanationDiv].show(false);controls[c.sTopQuesDiv].show(false);controls[c.sBottomQuesDiv].show(false);displayNav(false);if(c.sFinishImg=='finishLink')
{controls[c.sFinalDiv].show(true);}
else{controls[c.sFinalDiv].show(false);var d=this.oDocument.doc;if(d.getElementById){tl=d.getElementById(c.sTopLinkNext);tlImg=d.getElementById(c.sTopImgNext);bl=d.getElementById(c.sBottomLinkNext);blImg=d.getElementById(c.sBottomImgNext);}
else if(d.all){tl=d.all[c.sTopLinkNext];tlImg=d.all[c.sTopImgNext];bl=d.all[c.sBottomLinkNext];blImg=d.all[c.sBottomImgNext];}
else if(d.layers){var lyrs=d.layers;var len=lyrs.length;for(var i=0;i<len;i++){tl=this.getElem(lyrs[i].document,c.sTopLinkNext);tlImg=this.getElem(lyrs[i].document,c.sTopImgNext);bl=this.getElem(lyrs[i].document,c.sBottomLinkNext);blImg=this.getElem(lyrs[i].document,c.sBottomImgNext);if(tl)break;}}
if(tl){tl.href=c.sFinishImg;tlImg.href=c.sFinishImg;bl.href=c.sFinishImg;blImg.href=c.sFinishImg;}}}
else if(bGoNextQues)
{if(iQIndex!=0)
{controls[c.sQuestionDiv].show(false);controls[c.sCorrectAnsDiv].show(false);controls[c.sExplainHeaderDiv].show(false);controls[c.sExplanationDiv].show(false);}
updateCounters(iQIndex+1);displayQuestion(iQIndex);enableNextLink(false);enablePrevLink(true);bCurrentQues=true;bWrongAns=false;bGoNextQues=false;}
else if(bWrongAns)
{controls[c.sQuestionDiv].show(false);controls[c.sWrongAnsdiv].show(false);controls[c.sExplainHeaderDiv].show(true);populateExplanation(iQIndex);controls[c.sExplanationDiv].show(true);track(c.aTrackIds[iQIndex][3]);enablePrevLink(true);bWrongAns=false;bGoNextQues=true;iQIndex++;if(c.sFinishImg!='finishLink'&&iQIndex==c.iNumOfQuestions)
{controls[c.sFinalDiv].show(false);controls[c.sTopLinkNext].enable(true);controls[c.sBottomLinkNext].enable(true);controls[c.sTopImgNext].enable(true);controls[c.sBottomImgNext].enable(true);}}
else if(bTutorialIntro)
{controls[c.aIntroDivs[iIntroIndex]].show(false);iIntroIndex++;var iC=c.inumOfIntos
if(iIntroIndex<iC)
{controls[c.aIntroDivs[iIntroIndex]].show(true);track(c.aTrackIntroIds[iIntroIndex]);if(iIntroIndex==(iC-1))
{showPrevLink(true);showNextLink(false);}
else
showPrevLink(true);}}}}
function ebTutorialNavDisplayNav(pVal)
{with(this)
{var c=oConfig;controls[c.sTopNavDiv].show(pVal);controls[c.sBottomNavDiv].show(pVal);}}
function ebTutorialNavUpdateCounters(pCounter)
{with(this)
{var c=oConfig;var topText='<font size="3" color="#A13EOD">'+pCounter+'</font>'
var bottomText='<font size="1">'+pCounter+'</font>'
controls[c.sTopCounterDiv].setValue(topText);controls[c.sBottomCounterDiv].setValue(bottomText);}}
function ebTutorialNavEnablePrevLink(pValue)
{with(this)
{var c=oConfig;controls[c.sTopLinkPrevious].enable(pValue);controls[c.sTopImgPrevious].enable(pValue);controls[c.sBottomLinkPrevious].enable(pValue);controls[c.sBottomImgPrevious].enable(pValue);}}
function ebTutorialNavEnableNextLink(pValue)
{with(this)
{var c=oConfig;controls[c.sTopLinkNext].enable(pValue);controls[c.sTopImgNext].enable(pValue);controls[c.sBottomLinkNext].enable(pValue);controls[c.sBottomImgNext].enable(pValue);}}
function ebTutorialNavShowPrevLink(pValue)
{with(this)
{var c=oConfig;controls[c.sTopPrevDiv].show(pValue);controls[c.sBottomPrevDiv].show(pValue);controls[c.sTopPrevArrowDiv].show(pValue);controls[c.sBottomPrevArrowDiv].show(pValue);}}
function ebTutorialNavShowNextLink(pValue)
{with(this)
{var c=oConfig;controls[c.sTopNextDiv].show(pValue);controls[c.sBottomNextDiv].show(pValue);controls[c.sTopNextArrowDiv].show(pValue);controls[c.sBottomNextArrowDiv].show(pValue);}}
function ebTutorialNavCheckAnswer()
{with(this.parent)
{var c=oConfig;var oRadio=new EbayHTMLRadio(this,(c.sAnswerRadio+iQIndex));oRadio.bind();var s=oRadio.getValue();var a=c.aAnswers[iQIndex];if(s=="")
{parent.oDocument.messageBox(c.sNoAnswerSelectedMsg);return;}
else if(s==a)
{controls[c.sQuestionDiv].show(false);populateCorrectAns(iQIndex,s);controls[c.sCorrectAnsDiv].show(true);track(c.aTrackIds[iQIndex][1]);iQIndex++;bGoNextQues=true;bCurrentQues=true;}
else
{controls[c.sQuestionDiv].show(false);populateWrongAns(iQIndex,s);controls[c.sWrongAnsdiv].show(true);track(c.aTrackIds[iQIndex][2]);bWrongAns=true;bCurrentQues=false;}
enablePrevLink(true);enableNextLink(true);}}
function ebTutorialNavSubmit()
{with(this.parent)
{var c=oConfig;var oFrm=controls[c.sFormName];oFrm.submit();}}
function ebTutorialNavSojournerTrack(pTrackId)
{with(this)
{if(typeof(pTrackId)=='undefined'||pTrackId=="")
return;var c=oConfig,obj;var sUrl=c.sTrackUrl+pTrackId;obj=controls[c.sTrackImage];obj.source(sUrl);}}

//8@@m1

ebay.oDocument.oPage.onBeforeLoad=function()
{var cfg=this.parent.getConfig("Tutorial.Onepage.Config");if(cfg)
this.tutorialNav=new EbayOnepageTutorial(ebay,"onepageTutorial",cfg);}
ebay.oDocument.oPage.onAfterLoad=function()
{if(this.tutorialNav)
{this.tutorialNav.initialSetup();}}
// b=14398859 -->
