//** Site Logo/ Watermark Script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com.
//** Available/ usage terms at http://www.dynamicdrive.com
//** v2.0 (April 19th, 09')

if (sssitelogo==undefined)
{
var sssitelogo={
	setting: {orientation:4, visibleduration:0, fadeduration:[1000, 500]}, //orientation=1|2|3|4, duration=millisec or 0, fadedurations=millisecs
	offsets: {x:0, y:0},//offset of logo relative to window corner
	logoHTML: '<img src="assets/templates/common/seal/lock100.gif" style="width:98px; height:100px; border:0" />', //HTML for logo, which is auto wrapped in DIV w/ ID="mysitelogo"
	popupHTML: '<style type="text/css">body {	font-family: Segoe, "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;	font-size: 14px;	font-weight: normal;}.ssl_date {	font-size: 18px;	color: #6ba809;	font-weight: bold;	text-align: right;	padding: 33px 33px 77px 0px;}.ssl_info {	padding: 0px 0px 15px 50px;	line-height: 22px;}.ssl_valid {	font-size: 12px;	padding: 0px 79px 0px 50px;}.ssl_valid div {	padding: 15px 0px 0px 0px;}</style></head><body><table width="640" border="0" cellspacing="0" cellpadding="0" style="background: url(images/ssl_bg.jpg)">  <tr>    <td height="480" align="left" valign="top"><div class="ssl_date">[MMM DD, YYYY]</div>      <div class="ssl_info">        <div><strong>Site/Domain:</strong> [store_url]</div>        <div><strong>Certificate Status:</strong> Valid from [issue_date] to [exp_date]</div>        <div><strong>Encryption Method:</strong> [encryption_method]</div>        <div><strong>Address:</strong> [store_address]</div>        <div><strong>Phone:</strong> [store_phone]</div>      </div>      <div class="ssl_valid"><strong>[store_url]</strong> has been validated as having a secure SSL certificate. The presence of this SSL means you can rest assured that communications (e.g. credit card numbers) between your browser and this site\'s web servers are private and secure when the SSL session is activated.        <div>SSL certificates from 3dcart™ are the ultimate online security and trust solution delivering 256-bit encryption to 3dcart customers exclusively.</div>      </div></td>  </tr></table></body></html>',
	coord: {},

	keepfixed:function(){
		if (!this.cssfixedsupport){
			var $window=jQuery(window)
			var is1or3=/^[13]$/.test(this.setting.orientation)
			var is1or2=/^[12]$/.test(this.setting.orientation)
			var x=$window.scrollLeft() + (is1or3? this.offsets.x : $window.width()-this.$control.width()-this.offsets.x)
			var y=$window.scrollTop() + (is1or2? this.offsets.y : $window.height()-this.$control.height()-this.offsets.y)
			this.$control.css({left:x+'px', top:y+'px'})
		}
	},

	closepop:function(){
			var mainobj=sssitelogo
			var iebrws=document.all
			jQuery("#mypopup").hide();
	
	},

	closewin:function()
	{
	var mainobj=sssitelogo;
	mainobj.$control.fadeOut();
	},
	poplogo:function(){
			var mainobj=sssitelogo
			var iebrws=document.all
			mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode

			mainobj.$control=$('<div id="mypopup" onClick="sssitelogo.closewin()">'+mainobj.popupHTML+'</div>')
				.css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', opacity:0})
				.css({width: '300px',height:'150'})
				.css({top: '50%',left:'50%',margin:'-150px 0 0 -300'})
				.appendTo('body')
			if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
				mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
			mainobj.showlogo()
			//window.onclick=function(){mainobj.closewin()};
			
	
	},

	showlogo:function(){
		var mainobj=sssitelogo
		this.$control.animate({opacity:1}, this.setting.fadeduration[0])
		if (this.setting.visibleduration>0){
			setTimeout(function(){
				mainobj.$control.stop().animate({opacity:0}, mainobj.setting.fadeduration[1], function(){
					jQuery(window).unbind('scroll.fixed resize.fixed')
				})
			}, this.setting.visibleduration+this.setting.fadeduration[0])
		}
	},
	
	init:function(){
		jQuery(document).ready(function($){
			var mainobj=sssitelogo
			var iebrws=document.all
			mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
			if (mainobj.cssfixedsupport){
				mainobj.coord[(/^[13]$/.test(mainobj.setting.orientation))? 'left' : 'right']=mainobj.offsets.x
				mainobj.coord[(/^[12]$/.test(mainobj.setting.orientation))? 'top' : 'bottom']=mainobj.offsets.y
			}
			mainobj.$control=$('<div id="mysitelogo">'+mainobj.logoHTML+'</div>')
				.css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', opacity:0})
				.css(mainobj.coord)
				.appendTo('body')
			if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
				mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
			mainobj.keepfixed()
			mainobj.showlogo()
			$(window).bind('scroll.fixed resize.fixed', function(){mainobj.keepfixed()})
		})
	}
}

sssitelogo.init()
}
