/************************************************************************************************************ (C) www.dhtmlgoodies.com, November 2005 This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website. Terms of use: You are free to use this script as long as the copyright message is kept intact. However, you may not redistribute, sell or repost it without our permission. Thank you! www.dhtmlgoodies.com Alf Magne Kalleland ************************************************************************************************************/ var dhtmlgoodies_slideSpeed = 10; // 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) { 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; var oh = contentObj.offsetHeight; if(height>oh){ height = oh; 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'); document.write('.dhtmlgoodies_question{ \/* Styling question *\/'); document.write(' \/* Start layout CSS *\/'); document.write(' color:#000000\;'); document.write(' font-size:0.9em\;'); document.write(' background-color:#000000\;'); document.write(' width:240px\;'); document.write(' background-repeat:no-repeat\;'); document.write(' background-position:top right\; '); document.write(' height:60px\;'); document.write(' '); document.write(' \/* End layout CSS *\/'); document.write(' '); document.write(' overflow:hidden\;'); document.write(' cursor:pointer\;'); document.write('}'); document.write('.dhtmlgoodies_answer{ \/* Parent box of slide down content *\/'); document.write(' \/* Start layout CSS *\/'); document.write(' border:1px solid #B3B2B2\;'); document.write(' background-color:#EAEAEA\;'); document.write(' width:240px\;'); document.write(' '); document.write(' \/* End layout CSS *\/'); document.write(' '); document.write(' visibility:hidden\;'); document.write(' height:0px\;'); document.write(' overflow:hidden\;'); document.write(' position:absolute\;'); document.write(''); document.write('}'); document.write('.dhtmlgoodies_answer_content{ \/* Content that is slided down *\/'); document.write(' padding:1px\;'); document.write(' font-size:0.9em\; '); document.write(' position:absolute\;'); document.write('}'); document.write(''); document.write('.formField {'); document.write(' border: 1px solid #00425D\; '); document.write(' color: #000000\; '); document.write(' font-style: normal\; '); document.write(' font-family: verdana\; '); document.write(' font-weight: normal\; '); document.write(' font-size: 8px\; '); document.write(' background-color: #C5E0FE\;'); document.write(' }'); document.write(''); document.write('.formPO {'); document.write(' border: 1px solid #00425D\; '); document.write(' color: #000000\; '); document.write(' font-style: normal\; '); document.write(' font-family: verdana\; '); document.write(' font-weight: normal\; '); document.write(' font-size: 10px\; '); document.write(' background-color: #C5E0FE\;'); document.write(' }'); document.write(''); document.write('.formSecondary {'); document.write(' border: 1px solid #C5E0FE\; '); document.write(' color: #C5E0FE\; '); document.write(' font-style: normal\; '); document.write(' font-family: verdana\; '); document.write(' font-weight: normal\; '); document.write(' font-size: 10px\; '); document.write(' background-color: #00425D\;'); document.write(' }'); document.write(' '); document.write(''); document.write('.Primary7bold { '); document.write(' font-size: 7pt\; '); document.write(' font-weight: bold\; '); document.write(' color:#7C3422\; '); document.write(' text-decoration: none\; '); document.write(' }'); document.write(''); document.write('.Secondary7bold {'); document.write(' font-size: 7pt\; '); document.write(' font-weight: bold\; '); document.write(' color:#00425D\; '); document.write(' text-decoration: none\; '); document.write(' }'); document.write('<\/style>'); document.write('
'); document.write(''); document.write('
<\/div>'); document.write('
'); document.write('
'); document.write('
'); document.write(' '); document.write('
'); document.write(' '); document.write(' SUBMIT YOUR REVIEW:<\/b>'); document.write('
'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write(' Title:'); document.write(' <\/TD>'); document.write(' '); document.write(' <\/TD>'); document.write(' <\/TR>'); document.write('
'); document.write(' Rate it:'); document.write(' <\/TD>'); document.write('
'); document.write(' Review:'); document.write(' <\/TD>'); document.write('