 <!--
 
/*  Popup window function */

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


/*  Random image with popup link function */

pic_width=140;   /*change to match the height of all your images */
pic_height=210;   /* change to match the width of all your images */
border_size=0;   /* change to the border size you want on the images */
alignment=1;      /* 0=left,1=center */

if (document.images)
 {
     pic1= new Image(140,210);
     pic1.src="/canada/images/banner_control_cost.jpg"; 
     pic2= new Image(140,210); 
     pic2.src="/canada/images/banner_manage_complexity.jpg"; 
     pic3= new Image(140,210);
     pic3.src="/canada/images/banner_ensure_continuity.jpg";  
     pic4= new Image(140,210);
     pic4.src="/canada/images/banner_optimize_collaboration.jpg";
 }    


popadd1="/canada/popups/control_cost.html";
popadd2="/canada/popups/manage_complexity.html";
popadd3="/canada/popups/ensure_continuity.html";
popadd4="/canada/popups/optimize_collaboration.html";

altadd1="Control&nbsp;Costs.";
altadd2="Manage&nbsp;Complexity.";
altadd3="Ensure&nbsp;Continuation.";
altadd4="Optimize&nbsp;Collaboration.";

/* no need to edit past this point (unless you want to add more image slots) */

if (alignment==1)
 {
  cent_it="<CENTER>";
  cent_it2="<\/CENTER>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }
 
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_Image()
{
 if (document.images)
 {
  var choose_one= get_random(4);  
  choose_one--;

  var pics= new Array(4) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   
   var popups= new Array(4) 
   popups[0]=popadd1;
   popups[1]=popadd2;
   popups[2]=popadd3;
   popups[3]=popadd4;

   var alttags= new Array(4)
   alttags[0]=altadd1;
   alttags[1]=altadd2;
   alttags[2]=altadd3;
   alttags[3]=altadd4;

  
    if (pics[choose_one] == null) {
    
    document.write("<a href=\"javascript:openWindow('/canada/popups/control_cost.html','popup','width=470,height=370,scrollbars')\"><IMG SRC='/canada/images/buttons_control_cost.jpg' width='140' height='210' border='0' alt='Control Costs.'></a>");
    }
    else {
    document.write("<a href=\"javascript:openWindow('"+popups[choose_one]+"','popup','width=470,height=370,scrollbars')\"><IMG SRC="+pics[choose_one]+" alt="+alttags[choose_one]+" width='140' height='210' border='0'></a>");
    }
  }
} 

  //-->