function showWebwarePopup(){
	var html = "<div class='ex1 pngfix'><div class='first-ele'><b>ajaxWindows: 2008 Webware 100 Finalist</b></div>";
	html += "<div class='mid-ele'>ajaxWindows has been selected as a finalist in the 2008 Webware 100 Awards by the editors of CNET Webware.com in the Browsing category from more than 4,600 qualifying \
	 Web 2.0 services. Click on the icon to vote for ajaxWindows.\
	 </div><div class='last-ele2'>&nbsp;</div></div>";
	showPopup(html,320,205);
}

function showAWInfo() {
	var html = "<div class='ex1 pngfix'><div class='first-ele'><b>What is the ajaxWindows webOS?</b></div>";
	html += "<div class='mid-ele'>www.ajaxwindows.com is a web desktop that lets you store, edit and share your files using only a web browser.\
	 Explore a fully functional desktop, customize colors, sounds and wallpapers, add desktop widgets,\
	 or browse through a large library of pre-installed leading Internet applications.\
	 Log on from any PC with Firefox or Internet Explorer once you've used SyncWizard to check out all your Stuff.\
	 </div><div class='last-ele'>&nbsp;</div></div>";
	showPopup(html,260,197);
}

function showAWInfoIe6() {
	var html = "<div class='ex1 pngfix'><div class='first-ele_ie6'><b>What is the ajaxWindows webOS?</b></div>";
	html += "<div class='mid-ele'>www.ajaxwindows.com is a web desktop that lets you store, edit and share your files using only a web browser.\
	 Explore a fully functional desktop, customize colors, sounds and wallpapers, add desktop widgets,\
	 or browse through a large library of pre-installed leading Internet applications.\
	 Log on from any PC with Firefox or Internet Explorer once you've used SyncWizard to check out all your Stuff.\
	 </div><div class='last-ele_ie6'>&nbsp;</div></div>";
	showPopup(html,260,197);
}
/*
function showStuffInfo() {
	var html = "<div class='ex1 pngfix'><div class='first-ele'><b>What does my 'Stuff' mean?</b></div>\
	 <div class='mid-ele'>It's your address book, your calendars and appointments, your web bookmarks, even your documents, pictures and music. \
	 You choose what to put on the internet, we make it available to you on any computer, on your mobile phone and internet devices like the Amazon Kindle.\
	 <br /><br />And we keep it up to date.  Add a friend to your address book, schedule an appointment, edit a document, rip your latest CD, or download new photos from your camera.  \
	 We make sure all the new 'stuff' is available to you, automatically.\
	 </div><div class='last-ele'>&nbsp;</div>";
	showPopup(html,0,40);
}

function showStuffInfoSync() {
	var html = "<div class='ex1 pngfix'><div class='first-ele'><b>What does my 'Stuff' mean?</b></div>\
	 <div class='mid-ele'>It's your address book, your calendars and appointments, your web bookmarks, even your documents, pictures and music. \
	 You choose what to put on the internet, we make it available to you on any computer, on your mobile phone and internet devices like the Amazon Kindle.\
	 <br /><br />And we keep it up to date.  Add a friend to your address book, schedule an appointment, edit a document, rip your latest CD, or download new photos from your camera.  \
	 We make sure all the new 'stuff' is available to you, automatically.\
	 </div><div class='last-ele'>&nbsp;</div>";
	showPopup(html,100,30);
}*/

function showMobileInfo() {
	var html = "<div class='ex1 pngfix'><div class='first-ele'><b>How do I view my stuff on my mobile phone or PDA?</b></div>";
	html += "<div class='mid-ele'>We give you access to all your files, displayed in an easy-to-read layout on your mobile phone.\
	 Getting there is easy, just point your mobile phone's web browser to <a href='http://ajaxpda.com'>http://ajaxpda.com</a> \
	 and log in with your SyncWizard account.\
	 </div><div class='last-ele2'>&nbsp;</div></div>";
	showPopup(html,155,243);
}

function showKindleInfo() {
	var html = "<div class='ex1 pngfix'><div class='first-ele'><b>How do I view my stuff on the Amazon Kindle?</b></div>";
	html += "<div class='mid-ele'>If you have one of these great devices, you already know how great it is for reading e-books.\
	 Now you can do even more.  Use your Kindle to access all the stuff you've put online with SyncWizard. \
	 The ability to get to your address book, calendars, bookmarks, and documents turns your Kindle into a real PDA.\
	 Just point your Kindle web browser to <a href='http://kindlepda.com'>http://kindlepda.com\
	 </a>.</div>\
	 <div class='last-ele'>&nbsp;</div></div>";
	showPopup(html,240,213);
}

function showMobileInfoIe6() {
	var html = "<div class='ex1 pngfix'><div class='first-ele_ie6'><b>How do I view my stuff on my mobile phone or PDA?</b></div>";
	html += "<div class='mid-ele'>We give you access to all your files, displayed in an easy-to-read layout on your mobile phone.\
	 Getting there is easy, just point your mobile phone's web browser to <a href='http://ajaxpda.com'>http://ajaxpda.com</a> \
	 and log in with your SyncWizard account.\
	 </div><div class='last-ele2_ie6'>&nbsp;</div></div>";
	showPopup(html,155,243);
}

