/*
 * Copyright 1998-2007 Bondware Inc. All rights reserved. Created May 2007
 * Copying or redistributing this software is a violation of our Terms of Service and prohibited by Federal Copyright Law (US)
 * Decompilation or circumvention of the security mechanisms contained in this software is prohibited by the Digital Millenium Copyright Act (US)
 *
 * NW 2007 05 22
 *
 */

if(typeof(bw_url) != 'string' || bw_url == null || bw_url == '')
{
	// we can't do anything because we don't have the site URL
}
else
{
	if(bw_url.substr(bw_url.length - 1, 1) != '/')
		bw_url += '/';
	
	if(typeof(bw_linkColor) != 'string' || bw_linkColor == null || bw_linkColor == '')
		bw_linkColor = '#000000';
	
	if(typeof(bw_width) != 'number' || bw_width == null)
		bw_width = 468;
	
	if(typeof(bw_height) != 'number' || bw_height == null)
		bw_height = 60;
	
	if(typeof(bw_borderWidth) != 'number' || bw_borderWidth == null)
		bw_borderWidth = 0;
	
	if(typeof(bw_borderColor) != 'string' || bw_borderColor == null)
		bw_borderColor = '#808080';
	
	if(typeof(bw_group) != 'string' || bw_group == null)
	{
		bw_group = '';
		bw_error = 'e1';
	}
	else
		bw_error = 'nil';
		
	if(typeof(bw_site) != 'string' || bw_site == null)
		bw_site = '';
	
	if(typeof(bw_urlPostfix) != 'string' || bw_urlPostfix == null)
		bw_urlPostfix = '';
	
	bw_args = Array();
	bw_args[ bw_args.length ] = bw_group;
	bw_args[ bw_args.length ] = bw_width;
	bw_args[ bw_args.length ] = bw_height;
	bw_args = bw_args.join(',');
	
	document.write('<iframe src="' + bw_url + 'mod/adman/javascript/iframe.php?e=' + bw_error + '&a=' + encodeURIComponent(bw_args) + '&sk=' + bw_site + '&aupf=' +encodeURIComponent(bw_urlPostfix) + '" frameborder="0" scrolling="no" width="' + bw_width + '" height="' + bw_height + '" style="width:' + bw_width + 'px; height:' + bw_height + 'px; border:' + bw_borderWidth + 'px solid ' + bw_borderColor + ';">This browser does not support iFrame advertisements.</iframe>');
}

bw_linkColor	= null;
bw_width		= null;
bw_height		= null;
bw_borderWidth	= null;
bw_borderColor	= null;
bw_group		= null;
bw_site			= null;