if ((navigator.appVersion.indexOf("Win") != -1)) {
	document.write("<LINK REL=\"stylesheet\" HREF=\"/_css/screen.css\" TYPE=\"text/css\">"); }
	else {
	document.write("<LINK REL=\"stylesheet\" HREF=\"/_css/screen.css\" TYPE=\"text/css\">"); }


var win= null;
	function NewWindow(mypage,myname,w,h,scroll,mediaid)
		{
			mypage = PBEURL(mypage);
			mypage = mypage + "&a-Common_PicturePopUp-id=" + mediaid + "&button-Common_PicturePopUp-find=";
			var winl = (screen.width-w)/2;
			var wint = (screen.height-h)/2;			settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=yes,dependent=no'
			win=window.open(mypage,myname,settings)
			if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
		}

// copyright by blackbit interactive gmbh, stefano viani, 2002 
// Script Submit Search on Enter or Return
function FormSubmit(theForm) {
	isNetscape=(document.layers);
	thekey = (isNetscape) ? keyStroke.which : event.keyCode;
	if	((thekey == 13) || (thekey == 3)) {
		if (theForm.name == 'Common_StorySearch')	{
			document.forms.Common_StorySearch.elements['command-Common_StorySearch-story_search'].value='x';
			theForm.submit();
			}
		else if (theForm.name == 'o_EcardSearch')	{
			document.forms.o_EcardSearch.elements['command-o_EcardSearch-start_search'].value='x';
			theForm.submit();
		}
		else if (theForm.name == 'Common_Login')	{
			document.forms.Common_Login.elements['command-Common_Login-common_login'].value='x';
			theForm.submit();
		}
	}
}

var nwin= null;

function NewNWindow(mypage,myname,w,h,scroll){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;

	settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=yes,dependent=no'
	nwin=window.open(mypage,myname,settings)
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function PrintWindow() {
	if (window.print) {
		window.print();
		}
	}
				
				
function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("contentcenter");
  var lHeight = xHeight("contentleft");
  var rHeight = xHeight("contentright");

  // Find the maximum height
  var maxHeight =
    Math.max(cHeight, Math.max(lHeight, rHeight));

  // Assign maximum height to all columns
  xHeight("contentcenter", maxHeight);
  xHeight("contentleft", maxHeight);
  xHeight("contentright", maxHeight);

  // Show the footer
  xShow("footer");
}

// window.onload = function()
// {
  // xAddEventListener(window, "resize", adjustLayout, false);
  // adjustLayout();
// }

