function BrowserDetect()
{
	var ua = navigator.userAgent.toLowerCase();
	this.isOpera = (ua.indexOf('opera') != -1); 
	this.isIE6_SP2 = ((ua.indexOf('windows nt 5.1; sv1;') != -1 || ua.indexOf('windows nt 5.2; sv1;') != -1) && ua.indexOf('infopath') == -1 && ua.indexOf('fdm') == -1 && ua.indexOf('ypc') == -1);
	this.isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) );
	var vMinor = parseFloat(navigator.appVersion); 
	if (this.isIE && vMinor >= 4) { vMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) ); }
	var vMajor = parseInt(vMinor);
	this.isWin32  = ((ua.indexOf('win') != -1) && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1 || ua.indexOf('xp') != -1) );
	this.isIE55 = (this.isIE && vMinor == 5.5);
	this.isIE6up = (this.isIE && vMajor >= 6);
	this.isIE7up = (this.isIE && vMajor >= 7);
	this.isIE8up = (this.isIE && vMajor >= 8);
	this.isIE8upTRUE = this.isIE8up;
	this.isWin2003 = (ua.indexOf('windows nt 5.2') != -1);
	if(this.isIE8up)
	{
		this.documentMode = document.documentMode;
		if(this.documentMode < '8')
		{
			this.isIE8upTRUE = false;
		}
		else
		{
			this.isIE8upTRUE = true;
		}
	}
}
var digibrowser = new BrowserDetect();

if(digibrowser.isIE7up && !digibrowser.isWin2003)
{
	e1 = new Image(); 
	e1.src = "https://greenbar.digicert.com/ev.gif";
	e2 = new Image(); 
	e2.src = "https://assured.beacon.digicert.com/b.gif";
	e3 = new Image(); 
	e3.src = "https://global.beacon.digicert.com/b.gif";
}

if((digibrowser.isIE55 || digibrowser.isIE6up) && digibrowser.isWin32)
{
	var pngAlpha = true;
}
else
{
	var pngNormal = true;
}

function od_displayImage(strId, strPath, intWidth, intHeight, strClass, strAlt)
{
	if(pngAlpha)
	{
		document.write('<div style="background: none; height:' + intHeight + 'px; width:' + intWidth + 'px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + strPath + '\', sizingMethod=\'crop\')" id="' + strId + '" class="' + strClass + '"><a href="http://www.digicert.com" onclick="VerifySSL(\'00138288\',\'\'); return false;" style="background: transparent !important; position: relative;"><img src="https://www.digicert.com/images/Site-Seal-small.gif" border="0" width="' + intWidth + '" height="' + intHeight + '" style="display: inline;" /><span id="digisealvaliddatesmall">11-11-2009</span></a></div><div id="digilinkstuffsmall" style="text-decoration: none; font-family: Arial, sans-serif; display: block; color: #FFF; background: transparent; font-weight: normal !important;">');
	}
	else
	{
		document.write('<div style="background: transparent url(' + strPath + ') no-repeat top center; position: relative;"><a href="http://www.digicert.com" onclick="VerifySSL(\'00138288\',\'\'); return false;" style="background: transparent !important; float: none !important;"><img src="https://www.digicert.com/images/Site-Seal-small.gif" border="0" width="' + intWidth + '" height="' + intHeight + '" style="display: inline; float: none;" /><span id="digisealvaliddatesmall">11-11-2009</span></a></div><div id="digilinkstuffsmall" style="text-decoration: none; font-family: Arial, sans-serif; display: block; color: #FFF; background: transparent; font-weight: normal !important;"');
	}
}
function writeBeginningCode(alignz,marginz)
{
		var margin = marginz + ' ' + (alignz == 'left' || alignz == 'center' ? 'auto' : marginz) + ' ' + marginz + ' ' + (alignz == 'right' || alignz == 'center' ? 'auto' : marginz);
	document.write('<div id="digicertsitesealcode2small" style="margin: ' + margin + '; position: relative; width: 69px; height: 35px;">');
}

function writeEndingCode()
{
	document.write('</div></div>');
	}

writeBeginningCode('center','0');

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

