var xmlHttp
var What

 

function xloadGame(kind)
{ 
 What='G';
 document.getElementById("kpiGames").innerHTML='retrieving ... '
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
 {
  alert ("Your browser does not support Ajax to play games")
  return
  }
 //var url="kpiProxy.php?u=loadswf.php?k="+kind
 //url=url+"&sid="+Math.random()
 document.getElementById("kpiGames").innerHTML=url
 xmlHttp.onreadystatechange=stateChanged 
 xmlHttp.open("GET",url,true)
 xmlHttp.send(null)
}

function loadGame(kind) 
{
  if (kind=='JJ') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/Jargon/jargonjumble.swf?Filter=All" width=500 height=300 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='SD') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/Sudoku/sudokuccc.swf" width=242 height=430 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='AM') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/Chaos/chaosCCC.swf" width=500 height=510 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='GW') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/GuessWord/GuessWordCCC.swf" width=500 height=500 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='FF') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/CommunityFeud/ffeud.swf" width=242 height=540 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='WP') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/WordGames/gridwordsCCC.swf" width=500 height=500 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='WT') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/WordGames/wtetrisCCC.swf" width=500 height=500 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='BB') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/BB/bb.swf" width=700 height=500 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='BG') outMsg='Coming Soon!&nbsp;';
//  if (kind=='BG') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/Bingo/smsAC-2006-01-01/bingo.swf" width=500 height=500 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='XW') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/WordGames/xwordsCCC.swf" width=500 height=500 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='PP') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/PrizePix/ppccc.swf" width=500 height=500 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='RV') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/Revelation/revelation.swf" width=485 height=325 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  if (kind=='FEEDBACK') outMsg='&nbsp; <object><embed src="http://www.kprobe.com/kprobe/CCC/Feedback.swf" width=333 height=333 quality=high wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object> &nbsp;';
  document.getElementById("kpiGames").innerHTML = outMsg;
}




function randomRambling(options)
{ 
 //alert(options)
 What='R'
 document.getElementById("txtRambling").innerHTML=''
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
 {
  alert ("Your browser doesn't support Ajax - upgrade your browser.")
  return
  }
 var url="kpiProxy.php?u=randomramblings.php?co="+options
 url=url+"&sid="+Math.random()
 //alert(url)
 xmlHttp.onreadystatechange=stateChanged
 xmlHttp.open("GET",url,true)
 xmlHttp.send(null)
}

function stateChanged() 
{ 
//document.getElementById("kpiGames").innerHTML=xmlHttp.readyState
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
   if (What=='G') document.getElementById("kpiGames").innerHTML=xmlHttp.responseText 
   if (What=='R') document.getElementById("txtRambling").innerHTML=xmlHttp.responseText 

 } 
}


function GetXmlHttpObject()
{
var xmlHttp=null;

try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }

return xmlHttp;
}


