var ref = escape(document.referrer)+"";
var target_url = '/cgi-bin/seal/ssl_seal.cgi';
var indi = new jsgt_Indicator('/img/ssl_seal/3MA_loadingcontent.gif') ;

if(!chkAjaBrowser())
{
	document.write("<script src=\"https://www.shopmaker.jp" + target_url + "?ref=" + ref + "\"></script>");
}

//addLoadEvent( 
//	function()
//	{
		if(chkAjaBrowser())
		{
			indi.indi_append("indicator");
			sslseal_sendData( callback_sslseal , target_url, '&ref=' + ref + '&ajax=on' );
		}
		else
		{
			initbox();
		}
//		MM_preloadImages('./campaign02/gif');
//	}
//);

function sslseal_sendData( callback, url, param )
{
//	indi.indi_start();
	sendRequest( callback, param, 'GET', url , true, true );
}

function callback_sslseal( oj )
{
//	indi.indi_stop();
	var res = oj.responseText;
	document.getElementById('ssl_seal').innerHTML = res;
	
	initbox();
}

function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}
}

function initbox()
{
	var ie=document.all;
	var dom=document.getElementById;
	var ns4=document.layers;
	
	if ( !dom && !ie && !ns4 ) return;
	crossobj=(dom)?document.getElementById("ssl_seal").style : ie? document.all.ssl_seal : document.ssl_seal;
	crossobj.visibility=(dom||ie)? "visible" : "show";
}

function dismissbox()
{
	var ie=document.all;
	var dom=document.getElementById;
	var ns4=document.layers;
	
	if ( !dom && !ie && !ns4 ) return;
	crossobj=(dom)?document.getElementById("ssl_seal").style : ie? document.all.ssl_seal : document.ssl_seal;
	crossobj.visibility="hidden";
}
