window.appVersion = window.navigator.appVersion;
if(window.appVersion!=null)
  {
   window.appVersion = window.appVersion.toUpperCase(); 
   window.MacIE5 = ((window.appVersion.toUpperCase().indexOf("MSIE") >=0) && (window.appVersion.toUpperCase().indexOf("MACINTOSH") >=0) && (window.appVersion.indexOf("5.0") >=0));
  }
   
   window.OPR =(window.opera!=null)|| false;
   window.IE = (document.all && (!window.OPR))|| false;
   window.IE55 = (window.IE && window.createPopup!=null && document.createComment==null) || false;
   window.MOZ = (window.outerWidth && !window.OPR && (window.navigator.product!=null)) || false;
   window.IE50 = (window.IE && (document.createTextNode!=null) && (window.createPopup==null)) || false;
   window.IE60= (window.IE && document.createComment!=null ) || false;
   window.IE40 = (document.all && !window.IE50 && !window.IE55 && !window.IE60 &&(window.opera==null) ) || false;
   window.MS =( window.navigator.userAgent.toLowerCase().indexOf("windows") >= 0 ) || false ;
   window.MAC =( window.navigator.appVersion.toLowerCase().indexOf("mac") >= 0 ) || false ;
   window.CSS1 = (document.compatMode!=null)||false;
   window.GDA = (( window.IE55 || window.IE50 || window.MOZ || window.IE60 ) && !window.MAC);
   
   if(window.IE)
     {
      window.WIN98 = (window.navigator.userAgent.toLowerCase().indexOf("windows 98")>=0);
     }

function gObj(ID)
  {
   if(document.getElementById==null)
     {
	    document.getElementById = document.all;
     }
   if(ID==null)
     {
	  return null;
     }
   return document.getElementById(ID);
  }
  
function gTags(srcDocument, TagName)
  {
   if(document.getElementsByTagName==null)
     {
      return (new Array());
     }
   if(TagName==null)
     {
	  return (new Array());
     }
   return srcDocument.getElementsByTagName(TagName);
  }
  
function gAttr(srcObj,attributeName)
  {
   if(srcObj==null || attributeName==null)
     {return null;}
   if(srcObj.getAttribute == null)
     {return null;}
   attributeName = srcObj.getAttribute(attributeName);
   if(attributeName=="")
     {attributeName=null};
   return attributeName;
  }

function RenderNWR()
  {
   if(nwr && (window.IE || window.MOZ) && (!window.MAC))
     {
	  nwr.Hover = false;
	  nwr.onmouseover = function()
	                      {
						   this.Hover = true;
	                      }
	  nwr.onmouseout = function()
	                      {
						   this.Hover = false;
	                      }
	  nwr.style.display = "block";
	  nwr.divs = new Array();
	  var divs = gTags(nwr,"div");
	  var tbs = gTags(nwr,"table");
	  var tds = gTags(nwr,"td");
	  for(i=0;i<tbs.length;i++)
	     {
		  if(gAttr(tbs[i],"width"))
		    {
			 tbs[i].removeAttribute("width");
		    }
	     }
	  for(i=0;i<tds.length;i++)
	     {
		  if(gAttr(tds[i],"width"))
		    {
			 tds[i].removeAttribute("width");
		    }
	     }
	  var scrolldelay = gAttr(nwr,"delay") || 2.5;
	  if(isNaN(scrolldelay ))
	    {
		   nwr.style.display="none";
		   return;
	    }
	  scrolldelay = Math.max(parseFloat(scrolldelay) * 1000 ,1000);
	  for(i=0;i<divs.length;i++)
	     {
          nwr.divs[i] = divs[i];
          divs[i].style.backgroundColor="white";
          divs[i].m = setTimeout("void(0)",0);
          divs[i].n = i;
          divs[i].o = 10;
          divs[i].style.top = nwr.offsetHeight*2 + "px";
          if(divs[i].id==null || divs[i].id == "")
		    {
			 divs[i].id = "_marquee_" + i;
		    }
          divs[i].flyin = function()
		                    {
							 clearTimeout(this.m);
							 this.style.visibility = "visible";
							 var b = this.n-1;
							 if(b<0)
							   {
							    b = nwr.divs.length-1;
							   }
							 if(this.o >0 )
							   {
							    if(this.parentNode.Hover == false)
								  {
								   this.o +=-2;
								   this.style.top = ((this.parentNode.offsetHeight * this.o/10))+ "px";
								  }
							    this.m = setTimeout("gObj('"+this.id+"').flyin()",100);
							   }
							 else
							   {
							    this.o = 0;
								var n = this.n+1;
								if(n > (nwr.divs.length-1))
								  {
								   n =0;
								  }
								n = gObj("_marquee_" + n);
								if(n.id !=this.id)
								  {
								   this.m = setTimeout("gObj('"+this.id+"').flyout()",(scrolldelay));
								   n.m = setTimeout("gObj('"+n.id+"').style.top='900px';gObj('"+n.id+"').flyin()",(scrolldelay-0));
								  }
							   }
		                    }
		  divs[i].flyout = function()
		                     {
							  clearTimeout(this.m);
							  if(this.o < 10 )
							    {
								 if(this.parentNode.Hover == false)
								   {
								    this.o+=2;
									this.style.top = ( -(this.o/10 * this.offsetHeight) -2) + "px";
								   }
								 this.m = setTimeout("gObj('"+this.id+"').flyout()",100);
							    }
							  else
							    {
								 this.o = 10;
								 this.style.top = this.parentNode.offsetHeight*2 + "px";
							    }
		                     }
	     }
		 
	  if(divs.length >0)
	    {
		 divs[0].style.top = "1px";
		 divs[0].flyin();
		}
     }
   else if(nwr)
     {
	  nwr.style.display="block";
	  nwr.style.overflow = "visible";
	  nwr.style.height="auto";
	  var divs = gTags(nwr,"div");
	  if( divs.length>=1)
	    {
		 divs[0].style.position = "static";
		 divs[0].style.visibility = "visible";
		}
     }
  }
  
