// JavaScript Document //ALL RIGHTS REERVED. function toggle(obj) { var el = document.getElementById(obj); if ( el.style.display != 'none' ) { el.style.display = 'none'; } else { el.style.display = ''; } } function jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 5) isV5 = true; if (navigator.appVersion.indexOf("MSIE") != -1) isIE = true; function MouseOutMenu(Item) { eval(Item + ".style.borderColor = '#c8c8c8';"); eval(Item + ".style.backgroundColor = '#ffffff';"); } function MouseOverMenu(Item) { eval(Item + ".style.borderColor = '#959596';"); eval(Item + ".style.backgroundColor = '#f9f8f8';"); } var dhtmlgoodies_slideSpeed = 1000; // Higher value = faster var dhtmlgoodies_timer = 10; // Lower value = faster var objectIdToSlideDown = false; var dhtmlgoodies_activeId = false; var dhtmlgoodies_slideInProgress = false; function showHideContent(e,inputId, dhtmlgoodies_slideSpeed) { if (!dhtmlgoodies_slideSpeed) { dhtmlgoodies_slideSpeed = 1000; } if(dhtmlgoodies_slideInProgress)return; dhtmlgoodies_slideInProgress = true; if(!inputId)inputId = this.id; inputId = inputId + ''; var numericId = inputId.replace(/[^0-9]/g,''); var answerDiv = document.getElementById('dhtmlgoodies_a' + numericId); objectIdToSlideDown = false; // if(!answerDiv.style.display || answerDiv.style.display == 'none') // { // if(dhtmlgoodies_activeId && dhtmlgoodies_activeId!=numericId) // { // objectIdToSlideDown = numericId; // slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1)); // } // else // { // answerDiv.style.display='block'; // answerDiv.style.visibility = 'visible'; // slideContent(numericId,dhtmlgoodies_slideSpeed); // } // } // else // { // slideContent(numericId,(dhtmlgoodies_slideSpeed*-1)); // dhtmlgoodies_activeId = false; // } } function slideContent(inputId,direction) { var obj =document.getElementById('dhtmlgoodies_a' + inputId); var contentObj = document.getElementById('dhtmlgoodies_ac' + inputId); height = obj.clientHeight; if(height==0)height = obj.offsetHeight; height = height + direction; rerunFunction = true; if(height>contentObj.offsetHeight){ height = contentObj.offsetHeight; rerunFunction = false; } if(height<=1){ height = 1; rerunFunction = false; } obj.style.height = height + 'px'; var topPos = height - contentObj.offsetHeight; if(topPos>0)topPos=0; contentObj.style.top = topPos + 'px'; if(rerunFunction){ setTimeout('slideContent(' + inputId + ',' + direction + ')',dhtmlgoodies_timer); }else{ if(height<=1){ obj.style.display='none'; if(objectIdToSlideDown && objectIdToSlideDown!=inputId){ document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.display='block'; document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.visibility='visible'; slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed); }else{ dhtmlgoodies_slideInProgress = false; } }else{ dhtmlgoodies_activeId = inputId; dhtmlgoodies_slideInProgress = false; } } } function initShowHideDivs() { var divs = document.getElementsByTagName('DIV'); var divCounter = 1; for(var no=0;no