

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=300,left = 462,top = 234');");
}



var picsa = new Array(
                      "http://www.webcubic.net/production/javalib/images/rafael3s.jpg",  
                      "http://www.webcubic.net/production/javalib/images/diana5s.jpg", 
                      "http://www.webcubic.net/production/javalib/images/billy6s.jpg",  
                      "http://www.webcubic.net/production/javalib/images/angela.jpg",
                      "http://www.webcubic.net/production/javalib/images/itsbarb.jpg",
                      "http://www.webcubic.net/production/javalib/images/eric.jpg",
                      "http://www.webcubic.net/production/javalib/images/ps4good.jpg",
                      "http://www.webcubic.net/production/javalib/images/edmoreno.jpg",
                      "http://www.webcubic.net/production/javalib/images/johnvalle.jpg",
                      "http://www.webcubic.net/production/javalib/images/jeanhomehorse.jpg"
                      )
var imgsa = new Array(
                      "Rafael Cazares, RafaelCazares.com",
                      "Diana Newkirk, Evergreen Realty, DianaNewkirk.com",
                      "Billy Wynn, Re/Max, www.BillyWynn.com",
                      "Angela Squitieri, RE/MAX Preston Road",
                      "Barbara Snyder, Its Barb.com",
                      "PRO 100 ELITE SALES CLUB, Eric OC Homes.com",
                      "Fernando G. Ruiz, Coldwell Banker",
                      "Tradestar Mortgage and Realty",
                      "San Diego Real Estate 4 Sale",
                      "Jean Home and Horse . com"
                      )
var lnksa = new Array(
                      "http://www.rafaelcazares.com",
                      "http://www.diananewkirk.com",
                      "http://www.billywynn.com",
                      "http://www.angelasellsdfw.com",
                      "http://www.itsbarb.com",
                      "http://www.ericsochomes.com",
                      "http://www.ps4good.com",
                      "http://www.edmoreno.com",
                      "http://www.san-diego-real-estate-4-sale.com",
                      "http://www.JEANHOMEANDHORSE.COM"
                       )
var alta = new Array()
var imgCta = picsa.length
var currentAda = Math.round(Math.random()*imgCta);
while (currentAda >= imgCta) currentAda = currentAda - imgCta ;

var currentAda1 = Math.round(Math.random()*imgCta);
while (currentAda1 == currentAda) currentAda1++;
while (currentAda1 >= imgCta) currentAda1 = currentAda1 - imgCta ;
 
var currentAda2 = Math.round(Math.random()*imgCta);
while ((currentAda2 == currentAda) || (currentAda2==currentAda1)) currentAda2++;
while (currentAda2 >= imgCta) currentAda2 = currentAda2 - imgCta ;


function cyclea() {
  adLinka.innerText=imgsa[currentAda]
  adLinka.href=lnksa[currentAda]
  adPic.src = picsa[currentAda]
  setTimeout("cyclea()",100 * 1000)
}


function cyclea1() {
  adLinka1.innerText=imgsa[currentAda1]
  adLinka1.href=lnksa[currentAda1]
  adPic1.src = picsa[currentAda1]
  setTimeout("cyclea1()",100 * 1000)
}

function cyclea2() {
  adLinka2.innerText=imgsa[currentAda2]
  adLinka2.href=lnksa[currentAda2]
  adPic2.src = picsa[currentAda2]
  setTimeout("cyclea2()",100 * 1000)
}




// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 50000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
// var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

var Pic = new Array('http://66.216.68.19/production/templates/r01/images/style18-1-b.gif',
		            'http://66.216.68.19/production/templates/r01/images/style15-6-b.gif',
                    'http://66.216.68.19/production/templates/r01/images/style5-8-b.gif',
                    'http://66.216.68.19/production/templates/r01/images/style10-4-b.gif',
                    'http://66.216.68.19/production/templates/r01/images/style9-3-b.gif',
                    'http://66.216.68.19/production/templates/r01/images/style17-9-b.gif',
                    'http://66.216.68.19/production/templates/r01/images/style11-1-b.gif',
                    'http://66.216.68.19/production/templates/r01/images/style6-1-b.gif',
                    'http://66.216.68.19/production/templates/r01/images/style8-3-b.gif',
                    'http://66.216.68.19/production/library/greeting/images/pic104.jpg',
                    'http://66.216.68.19/production/templates/r01/images/style7-6-b.gif',
                    'http://66.216.68.19/production/library/greeting/images/pic046.jpg',
                    'http://66.216.68.19/production/templates/r01/images/style3-10-b.gif'
);


// =======================================
// do not edit anything below this line
// =======================================

var t
var p = Pic.length
var j = Math.round(Math.random()*p);
if (j >= p) j=0;

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}




function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function pausecomp(Amount)
{
   d = new Date() //today's date
   while (1)
     {
           mill=new Date() // Date Now
           diff = mill-d //difference in milliseconds
           if( diff > Amount ) {break;}
      }
}

function add_product(pID)
{

  if (pID == "0")  {
    window.open( "http://www.1shoppingcart.com/app/netcart.asp?MerchantID=51922&mode=Clear%20Shopping%20Cart",'' , 'left=0, top=0,fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=1,height=1');
  } else if (pID == "9999999") {
    pausecomp(2000);
//    window.open( "http://www.1shoppingcart.com/app/netcart.asp?MerchantID=51922&mode=Check%20Out", '' , 'fullscreen=no,toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,directories=yes,location=yes');
window.open( "http://www.1shoppingcart.com/app/netcart.asp?MerchantID=51922&ProductID=", '' , 'fullscreen=no,toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,directories=yes,location=yes');
  } else {   
    window.open( "http://www.1shoppingcart.com/app/netcart.asp?MerchantID=51922&ProductID=" + pID + "&q=1",'' , 'left=0, top=0,fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=1,height=1');
  }
  
  pausecomp(1000);
}

function buy_now(form, setupID, hostID)
{
  
  var w = 480, h = 340;

  if (document.all || document.layers) {
   w = screen.availWidth;
   h = screen.availHeight;
  }
  var popW = 300, popH = 100;
  var leftPos = (w-popW)/2, topPos = (h-popH)/2;
  var oWin=window.open('','payment','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos);
  oWin.document.write("Please wait while processing ....");
  //clear shopping cart
    add_product("0");
    
  //buy domain
  if (form.domain.checked) add_product("1767170");

  //buy e-mail
  if (form.email.checked) add_product("1769465");
   
  //buy website
     add_product(setupID);   //setup
     add_product(hostID);   //hosting  
  
  //check out
  
   oWin.document.write("Completed. <br>Please review your shopping cart");
   add_product("9999999");
   
   oWin.close();
   
}
