var clicked=""
var gtype=".jpg"
var selstate="_over"
if (typeof(loc)=="undefined" || loc==""){
	var loc=""
	if (document.body&&document.body.innerHTML){
		var tt = document.body.innerHTML.toLowerCase();
		var last = tt.indexOf("swgplushw.js\"");
		if (last>0){
			var first = tt.lastIndexOf("\"", last);
			if (first>0 && first<last) loc = document.body.innerHTML.substr(first+1,last-first-1);
		}
	}
}

document.write("<span class = \"gameAnnouncement\"> Check out our<br>");
document.write("Expanded <a href=\"/games/\">Games</a><br>   pages</span><br><br>");


document.write("<a href=\"SharewareGenieNews.rss\"><img src=\"Images/rss.gif\" width=\"36\" height=\"14\" border=\"0\" alt=\"rss.gif - 1031 Bytes\"</a>&#32");
document.write("&#32 <a href=\"SharewareGenieNews.xml\"><img src=\"Images/xml.gif\" width=\"36\" height=\"14\" border=\"0\" alt=\"xml.gif - 429 Bytes\"></a><br>");


document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
document.write("<td><img src=\""+loc+"swgplushw_top.jpg\" alt=\"\" width=\"142\" height=\"29\"></td>");
tr(false);
writeButton(loc+"","javascript:bookmark();","swgplushw_b1",142,29,"BookMark Page","",0);
writeButton(loc+"","News.php","swgplushw_b2",142,29,"News","",0);
writeButton(loc+"","reviews.php","swgplushw_b3",142,29,"Reviews","",0);
writeButton(loc+"","hwPage.php","swgplushw_b4",142,29,"Hardware","",0);
writeButton(loc+"","servicesPage.php","swgplushw_b5",142,29,"Services","",0);
writeButton(loc+"","UtilitiesPage.php","swgplushw_b6",142,29,"Utilities","",0);
writeButton(loc+"","DigPixPage.php","swgplushw_b7",142,29,"Digital Picture Tools","",0);
writeButton(loc+"","GraphicsPage.php","swgplushw_b8",142,29,"Graphics","",0);
writeButton(loc+"","HOPage.php","swgplushw_b9",142,29,"Home Office","",0);
writeButton(loc+"","InternetToolsPage.php","swgplushw_b10",142,29,"Web Tools","",0);
writeButton(loc+"","WebmastersPage.php","swgplushw_b11",142,29,"Webmaster Tools","",0);
writeButton(loc+"","InternetUtilitiesPage.php","swgplushw_b12",142,29,"Web Utilities","",0);
writeButton(loc+"","SecurityPage.php","swgplushw_b13",142,29,"Security","",0);
writeButton(loc+"","/games/","swgplushw_b14",142,29,"Games","",0);
writeButton(loc+"","OtherPages.php","swgplushw_b15",142,29,"Information Pages","",0);
writeButton(loc+"","ProgramListPage.php","swgplushw_b16",142,29,"Program List","",0);
writeButton(loc+"","FAQ.php","swgplushw_b17",142,29,"FAQ","",0);
writeButton(loc+"","http://www.sharewaregenie.com/forum/index.php","swgplushw_b18",142,29,"Forum","",0);
writeButton(loc+"","AboutUs.php","swgplushw_b19",142,29,"About Us","",0);
writeButton(loc+"","Contact.php","swgplushw_b20",142,29,"Contact Us","",0);
writeButton(loc+"","index.html","swgplushw_b21",142,29,"Home","",0);
tr(true);
document.write("<td><img src=\""+loc+"swgplushw_bottom.jpg\" alt=\"\" width=\"142\" height=\"29\"></td>");
document.write("</tr></table>")
loc="";
document.write("<br>&nbsp;")
document.writeln("<div class = \"copyright\">&copy; 2003 - 2009 Copyright<br> Shareware Genie</div>");


function tr(b){if (b) document.write("<tr>");else document.write("</tr>");}

function turn_over(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_over"].src;
	}
}

function turn_off(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_off"].src;
	}
}

function reg(gname,name)
{
if (document.images)
	{
	document[name+"_off"] = new Image();
	document[name+"_off"].src = loc+gname+gtype;
	document[name+"_over"] = new Image();
	document[name+"_over"].src = loc+gname+"_over"+gtype;
	}
}

function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""}

function writeButton(urld, url, name, w, h, alt, target, hsp)
{
	gname = name;
	while(typeof(document[name])!="undefined") name += "x";
	reg(gname, name);
	tr(true);
	document.write("<td>");
	if (alt != "") alt = " alt=\"" + alt + "\"";
	if (target != "") target = " target=\"" + target + "\"";
	if (w > 0) w = " width=\""+w+"\""; else w = "";
	if (h > 0) h = " height=\""+h+"\""; else h = "";	
	if (url != "") url = " href=\"" + urld + url + "\"";
	
	document.write("<a " + url + evs(name) + target + ">");	
	
	if (hsp == -1) hsp =" align=\"right\"";
	else if (hsp > 0) hsp = " hspace=\""+hsp+"\"";
	else hsp = "";
	
	document.write("<img src=\""+loc+gname+gtype+"\" name=\"" + name + "\"" + w + h + alt + hsp + " border=\"0\" /></a></td>");
	tr(false);
}
function bookmark()
{
browser = navigator.appName;
browserNum = parseInt(navigator.appVersion);
pageUrl = document.URL;
msg = "Your browser has been identified as:  ";
msg2 = "If this isn't your browser then it has been set to be identified as IE and the bookmark page will not open.  After closing this window, please bookmark the page using CTRL-D for Netscape and CTRL-T for Opera.\nIf you are using Internet Explorer, please close this box using the OK button and the bookmark window will open.";
msg3 = "The bookmark page only opens automatically for Microsoft Internet Explorer.  After closing this window, please bookmark the page using CTRL-D for Firefox and Netscape or CTRL-T for Opera.";
msg4 = "\nThank you for using The Shareware Genie.";
pageTitle = document.title;
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
		{
		alert(msg + " " + browser + "\n" + msg2 + msg4);
		window.external.AddFavorite(pageUrl,pageTitle);
		}
	

	else {
		
		alert(msg + " " + browser +" "+ browserNum + "\n" + msg3 +  msg4);
		}
}
