function toggleDiv(divId){var oDiv=document.getElementById(divId);if(oDiv==null){alert("Could not toggle div with id "+divId+" as the div does not exist");return;} if(oDiv.style.display=='none'||oDiv.style.visibility=='hidden'||oDiv.style.display==''){showDiv(divId);}else{hideDiv(divId);}} function hideDiv(divId){var oDiv=document.getElementById(divId);if(oDiv==null){alert("Could not hide div with id "+divId+" as the div does not exist");return;} oDiv.style.visibility='hidden';oDiv.style.display='none';} function showDiv(divId){var oDiv=document.getElementById(divId);if(oDiv==null){alert("Could not show div with id "+divId+" as the div does not exist");return;} oDiv.style.visibility='visible';oDiv.style.display='block';} function loadIframeIntoDiv(iframeObject,divId){var theBody=iframeObject.contentWindow.document.body;document.getElementById(divId).innerHTML=theBody.innerHTML;var scriptBlocks=iframeObject.contentWindow.document.getElementsByTagName('script');if(scriptBlocks.length!=null&&scriptBlocks.length>0){for(var i=0;i$(divId).scrollWidth)pos=$(divId).scrollWidth-$(divId).clientWidth;if(tween!=null)tween.stop();tween=new Tween($(divId),'scrollLeft',eval("Tween."+effect),$(divId).scrollLeft,pos,effectDuration);tween.start();} return new c(divId,effect,effectDuration,step);};