var IMG_DIR="http://images.simcountry.com/";var BUTTON_PREFIX="b";var POPUP_PREFIX="w";var POPUP_VERSION="21";var GIF_POSTFIX=".gif";var JPG_POSTFIX=".jpg";var MOUSEOVER_POSTFIX="Over";var POPUP_WINDOW="PopupWindow";var POPUP_IMAGE="PopupImage";var FORWARD_PAGE=1;function highlightButton(b){var a=this.document.images[b];if(a==null){return}a.src=IMG_DIR+BUTTON_PREFIX+b+MOUSEOVER_POSTFIX+GIF_POSTFIX}function defaultButton(b){var a=this.document.images[b];if(a==null){return}a.src=IMG_DIR+BUTTON_PREFIX+b+GIF_POSTFIX}function showPopupWindow(c){var b,a;FORWARD_PAGE=0;b=this.document.getElementById("bg");if(b!=null){b.style.opacity="0.4";b.style.filter="alpha(opacity=40)"}a=this.document.images[POPUP_IMAGE];if(a==null){alert("x2");return}a.src=IMG_DIR+"noimg.gif";a.src=IMG_DIR+POPUP_PREFIX+c+POPUP_VERSION+JPG_POSTFIX;b=this.document.getElementById(POPUP_WINDOW);if(b==null){alert("x3");return}b.style.display="block"}function hidePopupWindow(){var b,a;FORWARD_PAGE=0;b=this.document.getElementById("bg");if(b!=null){b.style.opacity="1.0";b.style.filter="alpha(opacity=100)"}b=this.document.getElementById(POPUP_WINDOW);if(b==null){alert("x3");return}b.style.display="none"}function togglePopupWindow(b){var a;a=this.document.getElementById(POPUP_WINDOW);if(a==null){return}if(a.style.display=="none"){showPopupWindow(b)}else{hidePopupWindow(b)}}function loadedPopupWindow(){var a;a=this.document.getElementById(POPUP_WINDOW);if(a==null){alert("xloaded");return}a.style.display="block"}function enterGame(){var a=window.top;if(a==null){alert("no top window?");return}a.location.replace("/scmain.html")}function enterIntro(){var a=window.top;if(a==null){alert("no top window?");return}a.location.replace("/introtour.html")}function initForwardS(b,a){if(!a){a=4}FORWARD_PAGE=1;setTimeout('doForward("'+b+'")',a*1000)}function doForward(b){if(!FORWARD_PAGE){return}var a=window.top;if(a==null){alert("no top window?");return}a.location.replace("/"+b+".html")};