Notice: Undefined variable: maintenance in /home/scrivere/public_html/community/forum/Settings.php on line 29
var msgArray = new Array(); var msgclear = new Array(); var ie=document.all; var isIE = /*@cc_on!@*/false; var cSession; var minimised = 0; var zdex = 100; zdex = zdex * 1; var blinkOrder = 0; var newMessagesWin = new Array(); var newMessages = new Array(); originalTitle = document.title; var HeartbeatCount = 0; var minHeartbeat = 20000; var maxHeartbeat = 33000; var HeartbeatTime = minHeartbeat; var itemsfound = 0; var $sachat = jQuery.noConflict(); var windowFocus = true; var memberID = ""; lastKeyUp = 0; var saChatShow = $sachat.cookie('2sichat_show'); var saChatListKeepOpen = $sachat.cookie('2sichat_list_keep'); styleChat = $sachat.cookie('2sichat_Style'); var milliseconds = new Date().getTime(); chatcss = 'style.css?' + milliseconds; $sachat('head').append(''); $sachat("
").attr("id","chat_containter").attr("class","chatBar_containter").attr("dir","ltr").html('\"{}\"Login to chat').appendTo($sachat("body")); if(saChatShow == 1){ $sachat('#chat_containter').removeClass('chatBar_containter'); $sachat('#chatonhover').hide(); $sachat('#sa_friends').hide(); $sachat('#chattools_containter').hide(); $sachat('#hideimg').attr('src','http://www.scrivere.info/community/forum/sachat/themes/default/images/world_off.png'); $sachat('#hideimg').attr('title','Show Chat'); } $sachat("
" ).attr("id","extra").attr("class","extrabox").attr("dir","ltr").html('
Tools

Powered by SA Chat © 2010 - 2015 SA Mods
').appendTo($sachat("body")); $sachat('#extra').hide(); doCookies(); function doCookies() { $sachat.each(document.cookie.split(';'), function(i, cookie) { var c = $sachat.trim(cookie); name = c.split('=')[0]; var cookie = unescape($sachat.cookie(name)); cSession = cookie.split(','); if(cSession[0] == '2sichat'){ if(cSession[3] == ''){ chatTo(cSession[1].substr(7)); } } }); } var expdate = new Date(); expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 365)); function hide_showChat() { if ($sachat('#chatonhover').is(':visible')){ $sachat('#chattools_containter').hide(); $sachat('#chatonhover').hide(); $sachat('#chat_containter').removeClass('chatBar_containter'); $sachat('#extra').hide(); $sachat('#sa_friends').hide(); $sachat('.chatbox').hide(); $sachat('#hideimg').attr('src','http://www.scrivere.info/community/forum/sachat/themes/default/images/world_off.png'); $sachat('#hideimg').attr('title','Show Chat'); $sachat('#chattools_containter').removeClass('chat_tools_open'); $sachat('#chattools_containter').addClass('chat_tools_containter'); $sachat('#opencog').show(); checked = 1; }else{ $sachat('#chat_containter').show(); $sachat('#chatonhover').show(); $sachat('#chat_containter').addClass('chatBar_containter'); $sachat('#chattools_containter').show(); $sachat('.chatbox').show(); $sachat('#hideimg').attr('src','http://www.scrivere.info/community/forum/sachat/themes/default/images/world_on.png'); $sachat('#hideimg').attr('title','Hide Chat'); checked = 0; } $sachat.cookie('2sichat_show',checked ,{ expires: 10000}); if(memberID){ updateChatBoxPosition(); } } $sachat("#chatcollapse_containter").on('click',function() { hide_showChat(); }); $sachat("#sa_friends").on('click', '#chattools_containter', function () { showhide('extra'); }); $sachat("#chattools_containter").on('click',function() { showhide('extra'); }); $sachat(".extraboxhead").on('click',function() { showhide('extra'); }); function showhide(layer_ref) { if(document.getElementById(layer_ref).style.display == 'none') { $sachat(document.getElementById(layer_ref)).fadeIn("fast"); if(layer_ref == 'sa_friends'){ $sachat('#extra').hide(); $sachat('#chattools_containter').removeClass('chat_tools_open'); $sachat('#chattools_containter').addClass('chat_tools_containter'); $sachat('#opencog').show(); } if(layer_ref == 'extra'){ $sachat('#chat_containter').show(); $sachat('#sa_friends').hide(); $sachat('#chattools_containter').removeClass('chat_tools_containter_hover'); $sachat('#chattools_containter').removeClass('chat_tools_containter'); $sachat('#chattools_containter').addClass('chat_tools_open'); $sachat('#opencog').hide(); } } else { $sachat(document.getElementById(layer_ref)).fadeOut("fast"); if(layer_ref == 'sa_friends'){ $sachat('#chat_containter').show(); } if(layer_ref == 'extra'){ if($sachat.cookie('2sichat_list_keep') == 1 && memberID){ //$sachat('#chat_containter').hide(); $sachat('#sa_friends').show(); } $sachat('#chattools_containter').removeClass('chat_tools_open'); $sachat('#chattools_containter').addClass('chat_tools_containter'); $sachat('#opencog').show(); } } }