function hideBanner(){ document.getElementById('rightAd').innerHTML = ""; } function pausePromo(){ } function loadPage(page){ alert("call to loadPage() should not be used!"); /* ajaxRequest(page, "page"); document.location.hash = page; var p2 = page.split(".")[0]; p2 = p2.split("_")[1]; document.title = "devm-games : " + p2; try{ document.getElementById('nav_games').style.opacity=0.5; document.getElementById('nav_devlog').style.opacity=0.5; document.getElementById('nav_about').style.opacity=0.5; if(page == "page_games.php"){ document.getElementById('nav_games').style.opacity=1; }else if(page == "page_devlog.php"){ document.getElementById('nav_devlog').style.opacity=1; }else if(page == "page_about.php"){ document.getElementById('nav_about').style.opacity=1; } }catch(e){ } */ } // gameShortName, buttonId function loadSwf(game, button){ var gameData = new Array(); gameData.push( ["tevlon", "tevlon/tevlon.swf", 123, 550, 400]); gameData.push( ["tilt", "http://devm.eu/http/game_data/tilt.swf", 1, 650, 500]); gameData.push( ["connection", "http://devm.eu/http/game_data/connection.swf", 1, 650, 580]); gameData.push( ["steamofwar", "http://devm.eu/http/game_data/steamofwar_fastgames.swf", 1, 650, 550]); gameData.push( ["rift", "http://devm.eu/http/game_data/rift_viral.swf", 1, 650, 500]); gameData.push( ["cubor", "http://devm.eu/http/game_data/cuber.swf", 1, 600, 500]); gameData.push( ["jetvelocity", "http://devm.eu/http/game_data/jet_velocity_viral.swf", 1, 600, 400]); gameData.push( ["toad", "http://devm.eu/http/game_data/toad_trouble_v151.swf", 1, 600, 550]); gameData.push( ["jetvel2", "http://devm.eu/http/game_data/jet_velocity_2-viral.swf", 1, 600, 400]); gameData.push( ["surroubble", "http://devm.eu/http/game_data/surroubble-web.swf", 1, 640, 600]); gameData.push( ["tharsis", "http://devm.eu/http/game_data/tharsis.swf", 1, 640, 480]); gameData.push( ["rectrot", "http://devm.eu/http/game_data/rectrot_web.swf", 1, 640, 400]); gameData.push( ["ragegiraffe", "http://devm.eu/http/game_data/rage.swf", 1, 640, 480]); var choosenGameData = null; for(var i=0; i= 10){ document.location.hash = game; var fo = new SWFObject( choosenGameData[1]+"?i="+choosenGameData[2], "obj", choosenGameData[3], choosenGameData[4], "9", "#000000"); fo.addParam("allowScriptAccess", "always"); fo.addParam("allowFullScreen", "true"); fo.addParam("wmode", "direct"); fo.write("swfDiv"); var directUrl = "http://devm-games.com/?game=" + game; document.getElementById('swfInfoDiv').innerHTML = "Direct link to this game: " + directUrl + ""; }else{ document.getElementById('swfDiv').innerHTML = "

This game needs flash player 10 or newer

Get it here: adobe.com

"; } document.title = "devm-games : " + game; //document.getElementById('shareDiv').innerHTML = "" document.getElementById('shareDiv').innerHTML = ""; //ajaxRequest("share.htm", "shareDiv"); // loadComments(game); try{ pageTracker._trackPageview("/ajax/games/"+game ); }catch(e){ } } // gameShortName function loadComments(game, page, showForm){ if(page == undefined) page = 0; if(showForm == undefined) showForm = true; ajaxRequest("comments.php?game="+game+"&page="+page+"&showform="+showForm, "commentsDiv"); } function postComment(game){ if(document.getElementById("formName").value == "" || document.getElementById("formComment").value == "") return; var poststr = "name=" + encodeURI( document.getElementById("formName").value ) + "&comment=" + encodeURI( document.getElementById("formComment").value ) + "&check=" + encodeURI( document.getElementById("formCheck").value ); // alert(poststr); ajaxRequest("comments.php?game="+game+"&post=true", "commentsDiv", poststr); } function callback(serverData, serverStatus, id) { if(serverStatus == 200){ var div = document.getElementById(id); div.innerHTML = serverData; var x = div.getElementsByTagName("script"); for(var i=0;i