sb = '<a href=javascript:toplightboxrefresh(); class=subnav >view your lightbox</a> : <a href=javascript:topcartrefresh(); class=subnav >view shopping cart< /a> : <a href=/tools/DDload class=subnav >download area</a>';
sh = '<a href=/help_starthere.shtml class=subnav >start here</a> : <a href=/help_login.shtml class=subnav>logging in</a> : <a href=/help_search.shtml class=subnav >searching</a> : <a href=/help_lightbox.shtml class=subnav >lightboxes</a> : <a href=/help_purchase.shtml class=subnav >purchasing</a> : <a href=/help_faq.shtml class=subnav >faq</a>';
sa = ' <a href=/aboutus_mission.shtml class=subnav>about us</A>';
sl = '<a href="/registration.shtml">create new account</a> : <a href="/bin/Profile">modify your account</a> : <a href="/tools/DDload">Download area</a>';


goinghome=0;
function ghome() {
        if(goinghome==1){
        } else {
                gsetCookie("gwhichstartpage","", "", "/", gGetCookieDom());
                var gurl = document.qform.Keywords.value + '';
                var orient = '';
		goptionals='';
                if (document.qform.orientvertical.checked && document.qform.orienthorizontal.checked){
                } else {
                 if (document.qform.orientvertical.checked){
                 orient += '&orient=vertical';
                 }
                 if (document.qform.orienthorizontal.checked){
                         orient += '&orient=horizontal';
                 }
                }
                if (document.qform.colorcolor.checked && document.qform.colorgray.checked){
                } else {
                 if (document.qform.colorcolor.checked){
                 orient += '&color=color';goptionals = '+not+colorgray';
                 }
                 if (document.qform.colorgray.checked){
                 orient += '&color=gray';goptionals = '+NOT+(color+photography)';
                 }
		}
                if (document.qform.searchinclude[0].checked && ! document.qform.searchinclude[1].checked){
                orient += '&searchinclude=RM';
                }
                if (document.qform.searchinclude[1].checked && ! document.qform.searchinclude[0].checked){
                orient += '&searchinclude=RF';
                }
                var theurl= '/SwishSearch?submit.x=0&submit.y=0&Keywords=' + gurl + goptionals  + orient ;
                if(gusername){
                        theurl += '&Username=' + gusername;
                }
                self.location='' + theurl;
                goinghome=1;

        }
}

