var d=document;

function openWin(memberFile, winWidth, winHeight){
	myURL = 'display.htm?' + memberFile;
	window.open(myURL,"Member",'toolbar=0,width=' + winWidth + ',height=' + winHeight + ',status=0,scrollbars=1,resizable=1,menubar=0');
}

function manifestElementControl(whichElement,whichFunction,whichProperty,whichValue){
	/* ----------------------------------------------------------------- //
	http://www.manifestinteractive.com/usenet/manifestElementControl.js
	setCSS: Available list of CSS elements you can control:
	
	  TEXT PROPERTIES
	  ---------------
		textTransform: 			[capitalize,uppercase,lowercase,none]
		verticalAlign: 			[baseline,sub,super,top,text-top,middle,bottom,text-bottom]
		textAlign: 				[left,right,center,justify]
		textIndent:				[0px]
		lineHeight:				[0px]
		wordSpacing:			[0px]
		letterSpacing:			[0px]
		textDecoration:			[underline,overline,line-through,blink,none]
		
	  FONT PROPERTIES
	  ---------------
	  	fontFamily:				[verdana,arial,serif,sans-serif,cursive,fantasy,monospace]
		fontStyle:				[normal,italic,oblique]
		fontVariant:			[small-caps]
		fontWeight:				[lighter,normal,bold,bolder,100,200,300,400,500,600,700,800,900]
		fontSize:				[10px,150%,larger,smaller,xx-small,x-small,small,medium,large,x-large,xx-large]
		
	  COLOR AND BACKGROUND PROPERTIES
	  -------------------------------
	  	color:					[red,#FF0000,*rgb(R%, G%, B%),*rgb(R, G, B)]
		backgroundColor:		[red,#FF0000,*rgb(R%, G%, B%),*rgb(R, G, B)]
		backgroundImage:		[url(../images/myimage.gif)]
		backgroundRepeat:		[repeat,repeat-x,repeat-y,no-repeat]
		backgroundAttachment:	[scroll,fixed]
		backgroundPosition:		[vertical % horizontal %, center center (use: top,center,bottom,left,center,right)]
		
	  PLACEMENT PROPERTIES
	  --------------------
	  	marginTop:				[10px,auto]
		marginRight:			[10px,auto]
		marginBottom:			[10px,auto]
		marginLeft:				[10px,auto]
		paddingTop:				[10px,auto]
		paddingRight:			[10px,auto]
		paddingBottom:			[10px,auto]
		paddingLeft:			[10px,auto]
		borderWidth:			[thin,medium,thick,none]
		borderStyle:			[none,dotted,dashed,solid,double,groove,ridge,inset,outset]
		height:					[100px]
		width:					[100px]
		float:					[right,left,none]
		clear:					[right,left,both,none]
		top:					[10px]
		right:					[10px]
		bottom:					[10px]
		left:					[10px]
		zIndex:					[1]
		
	  CLASSIFICATION PROPERTIES
	  -------------------------
		display:				[none,block,inline,list-item]
		visibility:				[hidden,visible,collapse]
		whiteSpace:				[normal,pre,no-wrap]
		listStyleType:			[disc,circle,square,decimal,lower-roman,upper-roman,lower-alpha,upper-alpha]
		listStyleImage:			[url(../images/myimage.gif)]
		listStylePosition:		[inside,outside]
		
	  EXAMPLES
	  --------
	  	manifestElementControl("myElementID","setCSS","visibility","hidden");
		manifestElementControl("myElementID","setCSS","visibility","visible");
		manifestElementControl("myElementID","setCSS","left","100px");
		manifestElementControl("myElementID","setCSS","top","100px");
		manifestElementControl("myElementID","setCSS","backgroundColor","#466FC7");
		manifestElementControl("myElementID","setCSS","color","#FFFFFF");
		manifestElementControl("myElementID","setCSS","zIndex","1");
		
		manifestElementControl("leftBar,loader,Header","setCSS,setCSS,setCSS","visibility,visibility,backgroundColor","hidden,hidden,#466FC7");
		manifestElementControl("loader","setCSS","visibility","hidden");
	
	// ----------------------------------------------------------------- //
	setTEXT: Auto sets whichProperty to 'innerHTML'
	
	  EXAMPLES
	  --------
	  	manifestElementControl("myElementID","setTEXT","","<p>This is some text.</p>");
		manifestElementControl("myElementID","setTEXT","","<table><tr><td>This is some text.</td></tr></table>");
		
	// ----------------------------------------------------------------- */
	var ns6 = document.getElementById && !document.all;
	var ie = document.all;
	
	var whichElementArray = whichElement.split(",");
	var whichFunctionArray = whichFunction.split(",");
	var whichPropertyArray = whichProperty.split(",");
	var whichValueArray = whichValue.split("^");

	for(var i=0; i<whichElementArray.length; i++){
		if(ie){
			if(whichFunctionArray[i] == "setCSS"){ 	eval("document.all."+whichElementArray[i]+".style."+whichPropertyArray[i]+" = '"+whichValueArray[i]+"'");}
			if(whichFunctionArray[i] == "setTEXT"){	eval("document.all."+whichElementArray[i]).innerHTML = whichValueArray[i];}
		}
		else if(ns6){
			if(whichFunctionArray[i] == "setCSS"){	eval("document.getElementById('"+whichElementArray[i]+"').style."+whichPropertyArray[i]+" = '"+whichValueArray[i]+"'");}
			if(whichFunctionArray[i] == "setTEXT"){	document.getElementById(whichElementArray[i]).innerHTML = whichValueArray[i];}
		}
	}
}
