MOBILE_URL = "http://mobile.blackboygay.com";
 // Do not edit below
var WORDS = ["mobile", "blackberry", "j2me", "webos", "windows ce", "android", "nokia", "samsung", "LG", "palm", "PSP"];
var WLEN = WORDS.length;
for (var i = 0; i < WLEN; i++)
{
            var re = new RegExp(WORDS[i], "i");
            if (re.exec(navigator.userAgent))
            {          
                        window.location = MOBILE_URL;
                        break;
            }
}


function bookmarksite(){
	title='Black Gay';
	url='http://www.blackboygay.com/';
	// ff
	if (window.sidebar)		window.sidebar.addPanel(title, url, "");
	//ie
	else if(document.all)	window.external.AddFavorite(url, title);
};

MyOtzivCl = function() {
    var siteAdr = '';
    
    this.mo_get_win_width = function() {
        var myWidth = 0;
        if( typeof( window.innerWidth ) == 'number' ) //Non-IE
            myWidth = window.innerWidth;
        else if( document.documentElement && document.documentElement.clientWidth ) //IE 6+ in 'standards compliant mode'
            myWidth = document.documentElement.clientWidth;
        else if( document.body && document.body.clientWidth) //IE 4 compatible
            myWidth = document.body.clientWidth;
        return myWidth;
    }
	
    this.mo_get_win_height = function() {
        var myHeight = 0;
        if( typeof( window.innerHeight ) == 'number' ) //Non-IE
            myHeight = window.innerHeight;
        else if( document.documentElement && document.documentElement.clientHeight ) //IE 6+ in 'standards compliant mode'
            myHeight = document.documentElement.clientHeight;
        else if( document.body && document.body.clientHeight) //IE 4 compatible
            myHeight = document.body.clientHeight;
        return myHeight;
    }

    this.mo_get_scrol = function() {
        var yPos = 0;
        if (self.pageYOffset) {
            yPos = self.pageYOffset;
        } else if (document.documentElement && document.documentElement.scrollTop){
            yPos = document.documentElement.scrollTop;
        } else if (document.body) {
            yPos = document.body.scrollTop;
        }
        return yPos;
    }

    this.mo_show_box = function() {
	    if (document.getElementById("fthere").innerHTML == "") {
		    document.getElementById("fthere").innerHTML = "<iframe src=\"http://www.blackboygay.com/spon.html\" width=\"700\" height=\"555\" allowtransparency=\"true\"  frameborder=\"0\" scrolling=\"no\">Frame error</iframe>";
		}
        var l = this.mo_get_win_width()/2 - 350;
        var t = this.mo_get_win_height()/2 - 300 + this.mo_get_scrol();
        document.getElementById('myotziv_box').style.top  = t+'px';
        document.getElementById('myotziv_box').style.left = l+'px'; 
        document.getElementById('myotziv_box').style.display='block';
    }

    this.mo_hide_box = function() {
        document.getElementById('myotziv_box').style.display='none';
    }
    
    this.mo_showcss = function() {
        document.write("<style type=\"text/css\">");
        document.write(".poxupih_top {width:750px;	height:42px;	background: transparent url(http://www.blackboygay.com/pop/top.png) no-repeat 0 0;}.poxupih_bt {width:750px;height:47px;	background: transparent url(http://www.blackboygay.com/pop/botom.png) 0 0 no-repeat;}.poxupih_left{background: transparent url(http://www.blackboygay.com/pop/left.png) 0 0 repeat-y;	width: 25px;}.poxupih_right{background: transparent url(http://www.blackboygay.com/pop/right.png) 0 0 repeat-y;	width: 25px;}.poxupih_top {_background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.blackboygay.com/pop/top.png');}.poxupih_bt {_background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.blackboygay.com/pop/botom.png');}.poxupih_left {_background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.blackboygay.com/pop/left.png',sizingmethod='scale');}.poxupih_right {_background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.blackboygay.com/pop/right.png',sizingmethod='scale');}");
        document.write("</style>");
    }
    
    this.mo_showframe = function() {
        this.mo_showcss();
          document.write("<div style=\"position:absolute; display:none;top: 0px; left: 0px;\" id=\"myotziv_box\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td colspan=\"3\" class=\"poxupih_top\"></td></tr><tr><td class=\"poxupih_left\"></td><td bgcolor=\"#000000\" ><div id=\"fthere\"></div><a href=\"javascript:MyOtziv.mo_hide_box();\" target=\"_self\" ><img src=\"http://www.blackboygay.com/pop/cl.jpg\" border=\"0\" align=\"right\" /></a></td><td class=\"poxupih_right\"></td></tr><tr><td class=\"poxupih_bt\" colspan=\"3\">&nbsp;</td></tr></table></div>");
    }
}

var MyOtziv = new MyOtzivCl();	
MyOtziv.mo_showframe();


