<!--

//テーブルデザイン開始

document.write("<table width='280' height='240' border='0' cellspacing='0' cellpadding='1' ");
document.write("style='display:none;position:absolute;top:10px;left:10px;empty-cells:hide' id='table1'>");
document.write("    <tr>");
document.write("        <td style='background: #000088'>");
document.write("            <table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>");
document.write("                <tr height='1'>");
document.write("                    <td>");
document.write("                        <table width='100%' border='0' cellspacing='1' cellpadding='0' style='background: #000088; color: #FFFFFF; cursor: default'>");
document.write("                            <tr style='font-size: 10pt; font-weight: bold'>");
document.write("                                <td align=center>限定無料レポートを配信中！！</td>");
document.write("                                <td style='width: 20px; cursor: pointer;' onclick='javascript:fResize();'><IMG src='http://motemote-sysad.1utv.com/minsize.gif'></td>");
document.write("                                <td style='width: 20px; cursor: pointer;' onclick='javascript:fClose();'><IMG src='http://motemote-sysad.1utv.com/close.gif'></td>");
document.write("                            </tr>");
document.write("                        </table>");
document.write("                    </td>");
document.write("                </tr>");
document.write("                <tr>");
document.write("                    <td>");
document.write("                        <table width='100%' height='100%' id='table2' border='0' cellpadding='0' cellspacing='0' bgcolor='#E0E0E0'>");
document.write("                            <tr>");
document.write("                                <td>");
document.write("                                    <TABLE border='0' width='275'>");
document.write("                                        <TR>");
document.write("                                            <TD align='center'>");
document.write("                                                <FONT face='MS UI Gothic' color='#000000'><strong>限定無料レポート<BR>");
document.write("                        『間違いだらけの初級シスアド試験勉強法<BR>");
document.write("                        〜これであなたも一発合格〜』</strong><BR>");
document.write("                        </FONT><BR>");
document.write("                        <FONT face='MS UI Gothic' color='#FF0000'><strong>○今の勉強方法に不安がある<BR>");
document.write("                        ○勉強時間がなかなか取れない<BR>");
document.write("                        ○勉強してもすぐ忘れてしまう<BR>");
document.write("                        ○勉強に集中できない<BR>");
document.write("                        ○効率的に勉強したい<BR>");
document.write("                        ○とにかく試験に受かりたい<BR>");
document.write("                        <BR>");
document.write("                        </strong></FONT><FONT face='MS UI Gothic' color='#666666'><FONT face='MS UI Gothic' color='#666666'><strong>これを読んで、試験勉強の<BR>");
document.write("                        悩み・不安解消！！<BR>");
document.write("                        <IMG src='http://motemote-sysad.1utv.com/sysad_report_cover.gif' width='106' height='133' border='0'><BR>");
document.write("                        </strong></FONT></FONT><FONT size='-1'>※当会発行の無料メールマガジンに<BR>代理登録されます。</FONT><BR>");
document.write("                                            </TD>");
document.write("                                        </TR>");
document.write("                                        <TR>");
document.write("                                            <TD align='LEFT'>");
document.write("                                                <form name='form1' method='post' action='https://1lejend.com/stepmail/kd.php'>");
document.write("                                                <FONT face='MS UI Gothic' color='#000000' size='-1'>お名前：<BR>");
document.write("                        </FONT><input type='text' name='touroku_name' size='30' value='' style='ime-mode:active'><BR>");
document.write("                                                <FONT face='MS UI Gothic' color='#000000' size='-1'><BR>");
document.write("                        メールアドレス：<BR>");
document.write("                        </FONT><input type='text' name='touroku_mail' size='30' value='' style='ime-mode:disabled'>");
document.write("                        <P align='center'>");
document.write("                                                <INPUT type='submit' name='submit' value='無料レポートを入手' class='button'><BR>");
document.write("                        <BR>");
document.write("                        <INPUT type='button' value='ウインドウを閉じる' style='cursor: pointer' onclick='javascript:fClose();'>");
document.write("                                                <input type='hidden' name='no' value='4122'><input type='hidden' name='id' value='000561'><input type='hidden' name='noumenid' value=''><input type='hidden' name='tourokuid' value=''><input type='hidden' name='action' value='kakunin'><input type='hidden' name='charset' value='SJIS'>");
document.write("                                                </P>");
document.write("                        </form>");
document.write("                                            </TD>");
document.write("                                        </TR>");
document.write("                                    </TABLE>");
document.write("                                </td>");
document.write("                            </tr>");
document.write("                        </table>");
document.write("                    </td>");
document.write("                </tr>");
document.write("            </table>");
document.write("        </td>");
document.write("    </tr>");
document.write("</table>");

