function placeGoban( pId, pSgf, pSkin, pw, ph )
{
if ( pSgf.length>2000 )
advancedGoban( pId, pSgf, pSkin, pw, ph );
else
simpleGoban( pId, pSgf, pSkin, pw, ph );
}
function simpleGoban( pId, pSgf, pSkin, pw, ph )
{
pw*= screen.width/1024;
ph*= screen.height/762;
if (pSkin!="")
pSkin="&skin="+pSkin;
document.write( "\
\");
}
var isIE = navigator.appName.indexOf("Microsoft") != -1;
function gobanCmd( obj, id, id1 ) {
obj.SetVariable("_level1.param1_" + obj.msgNum,id1);
obj.SetVariable("_level1.msg" + obj.msgNum,id);
obj.msgNum++;
}
function advancedGoban( pId, pSgf, pSkin, pw, ph )
{
myWin = document;
myWin.write('\\n\r');
// Hook for Internet Explorer
if ( isIE &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
myWin.write(' \n');
}
pw*= screen.width/1024;
ph*= screen.height/762;
if (pSkin!="")
pSkin="&skin="+pSkin;
myWin.write( "\
\");
}