var Ovr='';
var Ovr2='';

var cot_tl_popCSS='#cot_tl_pop {background-color: transparent;';
var cot_tl_popCSS=cot_tl_popCSS+'position:absolute;';
var cot_tl_popCSS=cot_tl_popCSS+'height:194px;';
var cot_tl_popCSS=cot_tl_popCSS+'width: 244px;';
var cot_tl_popCSS=cot_tl_popCSS+'overflow: hidden;';
var cot_tl_popCSS=cot_tl_popCSS+'visibility: hidden;';
var cot_tl_popCSS=cot_tl_popCSS+'z-index: 100;';
var cot_tl_popCSS=cot_tl_popCSS+'}';

document.write('<style type="text/css">'+cot_tl_popCSS+'</style>');


function cot_tl_bigPopup(url)
{
	newwindow=window.open(url,'name','WIDTH=450,HEIGHT=500,FRAMEBORDER=0,MARGINWIDTH=0,MARGINHEIGHT=0,SCROLLING=no,allowtransparency=true');
	if(window.focus)
	{
		newwindow.focus();
	}
	return false;
}


function cot_tl_toggleMiniPOPUP_hide()
{
	var cred_id='cot_tl_pop';
	var NNtype='hidden';
	var IEtype='hidden';
	var WC3type='hidden';
	if(document.getElementById)
	{
		eval("document.getElementById(cred_id).style.visibility=\""+WC3type+"\"");
	}
	else
	{
		if(document.layers)
		{
			document.layers[cred_id].visibility=NNtype;
		}
		else
		{
			if(document.all)
			{
				eval("document.all."+cred_id+".style.visibility=\""+IEtype+"\"");
			}
		}
	}
}


function cot_tl_toggleMiniPOPUP_show()
{
	cred_id='cot_tl_pop';
	var NNtype='show';
	var IEtype='visible';
	var WC3type='visible';
	if(document.getElementById)
	{
		eval("document.getElementById(cred_id).style.visibility=\""+WC3type+"\"");
	}
	else
	{
		if(document.layers)
		{
			document.layers[cred_id].visibility=NNtype;
		}
		else
		{
			if(document.all)
			{
				eval("document.all."+cred_id+".style.visibility=\""+IEtype+"\"");
			}
		}
	}
}


function AssignComodoPosition(d, posX, posY) 
{				
	d.style.left = (posX) + "px";
	d.style.top = (posY) + "px";
}



function ComodoLogo(cot_tl_theLogo, cot_tl_LogoType, LogoPositionX, LogoPositionY)
{
	host = location.host;
	if(window.location.protocol.toLowerCase()=="https:")
	{
		var cot_tl_miniBaseURL='https://secure.comodo.net/ttb_searcher/trustlogo?v_querytype=C&v_shortname='+cot_tl_LogoType+'&v_search='+host+'&x=6&y=5';
		var cot_tl_bigBaseURL='https://secure.comodo.net/ttb_searcher/trustlogo?v_querytype=W&v_shortname='+cot_tl_LogoType+'&v_search='+host+'&x=6&y=5';
	}
	else
	{
		var cot_tl_miniBaseURL='http://www.trustlogo.com/ttb_searcher/trustlogo?v_querytype=C&v_shortname='+cot_tl_LogoType+'&v_search='+host+'&x=6&y=5';
		var cot_tl_bigBaseURL='http://www.trustlogo.com/ttb_searcher/trustlogo?v_querytype=W&v_shortname='+cot_tl_LogoType+'&v_search='+host+'&x=6&y=5';
	}
		
	document.write('<div id="cot_tl_fixed">');
	document.write('<a href="http://www.instantssl.com" onClick="return cot_tl_bigPopup(\''+cot_tl_bigBaseURL+'\')"><img src='+cot_tl_theLogo+' alt="SSL Certificate" border="0" onMouseOver="AssignComodoPosition(document.getElementById(\'cot_tl_pop\'), '+LogoPositionX+', '+LogoPositionY+');Ovr=setTimeout(\'cot_tl_toggleMiniPOPUP_show()\',100);clearTimeout(Ovr2)" onMouseOut="Ovr2=setTimeout(\'cot_tl_toggleMiniPOPUP_hide()\',100);clearTimeout(Ovr)"></a>');
	
	document.write('<div id="cot_tl_pop">');
	document.write('<IFRAME src="'+cot_tl_miniBaseURL+'" WIDTH=244 HEIGHT=194 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no allowtransparency=true></IFRAME>');
	document.write('</div>');
	
	document.write('</div>');
	
}