function opengame1(src,name,width,height,type, fullname, trueurl, type2, subtype2, no2){

theUrl = "http://tool.5stone.net/gamefiles/"+src;

if (type == '9') {
theUrl = "http://tool.5stone.net/gamefiles/"+src;
} else
if (type == '8') {
theUrl = "swphp_include/"+src+".php?theurl=http://tool.5stone.net/gamefiles/";
theurl2="http://tool.5stone.net/gamefiles/";
} else
if (type == '2') {
theUrl = "swphp_include/"+src+".php?theurl=http://tool.5stone.net/gamefiles/dcr/";
theurl2="http://tool.5stone.net/gamefiles/dcr/";
} else 
if (type == '101') {
theUrl = "nouse";
theurl2="101";

} else {
theUrl = "swphp_include/"+src+".php?theurl=http://tool.5stone.net/gamefiles/dcr/";
theurl2="http://tool.5stone.net/gamefiles/dcr/";
}
thename = name;
theW =  width;
theH =  height; 

//gamewin = window.open("http://game.5stone.net/minigame_t/minigame_t.php?from="+escape(document.URL)+"&freegame=1&game="+name+"&from="+escape(document.URL),"_blank","toolbar=yes,location=no,resizable=yes,statusbar=no,status=no,scrollbars=yes,menubar=no");
gamewin = window.open("http://www.5stone.net/game/minigame_t3.php?from="+escape(document.URL)+"&freegame=1&game="+name+"&from="+escape(document.URL),"_blank","toolbar=yes,location=no,resizable=yes,statusbar=no,status=no,scrollbars=yes,menubar=no");


}

function opengame3(src,name,width,height,root,comment,jar,fullname,trueurl, type2,subtype2,no2) {


addh = 135+10;
thename = name; 
theW = width; 
theH =  height;
theB =  "http://game.5stone.net/javaphp_include/"+root; 
//theBASEURL = "http://www.5stone.net/game_archive/javafiles/gamecenter/"+root;
theBASEURL = "http://www.5stone.net/game_archive/javafiles/gamecenter/"+root;

openwin = window.open(theBASEURL+"minigame_t.php?from="+escape(document.URL)+"&freegame=1&game="+name,"_blank","toolbar=yes,location=no,resizable=yes,statusbar=no,status=no,scrollbars=yes,menubar=no");

//openwin = window.open(theBASEURL+"minigame_t.php?from="+escape(document.URL)+"&freegame=1&type2="+type2+"&subtype2="+subtype2+"&no2="+no2+"&type=java&root="+root+"&theB="+theB+"&thename="+thename+"&theW="+theW+"&theH="+theH,"_blank", 'toolbar=no,location=no,resizable=yes,status=no,scrollbars=on,menubar=no,height='+(height+addh)+',width='+(width+305)+"'");
}


