﻿var timer1, timer2;
var seal;
var seal_old="";
function on_mouseover(x, y)
{
	if(document.getElementById("seal_div")!=null)
	{
	    if(seal_old==seal) return;
	    else 	closediv();
	}
    
	seal_old=seal;
	
	html='<table border=0 cellspacing=0 cellpadding=0><tr><td align=right>';
	html+='<input type=image src="/images/close.jpg"';
	html+=' onclick="document.body.removeChild(document.getElementById(\'seal_div\'));">';
	html+='</td></tr>';
	html+='<tr><td>';

	if(seal=="HackerSafe")
	{
		html+='<a target="_blank"';
		html+=' href="https://www.scanalert.com/RatingVerify?ref=www.bigmountaindrugs.com">';
		html+='<img width="94" height="54" border="0"';
		html+=' src="//images.scanalert.com/meter/www.bigmountaindrugs.com/13.gif"';
		html+=' alt="McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams"';
		html+=' oncontextmenu="alert(\'Copying Prohibited by Law - McAfee Secure is a Trademark of McAfee, Inc.\'); return false;"';
		html+=' align=absmiddle ></a>';
		html+='</td></tr></table>';
		creatediv(html,95,80,x,y); 
	}
	else if(seal=="PharmacyChecker")
	{
		html+="<a href='#' onclick=\"javascript: window.open('http://www.pharmacychecker.com/ProfileRx.asp?PCID=8508070C-98B2-4C89-92FB-2FEC14384310','pc','scrollbars=1,toolbar=1,menubar=1,address=1,status=1,resizable=1,width=440, height=' + screen.height * .70 + \'');\"><img src='http://www.pharmacychecker.com/seals/8508070C-98B2-4C89-92FB-2FEC14384310.jpg' width='246' height='144' border='0'></a>";
		
		html+='</td></tr></table>';
		creatediv(html,250,160,x,y); 
	}
	else if(seal=="CIPA")
	{
		html+="<a href=\"https://www.cipa.com/member/bigmountaindrugs.com\" onclick=\"window.open(this.href,'cipamember','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=700,height=500'); return false;\"><img src=\"http://www.cipa.com/seal/162x85.png\" style=\"border:none\" /></a>";
		
		html+='</td></tr></table>';
		creatediv(html,164,110,x,y); 
	}
	else if(seal=="GeoTrust")
	{
		html+='<SCRIPT language="JavaScript" src="https://smarticon.geotrust.com/si.js" type="text/javascript"></SCRIPT>';
		html+='</td></tr></table>';
		creatediv(html,120,100,x,y); 
	}

}

function creatediv(html, width, height, left, top) 
{ 
   var newdiv = document.createElement('div');
   
   newdiv.setAttribute('id', 'seal_div');
   newdiv.className="viewbox";
   
   newdiv.onmouseover=po;
   newdiv.onmouseout=pu;

   newdiv.style.position = "absolute";
   newdiv.style.width = width;
   newdiv.style.height = height;
   newdiv.style.left = left;
   newdiv.style.top = top;
   
   newdiv.style.background = "#FFFFFF";
   newdiv.style.border = "1px solid #000";
   
   document.body.appendChild(newdiv);

   newdiv.innerHTML = html;
} 

function closediv()
{
	div=document.getElementById('seal_div');
	if(div!=undefined && div!=null)
	{
		document.body.removeChild(div);
	}
}

function po()
{
	clearTimeout(timer2);
}

function pu()
{
	timer2=setTimeout(function(){closediv();clearTimeout(timer2);},2000);
}

