<?xml version="1.0"?>
<!-- results.html -->
<html>
	<head>
		<!-- EDITABLE REGION: ENTER PAGE TITLE HERE -->
		<title>Brooklyn Children's Museum: Collections Central Online</title>
		<!-- END EDITABLE REGION -->
		<!-- INCLUDE THE MAIN SITE STYLE SHEET -->
		<link rel="stylesheet" type="text/css" media="screen,print" href="../js_and_css/main.css"/>
		<script language="Javascript">


//alert("Loading script.html");

function clearNew()
{
	//clear the 'new' values which are used for page navigation
	// (this protects against problems occuring when the user clicks the
	// browser 'back' button)

	//&newvalues=1 flags the beginning of any 'new' state values that get set for navigation
	//Clear out any existing before setting.

	var i = document.frm.action.indexOf('&newvalues');
	if(i>0)
	{
		document.frm.action = document.frm.action.substr(0,i);
	}
}

function linksearch(profile, fieldname, fieldvalue, style, searchdesc)
{
	clearNew();
	document.frm.emu_action.value = 'searchrequest';
	var searchop = 'is';

        if (profile == "objects") {
	   searchop = ':';
	}

	//Build the URL-encoded search string
	document.frm.action += '&newvalues=1&rawsearch=' + fieldname + '/,/' + searchop + '/,/' + fieldvalue + '/,/false&newstyle=' + style + '&newprofile=' + profile + '&newsearchdesc=' + searchdesc + '&newcurrentrecord=1';
	document.frm.submit();
}

function singleview(newpage)
{
	clearNew();
  	document.frm.emu_action.value = 'newpage';
	document.frm.action += '&newvalues=1&newstyle=single&newcurrentrecord=' + newpage;
	document.frm.submit();
}

function submitpage(action,para)
{
	clearNew();
  	document.frm.emu_action.value = action;
  	var cS;
  	if (document.frm.action.indexOf("?")==-1){cS='?'}else{cS='&'}

	switch (action)
	{
	case 'newpage' :
		document.frm.action += cS + 'newvalues=1&newcurrentrecord=' + para;
	  	break
	case 'style' :
	  	document.frm.action += cS + 'newvalues=1&newstyle=' + para;
	  	break
	case 'sort' :
	  	document.frm.action += cS + 'newvalues=1&newcurrentrecord=1&newsortstring=' + para;
	  	break;
	case 'page' :
		document.frm.emu_action.value = 'newpage';
		document.frm.action += cS + 'newvalues=1&newpage=' + para;
		break;
	default :
	  	break
	}

  	document.frm.submit();
}

function submitcollection(colname,colid)
{
	clearNew();

	document.frm.emu_action.value = 'collection'
	document.frm.action = 'emuseum.asp?emu_action=collection&collection=' + colid + '&collectionname=' + escape(colname) + '&currentrecord=1';
  	document.frm.submit();
}

function openWindow(winURL,winName,winFlags)
{
    var myWindow=window.open(winURL,winName,winFlags);
    myWindow.focus();
}

function submitReport(reportname)
{
	document.report.action = 'eMuseum.asp?emu_action=report&report=' + reportname + '&sessionid=' + document.frm.sessionid.value;
	openWindow('','reportPopup','width=800,height=600,scrollbars=yes,resizable=yes');
	document.report.submit();
}

function changepage(page,profile)
{
	clearNew();
	document.frm.emu_action.value = 'newpage';

	if(document.frm.action.indexOf('?') > 0)
	{
		document.frm.action += '&';
	} else {
		document.frm.action += '?';
	}
	document.frm.action += 'newvalues=1&newpage=' + page + '&newprofile=' + profile;
	document.frm.submit();
}

function browseExhibits()
{
        clearNew();


	if(document.frm.action.indexOf('?') > 0)
	{
		document.frm.action += '&';
	} else {
		document.frm.action += '?';
	}

	document.frm.action = 'emuseum.asp?style=browse&profile=exhibitions';
	document.frm.submit();
}

function setMedia(filename,caption,title,mediatype) {
	//selects a particular media record for enlarging
	document.media.filename.value = filename;
	document.media.caption.value = caption;
	document.media.title.value = title;
	document.media.mediatype.value = mediatype;
	spawn('../html/media_enlarged.html','popup','600','650');
}

