function openPresentation (url) {
	var cks=document.cookie.split(';');
	var state = null;
	var i;
	var nDays = 1;

	for(i=0;i<cks.length;i++)
	{
		if(cks[i].indexOf("sxtree")!=-1)
		{
			state=cks[i].substring(cks[i].indexOf("=")+1);			
			break;
		}
	}	
	
	if(state!=null)
	{
		if (nDays>0)
		{
			var now=new Date();
		 	//fixDate(now);
			//Fix the Date
			var base=new Date (0);
			var off = base.getTime();
			if (off>0)now.setTime(now.getTime()-off);
			
			now.setTime(now.getTime()+nDays*24*60*60*1000);
			var strnow=now.toGMTString();
		
			document.cookie="sxtree="+state+"; expires="+strnow;
		}

		var retVal = window.open(url+"?state="+state,"","height=451,width=612,status=no,toolbar=no,menubar=no,location=no,titlebar=no,scrollbars=yes"); 

	}
	else
	{
		var retVal = window.open(url,"","height=451,width=612,status=no,toolbar=no,menubar=no,location=no,titlebar=no,scrollbars=yes"); 
	}
}

function openPF_Presentation (url) {
	var retVal = window.open(url,"","height=451,width=612,status=no,toolbar=yes,menubar=yes,location=no,titlebar=no,scrollbars=yes"); 
}


function openBlank (url) {
	var retVal = window.open(url, "", "height=422, width=606,status=yes,toolbar=yes,menubar=yes,location=yes,titlebar=yes,scrollbars=yes,resizable=yes");
}

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];}
}