//newsletter setup code

var is_NS = navigator.appName=="Netscape";
var is_Ver = parseInt(navigator.appVersion);
var is_NS4 = is_NS&&is_Ver>=4&&is_Ver<5;
var useragent = navigator.userAgent;
var is_OPERA = (useragent.indexOf('Opera') > -1) ? 'Opera' : 

varTimeWaste = "hello"
varTimeWaste = "hello"
varTimeWaste = "hello"

vis="visible"
viz=".visibility=vis"
hid="hidden"
hiz=".visibility=hid"

 if (navigator.appName == "Netscape" || is_OPERA=="Opera") {
 		 horz=".left=";
  		vert=".top=";
  		docStyle="document.";
  		styleDoc="";
		styleDoc1="";
		bgc=".bgcolor=";
		// Netscape 6 only operates with getElementByID!!
		if (document.getElementById) {
		docStyle="document.getElementById('"
		styleDoc="').style"
		styleDoc1="')"
		bgc=".background=";
		}
  		innerW="window.innerWidth";
  		innerH="window.innerHeight";
  		offsetX="window.pageXOffset";
  		offsetY="window.pageYOffset";
  	}
  	else {
  		horz=".pixelLeft=";
  		vert=".pixelTop=";
  		docStyle="document.all.";
  		styleDoc=".style";
		styleDoc1="";
		bgc=".background=";
  		innerW="document.body.clientWidth";
  		innerH="document.body.clientHeight";
  		offsetX="document.body.scrollLeft";
		offsetY="document.body.scrollTop";
    }


function MessageShow(){
eval(docStyle + "MessageBack" + styleDoc + viz) 
eval(docStyle + "Message" + styleDoc + viz) 
}

mpos=0
function MessageHide(){
setTimeout("MoveMessage()",30)
}

function MoveMessage(){
	eval(docStyle + "Message" + styleDoc + hiz) 	
	eval(docStyle + "MessageBack" + styleDoc + hiz) 	
}


function showSubscribe(){
hideNewsletter()
hideDSPStore()
hideGlobalDSP()
hideAdvertising()
eval(docStyle + "TSubscribe" + styleDoc + viz) 
eval(docStyle + "BSubscribe" + styleDoc + viz) 
eval(docStyle + "Subscribe" + styleDoc + viz) 
}


function showAdvertising(){
hideNewsletter()
hideDSPStore()
hideGlobalDSP()
hideSubscribe()
eval(docStyle + "TAdvertising" + styleDoc + viz) 
eval(docStyle + "BAdvertising" + styleDoc + viz) 
eval(docStyle + "Advertising" + styleDoc + viz) 
}

function showDSPStore(){
hideNewsletter()
hideAdvertising()
hideGlobalDSP()
hideSubscribe()
eval(docStyle + "TDSPStore" + styleDoc + viz) 
eval(docStyle + "BDSPStore" + styleDoc + viz) 
eval(docStyle + "DSPStore" + styleDoc + viz) 
}

function showGlobalDSP(){
hideNewsletter()
hideAdvertising()
hideDSPStore()
hideSubscribe()
eval(docStyle + "TGlobalDSP" + styleDoc + viz) 
eval(docStyle + "BGlobalDSP" + styleDoc + viz) 
eval(docStyle + "GlobalDSP" + styleDoc + viz) 
}

function showNewsletter(){
hideGlobalDSP()
hideAdvertising()
hideDSPStore()
hideSubscribe()
eval(docStyle + "TNewsletter" + styleDoc + viz) 
eval(docStyle + "BNewsletter" + styleDoc + viz) 
eval(docStyle + "NewProducts" + styleDoc + viz) 
eval(docStyle + "News" + styleDoc + viz) 
eval(docStyle + "Articles" + styleDoc + viz) 
eval(docStyle + "Date" + styleDoc + viz) 
}


function hideSubscribe(){
eval(docStyle + "TSubscribe" + styleDoc + hiz) 
eval(docStyle + "BSubscribe" + styleDoc + hiz) 
eval(docStyle + "Subscribe" + styleDoc + hiz) 
}

function hideAdvertising(){
eval(docStyle + "TAdvertising" + styleDoc + hiz) 
eval(docStyle + "BAdvertising" + styleDoc + hiz) 
eval(docStyle + "Advertising" + styleDoc + hiz) 
}

function hideDSPStore(){
eval(docStyle + "TDSPStore" + styleDoc + hiz) 
eval(docStyle + "BDSPStore" + styleDoc + hiz) 
eval(docStyle + "DSPStore" + styleDoc + hiz) 
}


function hideGlobalDSP(){
eval(docStyle + "TGlobalDSP" + styleDoc + hiz) 
eval(docStyle + "BGlobalDSP" + styleDoc + hiz) 
eval(docStyle + "GlobalDSP" + styleDoc + hiz) 
}

function hideNewsletter(){
eval(docStyle + "TNewsletter" + styleDoc + hiz) 
eval(docStyle + "BNewsletter" + styleDoc + hiz) 
eval(docStyle + "NewProducts" + styleDoc + hiz) 
eval(docStyle + "News" + styleDoc + hiz) 
eval(docStyle + "Articles" + styleDoc + hiz) 
eval(docStyle + "Date" + styleDoc + hiz) 
eval(docStyle + "Message" + styleDoc + hiz)
eval(docStyle + "MessageBack" + styleDoc + hiz)
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function UpdateOver(j){
SectionDate=eval("DateArray");
	for (i=1;i<=SectionDate.length-1;i++){
	eval(docStyle +  SectionDate[i] + styleDoc + viz);
	}
bcol="#FFFF33"
col=".bgColor=bcol"
if(is_NS4){eval(docStyle + SectionDate[j] + styleDoc + col)}
else{eval(docStyle + SectionDate[j] + styleDoc + bgc + "bcol")}
//if (ViewType!="temp"){showUpdatetext() }
}

function UpdateOut(j){
bcol="#FFFFFF"
col=".bgColor=bcol"
	for (i=1;i<=SectionDate.length-1;i++){
	if(is_NS4){eval(docStyle + SectionDate[i] + styleDoc + col)}
	else{eval(docStyle + SectionDate[i] + styleDoc + bgc + "bcol")}
	eval(docStyle +  SectionDate[i] + styleDoc + hiz);
	}
//hideUpdatetext()
}


function showDate() {

XList=eval(docStyle+"Date"+ styleDoc + ".left");
YList=eval(docStyle+"Date"+ styleDoc + ".top");

if (is_NS4 || is_OPERA=="Opera") {}
else{
XList=eval(XList.substring(XList.length-2,0));
YList=eval(YList.substring(YList.length-2,0));
}

XList=XList+0 //X offset
YList=YList-10 //Y offset

SectionDate=eval("DateArray");
	//position menu elements
	for (i=1;i<=SectionDate.length-1;i++){
	eval(docStyle + SectionDate[i] + styleDoc + horz + (XList));
	eval(docStyle + SectionDate[i] + styleDoc + vert + (YList+i*28));
	eval(docStyle + SectionDate[i] + styleDoc + viz);
	}
}
