contentFrame=0; toolsFrame=0; sponsorsFrame=0;
frameURL=new Array(); frameWidth=new Array(); frameHeight=new Array(); frameID=new Array();
function showFrame(paramWidth,paramHeight,paramID,paramURL)
{
var currentIndex=frameURL.length;
frameURL[currentIndex]=paramURL;
frameWidth[currentIndex]=paramWidth;
frameHeight[currentIndex]=paramHeight;
frameID[currentIndex]=paramID;

if((navigator.userAgent.indexOf("MSIE") >= 0) ||
   (navigator.userAgent.indexOf("ozilla/5") >= 0))
{
document.write('<iframe id='+paramID+' name='+paramID+' width='+paramWidth+' height='+paramHeight+' '); 
document.write('scrolling=no frameborder=0 framespacing=0 marginheight=0 ');
document.write('marginwidth=0 border=0 hspace="0" vspace=0 align=center src="'+paramURL+'"></iframe>');
}
else
{
document.write('<div align=center><center><table border=0 cellpadding=0 cellspacing=0><tr><td>');
document.write('<ilayer id='+paramID+' visibility=hide bgcolor=#FFFFFF width='+paramWidth+' height='+paramHeight+'></ilayer>');
document.write('</td></tr></table></center></div>');
}
return currentIndex;
}

function writeFrameBottom(paramIndex)
{
if((navigator.userAgent.indexOf("MSIE") >= 0) ||
   (navigator.userAgent.indexOf("ozilla/5") >= 0)) return ;
document.write('<LAYER SRC="'+frameURL[paramIndex]+'" WIDTH='+frameHeight[paramIndex]+' ');
document.write('HEIGHT='+frameWidth[paramIndex]+' VISIBILITY=hide onLoad=');
document.write('"moveToAbsolute('+frameID[paramIndex]+'.pageX,'+frameID[paramIndex]+'.pageY); clip.width='+frameWidth[paramIndex]+'; ');
document.write('clip.height='+frameHeight[paramIndex]+'; visibility=\'show\'"></LAYER>');
}

function showContent (paramLang) { contentFrame =showFrame(160,1600,"content_banner"  ,"http://"+document.location.host+"/winmaster/help/"+paramLang+"/common/content.htm"); }
function showTools   (paramLang) { toolsFrame   =showFrame( 80,1400,"tools_banner"    ,"http://"+document.location.host+"/winmaster/help/"+paramLang+"/common/rightcontent.htm"); }
function showSponsors(paramLang) { sponsorsFrame=showFrame(160, 180,"sponsors_banner" ,"http://"+document.location.host+"/winmaster/help/"+paramLang+"/common/sponsors.htm"); }

function writeContentPageBottom() { writeFrameBottom(contentFrame); }
function writeToolsPageBottom() { writeFrameBottom(toolsFrame); }
function writeSponsorsPageBottom() { writeFrameBottom(sponsorsFrame); }
