//===================================================================================================
 // Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 750;
defaultHeight = 750;
// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
if (document.documentElement && typeof document.documentElement.style.maxHeight!="undefined"){
writeln('width=250-(document.body.clientWidth-document.images[0].width);');}
else {writeln('width=100-(document.body.clientWidth-document.images[0].width);');}
 
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}


// quick browser tests
var ns4 = (document.layers) ? true : false;
//var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
//var ns6 = (!document.all && document.getElementById) ? true : false;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
 

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}

	function emailvalidation(em)
	{
		strRegExp= /^[\w\-\.]+@[a-zA-Z0-9\-\.\_]+((\.(com|net|org|edu|int|mil|gov))|(\.(com|net|org|edu|int|mil|gov)\.[a-zA-Z]{2})|(\.[a-zA-Z]{2}))$/;
		var xx= em.value;
		xx= xx.toLowerCase();
		
		if (!strRegExp.test(xx))
		{ return false;
		}
		return true;
	}


function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
   
}

function isEmpty(s)
{
return ((s == null) || (s.length == 0))
}

var whitespace = "\t\n\r";

function isWhitespace(s)
{   var i;

    // Is s empty?
    if (isEmpty(s)) {return true;}

    // Search through string's characters one by one
    // until we find a non-whitespace character.
    // When we do, return false; if we don't, return true.

    for (i = 0; i < s.length; i++)
    {   
	// Check that current character isn't whitespace.
	var c = s.charAt(i);

	if (whitespace.indexOf(c) == -1) {return false;}
    }

    // All characters are whitespace.
    return true;
}

function ltrim (s)
{
	return s.replace( /^\s*/, "" );
}
  function rtrim (s)
{
	return s.replace( /\s*$/, "" );
}

  function trim (s)
{
	return rtrim(ltrim(s));
}

function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

 function checkIntPhone(strPhone){
 
 //var digits = "0123456789";
 
 var phoneNumberDelimiters = "()-.' '";
 
 var validWorldPhoneChars = phoneNumberDelimiters + "+";
 
 var minDgtsIntPhoneNum = 10;
  
   
   s= stripCharsInBag(strPhone, validWorldPhoneChars);
   return (isInteger(s)&& s.length >= minDgtsIntPhoneNum);
  }


function goHome(){
location.href='http://www.usxraysales.com';
}


function formrule(field) {
	if (field.defaultValue == field.value) field.value = "";
}


function VwuXtnxi3E(e83,e51,e27)
{
	var htm1 = "&#109;&#97;&#105;&#108;";
	var htm2 = "&#116;&#111;&#58;";
	var text = "<a href=" + htm1 + htm2 + e27 + "&#64;" + e83 + "." + e51 + ">" + e27 + "&#64;" + e83 +  "." + e51 + "</a>";
	document.write(text);
}

function winOpener(page,w,h,left,right){
 
window.open("http://www.usxraysales.com/"+page+"","ro","scrollbars=no,resizable=no,toolbar=no,menubar=no,width="+w+",height="+h+",left="+left+",top="+right+"");
  
}

 function ValidateSignUp(x)
{

var msg, msg2, cnt;
	
	msg = "";
	msg2 = "";


   var Val = document.usXrayReq.txtFName.value;
      Val = trim(Val);
  
        
   if ((Val == "")||(isWhitespace(Val)))
     
{
  alert("ENTRY CANNOT BE BLANK.  You must enter your First Name.");
  document.usXrayReq.txtFName.focus();
  return false;
}     

var Val = document.usXrayReq.txtLName.value;
    Val = trim(Val);
   
      
   if ((Val == "")||(isWhitespace(Val)))
   
{
  alert("ENTRY CANNOT BE BLANK.  You must enter your Last Name.");
  document.usXrayReq.txtLName.focus();
  return false;
}     

 
if ( emailvalidation(usXrayReq.txtEmail) == false ) {
				msg2 += "\n\nPlease enter a valid Email address!";
		        alert(msg2);
				usXrayReq.txtEmail.focus();
			    return false;
			}						

var Val = document.usXrayReq.txtPhone.value;
    Val = trim(Val);
  
        
   if (checkIntPhone(Val)==false)
{
  alert("Please enter a valid phone number.\n"
  +"Must be at least 10 digits.");
  document.usXrayReq.txtPhone.focus();
  return false;
}     
   
else
    {
        
    document.usXrayReq.action= x;
    document.usXrayReq.submit();
	
  }
 }

