
function viewPic(pic){
folder=document.widget.folder.value
document.main.src="limos/"+folder+"/"+pic+".jpg";

}

function getMouseXY(e) {
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) 	{
		posx = e.clientX + document.body.scrollLeft
			+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
	}
	// posx and posy contain the mouse position relative to the document
	// Do something with this information
	document.getElementById("theLayer").style.top=posy-50;
}


  <!-- 
  
  var loaded = 0;
   
  function canSwapImages() {
    bName = navigator.appName;
    bVer = parseInt(navigator.appVersion);
    isMac = eval( navigator.appVersion.indexOf("Mac") != -1 );
    if (isMac && bVer >= 3) {
      if (bName == "Microsoft Internet Explorer"  || bName == "Netscape") {
        return 1;
      }
    }
    else {
      if ((bName == "Microsoft Internet Explorer" && bVer >= 4) || (bName == "Netscape" && bVer >= 3)) {
        return 1;
      }
    }
    return 0;
  }

// sent only to imageswapcapable browsers

 
  
  function changeImage(target,state) {
    if (loaded) {
      if (state) {
        document[target].src = eval(target + "_img_z.src");
        }
      else {
        document[target].src = eval(target + "_img.src");
      }
    }
  }


function load_images() {

    if (canSwapImages()){
        load_tabs();
        loaded = 1;
    }
}



function load_tabs() {
    if (canSwapImages()) {
        tab1_img = new Image(169,26);
        tab1_img.src = "images/airport-service-selector/airport-limo-pickup-service.gif";
        tab1_img_z = new Image(169,26);
        tab1_img_z.src = "images/airport-service-selector/airport-limo-pickup-service-a.gif";
        tab2_img = new Image(169,23);
        tab2_img.src = "images/airport-service-selector/airport-limo-drop-off-service.gif";
        tab2_img_z = new Image(169,23);
        tab2_img_z.src = "images/airport-service-selector/airport-limo-drop-off-service-a.gif";
        tab3_img = new Image(169,23);
        tab3_img.src = "images/airport-service-selector/airport-transfer.gif";
        tab3_img_z = new Image(169,23);
        tab3_img_z.src = "images/airport-service-selector/airport-transfer-a.gif";
        tab4_img = new Image(169,27);
        tab4_img.src = "images/airport-service-selector/airport-limo-roundtrip-service.gif";
        tab4_img_z = new Image(169,27);
        tab4_img_z.src = "images/airport-service-selector/airport-limo-roundtrip-service-a.gif";

       
    }
}


// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this header

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");  
  hotDog=isIE ? event.srcElement : e.target;  
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }  
  if (hotDog.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog.style.left);
    nowY=parseInt(whichDog.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
  if (!ddEnabled) return;
  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;  
}

function ddN4(whatDog){
  if (!isN4) return;
  N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function hideMe(){
  if (isIE||isNN) whichDog.style.visibility="hidden";
  else if (isN4) document.theLayer.visibility="hide";
}


function showMe(d){
	if (d!=null) {
	document.widget.param.value=d;
	}
  if (isIE||isNN) whichDog.style.visibility="visible";
  else if (isN4) document.theLayer.visibility="show";

}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");

function widgetSubmit(d) {
	window.location="http://www.oncall24hours.com/limomaster/v1/vendors/dwiltshire/rsvp-deposit.asp?p=" + document.widget.param.value + "&p2=" + d; 
}


//-->