//Start Browser Detection var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { for (var i=0;i= document.body.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop; // Safari responds correctly to pageYOffset only sgc = document.createElement('div'); sgc.id ='main_swarmgridcontainer'; sgc.className = 'cribbr_main_swarmgridcontainer'; if(fg_getCookie('cpimain_swarmgridcontainer')!=null) { cpia = splitter(unescape(fg_getCookie('cpimain_swarmgridcontainer')),';'); if(!isNaN(cpia[0]) && !isNaN(cpia[1])) { sgc.style.top = cpia[0]+'px'; sgc.style.left = cpia[1]+'px'; } } //addEventListenElement('overlay'); if (window.addEventListener) { window.addEventListener('scroll', startMovingEventListenElement, false); } else { window.onscroll = startMovingEventListenElement; // Safari's scroll event uses Event Listener only } // if (window.addEventListener) { // window.addEventListener('resize', startMovingEventListenElement, false); // } else { // window.onresize = startMovingEventListenElement; // } tb = document.createElement('div'); tb.id ='title_bar'; tb.className ='cribbr_title_bar'; sgc.appendChild(tb); cb = document.createElement('span'); cb.id ='close_button'; cb.innerHTML = ""; cb.onclick = new Function('e','closeWindow("main_iframe")'); tb.appendChild(cb); tbt = document.createElement('span'); tbt.id ='title_bar_text'; tbt.className ='cribbr_title_bar_text'; tbt.innerHTML = "clofresh"; tb.appendChild(tbt); if(br == 'moz') { tbt.onmousedown = new Function('e','e.stopPropagation();if(e.button==0){grabEl(e,"main_swarmgridcontainer")}'); } else { tbt.onmousedown = new Function('e','grabEl(e,"main_swarmgridcontainer")'); } //added march 26.2008 hwnd_status = document.createElement('div'); hwnd_status.id = 'hwnd_status'; hwnd_status.className = 'cribbr_information';//cribbr_status_bar hwnd_status.style.display = 'none'; sgc.appendChild(hwnd_status); /* logo = document.createElement('span'); logo.id ='title_bar_logo'; logo.className ='cribbr_title_bar_logo'; logo.style.backgroundImage = 'url(http://www.eyebees.com/swarms/f1ec309d093b9c6f6fbd54dd919c6512/img/cribbr-logo.png)'; logo.innerHTML = '  '; tb.appendChild(logo); */ /*prevent google from stealing my frame*/ iframe1 = document.createElement('iframe'); iframe1.id = 'iframe1'; iframe1.width='1px'; iframe1.height='1px'; iframe1.border='0px'; iframe1.frameBorder = 'no'; iframe1.src = 'about:blank'; document.getElementsByTagName('body').item(0).appendChild(iframe1); iframe2 = document.createElement('iframe'); iframe2.id = 'iframe2'; iframe2.width='1px'; iframe2.height='1px'; iframe2.frameBorder = 'no'; iframe2.src = 'about:blank'; document.getElementsByTagName('body').item(0).appendChild(iframe2); iframe = document.createElement('iframe'); if(fg_getCookie('main_frame_visible')=='closed') { cb.className ='cribbr_close_button_closed'; iframe.style.display = 'none'; iframe.src = 'about:blank'; } else { cb.className ='cribbr_close_button_open'; prepare_url = document.location.toString(); //prepare_url = prepare_url.substr(0,prepare_url.length-1); iframe.src= 'http://www.eyebees.com/swarms/f1ec309d093b9c6f6fbd54dd919c6512/swarming.js.php?uqid='+uqid+'&url='+escape(prepare_url)+'&title='+escape(document.title)+'&swarmcategory='+(isset('swarmcategory') ? swarmcategory : ''); } iframe.scrolling='no'; iframe.id = 'main_iframe'; iframe.name = 'main_iframe'; iframe.frameBorder = 'no'; iframe.className = 'cribbr_main_iframe'; sgc.appendChild(iframe); //document.getElementsByTagName('body').item(0).appendChild(iframe); /*sg= document.createElement('div'); sg.id = 'swarmgrid'; sg.className = 'cribbr_swarmgrid'; sgc.appendChild(sg); */ add_swarmgrid_container(); } function add_swarmgrid_container() { if(document.readyState != 'interactive' && document.readyState != 'loading') { document.getElementsByTagName('body').item(0).appendChild(sgc); createBorder('main_swarmgridcontainer','main_swarmgridcontainer'); addEventListenElement('main_swarmgridcontainer'); if (window.scrollWidth || window.scrollHeight){ docwidth = window.scrollWidth; docheight = window.scrollHeight; } //IE Mozilla if (document.body.scrollWidth || document.body.scrollHeight){ docwidth = document.body.scrollWidth; docheight = document.body.scrollHeight; } ol = document.createElement('div'); ol.id = 'overlay'; ol.className = 'cribbr_overlay'; ol.innerHTML= ' '; ol.style.width=parseInt(docwidth)+'px'; ol.style.height=parseInt(docheight)+'px'; document.getElementsByTagName('body').item(0).appendChild(ol); } else { setTimeout('add_swarmgrid_container()',1000); } } function addEventListenElement(id) { if(!ele[id]) { ele[id] = new Array(); } ele[id][0] = 1; ele[id][4] = 0; } function removeEventListenElement(id) { ele[id][0] = 0; } function startMovingEventListenElement() { var scrollTop = (window.pageYOffset) ? window.pageYOffset : (document.documentElement.scrollTop >= document.body.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop; // Safari responds correctly to pageYOffset only //var viewHeight = (window.innerHeight) ? window.innerHeight : (document.documentElement.clientHeight > 0) ? document.documentElement.clientHeight : document.body.clientHeight; // Safari responds correctly to innerHeight only //var bodyHeight = (document.body.scrollHeight > document.body.offsetHeight) ? document.body.scrollHeight : document.body.offsetHeight; for(id in ele) { if(ele[id][0] == 1) { move_el = document.getElementById(id); if(fg_getCookie('cpi'+id)==null) { cpi = parseInt(getElementStyle(id,'top','top'))+';'+parseInt(getElementStyle(id,'left','left')); fg_setCookie('cpi'+id,cpi,60*60*24*30); } cpia = splitter(unescape(fg_getCookie('cpi'+id)),';'); tmpy = cpia[0]; tmpx = cpia[1];//TODO NOT USED //TODO doesn't work for x targety = parseInt(scrollTop) + parseInt(tmpy); ele[id][1] = id; ele[id][2] = targety; ele[id][3] = 0;//targetx if(ele[id][4] == 0) { moveEventListenElement(id); } } } } function moveEventListenElement(id) { move_el = document.getElementById(id); if (move_el.offsetTop != ele[id][2] ) { ele[id][4] = 1; var delta = (ele[id][2] - move_el.offsetTop) * 0.3; delta = (move_el.offsetTop < ele[id][2]) ? Math.ceil(delta) : Math.floor(delta); move_el.style.top = (move_el.offsetTop + delta) + 'px'; setTimeout('moveEventListenElement("'+id+'");', 40); } else { ele[id][4] = 0; } } function createBorder(size_element,container_element) { el = document.getElementById(container_element); for(var i=1;i<=9;i++) { if(br == 'moz') { if(document.getElementById(container_element+'mbe'+i)) { mbe=document.getElementById(container_element+'mbe'+i); } else { mbe=document.createElement('div'); } mbe.id=container_element+'mbe'+i; mbe.className='cribbr_swarmgridborder'+i; switch(i) { case 2: new_value = parseInt(getElementStyle(size_element,'height','height'))-16; if(new_value < 0) { new_value = 0; } mbe.style.height = new_value+'px'; break; case 3: mbe.style.top = parseInt(getElementStyle(size_element,'height','height'))+'px'; break; case 4: mbe.style.top = parseInt(getElementStyle(size_element,'height','height'))+'px'; break; case 5: mbe.style.top = parseInt(getElementStyle(size_element,'height','height'))+'px'; mbe.style.width = (parseInt(getElementStyle(size_element,'width','width'))-18)+'px'; break; case 6: mbe.style.top = parseInt(getElementStyle(size_element,'height','height'))+'px'; mbe.style.left = (parseInt(getElementStyle(size_element,'width','width'))-9)+'px'; break; case 7: mbe.style.top = parseInt(getElementStyle(size_element,'height','height'))+'px'; mbe.style.left = parseInt(getElementStyle(size_element,'width','width'))+'px'; break; case 8: new_value = parseInt(getElementStyle(size_element,'height','height'))-16; if(new_value < 0) { new_value = 0; } mbe.style.height = new_value+'px'; mbe.style.left = parseInt(getElementStyle(size_element,'width','width'))+'px'; break; case 9: mbe.style.left = parseInt(getElementStyle(size_element,'width','width'))+'px'; break; default: break; } el.appendChild(mbe); } else { if(document.getElementById(container_element+'ebe'+i)) { ebe=document.getElementById(container_element+'ebe'+i); } else { ebe=document.createElement('div'); } ebe.id=container_element+'ebe'+i; ebe.className='cribbr_swarmgridborder'+i+'div'; switch(i) { case 2: new_value = parseInt(document.getElementById(size_element).offsetHeight)-19; if(new_value < 0) { new_value = 0; ebe.style.display = 'none'; } else { ebe.style.display = 'block'; } ebe.style.height = new_value+'px'; break; case 3: ebe.style.top = parseInt(document.getElementById(size_element).offsetHeight)+'px'; break; case 4: ebe.style.top = parseInt(document.getElementById(size_element).offsetHeight)+'px'; break; case 5: ebe.style.top = parseInt(document.getElementById(size_element).offsetHeight)+'px'; ebe.style.width = (parseInt(document.getElementById(size_element).offsetWidth)-18)+'px'; break; case 6: ebe.style.top = parseInt(document.getElementById(size_element).offsetHeight)+'px'; ebe.style.left = (parseInt(document.getElementById(size_element).offsetWidth)-9)+'px'; break; case 7: ebe.style.top = parseInt(document.getElementById(size_element).offsetHeight)+'px'; ebe.style.left = parseInt(document.getElementById(size_element).offsetWidth)+'px'; break; case 8: new_value = parseInt(document.getElementById(size_element).offsetHeight)-19; if(new_value < 0) { new_value = 0; ebe.style.display = 'none'; } else { ebe.style.display = 'block'; } ebe.style.height = new_value+'px'; ebe.style.left = parseInt(document.getElementById(size_element).offsetWidth)+'px'; break; case 9: ebe.style.left = parseInt(document.getElementById(size_element).offsetWidth)+'px'; break; default: break; } el.appendChild(ebe); } } if(container_element == 'main_swarmgridcontainer' && br=='moz') { document.getElementById('main_iframe').style.height=(parseInt(getElementStyle('main_iframe','height','height'))+3)+'px'; } } var currentX = 0; var currentY = 0; var whichEl = null; function grabEl(e,grabelid) { whichEl = document.getElementById(grabelid); whichEl.style.zIndex = hzi++; document.getElementById('overlay').style.zIndex = 100; if(br == 'moz') { currentX = (e.pageX); currentY = (e.pageY); document.addEventListener('mousemove', moveEl, false); document.addEventListener('mouseup', dropEl, false); } else { event.cancelBubble = true; whichEl.style.pixelLeft = whichEl.offsetLeft; whichEl.style.pixelTop = whichEl.offsetTop; currentX = (event.clientX + document.body.scrollLeft); currentY = (event.clientY + document.body.scrollTop); document.onmousemove = moveEl; document.onmouseup = dropEl; event.returnValue = false; } } function moveEl(e) { var scrollTop = (window.pageYOffset) ? window.pageYOffset : (document.documentElement.scrollTop >= document.body.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop; // Safari responds correctly to pageYOffset only if(br == 'moz') { newX = (e.pageX); newY = (e.pageY); if(newX < 10 ) { newX = 10; } if(newY < 10 ) { newY = 10; } distanceX = (newX - currentX); distanceY = (newY - currentY); whichEl.x=parseInt(getElementStyle(whichEl.id,'left','left'))+distanceX; whichEl.y=parseInt(getElementStyle(whichEl.id,'top','top'))+distanceY - scrollTop; whichEl.style.left=parseInt(getElementStyle(whichEl.id,'left','left'))+distanceX+'px'; whichEl.style.top=parseInt(getElementStyle(whichEl.id,'top','top'))+distanceY+'px'; e.stopPropagation(); } else { newX = (event.clientX + document.body.scrollLeft); newY = (event.clientY + document.body.scrollTop); if(newX < 10) { newX = 10; } if(newY < 10) { newY = 10; } distanceX = (newX - currentX); distanceY = (newY - currentY); whichEl.style.pixelLeft += distanceX; whichEl.style.pixelTop += distanceY; whichEl.x=parseInt(whichEl.style.pixelLeft); whichEl.y=parseInt(whichEl.style.pixelTop)+distanceY - scrollTop; event.returnValue = false; } currentX = newX; currentY = newY; } function dropEl(e) { document.getElementById('overlay').style.zIndex = -1; if(br == 'moz') { document.onmousemove = document.onmouseup = null; document.removeEventListener('mousemove', moveEl, false); document.removeEventListener('mouseup', dropEl, false); e.stopPropagation(); } else { document.onmousemove = document.onmouseup = null; } if( whichEl.y && whichEl.x && whichEl.y!=''&& whichEl.x!='' && whichEl.y!='undefined' && whichEl.x!='undefined' && whichEl.y!=undefined && whichEl.x!=undefined) { cpi = whichEl.y+';'+whichEl.x; fg_setCookie('cpi'+whichEl.id,cpi,60*60*24*30); } } function closeWindow(eId) { if(eId == 'main_iframe') { window_element = document.getElementById(eId); if(window_element.style.display == 'none') { fg_setCookie('main_frame_visible','open',2592000); window_element.style.display = 'block'; document.getElementById('close_button').className = 'cribbr_close_button_open'; //start communication!!! window_element.src = 'http://www.eyebees.com/swarms/f1ec309d093b9c6f6fbd54dd919c6512/swarming.js.php?rand='+Math.floor(Math.random()*100000)+'&uqid='+uqid+'&url='+escape(document.location)+'&title='+escape(document.title)+'&swarmcategory='+(isset('swarmcategory') ? swarmcategory : ''); createBorder('main_swarmgridcontainer','main_swarmgridcontainer'); } else { fg_setCookie('main_frame_visible','closed',2592000); window_element.style.display = 'none'; document.getElementById('close_button').className = 'cribbr_close_button_closed'; //close communication here!!! //window_element.src = 'about:blank'; window_element.src = 'http://www.eyebees.com/swarms/f1ec309d093b9c6f6fbd54dd919c6512/swarming.js.php?rand='+Math.floor(Math.random()*100000)+'&uqid='+uqid+'&logout=1'; createBorder('main_swarmgridcontainer','main_swarmgridcontainer'); } } else { window_element = document.getElementById(eId); window_element.style.display = 'none'; } } function add_chatwindow(iId) { if(document.readyState != 'interactive' && document.readyState != 'loading') { document.getElementsByTagName('body').item(0).appendChild(cws[iId]); createBorder('cs'+iId,'csc'+iId); addEventListenElement('csc'+iId); } else { setTimeout('add_chatwindow('+iId+')',1000); } } function createChatWindow(uqid,iId,ni,hisnickname,hisimage,myimage) { var scrollTop = (window.pageYOffset) ? window.pageYOffset : (document.documentElement.scrollTop >= document.body.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop; // Safari responds correctly to pageYOffset only if(cws[iId]){ cws[iId].parentNode.removeChild(cws[iId]); cws[iId]=false; } if(!cws[iId]) { cws[iId] = document.createElement('div'); cws[iId].id = 'csc'+iId; cws[iId].className = 'cribbr_chatscreencontainer'; cws[iId].style.zIndex = hzi++; //document.getElementsByTagName('body').item(0).appendChild(cws[iId]); window_count = 0; for(counter in cws) { window_count++; } if(fg_getCookie('cpicsc'+iId)!=null) { cpia = splitter(unescape(fg_getCookie('cpicsc'+iId)),';'); cws[iId].style.top = cpia[0]+'px'; cws[iId].style.left = cpia[1]+'px'; } else { cws[iId].style.top = (50 + (window_count * 20))+'px'; cws[iId].style.left = (50 + (window_count * 20))+'px'; } cw = document.createElement('div'); cw.id = 'cs'+iId; cw.className = 'cribbr_chatscreen'; cw.style.zIndex = hzi++; cws[iId].appendChild(cw); cwtb = document.createElement('div'); cwtb.id ='chat_window_title_bar'+iId; cwtb.className ='cribbr_chat_screen_title_bar'; cw.appendChild(cwtb); if(br == 'moz') { cwtb.onmousedown = new Function('e','e.stopPropagation();if(e.button==0){grabEl(e,"csc'+iId+'")}'); } else { cwtb.onmousedown = new Function('e','grabEl(e,"csc'+iId+'")'); } cwtbt = document.createElement('span'); cwtbt.id ='title_bar_text'; cwtbt.className ='cribbr_title_bar_text'; cwtbt.style.cursor='pointer'; cwtbt.innerHTML = 'Messenger'; cwtb.appendChild(cwtbt); cwtbt = document.createElement('span'); cwtbt.id ='chat_window_close_button'; cwtbt.className ='cribbr_chat_window_close_button'; cwtbt.innerHTML = 'X'; cwtbt.onclick = new Function('e','closeChat("'+iId+'")'); cwtb.appendChild(cwtbt); cwib = document.createElement('div'); cwib.id ='chat_window_info_bar'+iId; cwib.className ='cribbr_chat_screen_info_bar'; ci = ''; //if(ni!='') { ci += ''; //} else { //ci += ''; //} if(document.getElementById('enn'+iId) && document.getElementById('enn'+iId).innerHTML !='') { ci += ''; } else { ci += ''; } ci+='
'+unescape(ni)+''+hisnickname+''+unescape(document.getElementById('enn'+iId).innerHTML)+''+unescape(hisnickname)+'
'; cwib.innerHTML = ci; cw.appendChild(cwib); chat_iframe = document.createElement('iframe'); chat_iframe.id='chat_iframe'+iId; chat_iframe.name='chat_iframe'+iId; chat_iframe.src= 'http://www.eyebees.com/swarms/f1ec309d093b9c6f6fbd54dd919c6512/chat.js.php?uqid='+uqid+'&id='+escape(iId)+'&hisimage='+hisimage+'&myimage='+myimage; chat_iframe.scrolling='no'; chat_iframe.frameBorder='no'; chat_iframe.className='cribbr_chat_iframe'; cws[iId].appendChild(chat_iframe); add_chatwindow(iId); }else{ cws[iId].style.visibility = 'visible'; cws[iId].style.zIndex = hzi++; } } function closeChat(iId) { if(document.getElementById('csc'+iId)) { oldsrc = document.getElementById('chat_iframe'+iId).src; newsrc = oldsrc+'&rm=1'; Img=new Image(); Img.src=newsrc; document.getElementById('chat_iframe'+iId).style.width=1+'px'; cws[iId].style.top='-3000px'; cws[iId].style.visibility = 'hidden'; /* cws[iId].style.visibility = 'hidden'; oldsrc = document.getElementById('chat_iframe'+iId).src; newsrc = oldsrc+'&rm=1'; document.getElementById('chat_iframe'+iId).src = newsrc; */ } } function fg_getCookie(sCookie) { var pos = document.cookie.indexOf(sCookie + '='); if ( pos != -1 ) { var start = pos + sCookie.length + 1; // start of cookie value var end = document.cookie.indexOf(';', start); // end of cookie value if ( end == -1 ) { end = document.cookie.length; } return document.cookie.substring(start, end); // extract the value } return null; } function fg_setCookie(cookieName,cookieValue,nSeconds) { var today = new Date(); var expire = new Date(); if (nSeconds==null || nSeconds==0) { document.cookie = cookieName+'='+escape(cookieValue) + ';path=/;'; } else { expire.setTime(today.getTime() + 1000*nSeconds); document.cookie = cookieName+'='+escape(cookieValue) + ';path=/;expires='+expire.toGMTString(); } } function getElementStyle(elemID, IEStyleProp, CSSStyleProp) { var elem = document.getElementById(elemID); if (elem.currentStyle) { return elem.currentStyle[IEStyleProp]; } else if (window.getComputedStyle) { var compStyle = window.getComputedStyle(elem, ''); return compStyle.getPropertyValue(CSSStyleProp); } return ''; } function isset(varname){ return(typeof(window[varname])!='undefined'); } function splitter(string,seperator) { var split_array = new Array(); var old_index = 0; while( (index=string.indexOf(seperator,old_index)) != -1) { split_array.push(string.substring(old_index,index)); old_index = index+1; } split_array.push(string.substring(old_index,string.length)); return split_array; } var top_url = top.document.location.toString();var old_url = ''; function checkUrl() { new_url = top.document.location.toString(); if(new_url != old_url) { if(new_url.indexOf('succ') > -1) { chat_info_string = new_url.substring(new_url.indexOf('succ')+'succ'.length); splitted_array = splitter(chat_info_string,'_'); if(splitted_array[6] == 'old') { if(document.getElementById('csc'+splitted_array[1])) { if(document.getElementById('csc'+splitted_array[1]).currentStyle.visibility =="hidden") { createChatWindow(splitted_array[0],splitted_array[1],splitted_array[2],splitted_array[3],splitted_array[4],splitted_array[5]); top.document.location = old_url; } else { top.document.location = old_url; } } else { createChatWindow(splitted_array[0],splitted_array[1],splitted_array[2],splitted_array[3],splitted_array[4],splitted_array[5]); top.document.location = old_url; } } if(splitted_array[6] == 'new') { createChatWindow(splitted_array[0],splitted_array[1],splitted_array[2],splitted_array[3],splitted_array[4],splitted_array[5]); top.document.location = old_url; } } //added march 26.08 else if(new_url.indexOf('idle') > -1) { window_element = document.getElementById('main_iframe'); window_element.src = 'http://www.eyebees.com/swarms/f1ec309d093b9c6f6fbd54dd919c6512/swarming.js.php?rand='+Math.floor(Math.random()*100000)+'&uqid='+uqid+'&logout=1'; createBorder('main_swarmgridcontainer','main_swarmgridcontainer'); hwnd_status = document.getElementById('hwnd_status'); hwnd_status.className = 'cribbr_information'; hwnd_status.style.display = 'block'; hwnd_status.innerHTML = "You've been idle for 10 minutes. Click here to login again."; old_url = new_url; } else { old_url = new_url; } } setTimeout('checkUrl()',20); } function create_mozz_chat(new_url,val) { if(val == 'new') { if(new_url.indexOf('succ') > -1) { chat_info_string = new_url.substring(new_url.indexOf('succ')+'succ'.length); //chat_info_string = new_url.substring(new_url.indexOf('succ')+'succ'.length); splitted_array = splitter(chat_info_string,'_'); createChatWindow(splitted_array[0],splitted_array[1],splitted_array[2],splitted_array[3],splitted_array[4],splitted_array[5]); } } else if(val == 'old') { if(new_url.indexOf('succ') > -1) { chat_info_string = new_url.substring(new_url.indexOf('succ')+'succ'.length); //chat_info_string = new_url.substring(new_url.indexOf('succ')+'succ'.length); splitted_array = splitter(chat_info_string,'_'); if(document.getElementById('csc'+splitted_array[1]).style.visibility =="hidden") { //alert("OLD hidden"); createChatWindow(splitted_array[0],splitted_array[1],splitted_array[2],splitted_array[3],splitted_array[4],splitted_array[5]); } else { // alert("OLD not hidden"); } } } } //added march 26.08 function mozilla_eyebee(g_url) { if(g_url.indexOf('idle') > -1) { window_element = document.getElementById('main_iframe'); window_element.src = 'http://www.eyebees.com/swarms/f1ec309d093b9c6f6fbd54dd919c6512/swarming.js.php?rand='+Math.floor(Math.random()*100000)+'&uqid='+uqid+'&logout=1'; createBorder('main_swarmgridcontainer','main_swarmgridcontainer'); hwnd_status = document.getElementById('hwnd_status'); hwnd_status.className = 'cribbr_information'; hwnd_status.style.display = 'block'; hwnd_status.innerHTML = "You've been idle for 10 minutes. Click here to login again."; } } function GetHelpFrame(){ if(!hfs){ setTimeout('GetHelpFrame()',500); } if(document.readyState!='interactive' && document.readyState!='loading'){ if(!hfs && window.main_iframe){ if(window.main_iframe.help_frame){ hfs=window.main_iframe.help_frame; if(br!='moz'){ hfs.location.href='about:blank'; } } } if(hfs){ CheckHelpFrame(); } } } var OldWidth=1; var OldHeight=1; function CheckHelpFrame(){ var Width =-1; var Height=-1; try{ if(hfs && hfs.document && hfs.document.body && hfs.document.body.clientWidth){ Width =hfs.document.body.clientWidth; Height=hfs.document.body.clientHeight; if(Width!=OldWidth || Height!=OldHeight){ OldWidth=Width; OldHeight=Height; } } } catch(e) {} setTimeout('CheckHelpFrame();',20); } if(br == 'exp') { if(top_url.indexOf('#') == -1) { top.document.location = top_url+'#'; old_url = top_url+'#'; } else { old_url = top.document.location.toString(); } setTimeout('checkUrl()',20); } else { //top.location.moz_chat_comm = new Function("line","create_mozz_chat(line);") ; top.location.moz_chat_comm = new Function("line","val","create_mozz_chat(line,val);"); top.location.mozilla_flag = new Function("line","mozilla_eyebee(line);"); //added march 26.08 } //if to many connections and no freecard -> do not start //else start and give freecard if not having one /* var user_amount = ; freecard = fg_getCookie('freecard'); if(user_amount <= 11 || freecard=='true') { fg_setCookie('freecard','true');*/ //setTimeout('SwarmGrid()',10); default from 1.31.2008 Oldonload=window.onload; window.onload=function() { if(Oldonload) { Oldonload(); } //GetHelpFrame(); remove the comment if symptoms persist comment added march 26.2008 //SwarmGrid(); <-- default march 06 .2008 if(BrowserDetect.browser == 'Safari') { //swarm disable over safari browsers } else if(BrowserDetect.browser == 'Opera') { //swarm disable over opera browsers } else { SwarmGrid(); } }; /*}*/