var ads = [
	["1414655593", 728, 90, [1]],
	["8149459138", 468, 60, [1]],
	["9060601177", 234, 60, [1, 2, 3]],
	["9315346759", 120, 600, [1, 3]],
	["4201905285", 160, 600, [1, 3]],
	["2360172588", 120, 240, [1, 2, 3]],
	["2683991759", 336, 280, [1, 2, 3]],
	["1447442987", 300, 250, [1, 2, 3]],
	["1922918641", 250, 250, [1, 2, 3]],
	["5484573595", 200, 200, [1, 2, 3]],
	["8193657131", 180, 150, [1, 2, 3]],
	["6122589101", 125, 125, [1, 2, 3]]
];

google_ad_client = "pub-5623137976948359";

var imSensed = false;

var hash = window.location.hash;
if (hash != null && hash.length != 0) {
	hash = hash.substring (1);
}
var index = parseInt (hash);
if (isNaN (index)) {
	index = 0;
} else {
	imSensed = true;
}
var areaCount = 0;
for (var i = 0; i < ads.length; i++) {
	var w = ads[i][1];
	var h = ads[i][2];
	var area = w * h;
	if (index >= areaCount && index < areaCount + area) {
		google_ad_slot = ads[i][0];
		google_ad_width = w;
		google_ad_height = h;
		break;
	}
	areaCount += area;
}
if (hash != null && hash.indexOf ("chatting") != -1) {
	google_ad_slot = "3849647791";
}
var noAd = false;
if (hash != null && hash.indexOf ("blank") != -1) {
	noAd = true;
}
if (imSensed && !noAd) {
	var bdStyle = document.body.style;
	bdStyle.margin = "0";
	bdStyle.padding = "0";
	bdStyle.overflow = "hidden";
	bdStyle.border = "0 none transparent";
if (hash != null && hash.indexOf ("chatting") != -1) {
        bdStyle.padding = "3px";
	bdStyle.textAlign = "center";
}
	var bdpStyle = document.body.parentNode.style;
	bdpStyle.margin = "0";
	bdpStyle.padding = "0";
	bdpStyle.overflow = "hidden";
	bdpStyle.border = "0 none transparent";

	var cssText = ".copyright,.about-links, .bottom-line, .side-bar { position: relative !important; }";
	if (document.createStyleSheet != null) {
		/*
		 * Internet Explorer does not support loading dynamic css styles
 		 * by creating <STYLE> element!
		 */
		var sheet = document.createStyleSheet ();
		sheet.cssText = cssText;
	} else {
		var cssStyle = document.createElement ("STYLE");
		cssStyle.appendChild (document.createTextNode (cssText));
		document.getElementsByTagName ("HEAD")[0].appendChild (cssStyle);
	}
	google_page_url = document.location;
	document.write ('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/scr'+'ipt>');
}