function setMediaToDraw(filename,title,mediatype,objnumber) {
// NOTE this passes information on the object to the draw page
//  by appending parameters to the emuseum.asp query string.
//  This is predicated on the assumption that emuseum will safely
//  ignore any extra parameters.  It does at present.

	clearNew();
	document.frm.emu_action.value = 'newpage';

	if(document.frm.action.indexOf('?') > 0)
	{
		document.frm.action += '&';
	} else {
		document.frm.action += '?';
	}
	document.frm.action += 'newvalues=1&newpage=draw&newprofile=objects&drawfilename='+filename+'&drawtitle='+title+'&drawmediatype='+mediatype+'&drawobjnumber='+objnumber;

	document.frm.submit();

}


function spawn(url, nameW, w, h) {

  	if (navigator.appVersion.indexOf('4') != -1) {
		// Vars for centering the new window on Version 4 Browsers
		x4 = screen.width/2 - (w/2);
		y4 = screen.height/2 - (h/2);
		window.open(url, nameW, 'height='+h+',width='+w+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + x4 + ',top=' + y4 + '');
  	} else {
    	window.open(url, nameW, 'height='+h+',width='+w+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=150,top=200');
	}
}

function openImage(imgName,sTitle,sCaption){
	var sHTML = "<html><head><title>"+sTitle+"</title><link rel='stylesheet' href='../txtStyle.css' type='text/css'/></head><body><table cellpadding='0' cellspacing='0' border='0' width='100%'><tr valign='top'><td class='title'>"+sTitle+"</td><td align='right' class='txt'><a href='javascript:window.close();'>Close</a></td></tr><tr><td class='txt'>"+sCaption+"</td><td></td></tr></table><br><img src='getimage.asp?filename="+imgName+"&type=full' width='400' height='400' border='0' alt='"+sTitle+"'></body></html>";
	var theWindow = "";
	theWindow = window.open("","","height=540,width=540,resizable,scrollbars");
	if(theWindow){
    	theWindow.document.write(sHTML);
    	theWindow.document.close();
  	}
}
</script>
		<!-- INCLUDE NECESSARY JAVASCRIPT -->
		<script language="JavaScript" type="text/JavaScript" src="../js_and_css/timeout.js"></script>
		<script language="JavaScript" type="text/JavaScript" src="../js_and_css/main.js"></script>
		<script language="javascript">
			<!--
    function preloadArray(dir,arrayName) {
      if (document.images) {
        for (var i=0; i<eval(arrayName+'.length'); i++) {
          CURR_ARRAY_ITEM = eval(arrayName+'[i]');
          eval(CURR_ARRAY_ITEM+'_on = new Image()');
          eval(CURR_ARRAY_ITEM+'_on.src = dir+"'+CURR_ARRAY_ITEM+'_on.gif";');
          eval(CURR_ARRAY_ITEM+'_off = new Image()');
          eval(CURR_ARRAY_ITEM+'_off.src = dir+"'+CURR_ARRAY_ITEM+'_off.gif";');
        }
      }
    }

    var imageList = new Array('home','collections','bigsearch','help');
    preloadArray('../images/menu/','imageList');

    function rollIn(imgName) {
      if (document.images){
        document[imgName].src=eval(imgName + "_on.src");
      }
    }

    function rollOut(imgName) {
      if (document.images) {
        document[imgName].src=eval(imgName + "_off.src");
      }
    }

    function spawn1(url, nameW, w, h) {
      if (navigator.appVersion.indexOf('4') != -1) {
        // Vars for centering the new window on Version 4 Browsers
        x4 = screen.width/2 - (w/2);
        y4 = screen.height/2 - (h/2);
        window.open(url, nameW, 'height='+h+',width='+w+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + x4 + ',top=' + y4 + '');
      }
      else {
        window.open(url, nameW, 'height='+h+',width='+w+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=150,top=200');
      }
    }
  //-->
		</script>
	</head>
	<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
		<form name="frm" action="emuseum.asp?style=single&currentrecord=1&page=search&profile=objects&searchdesc=Keyword:%20flip%20flop" method="post">
			<fields>

<!-- hidden state fields that do not need to be in URL -->

<input type="hidden" name="currentstateobjects" value=""/>
				<input type="hidden" name="currentstatepeople" value=""/>
				<input type="hidden" name="searchdescription"/>
				<input type="hidden" name="searchxml"/>
				<input type="hidden" name="term" value=""/>
				<input type="hidden" name="sessionid" value=""/>
				<input type="hidden" name="emu_action" value="quicksearch"/>
			</fields>
		</form>
		<!-- ****** CHANGED TABLE WIDTH TO 777 TO FIT TOP NAVIGATION TABLE ****** -->
		<div id="wrapper">
			<table border="0" cellspacing="0" cellpadding="0" width="775">
				<tr><td valign="top" height="80">
						<div id="nav">
							<table cellspacing="0" cellpadding="0" border="0" width="775"><tr valign="bottom">
									<td><img src="../images/navtop/ccentral.gif" width="480" height="80" border="0" alt="Collections Central"/></td>
									<td><a href="javascript:changepage('pick_object', 'objects');" onmouseover="MM_swapImage('01draw','','../images/navtop/01draw_on.gif',1)" onmouseout="MM_swapImgRestore()"><img src="../images/navtop/01draw_off.gif" name="01draw" width="74" height="80" border="0" id="01draw" alt="Draw"/></a></td>
									<td><a href="javascript:browseExhibits();" onmouseover="MM_swapImage('02exhi','','../images/navtop/02exhi_on.gif',1)" onmouseout="MM_swapImgRestore()"><img src="../images/navtop/02exhi_off.gif" name="02exhi" width="74" height="80" border="0" id="02exhi" alt="Exhibits"/></a></td>
									<td><a href="javascript:changepage('search_advanced','objects');" onmouseover="MM_swapImage('03srch','','../images/navtop/03srch_on.gif',1)" onmouseout="MM_swapImgRestore()"><img src="../images/navtop/03srch_off.gif" name="03srch" width="74" height="80" border="0" id="03srch" alt="Search"/></a></td>
									<td><a href="emuseum.asp" onmouseover="MM_swapImage('04home','','../images/navtop/04home_on.gif',1)" onmouseout="MM_swapImgRestore()"><img src="../images/navtop/04home_off.gif" name="04home" width="73" height="80" border="0" id="04home" alt="Home"/></a></td>
								</tr></table>
						</div>
					</td></tr>
				<tr valign="top"><td>
						<a name="main"></a>
						<!-- page body -->
						<result/>
						<!-- page body end -->
					</td></tr>
				<tr><td valign="bottom"><div id="footer">
							<table cellspacing="0" cellpadding="0" border="0" id="footertable" width="775">
								<tr valign="bottom">
									<td><a href="http://www.brooklynkids.org" target="_blank"><img src="../images/navbottom/01bcm.gif" width="198" height="25" border="0"/></a></td>
									<td><img src="../images/navbottom/line.gif" width="1" height="25" border="0"/></td>
									<td><a href="javascript:changepage('behind_the_scenes','objects');">
											<img src="../images/navbottom/02behind.gif" width="155" height="25" border="0"/></a></td>
									<td><img src="../images/navbottom/line.gif" width="1" height="25" border="0"/></td>
									<td><a href="javascript:changepage('rights','objects');">
											<img src="../images/navbottom/04rights.gif" width="168" height="25" border="0"/></a></td>
									<td><img src="../images/navbottom/line.gif" width="1" height="25" border="0"/></td>
									<td><img src="../images/navbottom/05copy.gif" width="251" height="25" border="0"/></td>
								</tr>
							</table>
						</div>
					</td></tr>
			</table>
		</div>
	</body>
</html>

<!-- Start of TheCounter.com Code -->
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
s="na";c="na";j="na";f=""+escape(document.referrer)
</SCRIPT>
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript1.2">
s=screen.width;v=navigator.appName
if (v != "Netscape") {c=screen.colorDepth}
else {c=screen.pixelDepth}
j=navigator.javaEnabled()
</SCRIPT>
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
function pr(n) {document.write(n,"\n");}
NS2Ch=0
if (navigator.appName == "Netscape" &&
navigator.appVersion.charAt(0) == "2") {NS2Ch=1}
if (NS2Ch == 0) {
r="&size="+s+"&colors="+c+"&referer="+f+"&java="+j+""
pr("<A HREF=\"http://www.TheCounter.com\" TARGET=\"_top\"><IMG"+
" BORDER=0 SRC=\"http://c3.thecounter.com/id=2593818"+r+"\"><\/A>")}
</SCRIPT>
<NOSCRIPT><A HREF="http://www.TheCounter.com" TARGET="_top"><IMG
SRC="http://c3.thecounter.com/id=2593818" ALT="TC" BORDER=0></A>
</NOSCRIPT>
<!-- End of TheCounter.com Code -->

