function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}

function setPrintedPage(altdoc) {
var prt;
var prt = document.getElementsByTagName("link")[0];
prt.setAttribute("href", altdoc);
printWindow();
}

function mmLoadMenus() {
  if (window.mm_menu_0820105442_0) return;
  window.mm_menu_0820105442_0 = new Menu("root",150,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#FFFFFF","#B6E3FA","#0F89C4","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
  mm_menu_0820105442_0.addMenuItem("Completed Ventures","location='completed-ventures.html'");
  mm_menu_0820105442_0.addMenuItem("Ongoing Ventures","location='ongoing-ventures.html'");
  mm_menu_0820105442_0.addMenuItem("Proposed Ventures","location='proposed-ventures.html'");
   mm_menu_0820105442_0.fontWeight="bold";
   mm_menu_0820105442_0.hideOnMouseOut=true;
   mm_menu_0820105442_0.bgColor='#555555';
   mm_menu_0820105442_0.menuBorder=1;
   mm_menu_0820105442_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0820105442_0.menuBorderBgColor='#777777';

mm_menu_0820105442_0.writeMenus();
} // mmLoadMenus()


//Copy Right
function copyRight(startYear) {	
    date = new Date();
    year = date.getFullYear();
    if ( (year - startYear) > 0){
       document.write(startYear + " - " + year);
    }else{
     document.write(startYear);
    } 
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function ir() { //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 preloadImages() {
	MM_preloadImages('/i/castles-on.gif','/i/export-bureau-on.gif','/i/xmas-specials-on1.gif','/i/swap-images-5.gif','/i/swap-images-6.gif','/i/swap-images-7.gif','/i/swap-images-8.gif','/i/swap-images-9.gif','/i/swap-images-10.gif','/i/swap-images-11.gif','/i/swap-images-12.gif','/i/swap-images-13.gif','/i/swap-images-14.gif','/i/swap-characters.gif','/i/swap-products.gif','/i/swap-costumes.gif','/i/swap-sports.gif','/i/swap-balloons.gif','/i/swap-others.gif','/i/xmas-specials-on.gif')
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function si() { //v3.0
  var i,j=0,x,a=si.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];}
}