function headerMenu(){

document.write('<font color="#ffffff">1133 Bal Harbor Blvd., #124 &nbsp;&nbsp;  Punta Gorda, Florida 33950 &nbsp;&nbsp;Telephone: 941-637-0614 &nbsp; Fax: 941-637-0616</font>');
}


function footerMenu(){

document.write('<a href="http://www.usxraysales.com/">Home</a>&nbsp;|&nbsp;');
document.write('<a href="http://www.usxraysales.com/virtualAutopsy.asp">Virtual Autopsy Imaging</a>&nbsp;|&nbsp;');
document.write('<a href="http://www.usxraysales.com/medical.asp">Medical X-Ray</a>&nbsp;|&nbsp;');
document.write('<a href="http://www.usxraysales.com/chiropracticXray.asp">Chiropractic X-Ray</a>&nbsp;<br>');
document.write('<a href="http://www.usxraysales.com/cArms.asp">C-Arms X-Ray</a>&nbsp;|&nbsp;');
document.write('<a href="http://www.usxraysales.com/veterinary.asp">Veterinary X-Ray</a>&nbsp;|&nbsp;');
document.write('<a href="http://www.usxraysales.com/digitalCR.asp">Digital CR</a>&nbsp;|&nbsp;');
document.write('<a href="http://www.usxraysales.com/ctSystems.asp">CT Systems</a>&nbsp;|&nbsp;');
document.write('<a href="http://www.usxraysales.com/contactUs.asp">Contact Us</a></td></tr><tr><td bgcolor="#000066" class="footer" valign="top">');
document.write('<font color="#ffffff">1133 Bal Harbor Blvd., #124 &nbsp;&nbsp;  Punta Gorda, Florida 33950 &nbsp;&nbsp;Telephone: 941-637-0614 &nbsp; Fax: 941-637-0616</font>');
}


function leftMenu(){

document.write('<td align="center"></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/">Home</a></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/virtualAutopsy.asp">Virtual Autopsy Imaging</a></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/medical.asp">Medical X-Ray</a></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/chiropracticXray.asp">Chiropractic X-Ray</a></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/cArms.asp">C-Arms X-Ray</a></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/veterinary.asp">Veterinary X-Ray</a></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/digitalCR.asp">Digital CR</a></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/ctSystems.asp">CT Systems</a></td></tr><tr>');
document.write('<td align="center" height="15"><p align="right"><a href="http://www.usxraysales.com/contactUs.asp">Contact Us</a></td></tr><tr>');

}

function vis(x,obj) {
// show/hide the divisions

//if (x && (ie4 || ie5) ) document.all[obj].style.visibility = 'hidden';
//if (!x && (ie4 || ie5) ) document.all[obj].style.visibility = 'visible';
//if (x && ns4||ns6) document.layers[obj].visibility = 'hidden';
//if (!x && ns4) document.layers[obj].visibility = 'visible';

if (x==false){
if (document.layers) document.layers[''+obj+''].visibility = "show";
else if (document.all) document.all[''+obj+''].style.visibility = "visible";
else if (document.getElementById) document.getElementById(''+obj+'').style.visibility = "visible";
}
else
if (x==true){
if (document.layers) document.layers[''+obj+''].visibility = "hide";
else if (document.all) document.all[''+obj+''].style.visibility = "hidden";
else if (document.getElementById) document.getElementById(''+obj+'').style.visibility = "hidden";
}
}

