var iPopupBottom = 80;
var iPopupRight = 80;
var sTimeout;
if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
	CTCornerImage_topex="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
	CTCornerImagePopup_topex="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight-iPopupBottom);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth - iPopupRight);}";
	CTCornerImageFrame_topex="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight-iPopupBottom+2);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth - iPopupRight);}";
}else{
	CTCornerImage_topex="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";
	CTCornerImagePopup_topex="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight-iPopupBottom);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth - iPopupRight);}";
	CTCornerImageFrame_topex="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight-iPopupBottom+2);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth - iPopupRight);}";
}
var CTCornerImageCSS, CTCornerImagePopupCSS;
CTCornerImageCSS='#CTCornerImageDiv{position:fixed;';
CTCornerImageCSS+='_position:absolute;z-index:1;';
CTCornerImageCSS+='bottom:0px;';
CTCornerImageCSS+='right:0px;';
CTCornerImageCSS+=CTCornerImage_topex;

CTCornerImagePopupCSS='#CTCornerImagePopup{position:fixed;';
CTCornerImagePopupCSS+='_position:absolute;z-index:2;';
CTCornerImagePopupCSS+='bottom:'+iPopupBottom+'px;';
CTCornerImagePopupCSS+='right:'+iPopupRight+'px;';
CTCornerImagePopupCSS+='width:400px;';
CTCornerImagePopupCSS+='height:150px;';
CTCornerImagePopupCSS+='background:#ffffff;';
CTCornerImagePopupCSS+='border:1px solid #57b3ff;';
CTCornerImagePopupCSS+=CTCornerImagePopup_topex;

CTCornerImagePopupCSS+='#CTCornerImagePopup td{text-align:left;}';

CTCornerImageFrameCSS='#CTCornerImageFrame{position:fixed;';
CTCornerImageFrameCSS+='_position:absolute;z-index:1;';
CTCornerImageFrameCSS+='bottom:'+iPopupBottom+'px;';
CTCornerImageFrameCSS+='right:'+iPopupRight+'px;';
CTCornerImageFrameCSS+='width:402px;';
CTCornerImageFrameCSS+='height:152px;';
CTCornerImageFrameCSS+=CTCornerImageFrame_topex;



document.write('<style type="text/css">'+CTCornerImageCSS+CTCornerImagePopupCSS+CTCornerImageFrameCSS+'</style>');

var sslURL = '';
function CTCornerImagePopup(bOn) {
	if(document.getElementById('CTCornerImagePopup')) {
		div = document.getElementById('CTCornerImagePopup');
		frame = document.getElementById('CTCornerImageFrame');
		if(!bOn) {
			if(frame) {
				sTimeout = setTimeout("div.style.display='none';frame.style.display='none'",1200);
			}else{
				sTimeout = setTimeout("div.style.display='none';",1200);	
			}
		}else{
			div.style.display = '';
			if(frame) {
				frame.style.display = '';
			}
			getSSLInfo(sslURL);
			clearTimeout(sTimeout);
		}
	}
}

function CTCornerImage(image,alttext,sURL){
	sslURL = sURL;
	if(window.parent.document.location.protocol=='http:') {
		document.write('<iframe scrolling="no" frameborder="0" id="CTCornerImageFrame" style="display:none;" src="/includes/blank.html"></iframe>');
	}
	document.write('<div id="CTCornerImagePopup" style="display:none; text-align:center;" onmouseover="CTCornerImagePopup(true)" onmouseout="CTCornerImagePopup(false)">');
	document.write('<img src="/images/animations/ajax-loader-white.gif" style="margin-top:50px; margin-bottom:5px;" /><br /><div style="margin-bottom:4px;"><strong>Loading SSL certificate information.</strong></div><em>It can take up to 1 minute to get the details.</em>');
	document.write('</div>');
	document.write('<div id="CTCornerImageDiv">');
	document.write('<img src="'+image+'" alt="'+alttext+'" border="0" onmouseover="CTCornerImagePopup(true)" onmouseout="CTCornerImagePopup(false)">');
	document.write('</div>');
}

