function flashshow(objID, objSource, objWidth, objHeight, objQuality, objWmode, objBgcolor)
{
	//flashshow("id(iٲ)", "flashm", "flash", "flash", "(ٲ=w]=̰)", "z(ٲ=w]=z,WƦr/^姡|ܬz)", "IC(iٲ)");
	//page url
	var pageUrl = self.window.location.href;
	if(pageUrl.substring(0,5) == 'https') {
		swfUrl = "https";
	} else {
		swfUrl = "http";
	}
	/* Default Value Setting */
	if (objID == "") objID = 'ShockwaveFlashObject';
	if (objWidth == "") objWidth = '0';
	if (objHeight == "") objHeight = '0';
	if (objQuality == "") objQuality = 'best';
	if (objWmode == "") {
		objWmode = '';
	} else {
		objWmode = 'transparent';
	}
	/* Flash 8.0 version */
	document.write('<OBJECT id="' + objID + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('type="application/x-shockwave-flash" ');
	document.write('data="' + objSource + '" ');
	document.write('codebase="' + swfUrl +'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ');
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '">');
	document.write('<PARAM NAME=menu value=false>');
	document.write('<PARAM NAME=allowScriptAccess value=always>');
	document.write('<PARAM NAME=wmode value="'+ objWmode +'">');
	document.write('<PARAM NAME=movie VALUE="'+ objSource +'">');
	document.write('<PARAM NAME=quality VALUE="'+ objQuality +'">');
	document.write('<PARAM NAME=bgcolor VALUE="'+ objBgcolor +'">');
	document.write('<embed allowScriptAccess="always" swLiveConnect="true" src="' + objSource + '" menu="false" quality="' + objQuality + '" wmode="' + objWmode + '" bgcolor="' + objBgcolor + '" width="' + objWidth + '" height="' + objHeight + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
	document.write('</OBJECT>');
}
function showmenu(NUM , NAM , target){
  for(i=1;i<= NUM ;i++){
  hid = NAM + i;
  document.getElementById(hid).style.display='none';
  }
  sho = NAM + target;
  if (target != 0){
  document.getElementById(sho).style.display='block';
  }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//tab switcher by Nicky Cheuk<nicky@cheuk.net>, June 6th, 2008
if(typeof UI == 'undefined')var UI = {};
UI.tab = function(handlers, pages, iframe){//parameters: Controls to handle the click, pages/urls to show, iframe id
  this.handlers = handlers;
  this.pages = pages;
  this.currentHandler = false;
  this.currentPage = false;
  this.init();
}
UI.tab.prototype = {
  init : function(){
    var _this = this;
    this.setCurrent(document.getElementById(this.handlers[0]), document.getElementById(this.pages[0]));
    var len = this.handlers.length;
    for(i = 0; i < len; i ++){
      this.handlers[i] = document.getElementById(this.handlers[i]);
      this.handlers[i].page = document.getElementById(this.pages[i]);
      this.handlers[i].onmouseover = function(){
        if(_this.currentHandler == this) return false;
        _this.setCurrent(this, this.page);
      }
    }
  },
  setCurrent : function(el,page){
    if(this.currentHandler)
      this.currentHandler.className = this.currentHandler.className.replace(' hover', '');
    if(this.currentPage)
      this.currentPage.style.display = 'none';
    //alert(el);
    this.currentPage = page;
    this.currentPage.style.display = 'block';
    this.currentHandler = el;
    this.currentHandler.className += ' hover';
  }
}
$(window).on('load', function(){
var tab = new UI.tab(['new_cate0', 'new_cate1', 'new_cate2', 'new_cate3'],
                     ['news0', 'news1', 'news2', 'news3']);
});
