/************************************************************************
	
	JavaScript Document // Common
	Cavendish Conference Venues
	
************************************************************************/


// POP UP WINDOW
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}



function WriteFlash(e,g,h,c,a,f,d){document.write("<object ");document.write('id="'+g+'"');document.write('class="'+h+'"');document.write('width="'+c+'"');document.write('height="'+a+'"');if(navigator.userAgent.indexOf("MSIE")!=-1){document.write('classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">')}else{document.write('data="'+e+'"');document.write('type="application/x-shockwave-flash">')}if(f){for(var b in f){document.write('<param name="'+b+'" value="'+f[b]+'" />')}}document.write('<param name="movie" value="'+e+'" />');if(d){document.write(d)}document.write("</object>")}function go(a){document.location.href=a}function goBack(){history.back()}function goHide(a){a.style.display="none"}function goFocus(a){a.focus()}function goShow(a){a.style.display="block"}function goDisable(a){a.disabled=true}function goEnable(a){a.disabled=false}function goClearField(a,b){if(a.value==b){a.value=""}}function goFillField(a,b){if(a.value==""){a.value=b}}function goClearFieldBg(a){if(a.value==""){a.style.backgroundImage="none"}}function goFillFieldBg(b,a){if(b.value==""){b.style.backgroundImage="url("+a+")"}}function goPopup(a){window.open(a)}function goPopupMinimal(e,b,d){var c=(screen.width/2)-(b/2);var a=(screen.height/2)-(d/2);window.open(e,"new_window","left="+c+",top="+a+",toolbar=no,width="+b+",height="+d+",status=no,resizable=yes,menubar=no,location=no,scrollbars=yes")}function goPopupImage(e){var b=640;var d=480;var c=(screen.width/2)-(b/2);var a=(screen.height/2)-(d/2);window.open(e,"new_window","left="+c+",top="+a+",toolbar=no,width="+b+",height="+d+",status=no,resizable=yes,menubar=no,location=no,scrollbars=no")}function doAjaxRequest(b,a){ajax=new sack();ajax.method="GET";ajax.requestFile=b;ajax.element=a;ajax.runAJAX()}function getFormFields(a){if(!a){return false}objParams=new Object;inputFields=a.getElementsByTagName("input");for(i=0;i<inputFields.length;i++){strName=inputFields[i].name;strType=inputFields[i].type;strValue=inputFields[i].value;switch(strType){case"text":case"hidden":case"password":case"button":case"submit":case"reset":case"image":case"file":objParams[strName]=strValue;break;case"checkbox":case"radio":if(inputFields[i].checked){objParams[strName]=strValue}break}}selectFields=a.getElementsByTagName("select");for(i=0;i<selectFields.length;i++){strName=selectFields[i].name;strType="";strValue="";for(j=0;j<selectFields[i].options.length;j++){if(selectFields[i].options[j].selected){if(strValue.length){strValue+=","}strValue+=selectFields[i].options[j].value}}objParams[strName]=strValue}return objParams}function goSwapImage(b,d,a){var c=document.getElementById(b);if(!c){return}if(c.tagName.toLowerCase()=="img"){c.src=d;if(a!==null){c.alt=a}}}var Coverflow={setup:function(){$$("div.coverflow").each(function(b){var a=new MooFlow(b,{startIndex:2,factor:115,offsetY:-75,heightRatio:0.45,bgColor:"#FFFFFF",useSlider:false,useAutoPlay:false,useCaption:true,useResize:true,useMouseWheel:true,useKeyInput:true,useViewer:true})})}};