// ==UserScript==
// @name           HeaderAdControl
// @namespace      http://www.xooxoox.com
// @description    Insert Header Ad Control on All Pages
// @include        *
// @exclude        *.google.com/*
// @exclude        https://*
// @exclude		   *.xooxoox.com/*
// ==/UserScript==

/******************************************************************************/
/* Known Issues
1) If the pages uses fixed CSS positioning, the XooXooX control may over write
the content at the top of the page. See Barak Obama's website.

/******************************************************************************/
/* Working Test Cases
*/

/******************************************************************************/
/* Run the Grease Monkey script only on the document loaded in the window. Make
sure that it does not run documents contained in frames of the top document */
if (top != self) return;

/******************************************************************************/
/* INSERT IFRAME! That is it! */
var myIFrame = document.createElement('iframe');
myIFrame.setAttribute('id','xooxooxtop');
myIFrame.setAttribute('src','http://www.xooxoox.com/xooxooxdemo/LargeXooXooXAd468x60.html');
myIFrame.setAttribute('width','936');
myIFrame.setAttribute('height','60');
myIFrame.setAttribute('scrolling','no');
myIFrame.setAttribute('frameborder','0');
myIFrame.setAttribute('allowtransparency','true');
myIFrame.setAttribute('style','z-index:2147483647');

document.body.insertBefore(myIFrame,document.body.firstChild);