// ------------------------------------------------------------------------------------- // // -------------------- Site wide flash detection ---------------------------------- // // ------------------------------------------------------------------------------------- // function checkFlash() { var bool_flash; if (!swfobject.hasFlashPlayerVersion("6.0.0")) { bool_flash = false; } else { bool_flash = true; } return bool_flash; } function flashPrompt() { tb_show('','/ajax/install-flash-player.html?height=511&width=668&modal=true',''); makeThickboxRed(); } // Run Flash test var clientHasFlash = checkFlash(); function checkSiteWhere() { var h = String(window.location.hostname).indexOf("member", 0); var ret; if(h > -1) { ret = "member"; } else { ret = "nonmember"; } return ret; } function checkPageName() { var h = String(window.location.pathname); var slash = h.lastIndexOf("/"); var page = h.slice(slash+1, h.length); return page; } var jsPagename = checkPageName(); // Javascript sitewhere check var jsSitewhere = checkSiteWhere(); function templateInit() { foHeaderNav(); } // flash popup if(jsSitewhere == "member" && clientHasFlash == false && jsPagename !== "furrygames.html") { $(document).ready(function() { flashPrompt(); }); } // GameLoader Popup function openGame(g) { if(jQuery.browser.safari) { gamewindow = window.open('furrygames.html?game='+g,'furrygames','height=473,width=750,resizable=no,scrollbars=no,status=no'); gamewindow.focus(); } else { gamewindow = window.open('furrygames.html?game='+g,'furrygames','height=470,width=750,resizable=no,scrollbars=no,status=no'); gamewindow.focus(); } } function foHeaderNav() { var flashvars = {}; flashvars.urlHome= "/"; flashvars.urlGames= "/games"; flashvars.urlExtras= "/extras"; flashvars.urlShop= "/shop"; flashvars.urlAdopt= "/adopt"; flashvars.urlMyPets= "/mypets"; flashvars.urlHelp= "/help"; flashvars.urlLogo = "/"; var attributes = { id: "headerNavFlash", name: "headerNavFlash" }; var params = { wmode: "opaque" }; try { swfobject.embedSWF("/flash/headernav.swf", "flashheader", "995", "127", "9.0.0", attributes,flashvars, params); } catch(e) {} } /* function foGameLoader() { var flashvars = {}; flashvars.game = swfobject.getQueryParamValue("game"); var attributes = { id: "gameLoaderFlash", name: "gameLoaderFlash" }; var params = { wmode: "opaque" }; swfobject.embedSWF("/flash/gameloader.swf", "gameloader", "752", "472", "9.0.0", attributes, flashvars, params); } */ // ------------------------------------------------------------------------------------- // // ---------------- Splash page button functions ---------------------------------- // // ------------------------------------------------------------------------------------- // $(document).ready( function() { //alert(jQuery.browser.msie); if(jQuery.browser.msie == true) { // Fixes rndBox borders in IE $(".rndBox.liquid .tl, .rndBox.liquid .tr, .rndBox.liquid .bl, .rndBox.liquid .br").height("8px"); $(".rndBox.liquid .tl, .rndBox.liquid .tr, .rndBox.liquid .bl, .rndBox.liquid .br").width("8px"); $(".rndBox.liquid").children(".l").height($(this).height()); $(".rndBox.liquid").children(".r").height($(this).height()); $(".rndBox.liquid .t, .rndBox.liquid .b").height("3px"); $(".rndBox.liquid").children(".t").width($(this).width()); $(".rndBox.liquid").children(".b").width($(this).width()); } $(".code").hover( function() { $(".code .over").show(); $(".code .over").animate( { top: "-49px" }, 300 ) }, function() { $(".code .over").fadeOut( "fast", function() { $(this).hide(); $(this).css("top", "0px"); } ); } ) $(".tour").hover( function() { $(".subnav").fadeIn("fast"); $(".tour .over").show(); $(".tour .over").animate( { top: "-48px" }, 300 ) }, function() { $(".subnav").fadeOut("fast"); $(".tour .over").fadeOut( "fast", function() { $(this).hide(); $(this).css("top", "0px"); } ); } ) $(".adopt").hover( function() { $(".adopt .over").show(); $(".adopt .over").animate( { top: "-44px" }, 300 ) }, function() { $(".adopt .over").fadeOut( "fast", function() { $(this).hide(); $(this).css("top", "0px"); } ); } ) }); // ------------------------------------------------------------------------------------- // // ----------------- Furry Falls Thickbox Addons ---------------------------------- // // ------------------------------------------------------------------------------------- // function makeThickboxBlue(){ $(".TB_overlayBG").css('background-color','#004c62'); $("#TB_window").addClass('blueThickbox'); } function makeThickboxGreen(){ $(".TB_overlayBG").css('background-color','#006206'); $("#TB_window").addClass('greenThickbox'); } function makeThickboxRed(){ $(".TB_overlayBG").css('background-color','#620000'); $("#TB_window").addClass('redThickbox'); } $(document).ready(function(){ $(".blueBox").click(function(){makeThickboxBlue();}); $(".redBox").click(function(){makeThickboxRed();}); $(".greenBox").click(function(){makeThickboxGreen();}); }); // ------------------------------------------------------------------------------------- // // ---------------- Fix footer function ---------------------------------------------- // // ----------------------------------------------------------------------------------- // function submit_adoption_request() { var new_url = ''; code = document.getElementById('character_code').value; c_name = document.getElementById('character_name').value; c_name = c_name.replace(/ /g, "%20"); new_url = "/adopt/process-adoption.html?height=511&width=668&modal=true&code=" + code + "&name=" + c_name; document.getElementById('adopt_button').alt = new_url; } function tb_kill () { var browserName=navigator.appName; if (browserName=="Microsoft Internet Explorer") { window.location.reload(); } }