//テーブルデザイン終了

//JavaScrtip処理開始


var intX = 10;
var intY = 10;

if ( document.getElementById )
{
	table3 = document.getElementById ( "table1" );
}
else
{
	table3 = document.all ["table1"];
}

function fResize ( ) {
   if ( document.getElementById )
   {
	content = document.getElementById ( "table2" );
   }
   else
   {
        content = document.all ["table2"];
   }

   if ( content.style.display == "none" )
   {
       content.style.display = "";
       table3.style.height = "240px";
   }
   else
   {
       content.style.display = "none";
       table3.style.height = "20px";
   }
} 

function fClose ( ) {
    table3.style.display = "none";
} 


function fMoveX ( ) {
   return ( ( window.pageXOffset ) ? window.pageXOffset : document.body.scrollLeft ) + intX; 
} 

function fMoveY ( ) {
   return ( ( window.pageYOffset ) ? window.pageYOffset : document.body.scrollTop ) + intY; 
} 

function fMoveStart ( ) {
   table3.style.top = fMoveY ( );
   table3.style.left = fMoveX ( );
   setTimeout ( "fMoveStart ( );", 1000 ); 
} 

function fRun ( ) {
	if ( intX != 10 || intY != 10 )
	{
		if ( intX != 10 ){
			if ( Math.abs ( intX - 10 ) <= 40.000000 )
			{
				intX = 10;
			}
			else
			{
				if ( intX < 10 )
				{
					intX += 40.000000;
				}
				else
				{
					intX -= 40.000000;
				}
			}
		}


		if ( intY != 10 ){

			if ( Math.abs ( intY - 10 ) <= 40.000000 )
			{
				intY = 10;
			}
			else
			{
				if ( intY < 10 )
				{
					intY += 40.000000;
				}
				else
				{
					intY -= 40.000000;
				}
			}
		}
		table3.style.top  = fMoveY ( );
		table3.style.left = fMoveX ( );

//ウィンドウの登場スピードを指定します。数字を大きくするとゆっくり移動します。
		setTimeout ( "fRun();", 20 );
		
	}
	else
	{
		fMoveStart ( ); 
	}

} 

function fStart ( ) {
   if (get_cookie("droppedin")==""){

//初めの一回のみ表示させたい場合にはこの下の行の「//」を削除する。
	   document.cookie="droppedin=yes"

	   intX = 10;
	   intY = 10;
		switch ( 4 )
		{
	  	        case 3: intX = -240;
				break;
			case 4: intX = ( ( window.innerWidth ) ? window.innerWidth : document.body.clientWidth );
				break;
			case 1: intY = -200;
				break;
			case 2: intY = ( ( window.innerHeight ) ? window.innerHeight : document.body.clientHeight);
				break;
		}
		table3.style.top  = fMoveY ( );
		table3.style.left = fMoveX ( );
		table3.style.display = "";
		fRun ( ); 
   }
} 

//ページを開いた後、何秒後にウインドウを出現させるかを指定。秒数を１０００倍した値をセットする（５秒なら5000とする）。
setTimeout ( "fStart ( );", 3000 );

var value1, value2; 


function fMouseMove ( e ) {
   pintX = ( document.all ) ? event.clientX : e.clientX;
   pintY = ( document.all ) ? event.clientY : e.clientY;
   intX += pintX - value1;
   intY += pintY - value2;
   value1 = pintX;
   value2 = pintY;
   table3.style.top  = fMoveY ( );
   table3.style.left = fMoveX ( );
} 

function fMouseUp ( ) {
    document.onmousemove = "";
    document.onmouseup   = "";
} 

function fMouseDown ( prm ) {
   value1 = ( document.all ) ? event.clientX : prm.clientX;
   value2 = ( document.all ) ? event.clientY : prm.clientY;
   document.onmousemove = fMouseMove;
   document.onmouseup   = fMouseUp;
}

table3.onmousedown = fMouseDown;

function get_cookie(Name) {
	var search = Name + "="
	var rtn = ""
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
			offset += search.length
			end = document.cookie.indexOf(";", offset)
			if (end == -1)
			end = document.cookie.length;
			rtn=unescape(document.cookie.substring(offset, end))
		}
	}
	return rtn;
}

//JavaScrtip処理終了

// -->


