// 



var w = window, p = parent, d = document;



function $(id) {
return document.getElementById(id);
}



function framed() {
if(top == self) {
self.location.href = '../';
}
}



function hideCover() { // 
$('layer3').className = 'hide';
}



function resetAni() { // 
$('imgOpen').src = '../cPix/cOpen/cOpenAni.gif';
}



function showNav() { // 
p.$('layer20').className = 'show';
}



function goslow(url) { // custom go slow  
window.setTimeout('window.location.href="cHome.html"', 6000);
}



function gohard() { //
$('layer2').className = 'hand';
$('layer2').onmouseup = function() {
w.location.href = 'cHome.html';
}
}



function legend() { //
var n = w.location.href.lastIndexOf('.html');
var n = n-2;
var n = w.location.href.substr(n,2);
if (n.charAt(0,1) == 0) {
n = n.charAt(1,1);
}
if (n == 'er') {
n = 17;
}
if (n == 'me' || n == 'ks') {
n = 0;
}
var txt = new Array();

/*@cc_on // for 7 seconds of insane cross-browser letter spacing 
@if (@_jscript_version >= 5.6)
var space = 2;
@else @*/
var space = 0;
/*@end
@*/

txt[ 0] = '<i>Rope by Chris Frayne</i>';
txt[ 1] = 'Norton Buffalo';
txt[ 2] = 'George Frayne';
txt[ 3] = 'Bill Kirchen and Norton Buffalo';
txt[ 4] = 'Norton Buffalo, Andy Stein and Bobby Black';
txt[ 5] = 'Andy Stein';
txt[ 6] = 'Norton Buffalo and Andy Stein';
txt[ 7] = 'Andy Stein';
txt[ 8] = 'Bill Kirchen';
txt[ 9] = 'Bill Kirchen';
txt[10] = 'Norton Buffalo';
txt[11] = 'Bobby Black and Andy Stein';
txt[12] = 'Bill Kirchen';
txt[13] = 'George Frayne';
txt[14] = 'Rick Higginbotham';
txt[15] = 'Norton Buffalo';
txt[16] = 'George Frayne';
txt[17] = '<i>W3C compliant XHTM<i style="letter-spacing: 2px">L/</i><i style="letter-spacing: '+space+'px">C</i>SS</i>';

p.$('inf').innerHTML = txt[n];
}



function securitymeasures(n) { // custom security measure for in case the back button is used (links page only) 
if (n == 0) {
p.$('layer30').className = '';
p.$('layer31').className = '';
}
if (n == 1) {
p.$('layer30').className = 'show';
p.$('layer31').className = 'show';
}
}



function status() { // 
w.defaultStatus = ' ';
}



function addEvent(obj, type, fn) {
if (obj.addEventListener)
obj.addEventListener(type, fn, false);
else if (obj.attachEvent) {
obj["e"+type+fn] = fn;
obj[type+fn] = function() {
obj["e"+type+fn]( window.event );
}
obj.attachEvent("on"+type, obj[type+fn]);
}
}



addEvent(window, 'load', framed);
addEvent(window, 'load', status);
addEvent(window, 'load', legend);




