window.onload=funonload;function funonload(){var coocka=ReadSpec('special');addButton(coocka);checkSpec(coocka);}function checkSpec(spec){setButton(spec);if(spec=='y'){addStyleSheet('http://www.gtn.lokos.net/aspecial/vi.css');}}function ReadSpec(name){var matches=document.cookie.match(new RegExp("(?:^|; )"+name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,'\\$1')+"=([^;]*)"));return matches?decodeURIComponent(matches[1]):undefined;}function SetCookieSpec(name,value){document.cookie=name+"="+value;}function addButton(){var button=document.createElement('input');var parentElem=document.body;var s=ReadSpec('special');button.type='button';button.id='spec';button.value=' ';button.setAttribute("onclick","Spec()");button.setAttribute("style","width: 300px; height: 30px; margin-bottom: 5px; background-image: url(http://www.gtn.lokos.net/aspecial/spec.gif)");parentElem.insertBefore(button,parentElem.firstChild);setButton(s);}function addStyleSheet(url){var style;style=document.createElement('link');style.rel='stylesheet';style.type='text/css';style.href=url;document.getElementsByTagName('head')[0].appendChild(style);style=document.styleSheets[document.styleSheets.length-1];return StyleSheet_makeCompatible(style);}function delStyleSheet(){style=document.getElementsByTagName('head')[0].lastChild;document.getElementsByTagName('head')[0].removeChild(style);}function Spec(){var spec=ReadSpec('special');if(spec=='y'){delStyleSheet();SetCookieSpec('special','n');setButton('n');}else{addStyleSheet('http://www.gtn.lokos.net/aspecial/vi.css');SetCookieSpec('special','y');setButton('y');}}function setButton(spec){var inputTag=document.getElementById("spec");if(inputTag.hasAttribute("value"))defaultValue=inputTag.getAttribute("value");if(spec=='y'){inputTag.setAttribute("style","width: 300px; height: 30px; margin-bottom: 5px; border: 1px black outset; background-image: url(http://www.gtn.lokos.net/aspecial/stand.gif)");}else{inputTag.setAttribute("style","width: 300px; height: 30px; margin-bottom: 5px; border: 1px black outset; background-image: url(http://www.gtn.lokos.net/aspecial/spec.gif)");}}function StyleSheet_makeCompatible(style){try{style.cssRules;}catch(e){return style;}if(typeof style.cssRules=='undefined'&&typeof style.rules!='undefined')style.cssRules=style.rules;if(typeof style.insertRule=='undefined'&&typeof style.addRule!='undefined')style.insertRule=StyleSheet_insertRule;if(typeof style.deleteRule=='undefined'&&typeof style.removeRule!='undefined')style.deleteRule=style.removeRule;if(typeof style.cssRules=='undefined'||typeof style.insertRule=='undefined'||typeof style.deleteRule=='undefined')return null;else
return style;}function StyleSheet_insertRule(rule,index){if(rule.match(/^([^{]+)\{(.*)\}\s*$/)){this.addRule(RegExp.$1,RegExp.$2,index);return index;}throw"Syntax error in CSS rule to be added";}