var zCustomInvitation=''; if (zCustomInvitation=='') { document.write(''); document.write(''); } var Zxxx = 0; var Zyyy = 0; var Zdist = ZdistX = ZdistY = 0; var Zstepx = 2; var Zstepy = 0; var Zmn = 'Zsmenu'; var Zspeed = 6; var Zmutechime = ''; var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById; if (stdDOM) {aDOM = 1;} else {ieDOM = document.all; if (ieDOM) {aDOM = 1;} else { var nsDOM = ((navigator.appName.indexOf('Netscape') != -1) && (parseInt(navigator.appVersion) ==4)); if (nsDOM) {aDOM = 1;}}} function xDOM(objectId, wS) { if (stdDOM) {return wS?document.getElementById(objectId).style:document.getElementById(objectId);} if (ieDOM) {return wS?document.all[objectId].style:document.all[objectId];} if (nsDOM) {return document.layers[objectId];} } function objZWidth(objectID) {var obj = xDOM(objectID,0); if(obj.offsetWidth) return obj.offsetWidth; if (obj.clip) return obj.clip.width; return 0;} function objZHeight(objectID) {var obj = xDOM(objectID,0); if(obj.offsetHeight) return obj.offsetHeight; if (obj.clip) return obj.clip.height; return 0;} function setZObjVis(objectID,vis) {var objs = xDOM(objectID,1); objs.visibility = vis;} function moveZObjTo(objectID,x,y) {var objs = xDOM(objectID,1); objs.left = x; objs.top = y;} function pageZWidth() {return window.innerWidth != null? window.innerWidth: document.body != null? document.body.clientWidth:null;} function pageZHeight() {return window.innerHeight != null? window.innerHeight: document.body != null? document.body.clientHeight:null;} function posZLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset: document.documentElement.scrollLeft? document.documentElement.scrollLeft: document.body.scrollLeft? document.body.scrollLeft:0;} function posZTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset: document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop? document.body.scrollTop:0;} function Zdistance(s,e) {return Math.abs(s-e);} function Zdirection(s,e) {return s>e?-1:1;} function Zrate(a,b) {return a 0) {Zxxx += Zstepx; Zyyy += Zstepy; Zdist -= Math.abs(Zstepx);} Zmoveit(); setTimeout('Zmover()',Zspeed);} function Zslide() {if (Zstepx==-2){setZObjVis(Zmn,'visible');} else {setZObjVis(Zmn,'hidden');}Zdist = ZdistX; Zstepx = -Zstepx; Zmoveit(); setTimeout('Zmover()',Zspeed*2);return false;} //onload = Zstart; setTimeout('Zstart()',1000); window.onscroll = Zmoveit; //window.setTimeout('Zslide();',200); //Ajax_XT Introduced by ZaZa Software XMLHTTP = function() { // The following two options are configurable // you don't need to change the rest. Plug & play! var _maximumRequestLength = 1500 //https:// var _apiURL = 'http://zazachat.zazasoftware.com/livechatclient/jsutil/xmlhttp.php' //var _apiURL = 'https://www.zazachat.com/livechatclient/jsutil/xmlhttp.php' this.status = null this.statusText = null this.responseText = null this.responseXML = null this.synchronous = false this.readyState = 0 this.onreadystatechange = function() { } this.onerror = function() { } this.onload = function() { } this.abort = function() { _stop = true _destroyScripts() } this.getAllResponseHeaders = function() { // Returns all response headers as a string var result = '' for (property in _responseHeaders) result += property + ': ' + _responseHeaders[property] + '\r\n' return result } this.getResponseHeader = function(name) { // Returns a response header value // Note, that the search is case-insensitive for(property in _requestHeaders) { if(property.toLowerCase() == name.toLowerCase()) return _responseHeaders[property] } return null } this.overrideMimeType = function(type) { _overrideMime = type } this.open = function(method, url, sync, userName, password) { // Setting the internal values if (!_checkParameters(method, url)) return _method = (method) ? method : '' _url = (url) ? url : '' _userName = (userName) ? userName : '' _password = (password) ? password : '' _setReadyState(1) } this.openRequest = function(method, url, sync, userName, password) { // This method is inserted for compatibility purposes only return this.open(method, url, sync, userName, password) } this.send = function(data) { if (_stop) return var src = _createQuery(data) _createScript(src) // _setReadyState(2) } this.setRequestHeader = function(name, value) { // Set the request header. If the defined header // already exists (search is case-insensitive), rewrite it if (_stop) return for(property in _requestHeaders) { if(property.toLowerCase() == name.toLowerCase()) { _requestHeaders[property] = value; return } } _requestHeaders[name] = value } var zsLoc=escape(document.location)+''; var zzsLoc=zsLoc.replace(/#/g,''); var _method = '' var _url = '' var _userName = '' var _password = '' var _requestHeaders = { "HTTP-Referer": zzsLoc, "Content-Type": "application/x-www-form-urlencoded" } var _responseHeaders = { } var _overrideMime = "" var self = this var _id = '' var _scripts = [] var _stop = false var _throwError = function(description) { // Stop script execution and run // the user-defined error handler self.onerror(description) self.abort() return false } var _createQuery = function(data) { if(!data) data = '' var headers = '' for (property in _requestHeaders) headers += property + '=' + _requestHeaders[property] + '&' var originalsrc = _method + '$' + _id + '$' + _userName + "$" + _password + "$" + headers + '$' + _escape(data) + '$' + _url var src = originalsrc var max = _maximumRequestLength, request = [] var total = Math.floor(src.length / max), current = 0 while(src.length > 0) { var query = _apiURL + '?' + 'multipart' + '$' + _id + '$' + current++ + '$' + total + '$' + src.substr(0, max) request.push(query) src = src.substr(max) } if(request.length == 1) src = _apiURL + '?' + originalsrc else src = request return src } var _checkParameters = function(method, url) { // Check the method value (GET, POST, HEAD) // and the prefix of the url (http://) if(!method) return _throwError('Please, specify the query method (GET, POST or HEAD)') if(!url) return _throwError('Please, specify the URL') if(method.toLowerCase() != 'get' && method.toLowerCase() != 'post' && method.toLowerCase() != 'head') return _throwError('Please, specify either a GET, POST or a HEAD method') if(url.toLowerCase().substr(0,7) != 'http://') return _throwError('Only HTTP protocol is supported (http://)') return true } var _createScript = function(src) { if ('object' == typeof src) { for(var i = 0; i < src.length; i++) _createScript(src[i]) return } // Create the SCRIPT tag var script = document.createElement('script') script.src = src script.type = 'text/javascript' if (navigator.userAgent.indexOf('Safari')) script.charset = 'utf-8' // Safari bug script = document.getElementsByTagName('head')[0].appendChild(script) _scripts.push(script) return script } var _escape = function(string) { // Native escape() function doesn't quote the plus sign + string = escape(string) string = string.replace('+', '%2B') return string } var _destroyScripts = function() { // Removes the SCRIPT nodes used by the class for(var i = 0; i < _scripts.length; i++) _scripts[i].parentNode.removeChild(_scripts[i]) } var _registerCallback = function() { // Register a callback variable (in global scope) // that points to current instance of the class _id = 'v' + Math.random().toString().substr(2) window[_id] = self } var _setReadyState = function(number) { // Set the ready state property of the class self.readyState = number self.onreadystatechange() if(number == 4) self.onload() } var _parseXML = function() { var type = self.getResponseHeader('Content-type') + _overrideMime if(!(type.indexOf('html') > -1 || type.indexOf('xml') > -1)) return if(document.implementation && document.implementation.createDocument) { var objDOMParser = new DOMParser() var xml = objDOMParser.parseFromString(self.responseText, "text/xml") self.responseXML = xml } else if (window.ActiveXObject) { var xml = new ActiveXObject('MSXML2.DOMDocument.3.0'); xml.async = false; self.responseXML = xml.loadXML(self.responseText) } else { var xml = document.body.appendChild(document.createElement('div')) xml.style.display = 'none' xml.innerHTML = self.responseText _cleanWhitespace(xml, true) self.responseXML = xml.childNodes[0] document.body.removeChild(xml) } } var _cleanWhitespace = function(element, deep) { var i = element.childNodes.length; if(i == 0) return do { var node = element.childNodes[--i] if (node.nodeType == 3 && !_cleanEmptySymbols(node.nodeValue)) element.removeChild(node) if (node.nodeType == 1 && deep) _cleanWhitespace(node, true) } while(i > 0) } var _cleanEmptySymbols = function(string) { string = string.replace('\r', '') string = string.replace('\n', '') string = string.replace(' ', '') return (string.length == 0) ? false : true } this._parse = function(object) { // Parse the received data and set all // the appropriate properties of the class if(_stop) return if(object.multipart) return if(!object.success) return _throwError(object.description) _responseHeaders = object.responseHeaders this.status = object.status this.statusText = object.statusText this.responseText = object.responseText _parseXML() _destroyScripts() _setReadyState(4) } _registerCallback() } var InviteRepeats; var brepeat=1; var bInvited=0; InviteRepeats=0; window.setTimeout('ZaZaInvite()', 3000); function ZaZaInvite() { InviteRepeats=InviteRepeats+1; if (InviteRepeats>60) { brepeat=0; } if (brepeat==1) { //https:// var url = 'http://zazachat.zazasoftware.com/LiveChatClient/jsutil/getinvitationmessage.aspx?ip=122.169.4.170&zazac=8220' //var url = 'http://www.zazachat.com/LiveChatClient/jsutil/getinvitationmessage.aspx?ip=122.169.4.170&zazac=8220' var transport = new XMLHTTP() transport.onerror = function(description) { //alert('Error: ' + description) return; } transport.onreadystatechange = function() { if(transport.readyState == 4) { //alert(transport.responseText); //alert('Total length of data received: ' + transport.responseText.length + '\r\nThese are the response headers:\r\n\r\n' + transport.getAllResponseHeaders()) if (transport.responseText!='' && transport.responseText!=null && transport.responseText!="0") { WriteZaZaMessage(transport.responseText,0); bInvited=1; brepeat=0; } } } transport.open('GET', url) pausecomp(200) transport.send() pausecomp(200) //setTimeout('ZaZaInvite()', 3000); if ((navigator.userAgent.indexOf('Opera') > -1) && (transport.responseText.length > 0)) { WriteZaZaMessage(transport.responseText,0); brepeat=0; } window.setTimeout('ZaZaInvite()', 6000); return false } } function pausecomp(millis) { date = new Date(); var curDate = null; do { var curDate = new Date(); } while(curDate-date < millis); } function CloseZaZaInvite() { Zslide(); //https:// var url = 'http://zazachat.zazasoftware.com/LiveChatClient/jsutil/closeinvitationmessage.aspx?ipzazac=122.169.4.170|8220|1/15/2008 4:22:39 AM' //var url = 'http://zazachat.zazasoftware.com/LiveChatClient/jsutil/closeinvitationmessage.aspx?ip=122.169.4.170&zazac=8220' //var url = 'https://www.zazachat.com/LiveChatClient/jsutil/closeinvitationmessage.aspx?ip=122.169.4.170&zazac=8220' var oImage = new Image; pausecomp(200); oImage.src = url; pausecomp(300); return false; } var zazaInvitation=''; if (typeof zInvitationMessage !='undefined'){ zazaInvitation=zInvitationMessage; } else { zazaInvitation=''; } function displayAutoInvite() { WriteZaZaMessage(zazaInvitation,1); } if (zazaInvitation!='' && bInvited==0) { window.setTimeout('displayAutoInvite()',0); } var zazajava; var zazareg = new RegExp('/'); var zazareferrer = escape(document.referrer); var zazawindow='0'; var zazapagetitle=escape(document.title); var srnd; var zazasShortPath = escape(window.location.pathname); var zazasPath=escape(this.location); if (zazasShortPath=='/') { var zazasPage = escape(window.location.href); } else { var zazasPage = escape(zazasShortPath.substring(zazasShortPath.lastIndexOf('/') + 1)); } if ( !(navigator.javaEnabled()) ) { zazajava="No" ; } else { zazajava="Yes" ; } var zazarand_no = Math.random(); var zazasRes; var zazasDepth; if (window.screen) { zazasRes=screen.width + 'x' + screen.height; zazasDepth=screen.colorDepth; } var zazaflashversion = 0; function ControlVersion() { var version; var axo; var e; // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry try { // version will be set for 7.X or greater players axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); version = axo.GetVariable("$version"); } catch (e) { } if (!version) { try { // version will be set for 6.X players only axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); // installed player is some revision of 6.0 // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, // so we have to be careful. // default to the first public version version = "WIN 6,0,21,0"; // throws if AllowScripAccess does not exist (introduced in 6.0r47) axo.AllowScriptAccess = "always"; // safe to call for 6.0r47 or greater version = axo.GetVariable("$version"); } catch (e) { } } if (!version) { try { // version will be set for 4.X or 5.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = axo.GetVariable("$version"); } catch (e) { } } if (!version) { try { // version will be set for 3.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = "WIN 3,0,18,0"; } catch (e) { } } if (!version) { try { // version will be set for 2.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); version = "WIN 2,0,0,11"; } catch (e) { version = 0; } } return version; } zazaflashversion=ControlVersion(); var zazadetect = navigator.userAgent.toLowerCase(); var zazaOS,zazabrowser,zazaversion,zazathestring; if (zazacheckIt('konqueror')) { zazabrowser = "Konqueror"; zazaOS = "Linux"; } else if (zazacheckIt('firefox')) zazabrowser = "Firefox" else if (zazacheckIt('safari')) zazabrowser = "Safari" else if (zazacheckIt('omniweb')) zazabrowser = "OmniWeb" else if (zazacheckIt('opera')) zazabrowser = "Opera" else if (zazacheckIt('webtv')) zazabrowser = "WebTV"; else if (zazacheckIt('icab')) zazabrowser = "iCab" else if (zazacheckIt('msie')) zazabrowser = "Internet Explorer" else if (!zazacheckIt('compatible')) { zazabrowser = "Netscape Navigator" zazaversion = zazadetect.charAt(8); } else zazabrowser = "Unknown"; if (!zazaversion) zazaversion = zazadetect.charAt(zazaplace + zazathestring.length); function zazacheckIt(string) { zazaplace = zazadetect.indexOf(string) + 1; zazathestring = string; return zazaplace; } function WriteZaZaMessage(zazames,AutoInvite) { //https:// var url = "" //var url = "" if (AutoInvite==1) { if (zCustomInvitation==''){ document.getElementById("Zsleft").innerHTML = "
justteachers Live Help
" + zazames + "
No Thanks   Start Chat
"+url; } else { document.getElementById("Zsleft").innerHTML = zazames+url; } } else { if (zCustomInvitation==''){ document.getElementById("Zsleft").innerHTML = "
justteachers Live Help
" + zazames + "
No Thanks   Start Chat
"+url; } else { document.getElementById("Zsleft").innerHTML = zazames+url; } } if (Zstepx==-2) { Zslide(); if (Zmutechime != '1') { if (zazacheckIt('msie')) { var body = document.getElementsByTagName("body"); var divE = document.createElement('bgsound'); divE.id = "ZaZaSound"; divE.style.position = "absolute"; divE.style.left = "0px"; divE.style.top = "0px"; divE.hidden = "true"; divE.src="https://www.zazachat.com/livechatclient/sounds/bell.wav"; divE.autostart="true"; divE.loop="0" body[0].appendChild(divE); setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('ZaZaSound'))", 3000); } else { var body = document.getElementsByTagName("body"); var divE = document.createElement('embed'); divE.id = "zaBellSound"; divE.style.position = "absolute"; divE.style.left = "-100px"; divE.style.top = "-100px"; divE.style.width = "0"; divE.style.height = "0"; divE.visible = "false"; //divE.autostart="true"; divE.src="https://www.zazachat.com/livechatclient/sounds/bell.wav"; body[0].appendChild(divE); setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('zaBellSound'))", 3000); } } } //https:// //var url = 'http://zazachat.zazasoftware.com/LiveChatClient/jsutil/showninvitationmessage.aspx?ip=122.169.4.170&zazac=8220' //var url = 'https://www.zazachat.com/LiveChatClient/jsutil/showninvitationmessage.aspx?ip=122.169.4.170&zazac=8220' //var oImage = new Image; //pausecomp(200); //oImage.src = url; //pausecomp(300); } function OpenZaZaChat() { var wleft = (screen.width - 580-32) / 2; var wtop = (screen.height - 420-96) / 2; //https:// window.open('http://zazachat.zazasoftware.com/livechatclient/livechatvisitor.aspx?zzwindow=' + zazawindow + '&zazac=' + 8220,'zazachat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); //window.open('https://www.zazachat.com/livechatclient/livechatvisitor.aspx?zzwindow=' + zazawindow + '&zazac=' + 8220,'zazachat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); if (typeof Zstepx != 'undefined') { if (Zstepx==2) { Zslide(); } } } function Invitation() { var wleft = (screen.width - 580-32) / 2; var wtop = (screen.height - 420-96) / 2; //https:// window.open('http://zazachat.zazasoftware.com/livechatclient/livechat.aspx?fullname=Visitor&email=unknown_email@zazachat.com&zazames=zaza&zzwindow=' + zazawindow + '&zazac=' + 8220,'zazachat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); //window.open('https://www.zazachat.com/livechatclient/livechat.aspx?fullname=Visitor&email=unknown_email@zazachat.com&zazames=zaza&zzwindow=' + zazawindow + '&zazac=' + 8220,'zazachat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); Zslide(); } if (('174'!='') && ('122'!='')) { //https:// //document.write("Live Chat Support"); //document.write("Live Chat Support"); } else { //https:// //document.write("Live Chat Support"); //document.write("Live Chat Support"); } var zazaContainer=document.getElementById('zazacontainer'); if (zazaContainer) { zazaContainer.style.display='inline'; }