




	


var firefox=navigator.userAgent.indexOf("Firefox")!=-1;var explorer=navigator.userAgent.indexOf("MSIE")!=-1;var explorer7=navigator.userAgent.indexOf("MSIE 7.0")!=-1;var netscape=navigator.userAgent.indexOf("Netscape")!=-1;var safari=navigator.userAgent.indexOf("Safari")!=-1;var opera=navigator.userAgent.indexOf("Opera")!=-1;var camino=navigator.userAgent.indexOf("Camino")!=-1;var macintosh=navigator.platform.indexOf("Mac")!=-1;function correctPNG(){for(var G=0;G<document.images.length;G++){var D=document.images[G];var F=D.src.toUpperCase();if(F.substring(F.length-3,F.length)=="PNG"){var B=(D.id)?"id='"+D.id+"' ":"";var E=(D.className)?"class='"+D.className+"' ":"";var H=(D.title)?"title='"+D.title+"' ":"title='"+D.alt+"' ";var C="display:block;"+D.style.cssText;if(D.align=="left"){C="float:left;"+C}if(D.align=="right"){C="float:right;"+C}if(D.parentElement.href){C="cursor:hand;"+C}var A='<span class="pngFix" '+B+E+H+' style="width:'+D.width+"px; height:"+D.height+"px;"+C+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D.src+"', sizingMethod='scale');\"></span>";D.outerHTML=A;G=G-1}}}if(explorer&&!explorer7){window.attachEvent("onload",correctPNG)}function insertFlash(F,G,D,A,B,E,C){document.write('<object width="'+D+'" height="'+A+'" id="'+G+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">\n');document.write("<![CDATA[<p>"+E+"</p>]]>\n");document.write('<param name="allowScriptAccess" value="always" />\n');document.write('<param name="movie" value="'+F+'" />\n');document.write('<param name="menu" value="false" />\n');document.write('<param name="allowFullScreen" value="true" />\n');document.write('<param name="flashvars" value="'+B+'">\n');document.write('<param name="quality" value="high" />\n');document.write('<param name="scale" value="noscale" />\n');document.write('<param name="bgcolor" value="#ffffff" />\n');document.write('<param name="wmode" value="transparent" />\n');document.write('<embed width="'+D+'" height="'+A+'" name="'+G+'" src="'+F+'" flashvars="'+B+'" wmode="transparent" menu="false" quality="high" scale="noscale" allowFullScreen="true" bgcolor="#ffffff" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>\n')}function changeImage(D){var B=$(D);var A=B.src.substring(B.src.length-6,B.src.length-4);var C=B.src.substring(B.src.length-3,B.src.length);if(A=="of"){B.src=B.src.substring(B.src.length-6,0)+"on."+C}else{if(A=="on"){B.src=B.src.substring(B.src.length-6,0)+"of."+C}}}function changeImg(B,A){var C=$(B);C.src=A}function showSection(F){var E=F+"Name";var D=F+"Con";if($(E).hasClassName("vo_op")){$(D).style.display="none";Element.addClassName((E),"vo_cl");Element.removeClassName((E),"vo_op")}else{$(D).style.display="block";Element.addClassName((E),"vo_op");Element.removeClassName((E),"vo_cl")}var A=$$(".maskMe");for(var B=0;B<A.length;B++){var C=$(A[B]).readAttribute("sifrTag");$(A[B]).remove();C=$(C);createDiv(C)}}function showHide(D,B,A){var E=D;var G=B;var F=A;for(var C=0;C<E.length;C++){var H=Element.identify(G[C]);if(H!="ssName"){if(G[C].hasClassName("vo_cl")&&F=="show"){Element.addClassName((H),"vo_op");Element.removeClassName((H),"vo_cl");E[C].style.display="block"}if(G[C].hasClassName("vo_op")&&F=="hide"){Element.addClassName((H),"vo_cl");Element.removeClassName((H),"vo_op");E[C].style.display="none"}}}}function phQuote(){var B=$("quo").getHeight();var A=(B-210)+"px";$("txt").setStyle({marginTop:"-"+A});$("txtWrap").setStyle({height:A})}function showLoginIFrame(A){document.write('<iframe id="vo_lgFr" class="vo_lgFr" src="'+A+'" scrolling="no" frameborder="0" allowtransparency="true"></iframe>')}function thumbsPrev(A){if(this[A+"Pos"]>0){Effect.MoveBy("vo_"+A+"Itm",0,220,{duration:0.4});this[A+"Pos"]=parseInt(this[A+"Pos"])-220}}function thumbsNext(A){if(this[A+"Pos"]<this[A+"MaxRight"]){Effect.MoveBy("vo_"+A+"Itm",0,-220,{duration:0.4});this[A+"Pos"]=parseInt(this[A+"Pos"])+220}}function slideMe(){imgIndex=imgIndex+1;var A=((imgIndex)/7).ceil();if(A>1){var B=(A-1)*485;galleryNext(B)}}function galleryPrev(A){if(iPos>0){Effect.MoveBy("vo_slide",0,A,{duration:0.4});iPos=iPos-A}}function galleryNext(A){if(iPos<iMaxRight){Effect.MoveBy("vo_slide",0,-A,{duration:0.4});iPos=iPos+A}}function randomImage(C){var B=C.length;var A=(Math.floor(Math.random()*B));return C[A]}function getPositionObject(A){var A=$(A);var B=function(){var C=0;var D=0};B.curleft=0;B.curtop=0;if(A.offsetParent){B.curleft=A.offsetLeft;B.curtop=A.offsetTop;while(A=A.offsetParent){B.curleft+=A.offsetLeft;B.curtop+=A.offsetTop}}return B}function createDiv(H){if(explorer||explorer7){var H=$(H).id;var F=$("banner");var A=getPositionObject(H);var G=Element.getDimensions(H);var I=G.width+"px";var D=G.height+"px";var B=A.curleft+"px";var J=A.curtop+"px";var E=$(H+"_alternate").select("a");if(E!=""){var C='<a href="'+E+'"><img src="'+vSpacer+'" style="position:relative; width:'+I+"; height:"+D+';" /></a>'}else{var C='<img src="'+vSpacer+'" style="position:relative; width:'+I+"; height:"+D+';" />'}Insertion.Top(F,'<div class="maskMe" sifrTag="'+H+'" style="position:absolute; left:'+B+"; top:"+J+"; width:"+I+"; height:"+D+'; border:solid 0px #f00; z-index:10;">'+C+"</div>")}}var textSize=1;function setFont(C){var B=$("body").getStyle("fontSize");if(explorer){var D=35;var A="%";B=Math.floor(B.substring(B,B.length-1))}else{var D=6;var A="px";B=Math.floor(B.substring(B,B.length-2))}if(C=="more"&&textSize<3){$("body").setStyle({fontSize:B+D+A});textSize=textSize+1}if(C=="less"&&textSize>1){$("body").setStyle({fontSize:B-D+A});textSize=textSize-1}}function ismaxlength(C,A){var B=C.getAttribute?parseInt(C.getAttribute("maxlength")):"";if(C.getAttribute&&C.value.length>B){C.value=C.value.substring(0,B);if(A){alert("The maximum amount of text has been entered.")}}}function loadGalImg(A,C){var B=$("imgFLead");if(B!=null){B.src=A}B=$("imgFLeadRef");if(B!=null){B.href=C}}function CMHttpCacheUpdater(B,A){document.write('<div id="'+B+'"></div>');new Ajax.Updater(B,A,{method:"get"})}rc=new Array();rc.EN=new Array();rc.FR=new Array();rc.EN[5]="Login failed. Please try again.";rc.FR[5]="Échec d?ouverture de session.";rc.EN[6]="This feature is currently unavailable. Please try again later.";rc.FR[6]="Cette fonction n'est pas disponible en ce moment. Veuillez r?essayer plus tard.";rc.EN[7]="This feature is currently unavailable. Please try again later.";rc.FR[7]="Cette fonction n'est pas disponible en ce moment. Veuillez r?essayer plus tard.";rc.EN[11]="Error: Display Name is required";rc.FR[11]="Erreur : Le nom ? afficher est obligatoire";rc.EN[12]="Error: Location is required";rc.FR[12]="Erreur : L'endroit est obligatoire";rc.EN[13]="Error: Comment field is empty";rc.FR[13]="Erreur : Le champ de commentaire est vide";var lockTab=false;function se(E){if(!lockTab){var D=document.getElementById("div"+E);var C=document.getElementById("tab"+E);var B=document.getElementById("img"+E);var A=document.getElementById("imgD"+E);if(D){D.style.display="block"}if(C){C.className="vo_on"}if(B){B.style.display="block"}if(A){A.style.display="none"}}}function he(E){if(!lockTab){var D=document.getElementById("div"+E);var C=document.getElementById("tab"+E);var B=document.getElementById("img"+E);var A=document.getElementById("imgD"+E);if(D){D.style.display="none"}if(C){C.className="vo_off"}if(B){B.style.display="none"}if(A){A.style.display="block"}}}function isLoggedIn(){var B=readc("v2010sse");if(B.length>0){var A=B.indexOf("_");if(A>0){cmArr.cu=B.substr(B.indexOf("_")+1)}else{cmArr.cu=""}return true}return false}function rcode(){var A=location.href;var C=A.indexOf("/rc=");if(C>0){C+=4;var B=A.indexOf("/",C+1);return A.substr(C,B-C)}return 0}function readc(D){var C=""+document.cookie;var B=C.indexOf(D);if(B==-1||D==""){return""}var A=C.indexOf(";",B);if(A==-1){A=C.length}return unescape(C.substring(B+D.length+1,A))}function delc(A,C,B){if(readc(A)){var D=new Date();var E=A+"="+((C)?";path="+C:"")+((B)?";domain="+B:"")+";expires="+D.toGMTString();document.cookie=E}}function login(){doLogin(document.forms.login,"targetId","ctxId","txt_email","txt_password")}function doLogin(A,F,E,C,B){A.action=cmArr.ls;A.elements[F].value=cmArr.selfCMId;A.elements[E].value=cmArr.aTopicCMId;var D=cmArr.lang;if(D){D=D.toLowerCase()}else{D="en"}if(!(emailCheck(A.elements[C].value,D))){return }if(A.elements[B].value.length==0){if(D=="en"){alert("The password field is required")}else{alert("Erreur")}return }A.submit()}function loginIp(){doLogin(document.forms.login_ip,"targetId_ip","ctxId_ip","txt_email_ip","txt_password_ip")}function logout(){delc("v2010sse","/",cmArr.cd);$("divLogOut").style.display="none";lockTab=false;he("Sub");se("Log");if(window.location.href.indexOf("https")==0){window.location.href="http://www.vancouver2010.com"}else{window.location.href=window.location.href}}function checkLogin(){var A=rcode();if(isLoggedIn()){he("Sub");se("Log");lockTab=true;$("sp_user").innerHTML=cmArr.cu;$("divLog").style.display="none";$("divLogOut").style.display="block"}else{if(A!=0){$("loginMsg").innerHTML=rc[cmArr.lang][A];if($("loginMsgIp")!=null){$("loginMsgIp").innerHTML=rc[cmArr.lang][A]}lockTab=false;he("Sub");se("Log");$("txt_email").value=unescape(window.location.search.substr(3))}}}function submitRegFormMini(){var A=cmArr.lang;if(A){A=A.toLowerCase()}else{A="en"}var B=$("registerUserFormMini");B.target="_top";if(emailCheck($("txt_email1").value,A)){B.submit()}}function doSC(B){var C=cmArr.lang;var D=$F("txt_alias");if(D==""){alert(rc[C][11]);return }var A=$F("txt_location");if(A==""){alert(rc[C][12]);return }var E=$F("txt_comments");if(E==""){alert(rc[C][13]);return }new Ajax.Request(B,{requestHeaders:{Accept:"text/html"},onSuccess:onSC,parameters:{comment:E,userAlias:D,location:A}})}function onSC(B){var A=B.responseText.evalJSON(true);$("commentsForm").style.display="none";if(A.result==0){$("commentSuccess").style.display="block"}else{$("commentError").style.display="block"}}function checkTA(C,B,A){var D=window.event?event.keyCode:B.which;if((D==32)||(D==13)||(D>47)){if(C.value.length>=A){return false}}}function trimF(B,A){if(B.value.length>A){B.value=B.value.substring(0,A);return false}}function emailCheck(B,U){var Q=0;var T=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var P=/^(.+)@(.+)$/;var N='\\(\\)><@,;:\\\\\\"\\.\\[\\]';var I="[^\\s"+N+"]";var D='("[^"]*")';var O=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var A=I+"+";var M="("+A+"|"+D+")";var J=new RegExp("^"+M+"(\\."+M+")*$");var F=new RegExp("^"+A+"(\\."+A+")*$");var C=B.match(P);if(C==null){if(U=="fr"){alert("Adresse de courriel invalide. Veuillez vérifier l'adresse et essayer de nouveau.")}else{alert("Email address seems incorrect (check @ and .'s)")}return false}var R=C[1];var S=C[2];for(K=0;K<R.length;K++){if(R.charCodeAt(K)>127){if(U=="fr"){alert("Le nom d'usager de l'adresse de courriel contient des caractéres invalides.")}else{alert("Ths username in the email address contains invalid characters.")}return false}}for(K=0;K<S.length;K++){if(S.charCodeAt(K)>127){if(U=="fr"){alert("Le nom de domaine de l'adresse de courriel contient des caractéres invalides.")}else{alert("Ths domain name in the email address contains invalid characters.")}return false}}if(R.match(J)==null){if(U=="fr"){alert("Le nom d'usager de l'adresse de courriel semble invalide.")}else{alert("The username in the email address doesn't seem to be valid.")}return false}var H=S.match(O);if(H!=null){for(var K=1;K<=4;K++){if(H[K]>255){if(U=="fr"){alert("L'adresse IP contenue dans le courriel est invalide.")}else{alert("Destination IP address in email is invalid!")}return false}}return true}var G=new RegExp("^"+A+"$");var E=S.split(".");var L=E.length;for(K=0;K<L;K++){if(E[K].search(G)==-1){if(U=="fr"){alert("Le nom de domaine de l'adresse de courriel semble invalide.")}else{alert("The domain name does not seem to be valid in the email address.")}return false}}if(Q&&E[E.length-1].length!=2&&E[E.length-1].search(T)==-1){if(U=="fr"){alert("L'adresse de courriel doit se terminer par un domaine connu ou un code de pays de deux lettres.")}else{alert("The email address must end in a well-known domain or two letter country.")}return false}if(L<2){if(U=="fr"){alert("Adresse de courriel invalide. Veuillez vérifier l'adresse et essayer de nouveau.")}else{alert("Email address seems incorrect (check @ and .'s)")}return false}return true};



<!--generated: Wed Nov 04 03:31:42 PST 2009, host: '38', release: v.3.0.14 r.9747 id:32468 -->