
function bookmark() {
	title = document.title;
	url = document.location.href;
	
    if (window.sidebar)
    {
    	window.sidebar.addPanel(title, url,"");
    }
    else if( document.all )
    {
   		window.external.AddFavorite(url, title);
    }
    else
    {
   		return true;
    }
}


  
function openNewWindow(URLtoOpen, windowName, windowFeatures)   { 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
  
function maxWindow(url, name, width, height)   {
    features = 'scrollbars=1,resizable=1,menubar=0,toolbar=0,location=0,status=0,top=0,left=0,screenX=0,screenY=0,';
    if (window.screen) {
      aw = screen.availWidth;
      ah = screen.availHeight;
      features = features+'width='+(aw-20)+',height='+(ah-38);
    }
    else {
      features = features+'width='+width+',height='+height;
    }
    window.open(url, name, features);
}

function popupWindow(url, w, h)   {
    var middleLeft = 400 - w;
    var middleTop = 10;
	        
    if (window.screen) {
      middleLeft = (screen.availWidth / 2) - (w / 2);
    }
			          
    window.open(url, '', 'scrollbars=1,resizable=0,menubar=0,toolbar=0,location=0,status=0,top='+middleTop+',left='+middleLeft+',width='+w+',height='+h);
}

function MM_preloadImages() { 
  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];}}
}
