var items=new Array()

items[0]='<div class="items"><a href="http://www.arcadebomb.com" class="normal"><strong>Home</strong></a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/action_games.html" class="normal">Action Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/arcade_games.html" class="normal">Arcade Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/board_games.html" class="normal">Board Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/puzzle_games.html" class="normal">Puzzle Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/race_games.html" class="normal">Race Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/shooting_games.html" class="normal">Shooting Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/sim_games.html" class="normal">Sim Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/sport_games.html" class="normal">Sport Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/strategy_games.html" class="normal">Strategy Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/multiplayer_games.html" class="normal">Multiplayer Games</a></div>'
items[0]+='<div class="items"><a href="http://www.arcadebomb.com/free_website_games.html" class="normal">Free site content</a></div>'

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

var ns4=document.layers
var ns6=document.getElementById&&!document.all

function showmenu(e,which){

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#FFFFFF width=150 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX - 150 : e.x - 150 
eventY=ie4? event.clientY : ns6? e.clientY : e.y

var fixed_right=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var fixed_down=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

if (fixed_right <menuobj.contentwidth)
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
else
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX


menuobj.thestyle.top=250
menuobj.thestyle.visibility="visible"
return false
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",1500)
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="items"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="items"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}}}}

if (ie4||ns6)
document.onclick=hidemenu

function BannerArea1(){
urls    = new Array(5);
urls[0] = "3";
urls[1] = "1";
urls[2] = "1";
urls[3] = "1";
urls[4] = "3";

pics    = new Array(5);
pics[0] = "ato_gamez";
pics[1] = "ato_fresh";
pics[2] = "ato_cute";
pics[3] = "ato_flash";
pics[4] = "ato_girls";

index = Math.floor(Math.random() * urls.length);
url = "<a href='http://www.arcadebomb.com/out.php?id=" + urls[index] + "' onMouseOver='window.status='Open'; return true;' target='_blank'><img src='http://images.arcadebomb.com/images/" + pics[index] + ".gif' alt='more games' width='100' height='100' border='0'></a>";
return(url);
}

function BannerArea2(){
urls    = new Array(3);
urls[0] = "2";
urls[1] = "2";
urls[2] = "2";

pics    = new Array(3);
pics[0] = "ato_jungle";
pics[1] = "ato_funny";
pics[2] = "ato_now";

index = Math.floor(Math.random() * urls.length);
url = "<a href='http://www.arcadebomb.com/out.php?id=" + urls[index] + "' onMouseOver='window.status='Open'; return true;' target='_blank'><img src='http://images.arcadebomb.com/images/" + pics[index] + ".gif' alt='more games' width='100' height='100' border='0'></a>";
return(url);
}

function BannerArea3(){
urls    = new Array(5);
urls[0] = "6";
urls[1] = "6";
urls[2] = "4";
urls[3] = "4";
urls[4] = "4";

pics    = new Array(5);
pics[0] = "ato_end1";
pics[1] = "ato_end2";
pics[2] = "ato_girl1";
pics[3] = "ato_girl2";
pics[4] = "ato_girl1";

index = Math.floor(Math.random() * urls.length);
url = "<a href='http://www.arcadebomb.com/out.php?id=" + urls[index] + "' onMouseOver='window.status='Open'; return true;' target='_blank'><img src='http://images.arcadebomb.com/images/" + pics[index] + ".gif' alt='more games' width='100' height='100' border='0'></a>";
return(url);
}

function BannerArea4(){
urls    = new Array(3);
urls[0] = "7";
urls[1] = "5";
urls[2] = "5";

pics    = new Array(3);
pics[0] = "ato_gc1";
pics[1] = "ato_fgw";
pics[2] = "ato_start";

index = Math.floor(Math.random() * urls.length);
url = "<a href='http://www.arcadebomb.com/out.php?id=" + urls[index] + "' onMouseOver='window.status='Open'; return true;' target='_blank'><img src='http://images.arcadebomb.com/images/" + pics[index] + ".gif' alt='more games' width='100' height='100' border='0'></a>";
return(url);
}

function BannerArea5(){
urls    = new Array(3);
urls[0] = "7";
urls[1] = "7";
urls[2] = "7";

pics    = new Array(3);
pics[0] = "ato_gc2";
pics[1] = "ato_gc3";
pics[2] = "ato_gc4";

index = Math.floor(Math.random() * urls.length);
url = "<a href='http://www.arcadebomb.com/out.php?id=" + urls[index] + "' onMouseOver='window.status='Open'; return true;' target='_blank'><img src='http://images.arcadebomb.com/images/" + pics[index] + ".gif' alt='more games' width='100' height='100' border='0'></a>";
return(url);
}

function rate(rating) {
    var obj = document.getElementById('rating');
    obj.innerHTML = '<img src="/images/voted.gif">';
    if(rating == 1) {
 	obj.innerHTML = '<img src="http://images.arcadebomb.com/images/voted_good.gif">';
      }
    if(rating == 0) {
 	obj.innerHTML = '<img src="http://images.arcadebomb.com/images/voted_bad.gif">';
      }

}

function addFav(title,url)
{
	if (window.sidebar)
	{
		window.sidebar.addPanel(title, url, "");
	}
	else if(window.opera && window.print)
	{
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)
	{
		window.external.AddFavorite(url, title);
	} 
	else {
		alert('Sorry, only Mozilla Firefox and Internet Explorer support this method to add a bookmark/favourite\n But please feel free to visit the site\'s home page to add a bookmark manually');
	}
}


function addBookmark()
{
	addFav("Play Games on Arcade Bomb","http://www.arcadebomb.com/")

}

FOD_LANG='en';
FOD_SITE='regnow_partner';
FOD_PORTAL='regnowPartner';
FOD_AFFILIATE=51845;