function RenderNWR98()
  {
   nwr.style.display = "block";
   var divs = gTags(nwr,"div");
   var tbs = gTags(nwr,"table");
   var tds = gTags(nwr,"td");
   for(i=0;i<tbs.length;i++)
      {
	   if(gAttr(tbs[i],"width"))
	     {
		  tbs[i].removeAttribute("width");
		 }
      }
   for(i=0;i<tds.length;i++)
      {
	   if(gAttr(tds[i],"width"))
	     {
		  tds[i].removeAttribute("width");
		 }
      }
   divs = new Array();
   divs = gTags(nwr,"div");
   var marquee = "";
   for(i=0;i<divs.length;i++)
      {
	   marquee+= "<div style='margin:0 0 0.2em 0;white-space:nowrap;display:block;visibility:visible;position:static;'>" + divs[i].innerHTML+ "</div>";
	  }
   nwr.innerHTML = "<marquee direction=up scrolldelay=200 scrollamount=1 onmouseover='this.stop()' onmouseout='this.start()'>" + marquee +"</marquee>" ;
  }
  
  
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function showTtt(tttId, tttNo)
{
	var tttCollection = document.getElementById(tttId);
	tttCollection.className='sTtt'+tttNo+'v';
}
/////////////////////////////////////////////////////////////
function showTab(tabId, tabNo)
{
	var tabCollection = document.getElementById(tabId);
	tabCollection.className='Tab'+tabNo+'v';
}
/////////////////////////////////////////////////////////////
function showRep(repId, repNo)
{
	var repCollection = document.getElementById(repId);
	repCollection.className='sRep'+repNo+'v';
}
/////////////////////////////////////////////////////////////
function showInfo(infoId, infoNo)
{
	var infoCollection = document.getElementById(infoId);
	infoCollection.className='sInfo'+infoNo+'v';
}
/////////////////////////////////////////////////////////////
function showForum(forumId, forumNo)
{
	var forumCollection = document.getElementById(forumId);
	forumCollection.className='sForum'+forumNo+'v';
}
/////////////////////////////////////////////////////////////
var old_menu = '';

function showsubmenu(submenu) {

        if( old_menu != submenu ) {

                if( old_menu !='' ) {
                        old_menu.style.display = 'none';
                }
	
                submenu.style.display = 'block';
                old_menu = submenu;


        } 
}

var old_news = '';