function opengame(gameno) {
if (gameno == "ebs") {
window.open('http://game.5stone.net/cgiindex.php?NAME=ebs','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "ffa") {
window.open('http://game.5stone.net/cgiindex.php?NAME=ffa','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "hako") {
window.open('http://game.5stone.net/cgiindex.php?NAME=hako','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}
if (gameno == "hakoniwa") {
window.open('http://game.5stone.net/cgiindex.php?NAME=hakoniwa','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "qhako") {
window.open('http://game.5stone.net/cgiindex.php?NAME=qhako','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "sangoku") {
window.open('http://game.5stone.net/cgiindex.php?NAME=sangoku','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "wor") {
window.open('http://game.5stone.net/cgiindex.php?NAME=roses0','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "dqa") {
window.open('http://game.5stone.net/cgiindex.php?NAME=dqa','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "msvs") {
window.open('http://game.5stone.net/cgiindex.php?NAME=msvs','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "vagoo") {
window.open('http://game.5stone.net/cgiindex.php?NAME=vagoo','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "sos2") {
window.open('http://game.5stone.net/cgiindex.php?NAME=sos2','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "typing") {
window.open('http://game.5stone.net/cgiindex.php?NAME=typing','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "sgsoccer") {
window.open('http://game.5stone.net/cgiindex.php?NAME=sgsoccer','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "gekipawa") {
window.open('http://game.5stone.net/cgiindex.php?NAME=gekipawa','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}


if (gameno == "triglav") {
window.open('http://game.5stone.net/cgiindex.php?NAME=triglav','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "soldout") {
window.open('http://game.5stone.net/cgiindex.php?NAME=soldout','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "sin") {
window.open('http://game.5stone.net/cgiindex.php?NAME=ora_plus','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "net_sail") {
window.open('http://game.5stone.net/cgiindex.php?NAME=netsail','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

if (gameno == "people") {
window.open('http://game.5stone.net/cgiindex.php?NAME=people','CGIGAMEWIN','toolbar=yes,location=no,resizable=yes, status=no,scrollbars=yes,menubar=no,height=700,width=1000');
}

//MINI
if (gameno=="javanoid") {
opengame3('1','javanoid',400,360,'javanoid/','','javanoid.jar,pub.jar','ブロック崩し','trueurl','java','a','1');
} 
if (gameno=="super") {
opengame3('6','super',580,450,'super/','','','スーパー五目並べ','trueurl','java','b','1');
}
if (gameno=="jslaom") {
opengame3('1','jslaom',400,320,'jslaom/','','','Jet slalom','trueurl','java','a','1');
}
if (gameno=="bustout") {
opengame3('3','bustout',300,350,'bustout/','','','Bustout','trueurl','java','a','1');
}
if (gameno=="dugout") {
opengame3('1','dugout',420,400,'dugout/','','dugout.jar,pub.jar','Dugout','trueurl','java','a','1');
}
if (gameno=="iceblox") {
opengame3('1','iceblox',410,400,'ice/','','ice.jar,pub.jar','Iceblox','trueurl','java','a','1');
}
if (gameno=="PacMan") {
opengame3('3','PacMan',526,510,'pacman/','','','PacMan','trueurl','java','a','1');
}
if (gameno=="snakepit") {
opengame3('4','snakepit',625,510,'snakepit/','','','へび','trueurl','java','a','1');
}
if (gameno=="AF2") {
opengame3('1','AF2',400,360,'AF2/','','AF2.jar','戦闘機','trueurl','java','s','1');
}
if (gameno=="torpedo") {
opengame3('4','torpedo',550,380,'torpedo/','','','魚雷発射','trueurl','java','s','1');
}
if (gameno=="warp") {
opengame3('1','warp',400,450,'warp/','','warp.jar,pub.jar','Warp','trueurl','java','s','1');
}
if (gameno=="ufoattack") {
opengame3('5','ufoattack',300,440,'ufoattack/','','','UFO','trueurl','java','s','2');
}
if (gameno=="tank113") {
opengame3('6','tank113',500,450,'tank113/','','','The Tank','trueurl','java','s','2');
}
if (gameno=="shoot124_2") {
opengame3('5','shoot124_2',500,500,'sniper12/','','','The Sniper','trueurl','java','s','2');
}
if (gameno=="TankGame") {
opengame3('4','TankGame',620,440,'TankGame/','','','TankGame','trueurl','java','s','3');
}
if (gameno=="soccer") {
opengame3('4','soccer',552,380,'soccer/','','','サッカー','trueurl','java','sp','1');
}
if (gameno=="nightdrive") {
opengame3('4','nightdrive',400,360,'nightdrive/','','','ドライブ','trueurl','java','sp','1');
}
if (gameno=="linx") {
opengame3('4','linx',400,330,'linx/','','','ゴルフ','trueurl','java','sp','1');
}
if (gameno=="longball") {
opengame3('5','longball',450,450,'longball/','','','野球','trueurl','java','sp','1');
}
if (gameno=="basket") {
opengame3('4','basket',540,440,'bbapplet/','','','バスケットボール(Single Player)','trueurl','java','sp','1');
}
if (gameno=="Billi") {
opengame3('6','Billi',440,550,'Billi/','','','ビリビリや〜ど','trueurl','java','sp','2');
}
if (gameno=="cgolf") {
opengame3('4','cgolf',600,600,'cgolf/','','','3Dゴルフ','trueurl','java','sp','2');
}
if (gameno=="PonQ") {
opengame3('6','PonQ',400,480,'PonQ/','「<A href=/game/jars/gamecenter/PonQ/help.html target=_blank>遊び方</A>」　「<A href=http://www.shiftup.net/ target=_blank>製作者のページ</A>」','PonQ.jar','ポン太の冒険','trueurl','java','ad','1');
}
if (gameno=="cliffie") {
opengame3('3','cliffie',700,480,'cliffie/','','','郵便配達人','trueurl','java','ad','1');
}
if (gameno=="tux") {
opengame3('3','tux',400,360,'tux/','','','ペンギン','trueurl','java','ad','1');
}
if (gameno=="mc_1_0") {
opengame3('6','mc_1_0',530,370,'mc_1_0/','','','まさお コンストラクション(旧)','trueurl','java','ad','1');
}
if (gameno=="petm_kset") {
opengame3('6','petm_kset',530,370,'petm_kset/','','','ペットモンスター','trueurl','java','ad','2');
}
if (gameno=="wwamk293") {
opengame3('4','wwamk293',580,480,'wwa1/','','','Cave Dugeonレベル１','trueurl','java','ro','1');
}
if (gameno=="wwamk293_2") {
opengame3('4','wwamk293_2',580,480,'wwa2/','','','Cave Dugeonレベル２','trueurl','java','ro','1');
}
if (gameno=="wwamk293_3") {
opengame3('4','wwamk293_3',580,480,'wwa3/','','','ファンタジーアイランド','trueurl','java','ro','1');
}
if (gameno=="pandareverse") {
opengame3('6','pandareverse',400,380,'pandareverse/','','','パンダのオセロ','trueurl','java','b','1');
}
if (gameno=="bridge") {
opengame3('4','bridge',500,510,'bridge/','','','橋かけ','trueurl','java','b','1');
}
if (gameno=="puzzle15") {
opengame3('4','puzzle15',380,380,'puzz15/','','','15パズル','trueurl','java','b','1');
}
if (gameno=="checkers") {
opengame3('4','checkers',480,400,'checkers/','','','Checkers','trueurl','java','b','2');
}
if (gameno=="bingo_IE") {
opengame3('4','bingo_IE',420,360,'bingo_IE/','','','ビンゴ','trueurl','java','o','1');
}
if (gameno=="catkit") {
opengame3('4','catkit',420,420,'catkit/','','','ねこホッケー','trueurl','java','o','1');
}
if (gameno=="fish") {
opengame3('4','fish',420,360,'fish/','','','魚ゲーム','trueurl','java','o','1');
}
if (gameno=="Celebrity_Slugfest_with_Bill_Gates") {
opengame1('GP010','Celebrity_Slugfest_with_Bill_Gates',500,360,'1','ボクシング','trueurl','shockwave','sp','1');
}
if (gameno=="bowling") {
opengame1('38','bowling.',520,320,2,'ボーリング','trueurl','shockwave','sp','1');
}
if (gameno=="Snowboard_Alley") {
opengame1('18','Snowboard_Alley',520,350,2,'スノーボード','trueurl','shockwave','sp','1');
}
if (gameno=="braving_kewlbox") {
opengame1('braving_kewlbox','braving',520,410,2,'Braving','trueurl','shockwave','ad','2');
}
if (gameno=="Quatris") {
opengame1('GP063','Quatris',450,350,'1','テトリス','trueurl','shockwave','a','1');
}
if (gameno=="Flaps_Jr") {
opengame1('7','Flaps_Jr.',400,380,2,'フラップ','trueurl','shockwave','a','1');
}
if (gameno=="war_on_terrorism") {
opengame1('war_on_terrorism','war_on_terrorism',600,450,'1','テロと戦い','trueurl','shockwave','s','3');
}

}
