var windowcarbClosed = false;
var ewW = 350;
var ewH = 96;
var ewTime = null;
var ewCookie = 'ffff';

function loadCarbWindow() {
		var windowcarb = document.getElementById( 'windowcarbAlert' );
		var pos = parseInt( windowcarb.style.top );
		if( pos > 0 ) { windowcarb.style.top = ( pos - 5 ) + 'px'; setTimeout( 'loadCarbWindow()', 30 ); }
	}
	
function closeCarbWindow( test ) {
		if( windowcarbClosed == false && test == false ) {  }
		document.getElementById( 'windowcarbone' ).style.display = 'none';
		windowcarbClosed = true;
		clearTimeout( ewTime );
	}
	
function positionCarbWindow() {
		divBG = document.getElementById( 'windowcarbone' );
		divBG.style.top = ( getScrollTop() + getWindowHeight() - ewH ) + 'px';
		divBG.style.left = ( getScrollLeft() + getWindowWidth() - ewW - 10 ) + 'px';
		ewTime = setTimeout( "positionCarbWindow()", 100 );
	}

	var is_Netscape = navigator.appName.indexOf("Netscape")!= -1;
	var is_Body = document.body;

function getWindowHeight() {
		if( typeof window.innerHeight == 'number' ) {
    var winH = window.innerHeight;
			if( window.scrollMaxX > 0 ) { winH -= 17; }
			return winH;
		}
		else if ( document.documentElement.clientHeight) { return document.documentElement.clientHeight; }
		else if( typeof document.body.clientHeight == 'number' ) { return document.body.clientHeight; }
	}
	
function getWindowWidth() {
		if( typeof window.innerWidth == 'number' ) {
			var winW = window.innerWidth;
			if( window.scrollMaxY > 0 ) { winW -= 17; }
			return winW;
		}
		else if ( document.documentElement.clientWidth ) { return document.documentElement.clientWidth; }
		else if( document.body && document.body.clientWidth ) { return document.body.clientWidth; }
	}
	
function getScrollLeft() {
		var posLeft = false;
		if( is_Netscape ) { posLeft = window.pageXOffset; }
		else if( document.documentElement && document.documentElement.scrollTop ) { posLeft = document.documentElement.scrollLeft; }
		else if( is_Body ) { posLeft = document.body.scrollLeft; }
		return typeof posLeft == 'number' ? posLeft : 0;
	}
	
function getScrollTop() {
		var posTop = false;
    if (window.innerHeight) { posTop = window.pageYOffset; }
		else if( document.documentElement && document.documentElement.scrollTop ) { posTop = document.documentElement.scrollTop; }
		else if( is_Body ) { posTop = document.body.scrollTop; }
    return typeof posTop == 'number' ? posTop : 0;
	}

function addOnLoadEvent( func ) {
		if( typeof window.onload != 'function' ) { window.onload = func; }
		else { var oldOnload = window.onload; window.onload = function() { oldOnload(); func(); } }
	}


if( 0 == 0 ) {

		document.write( '<style type="text/css">' );
		document.write( '#windowcarbone { margin:0px;padding:0px; }' );
		document.write( '#windowcarbone { width:350px;height:96px; }' );
		document.write( '#windowcarbone { position:absolute;right:30px;bottom:0px;overflow:hidden;z-index:5;}' );
		document.write( '#windowcarbAlert { position:relative; }' );
		document.write( '.sexy { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }' );
		document.write( '.sexy a:link { color: #0000FF; text-decoration: none; font-weight:normal; }' );
		document.write( '.sexy a:active { color: #0000FF;text-decoration: none; font-weight:normal; }' );
		document.write( '.sexy a:visited { color: #0000FF; text-decoration: none; font-weight:normal; }' );
		document.write( '.sexy a:hover { color: #333333; text-decoration: none; font-weight:normal; }' );
		document.write( '</style>' );
		document.write( '<div id="windowcarbone" onselectstart="return false;">' );
		document.write( '<div id="windowcarbAlert" style="top:96px">' );
		document.write( '<table class=sexy width=350 border=0 cellpadding=0><tr><td align=center>' );
    document.write( '<a href="http://www.natacha-web.com/annonce-femme-mariee1.html" target="_blank">' );
		document.write( '<img src="http://www.natacha-web.com/popup-mature/1.gif" border="0">' );
    document.write( '</a>' );
		document.write( '</td></tr><tr><td bgcolor=#FFFFFF align=right><a href=# onClick="closeCarbWindow( true )">Fermer</a>&nbsp;&nbsp;</td></tr></table></div>' );
		document.write( '</div></div>' );
		
function loadCarbWindowNow() { positionCarbWindow(); loadCarbWindow(); }
addOnLoadEvent(	function() { setTimeout( 'loadCarbWindowNow()', 1 * 1000 ); } );
}
