main="index.php";
pmax=73;
pmin=4;
openbe=0
function header(men,br){
var _GET = window.location.search.substr(1);
	document.write("<html>"+
"<head>"+
"<title>Komix-games</title>"+
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">"+
"<link href=\"kg1.css\" rel=\"stylesheet\" type=\"text/css\">"+
"</head>"+
"<body background=\"bg.jpg\" bgcolor=\"#FFFFDD\" bgproperties=\"fixed\"><div align=\"center\" class=\"kg1\"> "+
"  <table width=\"800\" border=\"0\" bgcolor= \"#FFFFBB\">"+
"    <tr>"+
"      <td height=\"100\" colspan= \"3\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"800\" height=\"100\">"+
"          <param name=\"movie\" value=\"header.swf\">"+
"          <param name=\"quality\" value=\"high\">"+
"          <param name=\"wmode\" value=\"transparent\">"+
"          <embed src=\"header.swf\" width=\"800\" height=\"100\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\"></embed></object>"+
"		  </td>"+
"    </tr>");
if(!br){
document.write("	  <tr>"+
"      <td height=\"30\" colspan= \"3\"></td>"+
"    </tr>");
}
document.write("  <tr>");
switch(men){
case 1:
document.write("<td width=\"50\"  align=\"\" > </td>");
break;
default:
	document.write("<td width=\"150\"  align=\"left\" valign=\"top\" >");
	menuz();
	document.write("</td>");
}
document.write("<td width=\"500\" align=\"center\"  valign=\"top\">");
}
function menuz(){
	link(main,"Blog");
	link("gameselect.php","Games");
	link("devl.php","Dev-Blog");
	link("draws.php?p="+pmax,"Drawings");
	link("credits.htm","Credits");
	document.write("<br><br><br>&nbsp;&nbsp;&nbsp;Links:<br><br>");
	linkpic("TheSwainBanner.jpg","http://www.theswain.com target =_blank");
	linkpic("JiG.gif","http://www.jayisgames.com target =_blank");
}
function br(){
	document.write("<br>");
}
function linkpic(nam,targ,d){
	document.write("&nbsp;&nbsp;&nbsp;<a href="+targ+" ><img src="+nam+"></a>");
	if(!d){
	document.write("<br>");
	}
}
function link(targ,nam,d){
	pic=Math.round(Math.random()*10.4);
	targ="<a href=\""+targ+"\">";
	document.write("&nbsp;&nbsp;&nbsp;"+targ+"<img src=men"+pic+".png></a>"+targ+""+nam+"</a>");
	if(!d){
	document.write("<br>");
	}
}
function endit(men){
google_ad_client = "pub-3657244249786097";
google_ad_channel = "1310636303";
switch(men){
case 1:
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
tab="    <td width=\"50\"><td></tr><tr><td height=\"30\" colspan= \"3\"></td></tr><tr><td colspan= \"3\" align=\"center\" valign=\"top\">";
break;
default:
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
tab="    <td width=\"180\" align=\"right\" valign=\"top\">";
}
google_color_border = "FFFFFF";
google_color_bg = "FFFFCC";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
	document.write("</td>"+tab+
"<script type=\"text/javascript\""+
"  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">"+
"</script>");
}
function sitestart(tit){
document.write("<div align=left class=kg1><img src=table"+tit+".png height=60 width=300>"+
"<br>"+
"<table width = 400><td width=35><td>");
openbe=1;
}
function siteend(come,comen,coment){
document.write("</table></div>"+
"<div align=right>"+comen+"<img src=table1"+come+".png height=60 width=300>"+coment+"</div>"+
"<br>");
openbe=0
}
function tab1(){
document.write("<table> <tr><td>");
}
function tab2(){
document.write("</td><td width=10></td><td>");
}
function tab3(){
document.write("</td></tr><tr height=10></tr><tr><td>");
}
function tab4(){
document.write("</td></td></table>");
}
function game(gam){
	switch (gam) { 
	    case "Coil":
		xs=500;
		ys=500;
		break;
    case "sp":
		xs=687;
		ys=500;
		break;
    default: 
		xs=550;
		ys=400;
	}
	gam="http://komix-games.com/"+gam+".swf";
	xss=Math.max(0,(700-xs)/2);
	document.write("<center>Loading might take some time.<br><table width=700><tr><td width="+xss+"><td width="+xs+"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+ xs+"\" height=\""+ ys+"\">"+
"          <param name=\"movie\" value=\""+ gam+"\">"+
"          <param name=\"quality\" value=\"high\">"+
"          <param name=\"wmode\" value=\"window\">"+
"          <embed src=\""+ gam+"\" width=\""+ xs+"\" height=\""+ ys+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"window\"></embed></object><td><td width="+xss+"></tr></table>");
}
function gamelink(gam){
	gaml="http://komix-games.com/"+gam+".gif";
	gama=gam;
	switch (gam){
	case "thr":
	gama="Twin Hobo rocket";
	break;
	case "Speck_Oppression":
	gama="Speck Oppression";
	break;
	case "r3d1":
	gama="Random 3D Ep1";
	break;
	case "RaS":
	gama="Rings and Sticks";
	break;
	case "Bouncy_Jump":
	gama="Bouncy Jump";
	break;
	case "sp":
	gama="Car Invaders";
	break;
	case "BHgame":
	gama="Blockhead";
	break;
	case "Grenade_Spin":
	gama="Grenade Spin";
	break;
	}
	document.write("<table width=120 height=100 bgcolor=FFFFCC valign= middle><tr><td width=120 height=90 align= center><a href = game.php?game="+gam+"><img src =\""+gaml+"\"></a></td></tr><tr><td width=100 align = center><a href = game.php?game="+gam+">"+gama+"</a></td></tr></table></a>");
}
function picture (pict){
	document.write("<img src=http://komix-games/draws/sketch"+pict+".jpg>");
}
cre1="by <a href = http://coldstoragedesigns.com/ target=_blank>Edmund McMillen</a>";
cre2="by <a href = http://theswain.com/ target=_blank>Micheal Swain</a>";
cre3="by <a href = http://gamebalance.com/ target=_blank>Arseniy Desrosiers (former Arseniy Shklyaev)</a>";
cre4="by <a href = http://cockroach.se target=_blank>Anders Gustafsson</a>";
cre5="by <a href = http://www.tinhattrio.com/ target=_blank>Tin Hat Trio</a>";
cre6="by <a href = http://www.kaada.no/ target=_blank>Kaada</a>";
