<!--
// Dynamic External HTML Loader V2
// (C) 2005 Doug Campanella
function az_feed_show_html(az_new_feed_url){
  document.writeln('<Div id="az_show_feed">');
  document.writeln('<sc'+'ript src="'+az_new_feed_url+'" type="text/javascript"><\/sc'+'ript>');
  document.writeln('</Div>');
  document.close();
  return;
}
function az_feed_get_html(az_new_feed_url,az_feed_pop){
   var az_feed_to_url=document.location.href;
   if ((az_feed_pop==1)&&(typeof(az_feed_pop_url)!='undefined'))
   {
		az_feed_to_url=az_feed_pop_url;
   }
   var az_anchor_name='';
   if (az_new_feed_url.indexOf("#")!=-1)
   {
     az_anchor_name=az_new_feed_url.substring(az_new_feed_url.indexOf("#"),az_new_feed_url.length);
     az_new_feed_url=az_new_feed_url.substring(0,az_new_feed_url.indexOf("#"));
   }
   if (az_feed_to_url.indexOf("?")==-1)
   {
    az_feed_to_url+='?az_feed_pos='+escape(az_new_feed_url);
   }
   else
   {
    if (az_feed_to_url.indexOf("az_feed_pos=")==-1)
     az_feed_to_url+='&az_feed_pos='+escape(az_new_feed_url);
    else
    {
     az_feed_to_url=az_feed_to_url.substring(0,az_feed_to_url.indexOf("az_feed_pos="));
     az_feed_to_url+='az_feed_pos='+escape(az_new_feed_url);
    }
   }
   if (az_feed_pop==1)
   {
    window.open(az_feed_to_url+az_anchor_name);
   }
   else
   {
    document.location.href=az_feed_to_url+az_anchor_name;
   }
   return;
}
function az_feed_start(){
  var az_feed_to_url=document.location.href;
  if (az_feed_to_url.indexOf("az_feed_pos=")==-1)
  {
    if (typeof(az_olb_type)=='undefined')
		{
    	if (typeof(az_pr_type)!='undefined')
			{
	    	if (typeof(az_feed_uid)=='undefined')
				{
	   	 		az_feed_show_html('http://www.auctionzip.com/cgi-bin/rsearch.cgi?feed='+az_feed+'&top=4&rand=1');
					return;
				}
				else
				{
	    		if (typeof(az_feed_group)=='undefined')
					{
	    			if (typeof(az_feed_cat)=='undefined')
						{
	   	 				az_feed_show_html('http://www.auctionzip.com/cgi-bin/rsearch.cgi?feed='+az_feed+'&vuid='+az_feed_uid);
						}
						else
						{
	   	 				az_feed_show_html('http://www.auctionzip.com/cgi-bin/rsearch.cgi?feed='+az_feed+'&vuid='+az_feed_uid+'&feedcat='+az_feed_cat);
						}
					}
					else
					{
	    			if (typeof(az_feed_cat)=='undefined')
						{
	   	 				az_feed_show_html('http://www.auctionzip.com/cgi-bin/rsearch.cgi?feed='+az_feed+'&vuid='+az_feed_uid+'&feedid='+az_feed_group);
						}
						else
						{
	   	 				az_feed_show_html('http://www.auctionzip.com/cgi-bin/rsearch.cgi?feed='+az_feed+'&vuid='+az_feed_uid+'&feedid='+az_feed_group+'&feedcat='+az_feed_cat);
						}
					}
					return;
				}
			}
	    if (typeof(az_feed_uid)=='undefined')
			{
				if (typeof(az_feed_pos)!='undefined')
    			az_feed_show_html(az_feed_pos);
				else
					alert('Please set the uid for your feed.');
			}
  	  else
			{
	    	if (typeof(az_feed_state)=='undefined')
				{
	    		if (typeof(az_feed_fcat)=='undefined')
					{
						az_feed_show_html('http://www.auctionzip.com/cgi-bin/auctionlist.cgi?feed='+az_feed+'&vuid='+az_feed_uid);
					}
  	  		else
					{
						az_feed_show_html('http://www.auctionzip.com/cgi-bin/auctionlist.cgi?feed='+az_feed+'&vuid='+az_feed_uid+'&fcat='+az_feed_fcat);
					}
				}
  	  	else
				{
	    		if (typeof(az_feed_fcat)=='undefined')
					{
						az_feed_show_html('http://www.auctionzip.com/cgi-bin/auctionlist.cgi?feed='+az_feed+'&vuid='+az_feed_uid+'&state='+az_feed_state);
					}
  	  		else
					{
						az_feed_show_html('http://www.auctionzip.com/cgi-bin/auctionlist.cgi?feed='+az_feed+'&vuid='+az_feed_uid+'&state='+az_feed_state+'&fcat='+az_feed_fcat);
					}
				}
			}
		}
		else
		{
	    if (typeof(az_feed_uid)=='undefined')
			{
				if (typeof(az_feed_pos)!='undefined')
    			az_feed_show_html(az_feed_pos);
				else
					alert('Please set the uid for your feed.');
			}
  	  else
			{
	    	if (typeof(az_feed_cat)=='undefined')
				{
	      	az_feed_show_html('http://www.auctionzip.com/cgi-bin/catlist.cgi?feed='+az_feed+'&vuid='+az_feed_uid+'&olb_type='+az_olb_type);
				}
				else
				{
	      	az_feed_show_html('http://www.auctionzip.com/cgi-bin/catlist.cgi?feed='+az_feed+'&vuid='+az_feed_uid+'&olb_type='+az_olb_type+'&feed_cat='+az_feed_cat);
				}
			}
		}
  }
  else
  {
    az_feed_to_url=az_feed_to_url.substring(az_feed_to_url.indexOf("az_feed_pos=")+12);
		az_feed_to_url=unescape(az_feed_to_url);
    az_feed_show_html(az_feed_to_url);
  }
}
az_feed_start();
//-->
