/*
 Copyright 2010 ChessBomb.com
 All rights reserved
*/
if("undefined"==typeof _cbeC)_cbeC=1;else++_cbeC;
(function(){function m(){var f=false,k=0,b,c,d,h;b=document.getElementsByClassName?document.getElementsByClassName("cbe-marker"):document.getElementsByTagName("p");if(b.length<=0)return false;for(d=0;d<b.length;++d){c=b.item?b.item(d):b[d];if(n.test(c.tagName)&&o.test(c.className)){++k;if(!f){h=c.innerHTML;if(p.test(h)||q.test(h))f=true}if(f)if(k<=l)c.style.display="none"}}return f}var a="undefined"==typeof cbeOptions?{}:cbeOptions,i=a.layout?a.layout:"undefined"==typeof cbeLayout?"1":cbeLayout,g=
a.game?a.game:"undefined"==typeof cbeGame?"":cbeGame,e=window.location.hostname;a=(e!="chessbomb"?"http://chessbomb.com":"http://chessbomb")+"/embed/l"+i+"/?domain="+e+"&"+("room="+(a.room?a.room:"undefined"==typeof cbeRoom?"":cbeRoom)+(g.length?"&game="+g:""));var o=/(^|\s)cbe-marker(\s|$)/,n=/\bp\b/i,p=/^<a href="http:\/\/chessbomb.com\/o\/.*\/">Live chess broadcast<\/a> powered by <a href="http:\/\/chessbomb.com\/">ChessBomb<\/a>( and <a href="http:\/\/www.chessdom.com\/">Chessdom<\/a>)?$/i,q=
/^<a href="http:\/\/chessbomb.com\/">Live chess broadcast powered by ChessBomb(\.com)?<\/a>$/i;g=_cbeC;var l=3,j;e=728;j=600;if(i=="2")j=640;else if(i=="3")e=576;if(m())g<=l&&document.writeln('<iframe src="'+a+'" width="'+e+'" height="'+j+'" frameborder="0" scrolling="no" style="border:0px solid #444;"></iframe>');else document.writeln('<p>The <a href="http://chessbomb.com/">ChessBomb</a> integration code has unallowed modifications</p>')})();
