// function to set as home page

function setHomePage(obj){

var isIE = document.all ? true:false;

var isNS6 = (document.getElementById && !isIE) ? true:false;

var isOther = (!isIE && !isNS6);

var link = document.getElementById('setas');

var stylesh = '<style type=text/css>'

+'BODY{ background: #ffffff;'

+'FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif;'

+'FONT-SIZE: 12px;'

+'color: #oooooo;}'

+'A:link, A:visited, A:active {color:#0000ff;}'

+'.purplebuttontext{'

+'COLOR: #000000;'

+'FONT-WEIGHT: bold;'

+'FONT-SIZE: 12px;'

+'LINE-HEIGHT: 12px;'

+'FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif;'

+'TEXT-DECORATION: none}'

+'a.purplebutton{'

+'padding: 1px 6px 1px 6px;'

+'border: 2px outset #cccccc;'

+'background: #eeeeee;'

+'COLOR: #000000;'

+'text-decoration: none;'

+'height: 19px;'

+'vertical-align: middle;'

+'}'

+'a.purplebutton:focus, a.purplebutton:hover{'

+'border: 2px inset #cccccc;'

+'vertical-align: middle;'

+'background: #eeeeee; '

+'color: #000000;'

+'text-decoration: none;}'

+'</style>';

var closewin = '<table width="100%"><tr><td class="purplebuttontext" align="left"><a href="#" class="purplebutton" onClick="window.close();">Close window</a></td></tr></table>';

if(isIE){

eval("link.style.behavior=\'url(#default#homepage)\';");

eval("link.setHomePage(\'http://www.livegame.com');");

}


// If its Netscape 6, tell user to drag link onto Home button

else if(isNS6) {

var win = window.open('','HomePage','width=180,height=80');

win.document.write(stylesh+'Drag this link <A ondrag="window.close();" HREF="http://www.livegame.com">LiveGame.com<A><br>to your Homepage button <br>to set as homepage'+closewin);

}

else {

var win = window.open('','HomePage','width=180,height=80');

win.document.write(stylesh+'<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.<p>'+closewin);

}

}