function addEventSimple(obj,evt,fn) {
	if (obj.addEventListener) { obj.addEventListener(evt,fn,false); }
	else if (obj.attachEvent) {	obj.attachEvent('on'+evt,fn); }
}
function initall() {

// index page news widget start

  var item1 = document.getElementById("item1");
  var item2 = document.getElementById("item2");
  var item3 = document.getElementById("item3");
  var right = document.getElementById("right");
  var right2 = document.getElementById("right2");
  
  

if (item1 && item2 && item3) {
	item1.onclick = function() {
		item1.className = 'activia';
		item2.className = '';
		item3.className = '';
		right.innerHTML = "<p>Today, you are bombarded by unwanted ads, your identity is spread across the web. Sites like  Facebook, Linked-in, Twitter, Flickr, and YouTube are all using your identity to make money but you're not sharing in the rewards. Your privacy is being violated and you have little or no say in how these social networks use your posted data.</p><p>You need to gain control of what ads you see, aggregate all your identities in one easy sign on, protect your privacy and finally get your fair share of the money that is being made from your web presence.</p><p>MyDotCom treats you as the VIP that you are. Join us here and change the web.</p>";
		right2.innerHTML = '<img src="content/index_google_icon.jpg" width="102" height="94" />';
		return false;
	}
	item2.onclick = function() {
		item2.className = 'activia';
		item3.className = '';
		item1.className = '';
		right.innerHTML = "<p>You spend a third of your time on the web communicating with others. You need a single place where all your communications can be aggregated, sorted and prioritized. With MyDotCom you can control how people contact you by building circles of reference from outer circles to inner circles.</p><p>You can designate how they reach you and how to contact them whether it is via IM, email, voice, video etc. MyDotCom offers all of these in a communication console that provides the best the web and mobile web has to offer and it's free!</p>";
		right2.innerHTML = '<img src="content/index_comm_icon.jpg" width="102" height="94" />';
		return false;
	}
	item3.onclick = function() {
		item3.className = 'activia';
		item2.className = '';
		item1.className = '';
		right.innerHTML = "<p>The web is supported by the $30 billion of annoying ads that are bombarding you every minute that you're online. You deserve two things: only view ads that you approve and get rewarded for clicks and purchases.</p><p>You can even rate ads and participate in revenue share with the providers. Finally a site that completes the social media circle by including you. You're no longer the 'end-user'. You're the VIP!</p>";
		right2.innerHTML = '<img src="content/index_ad_icon.jpg" width="102" height="94" />';
		return false;
	}
}
// index page news widget end

	

} // end of global init function


//window.onload = initall;
addEventSimple(document,'mousemove',initall);
