if(typeof(window['mg']) == "undefined") { var rand = Math.round(Math.random() * 10000); document.write(''); top.mg = 1; }