document.write("<style>a:link,a:visited{text-decoration:none;}a:hover,a:active,a:focus{	text-decoration:none;}</style>");
var hopfeed_font_inline = (hopfeed_font==null)? 'Verdana, Arial, Helvetica, Sans Serif': hopfeed_font;
var hopfeed_font_size = (hopfeed_font_size==null)? '9pt': hopfeed_font_size;
var hopfeed_font_size_inline = (hopfeed_font_size_inline==null)? '9pt':hopfeed_font_size_inline;
var hopfeed_inline_background_color = (hopfeed_inline_background_color==null)? 'ffffff': hopfeed_inline_background_color;
var hopfeed_wp_color_inline_text = (hopfeed_wp_color_inline_text==null)? '000000': hopfeed_wp_color_inline_text;
var hopfeed_wp_color_inline_description = (hopfeed_wp_color_inline_description==null)? '000000': hopfeed_wp_color_inline_description;
var hopfeed_font_color = (hopfeed_font_color==null)? '': hopfeed_font_color;
var hopfeed_link_font_hover = (hopfeed_link_font_hover_color==null)? '#D1DCEE': hopfeed_link_font_hover_color;
var hopfeed_inline_height = (hopfeed_inline_height==null || hopfeed_inline_height=='')? '100': hopfeed_inline_height;
var hopfeed_width = (hopfeed_width==null)? '': hopfeed_width;
var hopfeed_cols = (hopfeed_cols==null)? '1': hopfeed_cols;
var hopfeed_border_color = (hopfeed_border_color==null)? 'blue': hopfeed_border_color;//11527B
var hopfeed_inline_ad_type = (hopfeed_inline_ad_type==null)? 'text_desc': hopfeed_inline_ad_type;
var hopfeed_space = (hopfeed_space==null)? '0': hopfeed_space;
var hopfeed_keyword = (hopfeed_keyword == null)? 'comment':hopfeed_keyword;
var all_keywords = (all_keywords == null)? 'business':all_keywords;
var hopfeed_corner_style = (hopfeed_corner_style == null)? 'square':hopfeed_corner_style;
var show_cloak_link = (show_cloak_link == null)? 'Y':show_cloak_link;
var hopfeed_path = (hopfeed_path == null ? null : hopfeed_path);
var hopfeed_affiliate_tid = (hopfeed_affiliate_tid==null)? '': hopfeed_affiliate_tid;
var site_path_plugin = (site_path_plugin==null)? 'http://www.wordbankads.com': site_path_plugin;
var hopfeed_referer = document.referrer;
var hopfeed_bullet_inline = (hopfeed_bullet == null)? 'Y': hopfeed_bullet;
ctxt_ad_partner_default = 'empty_partner';
ctxt_ad_frameborder = 0;
ctxt_ad_title_default = '"Ads by ClickBank!"';
var contentPasteAt = '';
if(window.location.hostname == '192.168.10.2')
{
	var site_path_server = 'http://192.168.10.2/wpserver_new/ads/';
}
else
{
	var site_path_server = 'http://www.wordbankads.com/wpserver/ads/';
}
var site_path_js = "http://www.wordbankads.com/wpserver/js/";
var site_path_server_home="http://www.wordbankads.com/";
//global variables for object and helpnode for assigning the data
var helpNode;
var obj;
var event;
var z=10;
var border_col=hopfeed_border_color;
function callAjax(obj_local,helpNode_local,keyword,hopfeed_category,hopfeed_affiliate,event_local)
{
	helpNode=helpNode_local;
	obj=obj_local;
	event=event_local;
	if(obj.childNodes[1]==undefined)
	{
		httpObject = getHTTPObject();
		if (httpObject!=null)
		{
			var site_path_js = "http://www.wordbankads.com/wpserver/js/";
			/********SHOW LOADER IMAGE******/
			loadNode= document.createElement('div');
			loadNode.id = 'loadingBox';
			loadNode.setAttribute('name','loadingBox');
			loadNode.setAttribute('class','popBoxInline1');
			loadNode.setAttribute('className','popBoxInline1');
			loadNode.innerHTML="<img src='"+site_path_js+"loading.gif' border='0'>";
			obj.appendChild(loadNode);
			/********END SHOW LOADER IMAGE******/
			var dt= new Date();
			var server_path_stripped = site_path_server.split("http://");
			var plugin_path_stripped = site_path_plugin.split("http://");
			var hopfeed_path_stripped = hopfeed_path.split("http://");
			var url = server_path_stripped[1] + 'display_inline_hopfeed.php?htemp=yes&haff=' + hopfeed_affiliate + '&hkeyword=' + keyword + '&hfont=' + hopfeed_font_inline + '&hfontsize=' + hopfeed_font_size_inline + '&hlinkfontcolor=' + hopfeed_wp_color_inline_text + '&hrows=1&hlinkfonthover=' + hopfeed_link_font_hover + '&htype=' + hopfeed_inline_ad_type + '&hbgcolor=' + hopfeed_inline_background_color + '&corner='+hopfeed_corner_style + '&hdesc=' + hopfeed_wp_color_inline_description + '&hcloak=' + show_cloak_link + '&hcols=' + hopfeed_cols + '&hpath=' + hopfeed_path_stripped[1] + '&hfillslots=' + hopfeed_fill_slots + '&hreferer=' + plugin_path_stripped[1] + '&hbull=' + hopfeed_bullet_inline + '&hafftid=' + hopfeed_fill_slots + '&foo='+dt.getTime();
			//var url = site_path_server + 'display_inline_hopfeed.php?htemp=yes&haff=' + hopfeed_affiliate + '&hkeyword=' + keyword + '&hfont=' + hopfeed_font_inline + '&hfontsize=' + hopfeed_font_size_inline + '&hlinkfontcolor=' + hopfeed_wp_color_inline_text + '&hrows=1&hlinkfonthover=' + hopfeed_link_font_hover + '&htype=' + hopfeed_inline_ad_type + '&hbgcolor=' + hopfeed_inline_background_color + '&corner='+hopfeed_corner_style + '&hdesc=' + hopfeed_wp_color_inline_description + '&hcloak=' + show_cloak_link + '&hcols=' + hopfeed_cols + '&hpath=' + hopfeed_path + '&hfillslots=' + hopfeed_fill_slots + '&hreferer=' + site_path_plugin + '&hbull=' + hopfeed_bullet_inline + '&hafftid=' + hopfeed_fill_slots + '&foo='+dt.getTime();
			var intermediate_url = site_path_plugin + '/' + path_url + '/transport_hopfeed.php?action=' + url + '&method=get&data1=101&data2=pass';
//			url = site_path_server + 'display.php?hpath=http://www.test.com&server=livetek';
			//intermediate_url = site_path_plugin + '/' + path_url + '/transport.php?action=' + url + '&method=get&data1=101&data2=pass';
			httpObject.open("GET", intermediate_url, true );
			httpObject.onreadystatechange = setOutputTop;
			httpObject.send(null);
		}
	}
	else
	{
	}
}
function getHTTPObject()
{
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		alert("Your browser does not support XMLHTTP!");
	}
}
function setOutputTop()
{
	if(httpObject.readyState == 4 || httpObject.readyState == 200)
	{
		createpopNode(httpObject.responseText);
		return false;
	}
}
function createpopNode(data)
{
//	hideBox();
	/********HIDE LOADER IMAGE******/
	loadNode=document.getElementById('loadingBox');
	if (loadNode)
		loadNode.parentNode.removeChild(loadNode);
	/********END HIDE LOADER IMAGE******/
	/********OUTER DIV******/
	helpNode = document.createElement('div');
	helpNode.id = 'popBoxOuter';
	helpNode.setAttribute('name','popBoxOuter');
	helpNode.setAttribute('class','popBoxInline1');
	helpNode.setAttribute('className','popBoxInline1');
	if(hopfeed_corner_style == 'square')
	{
	}
	else
	{
		helpNode.style.backgroundImage="url('"+site_path_js+"blcok_name.png')";
	}
	pos=findPos(obj);
	x=pos[0];
	y=pos[1];
	y=y-30;
	helpNode.style.top = y+'px'; // move into position
	helpNode.style.left = x + 'px';
	helpNode.style.height = '175px';
	helpNode.style.width = '349px';
	helpNode.style.zIndex = '10';
	obj.appendChild(helpNode);
	/********END OUTER DIV******/
	/********INNER DIV******/
	helpNode = document.createElement('div');
	helpNode.id = 'popBox';
	helpNode.setAttribute('name','popBox');
	helpNode.setAttribute('class','popBoxInline1');
	helpNode.setAttribute('className','popBoxInline1');
	pos=findPos(obj);
	x=pos[0];
	y=pos[1];
	helpNode.style.top = y+2 + 'px'; // move into position
	helpNode.style.left = x + 'px';
	helpNode.style.zIndex='1000';
	helpNode.innerHTML=data;
	obj.appendChild(helpNode);
	/********END INNER DIV******/
	/********CHANGE INNER DIV PARAMETERS******/
	var nodelist = new Array();
	nodelist=document.getElementsByName('popBox');
	for(i=0;i<nodelist.length;i++)
	{
		nodelist[i].style.height = "120px";
		nodelist[i].style.backgroundColor = "#" + hopfeed_inline_background_color;
		if(hopfeed_corner_style == "square")
		{
			nodelist[i].style.border = "1px solid #"+border_col;
		}
		else
		{
			nodelist[i].style.border = "0px solid black";
			nodelist[i].style.marginLeft = "10px";
			nodelist[i].style.width = "333px";
		}
	}
	/********END CHANGE INNER DIV PARAMETERS******/
}