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>';



function ggetCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {   
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
};

//checking for login status
gsession = ggetCookie("gmpsess");
gcartimages = ggetCookie("gcartimages");
gusername = ggetCookie("username");
if(!gusername || gusername == '')
        gusername = ggetCookie("gwhichuser");


goinghome=0;
function ghomelocal() {
        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: ghomelocal();" 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;">');







if (parseInt(navigator.appVersion)>3) {
        if (navigator.appName=="Netscape") {
                winW = self.innerWidth;
        }
        if (navigator.appName.indexOf("Microsoft")!=-1) {
                winW = document.body.offsetWidth;
        }
}


        if(gsession && gusername) {
                if(winW > 832){
//                document.write('<DIV style="padding-top: 4px;padding-right: 4px;"><B class=header>');
                        document.write('<B class="header">Welcome ' + gusername);
                        if( gcartimages )
                                document.write('&nbsp;&nbsp;<A href="javascr' + 'ipt:topcartrefresh();" class=nav>images in cart &rarr; Checkout</A>');
                }
                document.write('&nbsp;&nbsp;&nbsp;</B><nobr><A HREF=/bin/Profile class=nav>account</A>');
                document.write('&nbsp;&nbsp;&nbsp;<A HREF=/tools/DDload class=nav >downloads</A>');
                document.write('&nbsp;&nbsp;&nbsp;<A HREF="jav' + 'ascript: gsetCookie2\(\'username\',\'\'\);gsetCookie2\(\'gmpsess\',\'\'\);gsetCookie2\(\'gmpauth\',\'\'\);top.location=\'/index.shtml\';\" class=nav>sign-out</A>');

        } else {
                if(gsession){
  //                      document.write('<DIV style="padding-top: 4px;padding-right: 4px;">');
	document.write('<FONT class=nav><A HREF=/bin/Profile  class=nav>account</A>');
                        if(gcartimages){
                                document.write('&nbsp;&nbsp;<A href="javascr' + 'ipt:checkout();" class=nav>images in cart-Checkout</A>');
                        }
                        document.write('&nbsp;&nbsp;<nobr><A HREF=/tools/DDload class=nav>downloads</A>');
                        document.write('&nbsp;&nbsp;<A HREF="jav' + 'ascript: gsetCook');
                        document.write('ie\(\'username\',\'\'\);gsetCookie2\(\'gmpsess\',\'\'\);gsetCookie2\(\'gmpauth\',\'\'\);top.location=\'/index.shtml\';\" class=nav>sign-out</A>');

                } else {
                        //document.write('<DIV style="padding-top: 4px; padding-right: 4px;"><B class=header>');
                        //
                        document.write('<a href="/user/login.shtml" onclick="this.href+=\'?/SwishSearch?\'+q_args" class="nav"  onmouseover="MM_setTextOfLayer(\'navlayer\',\'\',\'<a href=/registration.shtml class=subnav >create new account</a> : ');
                        document.write('<a href=/bin/Profile class=subnav >modify your account</a> : <a href=/tools/DDload class=subnav >download area</a>\')"> login</a>');
                }

        }

        document.write('&nbsp;&nbsp;&nbsp; <a href="/user/search.shtml" class="nav"  on onmouseover="MM_setTextOfLayer(\'navlayer\',\'\',\'\')">search</a>&nbsp;&nbsp;&nbsp; <a href="javascript:toplightboxrefresh();" class="nav"');
        document.write('  onmouseover="MM_setTextOfLayer(\'navlayer\',\'\',\'<a href=javascr\' + \'ipt:toplightboxrefresh(); class=subnav >view your lightbox</a> : <a href=javas\' + \'cript:topcartrefresh(); class=subnav >view shopping cart</a> ');
        document.write(': <a href=/tools/DDload class=subnav >download area</a>\')">my lightbox</a>&nbsp;&nbsp;&nbsp; <a href="/help_starthere.shtml" class="nav" onmouseover="MM_setTextOfLayer(\'navlayer\',\'\',\'<a href=/help_starthere.shtml class=subnav >start here</a> ');
        document.write(': <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> : ');
        document.write('<a href=/help_faq.shtml class=subnav >faq</a>\')">help</a>&nbsp;&nbsp;&nbsp; <a href="/contact.shtml" class="nav" onmouseover="MM_setTextOfLayer(\'navlayer\',\'\',\'\')">contact</a>&nbsp;');
        document.write('</nobr></font></DIV>');







//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>');
document.write('<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 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 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="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="ghomelocal(); 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>');

