var ourDomain = 'http://JadenKorr.com';
var ourMainPage = '/';
var ourWebsite = ourDomain + ourMainPage;
var JadenKorr = ( top == self ); // FALSE when we're being "framed" in something...
if( !JadenKorr ) { top.location.href = ourWebsite; }
var menuContent = "darthmaul";
var _yourBrowser = BrowserDetect.browser + ' ' + BrowserDetect.version;
var _yourBrowserName = BrowserDetect.browser;
function getClientRes() {
_screenWidth = self.screen.width;
_screenHeight = self.screen.height;
}
getClientRes();
function subWriteContent() {
if( _yourBrowserName == 'Firefox' ) { loadContent(); }
}
/*
ff allows us to set on onclick event handler in the container (div) for the nav swf.
The swf will respond to mouse events as the div does not occlude (not the case in IE 6).
We check for left click off the div to trigger changing menu content. In IE 6,
the swf sends a js command (url) to do this for us, so we don't use the div's onclick.
This ridiculous way to handle things stemmed from using dynamic updates of the
fader script that were called via flash in ff and ff would puke on it (flashed the divs
down the screen, instead of keeping them invisible)
*/
// check current menu content and adjust accordingly //
function loadContent() {
switch( menuContent ) {
case "darthmaul":
menuContent = "rift1";
break;
case "rift1":
menuContent = "darthmaul";
break;
//case "forum":
// menuContent = "darthmaul";
// break;
}
writeContent( menuContent );
}
// update content dynamically //
function writeContent() {
pageTracker._trackPageview("/BTNMenuSelector");
switch( menuContent ) {
case "rift1":
haltFades();
document.getElementById( "menuLayer" ).innerHTML = '';
document.getElementById( "fadeLayer" ).innerHTML = '' +
'
' +
' Repository: ' + fileCount_rift1 + ' wallpapers' +
'
' +
'' +
' Repository: ' + fileCount_rift1 + ' wallpapers' +
'
' +
'
' +
'The ruins of twisted corridors
' +
'And deep yawning chasms
' +
'Form a backdrop of deceit
' +
'As cultists desecrate a Jedi’s tomb.
' +
'
' +
'Rift Mission
' +
'Jedi Knight: Jedi Academy™
' +
'
' +
'• click image to enter •
' +
'
';
var cf = new Crossfader( new Array( 'acf1', 'acf2', 'acf3', 'acf4', 'acf5', 'acf6', 'acf7', 'acf8', 'acf9', 'acf10', 'acf11', 'acf12', 'acf13' ), 500, 1000, 0 );
break;
case "forum":
/* haltFades();
document.getElementById( "menuLayer" ).innerHTML = '';
document.getElementById( "fadeLayer" ).innerHTML = '' +
'' +
eval( fileCount_dm1 + fileCount_rift1 ) + ' high-res wallpapers' +
'
' +
'and an online forum...
' +
'
' +
'Who could ask for more?
' +
'
' +
'• click image to enter •
' +
'
' +
'' +
'' +
'' +
'' +
'' +
'';
var cf = new Crossfader( new Array( 'bcf1', 'bcf2', 'bcf3', 'bcf4', 'bcf5', 'bcf6', 'bcf7' ), 500, 1000, 0 );
break;
*/
case "darthmaul":
haltFades();
document.getElementById( "menuLayer" ).innerHTML = '';
document.getElementById( "fadeLayer" ).innerHTML = '' +
'' +
' Repository: ' + fileCount_dm1 + ' wallpapers' +
'
' +
'' +
' Repository: ' + fileCount_dm1 + ' wallpapers' +
'
' +
'
' +
'On the grounds of the Sith castle
' +
'Mirala utters a cryptic warning
' +
'A ritual room turns prison cell
' +
'As Jaden clashes with Darth Maul.
' +
'
' +
'Chapter 6
' +
'Escape: Yavin IV (The Lost Maps)
' +
'
' +
'• click image to enter •
' +
'
';
var cf = new Crossfader( new Array( 'ccf1', 'ccf2', 'ccf3', 'ccf4', 'ccf5', 'ccf6', 'ccf7', 'ccf8', 'ccf9', 'ccf10', 'ccf11', 'ccf12', 'ccf13' ), 500, 1000, 0 );
break;
}
}
// clear the fader timers and delete the object in an attempt
// to deactivate the fades (but use the same real estate for
// different content). the author did not write the script
// in a manner that allows it to be used dynamically, so we
// do this goofy thing instead
function haltFades() {
if( cf.nID1 ) { clearInterval( cf.nID1 ); }
if( cf.nID2 ) { clearInterval( cf.nID2 ); }
delete cf;
/*
if (cf.nID1) { clearInterval(cf.nID1); }
if (cf.nID2) { clearInterval(cf.nID2); }
if (cfa.nID1) { clearInterval(cfa.nID1); }
if (cfa.nID2) { clearInterval(cfa.nID2); }
if (cfb.nID1) { clearInterval(cfb.nID1); }
if (cfb.nID2) { clearInterval(cfb.nID2); }
if (cfc.nID1) { clearInterval(cfc.nID1); }
if (cfc.nID2) { clearInterval(cfc.nID2); }
*/
}