function showKindleInfoIe6() {
	var html = "<div class='ex1 pngfix'><div class='first-ele_ie6'><b>How do I view my stuff on the Amazon Kindle?</b></div>";
	html += "<div class='mid-ele'>If you have one of these great devices, you already know how great it is for reading e-books.\
	 Now you can do even more.  Use your Kindle to access all the stuff you've put online with SyncWizard. \
	 The ability to get to your address book, calendars, bookmarks, and documents turns your Kindle into a real PDA.\
	 Just point your Kindle web browser to <a href='http://kindlepda.com'>http://kindlepda.com\
	 </a>.</div>\
	 <div class='last-ele_ie6'>&nbsp;</div></div>";
	showPopup(html,240,213);
}

function showPersonalPage() {
	
	var html = "<div class='ex1 pngfix'><div class='first-ele'><b>What is the \"My Stuff\" page?</b></div>";
	html += "<div class='mid-ele'>Your My Stuff page gives you a single organized view into all your online data.\
	 Immediate anywhere access to your contacts, calendars, bookmarks, documents, pictures, music and more efficiently displayed in your PC's web browser.\
	 Everything is clickable, making it easy to open, view, edit, print or save lots of different types of data straight from the web. \
	 Try this out as your new browser homepage, you won't be disappointed\
	 </div>\
	 <div class='last-ele2'>&nbsp;</div>\
	 </div>";
	showPopup(html,155,197);
}

function showPersonalPageIe6() {
	
	var html = "<div class='ex1 pngfix'><div class='first-ele_ie6'><b>What is the \"My Stuff\" page?</b></div>";
	html += "<div class='mid-ele'>Your My Stuff page gives you a single organized view into all your online data.\
	 Immediate anywhere access to your contacts, calendars, bookmarks, documents, pictures, music and more efficiently displayed in your PC's web browser.\
	 Everything is clickable, making it easy to open, view, edit, print or save lots of different types of data straight from the web. \
	 Try this out as your new browser homepage, you won't be disappointed\
	 </div>\
	 <div class='last-ele2_ie6'>&nbsp;</div>\
	 </div>";
	showPopup(html,155,197);
}

function showPopup(html,addX,addY) {
	var thisPopup = document.createElement('div');
	if (navigator.appName == "Microsoft Internet Explorer"){
	   var winWidth=document.body.clientWidth;
	   thisPopup.setAttribute('className','infopopup');
	}
	else if (navigator.appName == "opera"){
	   thisPopup.style.position='absolute';
	   thisPopup.style.borderStyle='solid';
	   thisPopup.style.borderWidth='5px';
	   thisPopup.style.background='#eeeeee';
	   thisPopup.style.width='300px';
	   thisPopup.style.padding='20px';
	   thisPopup.style.fontSize='12px';
	}
	else {
	   var winWidth=window.innerWidth;
	   thisPopup.setAttribute('class','infopopup');
	}
	var posX=Math.max((winWidth-700)/2+5,5)+addX;
	posX=Math.round(posX)+"px";
	thisPopup.style.left=posX;
	thisPopup.style.top=addY+"px";
	thisPopup.setAttribute('id','thispopup');

	thisPopup.innerHTML = html;
	document.body.appendChild(thisPopup);
}

function showStuffPopup(html) {
	var thisPopup = document.createElement('div');
	if (navigator.appName == "Microsoft Internet Explorer"){
	   var winWidth=document.body.clientWidth;
	   thisPopup.setAttribute('className','infostuffpopup');
	}
	else if (navigator.appName == "opera"){
	   thisPopup.style.position='absolute';
	   thisPopup.style.borderStyle='solid';
	   thisPopup.style.borderWidth='5px';
	   thisPopup.style.background='#eeeeee';
	   thisPopup.style.width='300px';
	   thisPopup.style.padding='20px';
	   thisPopup.style.fontSize='12px';
	}
	else {
	   var winWidth=window.innerWidth;
	   thisPopup.setAttribute('class','infostuffpopup');
	}
	var posX=Math.max((winWidth-700)/2+170,160);
	posX=Math.round(posX)+"px";
	thisPopup.setAttribute('id','thispopup');
        thisPopup.style.left=posX;
	document.body.appendChild(thisPopup);
	thisPopup.innerHTML = html;
}
function hidePopup() {
        var killedOne=true;
        while(killedOne){
	var thisPopup = document.getElementById('thispopup');
	if(thisPopup&&thisPopup.parentNode){
           thisPopup.parentNode.removeChild(thisPopup);
           killedOne=true;
        } else killedOne=false;
        }
}


function showFade() {
	var thisPopupBG = document.createElement('div');
	thisPopupBG.setAttribute('id','thispopupbg');
	thisPopupBG.setAttribute('style','position:absolute;width:100%;height:100%;opacity:.75;background:#dddddd;margin:0px;padding:0px;top:0px;left:0px;');
	document.body.appendChild(thisPopupBG);
}

function hideFade() {
	var thisPopupBG = document.getElementById('thispopupbg');
	document.body.removeChild(thisPopupBG);
}
