function GoogleAnalytics() {}

//_gaq = _gaq || []; // => Error in IE7: _gaq is undefined
_gaq = [];
_gaq.push(['_setAccount', 'UA-18240532-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.async = true;
ga.src = 'http://www.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);})();

function GoogleAd(ad)
{
	google_ad_client = "pub-7813495334161867";
	
	switch (ad) {
		case 'Large'  :	google_ad_slot = "1671022295"; google_ad_width = 336; google_ad_height = 280; break;
		case 'Medium' :	google_ad_slot = "7377571833"; google_ad_width = 300; google_ad_height = 250; break;
		case 'Button' :	google_ad_slot = "3480935649"; google_ad_width = 250; google_ad_height = 250; break;
		case '120x600':	google_ad_slot = "4234377651"; google_ad_width = 120; google_ad_height = 600; break;
		case '160x600':	google_ad_slot = "5830586818"; google_ad_width = 160; google_ad_height = 600; break;
		case 'Banner' :	google_ad_slot = "7021070729"; google_ad_width = 468; google_ad_height =  60; break;
		case 'Links'  :	google_ad_slot = "7583215977"; google_ad_width = 468; google_ad_height =  15; break;
	}
	
	document.write('<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>')
}

function GoogleFriends()
{

	var skin = {
		FONT_FAMILY: 'Tahoma',
		BORDER_COLOR: '#CCCCCC',
		ENDCAP_BG_COLOR: '#E0ECFF',
		ENDCAP_TEXT_COLOR: '#333333',
		ENDCAP_LINK_COLOR: '#0000CC',
		ALTERNATE_BG_COLOR: '#F8F8F8',

		CONTENT_BG_COLOR: '#F8F8F8',
		CONTENT_LINK_COLOR: '#0000CC',
		CONTENT_TEXT_COLOR: '#333333',
		CONTENT_SECONDARY_LINK_COLOR: '#7777CC',
		CONTENT_SECONDARY_TEXT_COLOR: '#666666',
		CONTENT_HEADLINE_COLOR: '#333333',

		DEFAULT_COMMENT_TEXT: '- add your comment here -',
		HEADER_TEXT: 'Comments',
		POSTS_PER_PAGE: '5'
	};

	google.friendconnect.container.setParentUrl('/');
	google.friendconnect.container.renderMembersGadget(
	{id: 'div-6291369034116667644', site: '02022910889694141560'},
	skin);
/*
	//Wall Widget (Comments)
	google.friendconnect.container.renderWallGadget({id: 'div-5777513564566620827', site: '02022910889694141560',
	'view-params':{"disableMinMax":"false","scope":"SITE","features":"video,comment","startMaximized":"false"}
	}, skin);
*/
}

function AdBrite(ad)
{
/*
	AdBrite_Title_Color = '4080C0'
	AdBrite_Text_Color = '000000'
	AdBrite_Background_Color = 'FFFFFF'
	AdBrite_Border_Color = 'FFFFFF'
	AdBrite_URL_Color = '00A000'

	switch (ad) {
		case '120x600':	sid = '592477&zs=3132305f363030'; break;
		case '160x600':	sid = '1049287&zs=3136305f363030'; break;
		case 'Banner' :	sid = '861555&zs=3436385f3630'; break
	}

	document.write('<script src="http://ads.adbrite.com/mb/text_group.php?sid=' + sid + '"></script>')
*/
	//document.write('<script src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=58343&bid=134953"></script>')
}

function addThis() {

	addthis_config = {
		ui_cobrand: 'WebWinners',
		ui_use_addressbook:true,
		data_track_clickback:true
	}

	addthis_share = {
		//url: 'http://www.webwinners.info/',
		//title: 'WebWinners | Best Home-Based Business Opportunities',
		//templates: {twitter: 'Get your FREE Internet Marketing Gems at {{url}}'}
	}

	document.write('<script src="http://s7.addthis.com/js/250/addthis_widget.js#username=webwinners"></script>')
}

function addThisToolbox() {
document.write('\
<div class="addthis_toolbox fixed addthis_32x32_style addthis_default_style">\
<a class="addthis_button_compact"></a><a class="addthis_button_favorites" title="Add to Favorites"></a>\
<a class="addthis_button_email" title="Email a Friend"></a><a class="addthis_button_twitter"></a>\
<a class="addthis_button_facebook" title="Share to Facebook"></a></div>');
}

function Giveaway()
{
	var s = "<a href=\"javascript:void(0)\" onclick=\"open('download.php?f=";
	s += gaotdObj.download_link.substr(34) + "&s=gaotd&t=" + gaotdObj.title;
	s += "','dl','width=380,height=360')\"><b>" + gaotdObj.title + '</b><p><img src="';
	s += gaotdObj.screenshot + '"><br>Download (' + gaotdObj.size +')</a>';

	document.write(s);

	s = '<br>Time Left: <font color=#ff6060>' + gaotdObj.hours + 'h ';
	var p = gaotdObj.minutes; if (p < 10) s+= '0';
	document.write(s + p + 'm</font>');

	s = gaotdObj.publisher; //var p = s.indexOf(' '); if (p!=-1) s = s.substr(0,p);
	s = '<p><a href="' + gaotdObj.homepage + '" target="_blank">' + s + '</a> ';

	s += '<s>' + gaotdObj.price.replace('euro','&euro;') + '</s>'
	document.write(s);
}

function cbWidget(nItems, keywords)
{
	//hopfeed_template='';
	//hopfeed_align='LEFT';
	hopfeed_type='IFRAME';

	hopfeed_affiliate='webwinnerz';
	//hopfeed_affiliate_tid='';
	hopfeed_fill_slots='true';

	hopfeed_width=194;
	hopfeed_height=80*nItems;
	hopfeed_cellpadding=0;

	hopfeed_rows=nItems;
	hopfeed_cols=1;

	hopfeed_font='Tahoma';
	hopfeed_font_size='10pt';
	hopfeed_font_color='#000000';
	hopfeed_link_font_color='#4080C0';
	hopfeed_link_font_hover_color='#0080FF';

	hopfeed_background_color = hopfeed_border_color = '#F8F8F8';

	hopfeed_keywords=keywords;
	hopfeed_path='http://webwinnerz.hopfeed.com';
	hopfeed_link_target='_blank';
	document.write('<script src="http://webwinnerz.hopfeed.com/script/hopfeed.js"></script>')
}

function GiftBox() {
	db = document.body;
	el = document.getElementById('Pressy');
	scrolling = false;

	onresize = onscroll = function() {
		if (!scrolling) {scrolling = true; updatePos();}
	}

	onload = function () {
		el.style.left = db.scrollLeft + db.clientWidth - 60;
		el.style.top  = el.y = db.scrollTop + db.clientHeight - 60;
	}

	function updatePos() {
		el.style.left = db.scrollLeft + db.clientWidth - 60;
		var dy = (db.scrollTop + db.clientHeight - 60 - el.y);
		if (Math.round(dy)) {
			el.y += (dy >> 3);
			el.style.top = el.y;
			setTimeout(updatePos, 10);
		}
		else
			scrolling = false;
	}

}