function shownews(news) {
         
        if( old_news != news ) {
              news2.style.display = 'none';
			  news3.style.display = 'none';
			  news4.style.display = 'none';
			  news5.style.display = 'none';		 
			  news1.style.display = 'none';
                if( old_news !='' ) {
                        old_news.style.display = 'none';
                }
                news.style.display = '';
                old_news = news;

        } 
		
}
function shownews2(news) {
         
        if( old_news != news ) {

                if( old_news !='' ) {
                        old_news.style.display = 'none';
                }
                news.style.display = '';
                old_news = news;

        } 
		
}
 function shownews1(news) {
        if(news=='news1') {
	      news2.style.display = 'none';
		  news3.style.display = 'none';
		  news4.style.display = 'none';
		  news5.style.display = 'none';		 
          news1.style.display = 'block';
		  showTab('tab','1');

		}
        if(news=='news2') {
	 	  news1.style.display = 'none';
		  news3.style.display = 'none';
		  news4.style.display = 'none';
		  news5.style.display = 'none';	 
          news2.style.display = 'block';
		  showTab('tab','2');

		}
		 if(news=='news3') {
          news1.style.display = 'none';
		  news2.style.display = 'none';
		  news3.style.display = 'none';
		  news4.style.display = 'none';
          news3.style.display = 'block';
		  showTab('tab','3');

		}
		 if(news=='news4') {
          news1.style.display = 'none';
		  news2.style.display = 'none';
		  news3.style.display = 'none';
		  news5.style.display = 'none';
          news4.style.display = 'block';
		  showTab('tab','4');
	
		}
		 if(news=='news5') {
		  news1.style.display = 'none';
		  news2.style.display = 'none';
		  news3.style.display = 'none';
		  news4.style.display = 'none';	  
          news5.style.display = 'block';
		  showTab('tab','5');
	
		}
}

var old_vr = '';
function showvr(vr) {
        if( old_vr != vr ) {
                if( old_vr !='' ) {
                        old_vr.style.display = 'none';
                }
	                vr.style.display = 'block';
                old_vr = vr;
        } 
}

var old_member = '';
function showmember(member) {
        if( old_member != member ) {
                if( old_member !='' ) {
                        old_member.style.display = 'none';
                }
	                member.style.display = 'block';
                old_member = member;
        } 
}

var old_report = '';
function showreport(report) {
        if( old_report != report ) {
                if( old_report !='' ) {
                        old_report.style.display = 'none';
                }
	                report.style.display = 'block';
                old_report = report;
        } 
}
  
	function chMaintheme(el,mode){
		
		if(el == 'maintheme2' && mode == 'hidden'){
			document.getElementById('re_content').value='';
			document.getElementById('re_title').value='';
		}
		
		if(el == 'maintheme' && mode == 'hidden'){
			document.getElementById('content').value='';
			document.getElementById('title').value='';
		}
		
		document.getElementById(el).style.top = '0px';
		document.getElementById(el).style.left = '0px';
		document.getElementById(el).style.visibility = mode;
	}
	
	
function getCookie(name){
var strCookies = document.cookie;
var cookieName = name + "=";  var valueBegin, valueEnd, value;
valueBegin = strCookies.indexOf(cookieName);
if (valueBegin == -1) return null;  valueEnd = strCookies.indexOf(";", valueBegin);
if (valueEnd == -1)
valueEnd = strCookies.length;  value = strCookies.substring(valueBegin+cookieName.length,valueEnd);
return value;
}
function zoom(type)
{
if(document.getElementById("op")){
opobj = document.getElementById("op");
if('display' == type){
opobj.style.display="block";
document.cookie = "zoom=block";
document.getElementById("forumRightMenu").style.zIndex=10;
}
else if('hide' == type){
opobj.style.display="none";
document.cookie = "zoom=none";
document.getElementById("forumRightMenu").style.zIndex=0;
}
else if('auto' == type){
if(opobj.style.display=="block" || '' == opobj.style.display)
{
opobj.style.display="none";
document.cookie = "zoom=none";
document.getElementById("forumRightMenu").style.zIndex=0;
}
else if(opobj.style.display=="none")
{
opobj.style.display="block";
document.cookie = "zoom=block";
document.getElementById("forumRightMenu").style.zIndex=10;
}
}
}
}

//JS Control SWF!
function goto(targetFrame){
var obj = document.getElementById("navmovie");
obj.GotoFrame(targetFrame);
}