function VerifySSL(num,old)
{
	var width = 480;
	var height = 525;
	var ww = screen.width;
	var hh = screen.height;
	var left = (ww - width) / 2;
	var top = (hh - height) / 2;
	window.open('https://www.digicert.com/custsupport/sspopup.php?order_id=' + num + '&hostname=','oo',"dependent=1,height="+height+",width="+width+",left="+left+",top="+top+",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
	return false;
}


coderzDone = false;
function coderz()
{
		writeEndingCode();
	if(document.getElementById("digicertsitesealcode2small"))
	{
		var x = document.getElementById('digicertsitesealcode2small');
		x.style.display = 'block';
		x.style.lineHeight = '10px';
		x.style.background = 'transparent';
		x.style.fontSize = '9px';
		x.style.fontWeight = 'normal';
		x.style.fontFamily = "Arial, sans-serif";
		x.style.fontWeight = 'normal';
		x.style.textAlign = 'center';
		x.style.textTransform = 'uppercase';
		x.style.color = '#FFF';
		var z = document.getElementById("digicertsitesealcode2small").getElementsByTagName("A");
		for (var i=0; i < z.length; i++)
		{
			z[i].target = '_blank';
			if(digibrowser.isIE)
			{
				// Nothing
			}
			else
			{
				z[i].style.background = 'transparent';
			}
			z[i].style.display = 'inline';
			z[i].style.width = 'auto';
			z[i].style.fontSize = '9px';
			z[i].style.fontWeight = 'normal';
			z[i].style.fontFamily = "Arial, sans-serif";
			z[i].style.color = '#FFF';
			z[i].style.textDecoration = 'none';
			z[i].style.textTransform = 'uppercase';
						z[i].style.textTransform = 'lowercase';
							z[i].style.textAlign = 'center';
			z[i].onmouseover = function()
			{
				window.status='';
				return true;
			}
			var q = z[i].getElementsByTagName("IMG");
			for(var j=0; j<q.length; j++)
			{
				q[j].style.backgroundColor = 'transparent';
			}
		}
		var q = document.getElementById('digisealvaliddatesmall');
		if(q)
		{
			q.style.display = 'block';
			q.style.position = 'absolute';
			q.style.fontSize = '9px';
			q.style.fontFamily = "Arial, sans-serif";
						q.style.top = '22px';
			q.style.right = '4px';
			q.style.color = '#FFF';
								}
		var y = document.getElementById('digilinkstuffsmall');
		y.style.position = 'relative';
		y.style.fontWeight = 'normal';
		y.style.fontSize = '9px';
		var yy = y.getElementsByTagName("A");
				if(digibrowser.isIE)
		{
							y.style.margin = '-1px 0 0 0';
								}
		else
		{
							y.style.margin = '-1px 0 0 0';
								}
				y.style.color = '#FFF';
		for (var i=0; i < yy.length; i++)
		{
			yy[i].style.color = '#FFF';
		}
											var datecode = q.innerHTML;
		var linkcode = y.innerHTML;
		linkcode = linkcode.replace(/<script(.*)script>/i,'');
		var t = document.createElement('div');
		t.id = 'rotateContainer';
		document.getElementById("digicertsitesealcode2small").appendChild(t);
		t.style.position = 'absolute';
		t.style.top = '22px';
		t.style.left = '0';
		t.style.color = '#FFF';
		t.style.width = '69px';
		t.style.textAlign = 'center';
		var t2 = document.createElement('div');
		t2.id = 'linkContainer';
		t.appendChild(t2);
		t2.innerHTML = linkcode;
		t2.style.textTransform = 'lowercase';
		t2.style.marginRight = '1px';
		var t3 = document.createElement('div');
		t3.id = 'dateContainer';
		t.appendChild(t3);
		t3.innerHTML = datecode;
		t3.style.textAlign = 'left';
		t3.style.color = '#FFF';
		t3.style.fontSize = '9px';
		if(pngAlpha)
		{
			//<div style="background: none; height:' + intHeight + 'px; width:' + intWidth + 'px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + strPath + '\', sizingMethod=\'crop\')" id="' + strId + '" class="' + strClass + '">
			t3.style.background = 'none';
			t3.style.width = '62px';
			t3.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://www.digicert.com/images/seals/ov-small-lock2.png', sizingMethod='crop')";
			t3.style.padding = '0 0 0 10px';
			t3.style.margin = '0 0 0 7px';
		}
		else
		{
			t3.style.background = 'transparent url(https://www.digicert.com/images/seals/ov-small-lock.png) no-repeat 7px 0';
			t3.style.padding = '1px 0 0 17px';
		}
		t3.style.display = 'none';
		q.style.display = 'none';
		y.style.display = 'none';
		
		var c = 1;
		function scrivi()
		{
			if(c == 0)
			{
				t2.style.display = 'block';
				t3.style.display = 'none';
			}
			else
			{
				t2.style.display = 'none';
				t3.style.display = 'block';
			}
			c++;
			if(c > 1)
			{
				c = 0;
			}
		}
		
		function rotateText(interv)
		{
			id = setInterval(scrivi,interv);
		}
		
		rotateText(7000);
				}
	coderzDone = true;
}

od_displayImage('aaaadigisealseal','/images/digicert.png',69,35,'','');

