function largedoc_window(a){options="scrollbars=yes,resizable=yes,dependent=yes";doc_window("loadDocument&miDocument="+escape(a),options,680,700,0,1)}function screenshot(a){screenshot800(a)}function screenshot800(a){options="scrollbars=no,resizable=no,dependent=yes";doc_window("loadScreen&miDocument="+escape(a),options,800,600,0,1)}function screenshot814(a){options="scrollbars=no,resizable=no,dependent=yes";doc_window("loadScreen&miDocument="+escape(a),options,814,595,0,1)}function screenshot576(a){options="scrollbars=no,resizable=no,dependent=yes";doc_window("loadScreen&miDocument="+escape(a),options,576,460,0,1)}function galaxy1200(a){options="scrollbars=no,resizable=yes,dependent=no";if(typeof a=="undefined"){a="0"}portal_window("gxRoot&miZoomLevel="+a,options,1220,820,0,1)}function screenintro(a){options="scrollbars=no,resizable=no,dependent=yes";doc_window("loadIntro&miDocument="+escape(a),options,775,500,0,1)}function learn(a){options="scrollbars=no,resizable=yes,dependent=yes,alwaysRaised=yes,menubar=no,toolbar=no,location=no,status=no";if(a&&a!=""){miLesson="&miLesson="+escape(a)}else{miLesson=""}doc_window("learn"+miLesson,options,1048,700,0,0)}function tip_window(a){options="scrollbars=yes,resizable=yes,dependent=yes";doc_window("tipwindow&miTip="+escape(a),options,400,300,0,0)}function tutorial(a){options="scrollbars=yes,resizable=yes,dependent=yes";doc_window("loadDocument&miDocument="+escape(a),options,800,400,0,0)}function com_window(b,a){options="scrollbars,dependent=yes";top.comWindow=remote_window(b,a,options,750,650,0,1);if(this.opener!=null){if(this.opener.top!=null){this.opener.top.comWindow=top.comWindow}}}function new_window(b,a){options="scrollbars=yes,resizable=yes,dependent=yes";show_window(b,options,275,450,0,a)}function same_window(b,a){options="scrollbars=yes,resizable=yes,dependent=yes";show_window(b,options,325,450,0,a)}function award_window(b,a){options="dependent=yes";remote_window(b,a,options,600,450,0,1)}function remote_window(f,d,c,e,a,g,b){return doShowWindow(f,"wwwPortal",d,c,e,a,g,b)}function doc_window(d,c,e,a,f,b){doShowWindow(location.host,"wwwDocs",d,c,e,a,f,b)}function portal_window(d,c,e,a,f,b){return doShowWindow(location.host,"wwwPortal",d,c,e,a,f,b)}function show_window(d,c,e,a,f,b){return doShowWindow(location.host,"wwwCountry",d,c,e,a,f,b)}function opener_window(a){var b=this.opener;var c=false;if(b!=null){c=true}else{b=this}if(b.top!=null){b=b.top}b.location=a;if(c){this.close()}}function openSideBarXL(a,b){openSideBar(a,b,"xl")}function openSideBarXS(a,b){openSideBar(a,b,"xs")}function openSideBar(a,e,d){var c="http://"+a+"/cgi-bin/cgi2nova?"+e+"&miSideBar=1";var b="scrollbars=yes,resizable=yes,pdependent=yes,alwaysRaised=yes,width=480";if(!d||d!="xs"){d="xl"}c+="&miSideBarSize="+d;remote=window.open(c,"scsidebar",b,true);remote.opener=window;remote.opener.name="opener"}function sbIgnore(a){}function portalwin(c,e){var d="scrollbars=yes,resizable=yes,dependent=no,alwaysRaised=yes";var f=1024;var b=768;var a;if(f>0){d=d+",width="+f}if(b>0){d=d+",height="+b}a=window.open(e,c,d,true);a.focus();return a}function blogwin(c,e){var d="scrollbars=yes,resizable=yes,dependent=no,alwaysRaised=yes";var f=1024;var b=960;var a;if(f>0){d=d+",width="+f}if(b>0){d=d+",height="+b}a=window.open(e,c,d,true);a.focus();return a}function voidwin(a,b){ignore=portalwin(a,b);return}function doShowWindow(h,d,b,k,a,g,f,c){var j;var e="cgi2nova?SN_ADDRESS="+d+"&SN_METHOD="+b;if(this.screenX==null){x=this.screen.availWidth-a-10}else{right=this.screenX+this.outerWidth;if(a<this.screen.availWidth-right){x=right+10}else{x=this.screenX-a-10}if(x<=0){x=1}}if(a>0){k=k+",width="+a}if(g>0){k=k+",height="+g}if(c==1){e="http://"+h+"/cgi-bin/"+e}if(f==1){j=window.open(e,"simcountry"+Math.round(Math.random()*1000),k,true)}else{if(b.substring(0,5)=="pcnew"){windowid="pclis"}else{windowid=b.substring(0,5)}windowid="simcountry"+windowid;j=window.open("",windowid,k);if(j){j.location=e;j.focus()}}return j}function showPortalMenu(a,c){var b;b=top.frames.simctop;if(b==null){return}if(a=="portalmenu"&&c==""){a="noportalmenu"}if(a=="portalmenu"){return}if(top.portalmenu!=null&&top.portalmenu==a){return}top.portalmenu=a;var d=b.location;d.replace("/cgi-bin/cgi2nova?SN_ADDRESS=wwwPortal&SN_METHOD=showMenu&miDocument="+a)}function closeComWindow(){if(!(top.comWindow==null)){if(!top.comWindow.closed){top.comWindow.close()}}}function toggleCheckList(a,d){var c;c=this.document.forms[a];if(c==null){return}for(i=0;i<c.elements.length;i++){var b=c.elements[i];var e;e=b.name.indexOf(d);if(e==-1){continue}if(b.checked){b.checked=false}else{b.checked=true}}}function submitForm(a){var b;b=this.document.forms[a];if(b!=null){b.submit()}}function startIntroTour(){var a=window.top;if(a==null){alert("no top window?");return}a.location.replace("/introtour.html")}function blogads_left(){var b=this.document.getElementById("blogads_left");var a="/blogadsleft.html";if(b==null){return}b.innerHTML='<iframe style="background: #eef2f7;" frameborder="0" width=100% height=2000 border="0" src="'+a+'">'}function blogads_right(){var b=this.document.getElementById("blogads_right");var a="/blogadsright.html";if(b==null){return}b.innerHTML='<iframe style="background: #eef2f7;" frameborder="0" width=100% height=2000 border="0" src="'+a+'">'};