var undefined;

var sp_acct;
var sp_type;
var sp_style;
var sp_pmax;
var sp_make;
var sp_part;
var sp_spids;
var sp_uniq;
var sp_cat;
var sp_width;
var sp_height;
var sp_title;
var sp_sub_title;
var sp_footer;
var sp_ref;
var sp_keyword;
var sp_tag;
var sp_border_color;
var sp_border_width;
var sp_zip;
var sp_color;
var sp_other_color;
var sp_search_type;

sp_ref = window.location;
var sp_frameindex;
if(sp_frameindex==undefined) { sp_frameindex = 1; }
else                         { sp_frameindex++; }

if((sp_type == 2) && (sp_width > 0) && (sp_height > 0))
{

var date = new Date;

var src = 'http://dist.streetprices.com/q/b/' + date.getTime() + '/?' +
   ((sp_acct==undefined) ? '' : 'acct=' + escape(sp_acct) ) +
   ((sp_type==undefined) ? '' : '&type=' + escape(sp_type) ) +
   ((sp_style==undefined) ? '' : '&style=' + escape(sp_style) ) +
   ((sp_pmax==undefined) ? '' : '&pmax=' + escape(sp_pmax) ) +
   ((sp_make==undefined) ? '' : '&make=' + escape(sp_make) ) +
   ((sp_part==undefined) ? '' : '&part=' + escape(sp_part) ) +
   ((sp_spids==undefined) ? '' : '&spids=' + escape(sp_spids) ) +
   ((sp_uniq==undefined) ? '' : '&uniq=' + escape(sp_uniq) ) +
   ((sp_cat==undefined) ? '' : '&cat=' + escape(sp_cat) ) +
   ((sp_width==undefined) ? '' : '&width=' + escape(sp_width) ) +
   ((sp_height==undefined) ? '' : '&height=' + escape(sp_height) ) +
   ((sp_title==undefined) ? '' : '&title=' + escape(sp_title) ) +
   ((sp_sub_title==undefined) ? '' : '&sub_title=' + escape(sp_sub_title) ) +
   ((sp_footer==undefined) ? '' : '&footer=' + escape(sp_footer) ) +
   ((sp_ref==undefined) ? '' : '&ref=' + escape(sp_ref) ) +
   ((sp_keyword==undefined) ? '' : '&keyword=' + escape(sp_keyword) ) +
   ((sp_tag==undefined) ? '' : '&tag=' + escape(sp_tag) ) +
   ((sp_border_color==undefined) ? '' : '&border_color=' + escape(sp_border_color) ) +
   ((sp_border_width==undefined) ? '' : '&border_width=' + escape(sp_border_width) ) +
   ((sp_zip==undefined) ? '' : '&zip=' + escape(sp_zip) ) +
   ((sp_color==undefined) ? '' : '&color=' + escape(sp_color) ) +
   ((sp_other_color==undefined) ? '' : '&other_color=' + escape(sp_other_color) ) +
   ((sp_search_type==undefined) ? '' : '&search_type=' + escape(sp_search_type) ) + 
'&index=' + sp_frameindex
;

document.write("<iframe name='spframe" + sp_frameindex + "' marginheight='0' marginwidth='0' frameborder='0' align='middle' scrolling='no' width='" + escape(sp_width) + "' height='" + escape(sp_height) + "' src='" + src + "'></iframe>");
window.frames['spframe' + sp_frameindex].document.location = src;

}
else if(!(sp_type == 2))
{

var url = 'http://dist.streetprices.com/q/j?' +
   ((sp_acct==undefined) ? '' : 'acct=' + escape(sp_acct) ) +
   ((sp_type==undefined) ? '' : '&type=' + escape(sp_type) ) +
   ((sp_style==undefined) ? '' : '&style=' + escape(sp_style) ) +
   ((sp_pmax==undefined) ? '' : '&pmax=' + escape(sp_pmax) ) +
   ((sp_make==undefined) ? '' : '&make=' + escape(sp_make) ) +
   ((sp_part==undefined) ? '' : '&part=' + escape(sp_part) ) +
   ((sp_spids==undefined) ? '' : '&spids=' + escape(sp_spids) ) +
   ((sp_uniq==undefined) ? '' : '&uniq=' + escape(sp_uniq) ) +
   ((sp_cat==undefined) ? '' : '&cat=' + escape(sp_cat) ) +
   ((sp_width==undefined) ? '' : '&width=' + escape(sp_width) ) +
   ((sp_height==undefined) ? '' : '&height=' + escape(sp_height) ) +
   ((sp_title==undefined) ? '' : '&title=' + escape(sp_title) ) +
   ((sp_sub_title==undefined) ? '' : '&sub_title=' + escape(sp_sub_title) ) +
   ((sp_footer==undefined) ? '' : '&footer=' + escape(sp_footer) ) +
   ((sp_ref==undefined) ? '' : '&ref=' + escape(sp_ref) ) +
   ((sp_keyword==undefined) ? '' : '&keyword=' + escape(sp_keyword) ) +
   ((sp_tag==undefined) ? '' : '&tag=' + escape(sp_tag) ) +
   ((sp_border_color==undefined) ? '' : '&border_color=' + escape(sp_border_color) ) +
   ((sp_border_width==undefined) ? '' : '&border_width=' + escape(sp_border_width) ) +
   ((sp_zip==undefined) ? '' : '&zip=' + escape(sp_zip) ) +
   ((sp_color==undefined) ? '' : '&color=' + escape(sp_color) ) +
   ((sp_other_color==undefined) ? '' : '&other_color=' + escape(sp_other_color) ) +
   ((sp_search_type==undefined) ? '' : '&search_type=' + escape(sp_search_type) ) + 
'&index=' + sp_frameindex
;

document.write("<script type='text/javascript' language='javascript' src='" + url +"'></script>");

}
else
{

  document.write("");

}
sp_acct=undefined;
sp_type=undefined;
sp_style=undefined;
sp_pmax=undefined;
sp_make=undefined;
sp_part=undefined;
sp_spids=undefined;
sp_uniq=undefined;
sp_cat=undefined;
sp_width=undefined;
sp_height=undefined;
sp_title=undefined;
sp_sub_title=undefined;
sp_footer=undefined;
sp_ref=undefined;
sp_keyword=undefined;
sp_tag=undefined;
sp_border_color=undefined;
sp_border_width=undefined;
sp_zip=undefined;
sp_color=undefined;
sp_other_color=undefined;
sp_search_type=undefined;
