function getRefToDivNest( divID, oDoc ) {
	if( !oDoc ) { oDoc = document; }
	if( document.getElementById ) { return document.getElementById(divID); }
	if( document.all ) { return document.all[divID]; }
	return document[divID];
}
function CRpopdiv(l) {

brands = [ "bjbfr", "cafr", "ccfr", "cccfr", "zcfr", "gtfr" ]
var keyword = brands[Math.floor(Math.random()*brands.length)]

	window.logoCount = ( typeof( window.logoCount ) == 'number' ) ? window.logoCount + 1 : 0;
		document.write( '<div id="logoNum' + window.logoCount + '" style="position:absolute;left:0px;top:0px;height:125px;width:210px;"><div style="z-index:99;overflow:hidden;width:210px;height:126px;background:transparent;"><div id="d1" style="position:relative;bottom:-130px;right:0;width:210px;height:126px;background:transparent:"><table width="210" height="126" border="0" cellpadding="0" cellspacing="0"><tr><td><a href="http://www.yachting-casino.com/?referrer=755" target="_blank"><img src="http://ocean.yachting-casino.com/aff/bannieres/yachting/messenger/01.png" width="177" height="29" alt="" border="0"></a></td><td><span onclick="slideOut();" style="cursor:pointer;"><img src="http://ocean.yachting-casino.com/aff/bannieres/yachting/messenger/02.png" width="33" height="29" alt="" border="0"></span></td></tr><tr><td colspan="2"><a href="http://www.yachting-casino.com/?referrer=755" target="_blank"><img src="http://ocean.yachting-casino.com/aff/bannieres/yachting/messenger/03.png" width="210" height="97" alt="" border="0"></a></td></tr></table></div></div>' );
	window.setInterval('moveIt(4,true,210,125,-1,-1,' + window.logoCount + ')',10);
}
function moveIt(p,s,w,h,xOf,yOf,n) {
	var msnImage = getRefToDivNest('logoNum'+n);
	if( !msnImage ) { return; }
	if( msnImage.style ) { msnImage = msnImage.style; }

	var scrW = 0, scrH = 0, scrOfX = 0, scrOfY = 0;
	if( typeof( window.innerWidth ) == 'number' ) { scrW = window.innerWidth; scrH = window.innerHeight; } else {
		if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			scrW = document.documentElement.clientWidth; scrH = document.documentElement.clientHeight; } else {
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				scrW = document.body.clientWidth; scrH = document.body.clientHeight; } } }
	if( typeof( window.pageYOffset ) == 'number' ) { scrOfY = pageYOffset; scrOfX = pageXOffset; } else {
		if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else {
			if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } }
	}

	var oPix = document.childNodes ? 'px' : 0;
	msnImage.left = ( xOf + ( ( p % 2 ) ? 0 : scrW - w ) + ( s ? scrOfX : 0 ) ) + oPix;
	msnImage.top = ( yOf + ( ( p < 3 ) ? 0 : scrH - h ) + ( s ? scrOfY : 0 ) ) + oPix;
}


function slideIn()
{
var slidingDiv = document.getElementById("d1");
var stopPosition = 0;
if (parseInt(slidingDiv.style.bottom) < stopPosition )
{
slidingDiv.style.bottom = parseInt(slidingDiv.style.bottom) + 4 + "px";
setTimeout(slideIn, 10);
}
}
function slideOut()
{
var slidingDiv = document.getElementById("d1");
var stopPosition = -130;

if (parseInt(slidingDiv.style.bottom) > stopPosition )
{
slidingDiv.style.bottom = parseInt(slidingDiv.style.bottom) - 4 + "px";
setTimeout(slideOut, 10);
}
}