﻿//JavaScript Document powerd by maesinfo, www.maesinfo.com

function play_images(pics, links, texts,picwidth,picheight,textheight)
        {
            var focus_width = picwidth;
            var focus_height = picheight;
            var text_height = textheight;
            var swf_height = focus_height + text_height;
            
            document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
            document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="js/flashplayer.swf"><param name="quality" value="high"><param name="bgcolor" value="#F2F7FB">');
            document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
            document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
            document.write('<embed wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F5F5F5" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
            document.write('</object>');
        }

var popUpWin=0;
function popUpWindow(URLStr,resizable, left, top, width, height)
{  
  if(popUpWin)
  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'online_chat', 'toolbar=no,location=no,directories=no,status=0,menubar=no,scrollbars=no,resizable='+resizable+',copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}		


function showsub(tname,btnid,tabnumber)
{
	for (i = 0;i<tabnumber;i++)
	{
		document.getElementById(tname+"_subdiv"+i).style.display = "none";
	}
	document.getElementById(tname+"_subdiv"+btnid).style.display ="block";
}