function tdback(id,flagit,bc1,fc1,bc0,fc0){

if (flagit=="1"){
document.getElementById(''+id+'').style.backgroundColor= bc1;
document.getElementById(''+id+'').style.cursor= "hand";
document.getElementById(''+id+'').style.color= fc1;

}
else
if (flagit=="0"){
document.getElementById(''+id+'').style.backgroundColor= bc0;
document.getElementById(''+id+'').style.color= fc0;
}
}


//Pop-it menu- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var linksetBR=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
//linksetBR[0]='<div onMouseOver=vis(false,"popmenuSub");tdback("al",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("al",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><font color="0BBBFF" face="Verdana" size="1"><b>&nbsp;&nbsp;AFFORDABLE LUXURY</b></font></a></div><hr onMouseOver=tdback("al",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=tdback("al",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")>'
linksetBR[0]='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("al",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("al",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/breast_Augmentation.asp">&nbsp;&nbsp;Breast Augmentation</a></div>'
linksetBR[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("al",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("al",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/breast_Lift.asp">&nbsp;&nbsp;Breast Lift</a></div>'
linksetBR[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("al",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("al",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/breast_Reduction.asp">&nbsp;&nbsp;Breast Reduction</a></div>'

var linksetBO=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
//linksetBO[0]='<div onMouseOver=vis(false,"popmenuSub");tdback("pl",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pl",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><font color="0BBBFF" face="Verdana" size="1"><b>&nbsp;&nbsp;PREMIUM LUXURY</b></font></a></div><hr onMouseOver=tdback("pl",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=tdback("pl",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")>'
linksetBO[0]='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pl",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pl",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/body_Lift.asp">&nbsp;&nbsp;Body Lift</a></div>'
linksetBO[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pl",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pl",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/laserSkin_Resurfacing.asp">&nbsp;&nbsp;Laser Skin Resurfacing</a></div>'
linksetBO[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pl",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pl",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/liposuction.asp">&nbsp;&nbsp;Liposuction</a></div>'
//linksetBO[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pl",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pl",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://caribbean-vacation-properties.com/CVP04/cvpVillaHammond.html">&nbsp;&nbsp;Playa Chiquita - Villa Hammond</a></div>'
linksetBO[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pl",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pl",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/tummy_Tuck.asp">&nbsp;&nbsp;Tummy Tuck</a></div>'


var linksetF=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
//linksetF[0]='<div onMouseOver=vis(false,"popmenuSub");tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><font color="0BBBFF" face="Verdana" size="1"><b>&nbsp;&nbsp;PREMIER COLLECTION</b></font></a></div><hr onMouseOver=tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")>'
linksetF[0]='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/botox_Treatment.asp">&nbsp;&nbsp;Botox Treatments</a></div>'
linksetF[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/chemical_Peels.asp">&nbsp;&nbsp;Chemical Peels</a></div>'
linksetF[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/chinChk_Implants.asp">&nbsp;&nbsp;Chin and Cheek Implants</a></div>'
linksetF[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/ear_Surgery.asp">&nbsp;&nbsp;Ear Surgery</a></div>'
linksetF[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/eyelid_Surgery.asp">&nbsp;&nbsp;Eyelid Surgery</a></div>'
linksetF[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/facelift.asp">&nbsp;&nbsp;Facelift</a></div>'
linksetF[0]+='<div class="menuitems" onMouseOver=vis(false,"popmenuSub");tdback("pc",false,"#0BBBFF","#000000","#0BBBFF","#FFFFFF") onMouseOut=vis(true,"popmenuSub");tdback("pc",true,"#0BBBFF","#000000","#0BBBFF","#FFFFFF")><a href="http://www.usxraysales.com/nose_Surgery.asp">&nbsp;&nbsp;Nose Surgery</a></div>'



////No need to edit beyond here

var ie4=document.all
var ns6=document.getElementById&&!document.all
var ns4=document.layers

function showmenu(e,which,arrSet){

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#0BBBFF width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y

//Find out how close the mouse is to the corner of the window
var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

//if the horizontal distance isn't enough to accomodate the width of the context menu
 if (rightedge<menuobj.contentwidth)
  //move the horizontal position of the menu to the left by it's width
  menuobj.thestyle.left=ie4? 495  : ns6? 495  : 495  
 else
  //position the horizontal position of the menu where the mouse was clicked
  menuobj.thestyle.left=ie4? 495  : ns6? 495  : 495  

//same concept with the vertical position

if (arrSet=="BR"){
 if (bottomedge<menuobj.contentheight)
  menuobj.thestyle.top=ie4? 179 : ns6? 179 : 179 
 else
  menuobj.thestyle.top=ie4? 179 : ns6? 179 : 179 
  menuobj.thestyle.visibility="visible"
 return false
 } 
if (arrSet=="BO"){
  if (bottomedge<menuobj.contentheight)
  menuobj.thestyle.top=ie4? 208 : ns6? 209 : 208 
 else
  menuobj.thestyle.top=ie4? 208 : ns6? 209 : 208 
  menuobj.thestyle.visibility="visible"
 return false
 } 
if (arrSet=="F"){
  if (bottomedge<menuobj.contentheight)
  menuobj.thestyle.top=ie4? 237 : ns6? 238 : 237 
 else
  menuobj.thestyle.top=ie4? 237 : ns6? 238 : 237 
  menuobj.thestyle.visibility="visible"
 return false
 }
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}



function loadDDmenu(){
  document.write("<div id=popmenu style=\"position:absolute\"; class=procMenuSub onMouseover=clearhidemenu();highlightmenu(event,'on');vis(false,'popmenuSub'); onMouseout=highlightmenu(event,'off');dynamichide(event);vis(true,'popmenuSub');></div>");

 if(isIE){ 
  document.write('<div id=popmenuSub style="position:absolute; width: 132px; background-color:#0BBBFF; border:0px solid black; font:bold 10px Verdana; line-height:24px; z-index:100; visibility:hidden; left: 308px; top: 174px;" onMouseOver=vis(false,"popmenuSub"); onMouseOut=vis(true,"popmenuSub");>');
 }else{ 
  document.write('<div id=popmenuSub style="position:absolute; width: 132px; background-color:#0BBBFF; border:0px solid black; font:bold 10px Verdana; line-height:24px; z-index:100; visibility:hidden; left: 370px; top: 174px;" onMouseOver=vis(false,"popmenuSub"); onMouseOut=vis(true,"popmenuSub");>');
 }
  document.write('<table width="132px" class=procMenu height="88px" cellpadding="5" cellspacing="-1"><tr><td id=al onMouseOut=delayhidemenu();tdback("al",true,"#0BBBFF","#FFFFFF","#0BBBFF","#ffffff") onMouseOver=showmenu(event,linksetBR[0],"BR");tdback("al",false,"#0BBBFF","#ffffff","#0BBBFF","#FCDC9A")><a href="javascript:function();">BREAST &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img border="0" src="http://www.usxraysales.com/Images/arrow.gif"></a></td></tr>');
  document.write('<tr><td id=pl onMouseOut=delayhidemenu();tdback("pl",true,"#0BBBFF","#ffffff","#0BBBFF","#ffffff") onMouseOver=showmenu(event,linksetBO[0],"BO");tdback("pl",false,"#0BBBFF","#ffffff","#0BBBFF","#FCDC9A")><a href="javascript:function();">BODY &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img border="0" src="http://www.usxraysales.com/Images/arrow.gif"></a></td></tr>');
  document.write('<tr><td id=pc onMouseOut=delayhidemenu();tdback("pc",true,"#0BBBFF","#ffffff","#0BBBFF","#ffffff") onMouseOver=showmenu(event,linksetF[0],"F");tdback("pc",false,"#0BBBFF","#ffffff","#0BBBFF","#FCDC9A")><a href="javascript:function();">FACE &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img border="0" src="http://www.usxraysales.com/Images/arrow.gif"></a></td></tr></table></div>');
}

function nothing(){}