/* flash embed */
  function embedFlash(id, url, width, height, altText, flashVars, wmode) {
	if (!flashVars) flashVars = '';
	if (!wmode) wmode = 'window';
	if (!altText) altText = '';

	var str = '' +
	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" width="' + width + '" height="' + height + '" id="' + id + '">' +
		'<param name="movie" value="' + url + '" />' +
		'<param name="wmode" value="' + wmode + '" />' +
		'<param name="FlashVars" value="' + flashVars + '" />' +
		'<!--[if !IE]>-->' +
		'<object type="application/x-shockwave-flash" data="' + url + '" width="' + width + '" height="' + height + '" name="' + id + '">' +
			'<param name="wmode" value="' + wmode + '" />' +
			'<param name="FlashVars" value="' + flashVars + '" />' +
		'<!--<![endif]-->' +
			'<div class="alt-content alt-' + id + '">' + altText + '</div>' +
		'<!--[if !IE]>-->' +
		'</object>' +
		'<!--<![endif]-->' +
	'</object>';
	document.write(str);
}


function setPNG24(obj) {
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bPNG24\b/i,'');
obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src='';
return '';
} 

// Tab Content
function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tabclick")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {
			currentmenu = this.container.current;
			if (currentmenu == this)
				return false;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", "_off.gif");
				} else {
					currentmenu.className = currentmenu.className.replace(" over", "");
				}
			}
			this.targetEl.style.display = "";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace("_off.gif", "_on.gif");
			} else {
				this.className += " over";
			}
			this.container.current = this;

			return false;
		};

		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onclick();
}
//*****  slide *****
var isDOM = (document.getElementById ? true : false);
  var isIE4 = ((document.all && !isDOM) ? true : false);
  var isNS4 = (document.layers ? true : false);
  var isNS = navigator.appName == "Netscape";

  var scrollerHeight = 88;
  var puaseBetweenImages = 3000;
  var imageIdx = 0;

  function moveRightEdge() {
    var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
    var quickMNBox = document.getElementById('quickMenu');
    if(isDOM) {
      yMenuFrom = parseInt(quickMNBox.style.top, 10);
      yMenuTo = (isNS ? window.pageYOffset : document.documentElement.scrollTop) + -30;
    }
    timeoutNextCheck = 500;
    if(yMenuFrom != yMenuTo) {
      yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
      if(yMenuTo < yMenuFrom) yOffset = -yOffset;
      if(isNS4) quickMNBox.top += yOffset + "px";
      else if(isDOM) quickMNBox.style.top = parseInt (quickMNBox.style.top, 10) + yOffset + "px";
      timeoutNextCheck = 10;
    }
    setTimeout('moveRightEdge()', timeoutNextCheck);
  }

  function ScrollTop(){
    self.scroll(0,0);
  }

  window.onload = function() {
    if (isDOM) {
      var quickMNBox = document.getElementById('quickMenu');
      quickMNBox.style.top = (isNS ? window.pageYOffset : document.documentElement.scrollTop) + 30 + "px";
      quickMNBox.style.visibility = "visible";
      moveRightEdge();
    }
  }