// Drop Bown Menu - Head Script
// copyright Stephen Chapman, 4th March 2005, 5th February 2006
// you may copy this menu provided that you retain the copyright notice

var fix = 0; var delay = 2000; var modd = 0;
var bar = new menuBar();

bar.addMenu('Main Page');
bar.addItem('index.php','Home');
bar.addItem('index.php?lang=EN','English');
bar.addItem('index.php?lang=DE','Deutsch');
//bar.addItem('index.php?lang=FR','Fran&ccedil;ais');
//bar.addItem('index.php?lang=ES','Espa&#241;iol');
//bar.addItem('index.php?lang=SE','Svensk');
//bar.addItem('index.php?lang=IT','Italiano');
//bar.addItem('index.php?lang=PT','Portugu&#234;s');
//bar.addItem('index.php?lang=JP','Japanese');


bar.addMenu('Service');
bar.addItem('index.php?main=what','What is Bestgameoffer.com ?');
bar.addItem('index.php','How we achieve the low price'); 
//bar.addItem('compilations.php','All Compilations');
bar.addItem('faq.php','The service explained');
bar.addItem('prize_draw.php','Try it out for free');
bar.addItem('index.php','Guarantee');
bar.addItem('index.php','Delivery');
bar.addItem('index.php','Paypal');

bar.addMenu('Games');
bar.addItem('genres.php','Game genres');
bar.addItem('games.php?week=1','First week games');
bar.addItem('games.php','Second week games');
/*bar.addItem('compilations.php?comp=0','Compilation A');
bar.addItem('compilations.php?comp=1','Compilation B');
bar.addItem('compilations.php?comp=2','Compilation C');
bar.addItem('compilations.php?comp=3','Compilation D');
bar.addItem('compilations.php?comp=4','Compilation E');
bar.addItem('compilations.php?comp=5','Compilation F');
*/

bar.addMenu('Purchase');
bar.addItem('new_land.php','Purchase now');
bar.addItem('compilations.php','Compilations available');
bar.addItem('prize_draw.php?main=competition','Promotion keyword');
bar.addItem('index.php','Paypal');
bar.addItem('index.php','Retail and on-line prices elsewhere');
bar.addItem('index.php','Delivery');

bar.addMenu('Extras');
bar.addItem('prize_draw.php?main=competition','Free prize draw');
bar.addItem('contact.php?main=affiliates','Affiliate and partner program');
bar.addItem('faq.php','FAQ');
bar.addItem('legal_texts.php?main=partner','Partner pages');

bar.addMenu('Legals');
bar.addItem('legal_texts.php?main=licence&page=1','End-user software licence');
bar.addItem('legal_texts.php?main=terms&page=1','Terms of use');
bar.addItem('legal_texts.php?main=privacy&page=1','Privacy Policy');
bar.addItem('legal_texts.php?main=dmca&page=1','DMCA Notice');

bar.addMenu('Company');
bar.addItem('contact.php?main=contact','Advertise on Bestgameoffer.com');
bar.addItem('company.php','Press releases');
bar.addItem('contact.php?main=contact','Request partner link');

bar.addMenu('Contact us');
bar.addItem('contact.php?main=contact','Contact us');
//bar.addItem('contact.php?main=faq','FAQ Email');
bar.addItem('contact.php?main=support','Support');
//bar.addItem('http://www.facebook.com/pages/Bestgameoffercom-Simply-the-best-game-offer-on-the-Internet/95302023065?ref=ts','Facebook fan page');
//bar.addItem('http://twitter.com/bestgameoffer','Follow on Twitter');
bar.addItem('contact.php?main=affiliates','Affiliate and partner program'); 


// do not change anything below this line
var blc = '#ffffff';var blh = '#c11b17';var bla = '#ff0000';var lc = '#FF0000';var lh = '#FFFFFF';var la = '#FFFFFF';
function menuBar() {this.jj = -1;this.kk = 0;this.mO = new Array();this.addMenu = addMenu;this.addItem = addItem;this.writeBar = writeBar;this.writeDrop = writeDrop;}function addMenu(main) {this.mO[++this.jj] = new Object();this.mO[this.jj].main = main;this.kk = 0;this.mO[this.jj].link = new Array();this.mO[this.jj].name = new Array();}function addItem(link,name) {this.mO[this.jj].link[this.kk] = link;this.mO[this.jj].name[this.kk++] = name;}function writeBar() {for (var i=1;i <= this.mO.length; i++){document.write('<span id="navMenu'+i+'" class="mH">'+this.mO[i-1].main+'<\/span>');}}function writeDrop() {for (var i=1;i <= this.mO.length; i++){document.write('<div id="dropMenu'+i+'" class="mD">\r\n');for (var h=0;h < this.mO[i-1].link.length; h++){document.write('<a class="mL" href="'+this.mO[i-1].link[h]+'">'+this.mO[i-1].name[h]+'<\/a>\r\n');}document.write('<\/div>\r\n');}}
if (fix) window.onscroll=sMenu;window.onload=iMenu;var onm = null;var ponm = null;var podm = null;var ndm = bar.mO.length;
function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}
function sMenu() {document.getElementById('mB').style.top = posY() + 'px'; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i;odm = document.getElementById(menuName); if (onm) {var yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight;odm.style.top = yPos + 'px';}}}
function iMenu() {if (document.getElementById) {document.onclick = mHide; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i; navName = 'navMenu' + i; odm = document.getElementById(menuName); onm = document.getElementById(navName); odm.style.visibility = 'hidden'; onm.onmouseover =  mHov; onm.onmouseout = mOut;} onm = null;} return;}
function  mHov(e) {if (modd) clearTimeout(modd);document.onclick = null; honm = document.getElementById(this.id); if (honm != onm) {honm.style.color = lh; honm.style.backgroundColor = blh;} menuName = 'drop' + this.id.substring(3,this.id.length); odm = document.getElementById(menuName); if (podm == odm) {mHide(); return;} if (podm != null) mHide(); onm = document.getElementById(this.id); if ((ponm != onm ) || (podm == null)) {onm.style.color = la; onm.style.backgroundColor = bla;} if (odm) {xPos = onm.offsetParent.offsetLeft + onm.offsetLeft; yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight; odm.style.left = xPos + 'px'; odm.style.top = yPos + 'px'; odm.style.visibility = 'visible'; odm.onmouseover = omov; odm.onmouseout = omot; podm = odm; ponm = onm;}}
function omov() {if (modd) clearTimeout(modd);}
function omot() {modd = setTimeout('mHide()',delay);}
function mOut(e) {modd = setTimeout('mHide()',delay);document.onclick = mHide;oonm = document.getElementById(this.id); if (oonm != onm) {oonm.style.color = lc; oonm.style.backgroundColor = blc;}}
function mHide() {document.onclick = null; if (podm) {podm.style.visibility = 'hidden'; podm = null; ponm.style.color = lc; ponm.style.backgroundColor = blc;} onm = null;}
if (fix) {var ag = navigator.userAgent.toLowerCase();var isG = (ag.indexOf('gecko') != -1);var isR=0;if (isG) {t = ag.split("rv:"); isR = parseFloat(t[1]);}if (isR && isR<1) setInterval('sMenu()',50);}