// l???Ht??
 

function bluring(){ 

if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 

} 

document.onfocusin=bluring; 



// ?|t??Tt?



var isDOM = (document.getElementById ? true : false);

var isIE4 = ((document.all && !isDOM) ? true : false);

var isNS4 = (document.layers ? true : false);

function getRef(id) {

	if (isDOM) return document.getElementById(id);

	if (isIE4) return document.all[id];

	if (isNS4) return document.layers[id];

}

var isNS = navigator.appName == "Netscape";

function moveRightEdge() {

	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {

		yMenuFrom   = divMenu.top;

		yMenuTo     = windows.pageYOffset + 155;   // ǽ???
	} else if (isDOM) {

		yMenuFrom   = parseInt (divMenu.style.top, 10);

		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 155;   // ǽ???
	}

	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo) {

		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);

		if (yMenuTo < yMenuFrom)

			yOffset = -yOffset;

		if (isNS4)

			divMenu.top += yOffset;

		else if (isDOM)

			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

			timeoutNextCheck = 10;

	}

	setTimeout ("moveRightEdge()", timeoutNextCheck);

}



function winpop(url,width,height,scrollbar) {

    window.open(url,'smallwindow', 'width='+width+',height='+height+',scrollbars='+scrollbar);

}



function question(){

	var frm = document.m_form;

	if (!validate(frm)) return;

	else {



		frm.action="pro_exe.asp?kind=promotion";



		frm.submit();

	}

}





//rollover image



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_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.0

  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 && document.getElementById) x=document.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];}

}



function openSample(url){

  window.open(url,'Service')

}





//

function MM_reloadPage(init) { //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}



MM_reloadPage(true);



function MM_showHideLayers() { //v6.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}





//8?t?


var x = 0;

var move_x = 0;

var dest = 0;

var distance = 0;

var step = 0;

var destination = 0;



function scrollit(destination) {

if(destination > 0) 

{

move_x = move_x + 106;

}

else

{

	if (move_x-106 < 0) 

	{

	move_x = 0;

	}

	else

	{

	move_x = move_x - 106;

	}

}



step = 2;

dest = move_x;

if (x<dest) {

while (x<dest) {

step += (step / 50);

x += step;

this.frames.iscrollx.scroll(x,0);

} 

this.frames.iscrollx.scroll(dest,0);

x = dest;

}



if (x > dest) {

while (x>dest) {

step += (step / 50);

if(x >= (0+step))

{

x -= step; 

this.frames.iscrollx.scroll(x,0);

}

else { break; }

} 

if(dest >= 0) { this.frames.iscrollx.scroll(dest,0); }

x = dest;

} 

if (x<1) {x=1}

if (x>5000) {x=4500} 

}



//Dt???ٳ t?p??


function doResize()

{

container.height = author.document.body.scrollHeight;

container.width = author.document.body.scrollWidth;

}



//<embed> include X?
function embed(src2,width2,height2){

	document.write('<embed src="'+src2+'" WIDTH="'+width2+'" HEIGHT="'+height2+'">');

}



//<object> include X?
function movie_viewer(){

	document.write('<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" width="480" height="360" standby="Loading Microsoft?Windows?Media Player components..." id="MediaPlayer1">');

		document.write('<param name="FileName" value="http://www.seilweld.com/movie/ari_all_in_one.wmv">');

		document.write('<param name="transparentAtStart" value="True">');

        document.write('<param name="transparentAtStop" value="True">');

        document.write('<param name="AnimationAtStart" value="True">');

        document.write('<param name="AutoStart" value="True">');

        document.write('<param name="AutoRewind" value="true">');

        document.write('<param name="SendMouseClickEvents" value="True">');

        document.write('<param name="DisplaySize" value="480">');

        document.write('<param name="AutoSize" value="True">');

        document.write('<param name="ShowDisplay" value="False">');

        document.write('<param name="ShowControls" value="false">');

        document.write('<param name="ShowTracker" value="True">');

        document.write('<param name="FileName" value="">');

        document.write('<param name="Enabled" value="1">');

        document.write('<param name="EnableContextMenu" value="0">');

        document.write('<param name="EnablePositionControls" value="1">');

        document.write('<param name="EnableFullScreenControls" value="1">');

        document.write('<param name="ShowPositionControls" value="1">');

        document.write('<param name="Mute" value="0">');

        document.write('<param name="Rate" value="1">');

        document.write('<param name="SAMILang" value="">');

        document.write('<param name="SAMIStyle" value="">');

        document.write('<param name="SAMIFileName" value="">');

        document.write('<param name="ClickToPlay" value="0">');

        document.write('<param name="CursorType" value="1">');

      document.write('</object>');

}

function movie_viewer1(){

	document.write('<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" width="480" height="360" standby="Loading Microsoft?Windows?Media Player components..." id="MediaPlayer1">');

		document.write('<param name="FileName" value="http://www.seilweld.com/movie/web_eng.wmv">');

		document.write('<param name="transparentAtStart" value="True">');

        document.write('<param name="transparentAtStop" value="True">');

        document.write('<param name="AnimationAtStart" value="True">');

        document.write('<param name="AutoStart" value="True">');

        document.write('<param name="AutoRewind" value="true">');

        document.write('<param name="SendMouseClickEvents" value="True">');

        document.write('<param name="DisplaySize" value="480">');

        document.write('<param name="AutoSize" value="True">');

        document.write('<param name="ShowDisplay" value="False">');

        document.write('<param name="ShowControls" value="false">');

        document.write('<param name="ShowTracker" value="True">');

        document.write('<param name="FileName" value="">');

        document.write('<param name="Enabled" value="1">');

        document.write('<param name="EnableContextMenu" value="0">');

        document.write('<param name="EnablePositionControls" value="1">');

        document.write('<param name="EnableFullScreenControls" value="1">');

        document.write('<param name="ShowPositionControls" value="1">');

        document.write('<param name="Mute" value="0">');

        document.write('<param name="Rate" value="1">');

        document.write('<param name="SAMILang" value="">');

        document.write('<param name="SAMIStyle" value="">');

        document.write('<param name="SAMIFileName" value="">');

        document.write('<param name="ClickToPlay" value="0">');

        document.write('<param name="CursorType" value="1">');

      document.write('</object>');

}