/*

 * ByTagg Widgets

 *

 * WG 100x27

 */

 
var gg_following = "";
bytagg = new function() 

{

		this.init = function() 

		{

			var root = 'ff'+Math.ceil(Math.random()*100);
			while (gg_following.indexOf("/") != -1) {gg_following = gg_following.replace("/", "!BA;");}	
	

			this.serverResponse = function(data) 

			{

				var loc = escape(document.location);

				var ref = escape(document.referrer);

		    	var div = document.getElementById(root);

		    	

		    	var imgBase = 'http://img.bytagg.com/';

		    	//var getURL = 'http://download.bytagg.com/bytagg.'+gg_lang+'.'+gg_id+'.exe';
				var getURL = 'http://bytagg.com/'+gg_lang+'/download/P_'+gg_id+'/F_'+gg_following+'';

		    	

		    	var htmlReturn = '<a target="_blank" href="' + getURL + '" title="'+gg_tx1+'"><img src="' + imgBase + '/wg_100x27_'+gg_lang.toLowerCase()+'.gif" alt="" width="100" height="27" style="border:none" /></a>';

		    

		    	div.innerHTML = htmlReturn;

		    	div.style.display = 'block'; // make element visible

		    	div.style.visibility = 'visible'; // make element visible

		  	}

	

		  	document.write("<div id='"+root+"' style='display: none'></div>");

			bytagg.serverResponse('');

		}

}