function openpopup(url,name,options,fullscreen) {
  windowobj = window.open(url,name,options);
  if (fullscreen) {
     windowobj.moveTo(0,0);
     windowobj.resizeTo(screen.availWidth,screen.availHeight);
  }
  windowobj.focus();
  return false;
}

function fullsizeimage(url,name,options) {
	windowobj = window.open(url,name,options);
	//windowobj.moveTo(0,0);
	windowobj.resizeTo(windowobj.document.images[0].width +30, windowobj.document.images[0].height+60-i);
	windowobj.focus();
	return false;
}


/*
* expects el to be something like document.getElementsByClassName('some class');
* curPot is global too
*/
function rollitem()
{
	Effect.Fade(el[curPot].id, { queue: { position: 'end', scope: 'menuxscope', limit: 2 } } );
	if( curPot+1 >= el.length )
		curPot = 0;
	else
		curPot++;
	Effect.Appear(el[curPot].id, { queue: { position: 'end', scope: 'menuxscope', limit: 2 } } );
}
