/**********************************************************************
   Fix CSS in NS4.x
 *********************************************************************/

if( navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 4) {

	// force a reload when the window is resize so styles aren't lost
	originalWindowWidth = innerWidth;
	originalWindowHeight = innerHeight;
	window.onresize = function() { if(innerWidth != originalWindowWidth || innerHeight != originalWindowHeight) location.reload(); };
	
	// increase pixel font sizes by 1px in Windows
	if (navigator.platform == "Win32") {
	
	// Tag selectors
		document.tags.body.fontSize = '11px';
		document.tags.td.fontSize = '11px';
		document.tags.th.fontSize = '11px';
		document.tags.p.fontSize = '11px';
		document.tags.input.fontSize = '11px';
		document.tags.select.fontSize = '11px';
		document.tags.textarea.fontSize = '11px';
		document.tags.div.fontSize = '11px';
		document.tags.span.fontSize = '11px';
	
	// Class selectors
	// replace "--className--" with class identifier
	//document.classes.--className--.all.fontSize = '11px';
	 document.classes.questions.all.fontSize = '11px';
	// Id selectors
	// replace "--idName--" with id identifier
	//document.ids.--idName--.all.fontSize = '11px';
	}
}


/******************************************************************************
	Popup windows
******************************************************************************/

function openScreenshot(url) {
	openCenteredWindow(url, 'screenshot', 399, 275,0,0);
}

function openOffsite(url) {
	openFullChromeWindow(url, 'offsite','status', '');
}

function openParents(url) {
	openCenteredWindow(url, 'parental', 518, 500,0,1);
}


//1k DHTML API
d=document;l=d.layers;op=navigator.userAgent.indexOf('Opera')!=-1;
function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);}
function sE(e){l?e.visibility='show':e.style.visibility='visible';}
function hE(e){l?e.visibility='hide':e.style.visibility='hidden';}
function sZ(e,z){l?e.zIndex=z:e.style.zIndex=z;}
function sX(e,x){l?e.left=x:op?e.style.pixelLeft=x:e.style.left=x;}
function sY(e,y){l?e.top=y:op?e.style.pixelTop=y:e.style.top=y;}
function sW(e,w){l?e.clip.width=w:op?e.style.pixelWidth=w:e.style.width=w;}
function sH(e,h){l?e.clip.height=h:op?e.style.pixelHeight=h:e.style.height=h;}
function sC(e,t,r,b,x){l?(X=e.clip,X.top=t,X.right=r,X.bottom=b,X.left=x):e.style.clip='rect('+t+' '+r+' '+b+' '+x+')';}
function wH(e,h){if(l){Y=e.document;Y.open();Y.write(h);Y.close();}else if(e.innerHTML)e.innerHTML=h;}

// faq and walkthrough positioner
function centerContent() {
   var container = gE('content');
   var winWidth = getInnerWidth(window);
   sX(container, (winWidth > 750) ? (winWidth - 750) / 2 : 0);
   sE(container);
}


// index dhtml ad positioner
function positionAdvert() {
   var container = gE('advert');
   var winWidth = getInnerWidth(window);
   sX(container, (winWidth > 750) ? (winWidth - 750) / 2 : 0);
   sE(container);
}

// PRELOADERS

function initGeneral()
{

}

function initDetails()
{
}

function initEventList()
{

}

function initList()
{

}