/* //////////////////////////////////////////////////////////////////////

 Copyright (c) 2005, bigclique.com 
 bigclique@grockcorp.com 
 http://www.bigclique.com/

 Note: use of this code indicates agreement to our Affiliate Agreement 
 Please see http://grockmediaxml.bigclique.com/static.php?pg=affiliateagreement

 Rev 3.0 - 01.03.2006

 Feel free to adjust.
 
 BUT:
    1) You must retain this notice
    2) You must retain the redirect through our servers for clickthroughs

    THIS SOFTWARE IS DISTRIBUTED "AS IS". NO WARRANTY OF ANY KIND IS EXPRESSED
    OR IMPLIED. THE AUTHOR WILL NOT BE LIABLE  FOR DATA LOSS, DAMAGES, LOSS OF 
    PROFITS OR ANY OTHER KIND OF LOSS WHILE USING OR MISUSING THIS SOFTWARE.

////////////////////////////////////////////////////////////////////// */

// Get settings
try {
	// Box
	if (typeof(gx_box_width) == 'undefined') gx_box_width = '200';
	if (typeof(gx_box_border_color) == 'undefined') gx_box_border_color = '#ADADFC';
	if (typeof(gx_box_color_normal) == 'undefined') gx_box_color_normal = '#FFFFFF';
	if (typeof(gx_box_color_hover) == 'undefined') gx_box_color_hover = '#E6F2CF';
	// Box caption
	if (typeof(gx_head_font) == 'undefined') gx_head_font = 'Verdana, Arial, Helvetica, sans-serif';
	if (typeof(gx_head_size) == 'undefined') gx_head_size = '12';
	if (typeof(gx_head_color) == 'undefined') gx_head_color = '#FFFFFF';
	// Item title
	if (typeof(gx_title_font) == 'undefined') gx_title_font = 'Verdana, Arial, Helvetica, sans-serif';
	if (typeof(gx_title_size) == 'undefined') gx_title_size = '11';
	if (typeof(gx_title_color) == 'undefined') gx_title_color = '#0000CC';
	// Item description
	if (typeof(gx_descr_font) == 'undefined') gx_descr_font = 'Verdana, Arial, Helvetica, sans-serif';
	if (typeof(gx_descr_size) == 'undefined') gx_descr_size = '11';
	if (typeof(gx_descr_color) == 'undefined') gx_descr_color = '#000000';
	// Ext style
	if (typeof(gx_use_ext_css) == 'undefined' || typeof(gx_ext_css) == 'undefined') gx_use_ext_css = false;
	else gx_use_ext_css = true;
}
catch (e) {}

// Results
gx_listings = new Array();
// Number of results
gx_iii=0;
// Add to list
function gx_to_list(gx_id, gx_title, gx_url, gx_uri, gx_description, gx_bid) {
    gx_listings[gx_iii] = new GX_Listing(gx_id, gx_title, gx_url, gx_uri, gx_description, gx_bid);
    gx_iii++;
}
// Listing Object
function GX_Listing(gx_id, gx_title, gx_url, gx_uri, gx_description, gx_bid) {
  this.id = gx_id;
  this.title = gx_title;
  this.url = gx_url;
  this.uri = gx_uri;
  this.description = gx_description;
  this.bid = gx_bid;
}

gx_to_list("1", "Need more info on gambling site?", "http://www.bigclique.com/search.jsp?query=gambling site", "http://www.bigclique.com/search.jsp?query=gambling site", "Find the top sites about gambling site at bigclique.com", "0.00");


if (gx_use_ext_css) {
	gx_header = '<link rel="stylesheet" href="' + gx_ext_css + '">';
}
else {
	gx_header = '<style>\
.gx_head {\
	font-family:' + gx_head_font + ';\
	font-size:' + gx_head_size + 'px;\
	font-weight:bold;\
	color:' + gx_head_color + ';\
}\
.gx_title {\
	font-family:' + gx_title_font + ';\
	font-size:' + gx_title_size + 'px;\
	color:' + gx_title_color + ';\
	font-weight:bold;\
	text-decoration:underline;\
}\
.gx_descr {\
	font-family:' + gx_descr_font + ';\
	font-size:' + gx_descr_size + 'px;\
	color:' + gx_descr_color + ';\
}\
</style>';
}

gx_header += '<scr' + 'ipt>\
gx_dom = (document.getElementById)? true : false;\
gx_ie4 = (document.all && !gx_dom)? true : false;\
function gx_highlight (gx_object, gx_status) {\
	if (gx_status == 1) gx_color = "' + gx_box_color_hover + '";\
	else gx_color = "' + gx_box_color_normal + '";\
	if (gx_dom) gx_object.bgColor = gx_color;\
	else if (gx_ie4) gx_object.bgColor = gx_color;\
}\
</scr' + 'ipt>\
<table width="' + gx_box_width + '" cellpadding="2" cellspacing="1" bgcolor="' + gx_box_border_color + '" border="0" align="left">\
  <tr>\
	<td class="gx_head">Top gambling site sites</td>\
  </tr>\
  <tr>\
	<td bgcolor="' + gx_box_color_normal + '">\
      <table width="100%" cellpadding="3" cellspacing="0" bgcolor="' + gx_box_color_normal + '" border="0" align="left">';
gx_footer = '\
		<tr height="10">\
		  <td></td>\
		</tr>\
        <tr>\
		  <td>\
<span class="gx_descr">Hot Sites:</span><br>\
<a class="gx_title" href="http://www.bigclique.com/bcid/advertise.jsp?bcid=3507">See your site here</a><br>\
		  </td>\
		</tr>\
	  </table>\
	</td>\
  </tr>\
</table>';

gx_content_ads_total = 5;
document.write (gx_header);
if (gx_listings != null && gx_listings.length > 0 && gx_content_ads_total > 0)
{
    gx_i=0;
    // Outputting some HTML below feel free to adjust
    for (gx_i = 0; gx_i < gx_listings.length && gx_i < gx_content_ads_total; gx_i++)
    {
      // Adjust the below to make search results layout different 
      document.write();
      document.write('\
	    <tr>\
		  <td onMouseOver="gx_highlight(this,1);" onMouseOut="gx_highlight(this,0);" onClick="window.location=\'' + gx_listings[gx_i].uri + '&type=contentads\';">\
<span class="gx_title">' + gx_listings[gx_i].title + '</span><br>\
<span class="gx_descr">' + gx_listings[gx_i].description + '</span><br>\
		  </td>\
		</tr>');
	}
}
document.write (gx_footer);