<!-- 

if(parent !=self)
top.location.href = location.href;

var iw, ih; // Set inner width and height - USED By function screenDetect() and newBrWindow

function newBrWindow(theURL,winName,features) { //v2.0
    if (features == '' || features == null){
		features = 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=400,screenX=50,screenY=50,left=50,top=50';
	}else if (features == 'detect'){
		// used for the adoptable and stray HTML Pages to dynamically control the width and height of the pop window
		screenDetect();
		features = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+iw+',height='+ih+',screenX=25,screenY=25,left=25,top=25';
	}
//alert(features);
newWin = window.open(theURL,winName,features);
}

function screenDetect () {
 var reduction = 50;
 if (window.innerWidth == null) {
	 //alert(' u r here ');
  iw = document.body.clientWidth - reduction;
  ih = document.body.clientHeight - reduction;
 }
 else {
  iw = window.innerWidth - reduction;
  ih = window.innerHeight - reduction;
 }
 //document.write("SCREEN width="+screen.width+"<br>SCREEN height="+screen.height+"<br>");
 //document.write("WINDOW Width= "+iw+"<br>WINDOW Height= "+ih+"<br>");
 //alert("iw: " + iw + " ih: " + ih);
 return iw, ih;

}

/*

function newBrWindow(theURL,winName,features) { //v2.0

    if (features == '' || features == null)
		features = 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=400,screenX=50,screenY=50,left=50,top=50'
newWin = window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

*/

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 MM_swapImgRestore() { //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_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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.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];}
}

function date_ddmmmyy(date)
{
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getFullYear();

  var mmm = 
    ( 1==m)?'January':( 2==m)?'February':(3==m)?'March':
    ( 4==m)?'April':( 5==m)?'May':(6==m)?'June':
    ( 7==m)?'July':( 8==m)?'August':(9==m)?'September':
    (10==m)?'October':(11==m)?'November':'December';

 // return "" + mmm + " " + (d<10?"0"+d:d) + ", " + makeFullYear(y);
  return "" + mmm + " " + d + ", " + makeFullYear(y);
}

function date_lastmodified()
{
  var lmd = document.lastModified;
  var s   = "Unknown";
  var d1;

  if(0 != (d1=Date.parse(lmd)))
  {
    s = "" + date_ddmmmyy(new Date(d1));
  }

  return s;
}

function makeFullYear(y)
{
	var year;

	year = y;

	if (year < 90)
	{
		year = year + 2000;
	}
	else if (year < 100)
	{
		year = year + 1900;
	}
	else if (year < 1990)
	{
		year = year + 100;
	}

	return year;
} 

document.write("on " + date_lastmodified() );


function SearchPage(strParameters) {
 	window.location.href = strParameters + "?url=" + location.pathname;
}

function FeedbackPage(strParameters) {
 	window.location.href = strParameters + "&URL=" + location.pathname + "&Title=" + escape(document.title);
}

// -->