document.write('<TABLE WIDTH=100% height=124 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
document.write('	<form method="get" action="javascript: ghome();" enctype="application/x-www-form-urlencoded" name="qform">');
document.write('	<TR>');
document.write('		<TD width=100% ">');
document.write('			<TABLE WIDTH=100% height=124 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
document.write('				<TR height="107">');
document.write('					<TD width=300 height=124 ROWSPAN=2 valign=middle align=center>');
document.write('						<A HREF="/"><IMG src="/graphics/SClogo-big.gif" width="280" height="107" border="0" hspace="10"></A>');
document.write('					</TD>');
document.write('					<TD height="107" valign="top">');
document.write('						<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>');
document.write(' 							<td height="106" width="48" valign="top"><img src="/graphics/homepagemockup_02.gif" width="48" height="106" alt=""></td>');
document.write('							<td background="/graphics/homepagemockup_03.gif" align="left" valign="top" >');
document.write('									<div style="width:98%; padding-top:2px;padding-right: 3px;padding-left: 9px; text-align: right; float: right;">');
document.write('										<a href="/" class="nav">home</a>&nbsp;&nbsp;&nbsp;<a href="/user/login.shtml" class="nav" onmouseover="MM_setTextOfLayer(\'Subnav\',\'\',sl)">login</a>&nbsp;&nbsp;&nbsp; <a href="/bin/Register" class="nav"> register </a> &nbsp;&nbsp;&nbsp; <a href="/user/search.shtml" class="nav" onmouseover="MM_setTextOfLayer(\'Subnav\',\'\',\'\')">advanced search</a>&nbsp;&nbsp;&nbsp; <a href="javascript:toplightboxrefresh();" class="nav" onmouseover="MM_setTextOfLayer(\'Subnav\',\'\',sb)">my lightboxes</a>&nbsp;&nbsp;&nbsp; <a href="/help_starthere.shtml" class="nav" onmouseover="MM_setTextOfLayer(\'Subnav\',\'\',sh)">help</a>&nbsp;&nbsp;&nbsp; <a href="/contact.shtml" class="nav" onmouseover="MM_setTextOfLayer(\'Subnav\',\'\',\'\')">contact</a>');
document.write('									</div><BR clear=all\>');
document.write('						<table border="0" cellpadding="2" cellspacing="3" width="100%">');
document.write('							<tr>');
document.write('								<td valign="top" width=15%>');
document.write('									<div style="padding-left: 2px;">');
document.write('										<b class="header">Keyword Search:</b>');
document.write('										<br>');
document.write('										<div>');
document.write('											<table cellpadding=0 cellspacing=2 border=0>');
document.write('												<tr>');
document.write('													<td valign="top">');
document.write('														<input type="text" name="Keywords" maxlength="200" class="homekeys" value="enter keywords" onfocus="if(this.value == \'enter keywords\'){this.value=\'\';}">');
document.write('													</td>');
document.write('												</tr>');
document.write('											</table>');
document.write('											<BR>');
document.write('											<BR>');
document.write('										</div>');
document.write('								</td>');
document.write('								<td valign="top" width="7%">');
document.write('									<font class="header"><b>Orientation:</b></font><b>');
document.write('										<br>');
document.write('									</b> ');
document.write('									<table cellspacing="1" cellpadding="0" border="0">');
document.write('										<tr>');
document.write('											<td><font class="black2"><nobr><input type="checkbox" name="orienthorizontal" value="horizontal" checked> Horizontal</nobr></font></td>');
document.write('										</tr>');
document.write('										<tr>');
document.write('											<td>');
document.write('												<font class="black2"> <input type="checkbox" name="orientvertical" value="vertical" checked> Vertical</font>');
document.write('											</td>');
document.write('										</tr>');
document.write('									</table>');
document.write('								</td>');
document.write('								<td width="5" valign="top">');
document.write('								</td>');
document.write('								<td valign="top" width="5%">');
document.write('									<font class="header"><b>Color:</b></font>');
document.write('									<br>');
document.write('									<table cellspacing="1" cellpadding="0" border="0">');
document.write('										<tr>');
document.write('											<td><font class="black2"><nobr><input type="checkbox" name="colorcolor" value="color" checked>&nbsp;Color</nobr></font></td>');
document.write('										</tr>');
document.write('										<tr>');
document.write('											<td>');
document.write('												<font class="black2"> <input type="checkbox" name="colorgray" value="gray" checked> B/W</font>');
document.write('											</td>');
document.write('										</tr>');
document.write('									</table>');
document.write('								</td>');
document.write('								<td width="5" valign="top">');
document.write('								</td>');
document.write('								<td valign="top" width="5%">');
document.write('									<font class="header"><b>Type:</b></font>');
document.write('									<br>');
document.write('									<table cellspacing="1" cellpadding="0" border="0">');
document.write('										<tr>');
document.write('											<td><font class="black2"><nobr><input type="checkbox" name="searchinclude" value="RM" checked>&nbsp;Rights Managed</nobr></font></td>');
document.write('										</tr>');
document.write('										<tr>');
document.write('											<td>');
document.write('												<font class="black2"> <input type="checkbox" name="searchinclude" value="RF" checked> Royalty Free</font>');
document.write('											</td>');
document.write('										</tr>');
document.write('									</table>');
document.write('								</td>');
document.write('								<td width="5" valign="top">');
document.write('								</td>');
document.write('								<td valign="top" width="10%">');
document.write('									<font class="black2"><b> </b></font>');
document.write('									<br>');
document.write('									<input type="image" name="Search" src="/graphics/button_go.gif" width=18 height=20 alt="Start Search" border="0" onclick="ghome(); return false" vspace="2" />');
document.write('								</td><td valign="top" width="10%">');

document.write('								<td valign="top">');
document.write('								&nbsp;</td>');
document.write('							</TR></TABLE></TD>');
document.write('							</FORM>');

document.write(' <td height="106" width="50" valign="top"><img src="/graphics/homepagemockup_04.gif" width="50" height="106" alt=""></td>');
document.write('							</TR>');
document.write('						</TABLE></TD>');

document.write('					</TD>');
document.write('				</TR>');
document.write('			</TABLE>');

