/************************************************************************* Copyright (c) 2006-2008 by TangoWire Corporation. All Rights Reserved. You DO NOT have license, verbal, written, or implied, to copy, transfer, or utilize this source code in any commercial, freeware, shareware, or any other type of distributed application or documentation. *************************************************************************/ var message=""; function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} if (window != top) top.location.href = location.href; function getBanner() {} function getScraper() {} function loadAds() { } var d = new Date(); if (d.getTimezoneOffset) { var iMinutes = d.getTimezoneOffset(); document.cookie = "GMTOffset=" + iMinutes; document.cookie += "; path=/"; } function TE() { this.e; this.se; this.ref; } function getTE(e) { var te = new TE(); if (e != null) { te.e = e; te.se = e.target } else { te.e = window.event; te.se = window.event.srcElement; } if (te.se != null) { var n = te.se; while (true) { if (n == null) break; if ((n.abbr != null) && (n.abbr != '')) { te.ref = n.abbr; break; } else { if (n.parentNode == null) break; n = n.parentNode; } } } return te; } var selSet; var selKeys; function select(key, obj, te) { if (key == null) return; if (selSet == null) { selSet = new Array(); selKeys = new Array(); } var selObj = selSet[key + '']; if (selObj != null) { if (selObj != obj) throw new Error('Attempting to select an object with key: ' + key + '. A different object with the same key is already in the set!'); } else { selKeys.push(key); } selSet[key + ''] = obj; obj.selected = true; if (obj.sV) obj.sV(te); } function deselect(key, te) { if (selSet == null) return; var obj = selSet[key + '']; selSet[key + ''] = null; if (obj != null) { obj.selected = false; if (obj.dV) obj.dV(te); var keys = new Array(); for (var i = 0; i < selKeys.length; i++) { if (selSet[selKeys[i] + ''] != null) { keys.push(selKeys[i]); } } if (keys.length == 0) { selSet = null; selKeys = null; } else { selKeys = keys; } } } function clearSelections(te) { if (selSet == null) return; var obj; for (var i = 0; i < selKeys.length; i++) { obj = selSet[selKeys[i] + '']; if (obj != null) { obj.selected = false; if (obj.dV) obj.dV(te); } } selSet = null; selKeys = null; } function GetClientAreaWidth() { return FilterValues ( window.innerWidth ? window.innerWidth : 0, document.documentElement ? document.documentElement.clientWidth : 0, document.body ? document.body.clientWidth : 0 ); } function GetClientAreaHeight() { return FilterValues ( window.innerHeight ? window.innerHeight : 0, document.documentElement ? document.documentElement.clientHeight : 0, document.body ? document.body.clientHeight : 0 ); } function GetHorScrollValue() { return FilterValues ( window.pageXOffset ? window.pageXOffset : 0, document.documentElement ? document.documentElement.scrollLeft : 0, document.body ? document.body.scrollLeft : 0 ); } function GetVerScrollValue() { return FilterValues ( window.pageYOffset ? window.pageYOffset : 0, document.documentElement ? document.documentElement.scrollTop : 0, document.body ? document.body.scrollTop : 0 ); } function FilterValues(WinParam, DocParam, BodyParam) { var FilterResult = WinParam ? WinParam : 0; if (DocParam && (!FilterResult || (FilterResult > DocParam))) FilterResult = DocParam; return BodyParam && (!FilterResult || (FilterResult > BodyParam)) ? BodyParam : FilterResult; } function GetObjectX(obj) { var ObjectLeft = 0; if(obj.offsetParent) while(1) { ObjectLeft += obj.offsetLeft; if (!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.x) ObjectLeft += obj.x; return ObjectLeft; } function GetObjectY(obj) { var ObjectTop = 0; if(obj.offsetParent) while(1) { ObjectTop += obj.offsetTop; if (!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.y) ObjectTop += obj.y; return ObjectTop; } function ToggleExpandableListText(TitleLink, TextDIV, BulletIMG, CollapsedBulletURI, ExpandedBulletURI) { var OtherTextDIV; var OtherBulletIMG; var i = 0; while(i <= 1000) { i++ if(document.getElementById("ELTextDIV" + i) != null) { OtherTextDIV = document.getElementById("ELTextDIV" + i); OtherBulletIMG = document.getElementById("ELBulletIMG" + i); if (OtherTextDIV != TextDIV) { OtherTextDIV.style.display = 'none'; OtherBulletIMG.src = CollapsedBulletURI; } } } TitleLink.blur(); if(TextDIV.style.display != 'block') { TextDIV.style.display = 'block'; BulletIMG.src = ExpandedBulletURI; } else { TextDIV.style.display = 'none'; BulletIMG.src = CollapsedBulletURI; } } var activeAnswerID = null; function shp(e) { var helpPanel = document.getElementById('fpHlp'); if (helpPanel) { helpPanel.style.display = 'block'; sizePanel('fpHlp', null, 375); var te = getTE(e); helpPanel.style.top = (e.clientY + 15) + 'px'; helpPanel.style.left = Math.max(0, (e.clientX - 300)) + 'px'; } } function sha(id) { var qSpan = document.getElementById('hq' + id); var answerRow = document.getElementById('ha' + id); if (qSpan && answerRow) { if (answerRow.style.display == 'none') { if (activeAnswerID) { var activeID = activeAnswerID; activeAnswerID = null; sha(activeID); } qSpan.style.fontStyle = 'italic'; qSpan.style.fontWeight = 'bold'; answerRow.style.display = ''; activeAnswerID = id; } else { qSpan.style.fontStyle = 'normal'; qSpan.style.fontWeight = 'normal'; answerRow.style.display = 'none'; activeAnswerID = null; } sizePanel('fpHlp', null, 375); } } function sizePanel(id, maxHeight, maxWidth) { var panel = document.getElementById(id); panel.style.zIndex = 20000000; panel.style.display = 'block'; var panelTbl = document.getElementById(id + 'TBL'); var tblSpan = document.getElementById(id + 'TS'); var rtSpan = document.getElementById(id + 'RT'); var btmSpan = document.getElementById(id + 'BTM'); var width = panelTbl.offsetWidth; var height = panelTbl.offsetHeight; if (maxWidth != null) width = Math.min(width, maxWidth); if (maxHeight != null) height = Math.min(height, maxHeight); tblSpan.style.width = width + 'px'; tblSpan.style.height = height + 'px'; btmSpan.style.height = '5px'; btmSpan.style.width = (width + 4) + 'px'; btmSpan.style.left = '2px'; btmSpan.style.top = (height + 1) + 'px'; rtSpan.style.width = '5px'; rtSpan.style.height = (height + 4) + 'px'; rtSpan.style.top = '2px'; rtSpan.style.left = (width + 1) + 'px'; rtSpan.childNodes[0].style.height = (height - 1) + 'px'; rtSpan.childNodes[1].style.height = (height - 1) + 'px'; rtSpan.childNodes[2].style.height = (height - 1) + 'px'; rtSpan.childNodes[3].style.height = (height - 1) + 'px'; rtSpan.childNodes[4].style.height = (height - 1) + 'px'; btmSpan.childNodes[0].style.width = (width) + 'px'; btmSpan.childNodes[1].style.width = (width) + 'px'; btmSpan.childNodes[2].style.width = (width) + 'px'; btmSpan.childNodes[3].style.width = (width) + 'px'; btmSpan.childNodes[4].style.width = (width - 1) + 'px'; panel.style.width = (width + 6) + 'px'; panel.style.height = (height + 6) + 'px'; var bgPanel = document.getElementById(id + 'BG'); if (bgPanel) { bgPanel.style.zIndex = '19999999'; bgPanel.style.display = 'block'; var clientHeight = GetClientAreaHeight(); var clientWidth = GetClientAreaWidth(); bgPanel.style.width = Math.max(document.body.scrollWidth, clientWidth) +'px'; bgPanel.style.height = Math.max(document.body.scrollHeight, clientHeight) + 'px'; } var clIcon = document.getElementById(id + 'CL'); if (clIcon) { clIcon.style.display = 'block'; clIcon.style.left = (width - (parseInt(clIcon.style.width) + 1)) + 'px'; } } function hidePanel(id) { var panel = document.getElementById(id); var bgPanel = document.getElementById(id + 'BG'); if (panel) panel.style.display = 'none'; if (bgPanel) bgPanel.style.display = 'none'; }