/**********************************************************************************   

NewsSlideFade 

*   Copyright (C) 2001 Thomas Brattli

*   This script was released at DHTMLCentral.com

*   Visit for more great scripts!

*   This may be used and changed freely as long as this msg is intact!

*   We will also appreciate any links you could give us.

*

*   Made by Thomas Brattli

*

*   Script date: 09/04/2001 (keep this date to check versions) 

*********************************************************************************/

function lib_bwcheck(){ //Browsercheck (needed)

	this.ver=navigator.appVersion

	this.agent=navigator.userAgent

	this.dom=document.getElementById?1:0

	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0

	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 

	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;

	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;

	this.ie=this.ie4||this.ie5||this.ie6

	this.mac=this.agent.indexOf("Mac")>-1

	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 

	this.ns4=(document.layers && !this.dom)?1:0;

	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)

	return this

}

var bw=lib_bwcheck()



/***************************************************************************

Use the style tag to change the placement and width of the layers.

If you are trying to place this into a table cell or something make the

position of the divNewsCont layer relative...Remeber that that might crash

Netscape 4 though, Good luck!

********************************************************************************/



/****

Variables to set 

****/



//How do you want the script to work? 

//0 = Fade in - Fade out

//1 = Slide in - Fade out

//2 = Random 

nWorks = 0



//If you use the slide set these variables:

nSlidespeed = 5 //in px

nNewsheight = 80 //This is how long down it should start the slide.



nBetweendelay = 8000 //The delay before fading out.

nFont = 'arial,helvetiva' //The font for the news.

nFontsize = 12 //Font size in pixel.

nFadespeed = 100 //The speed to fade in, in milliseconds.



//Set the colors, first color is same as background, last color is the color it stops at:

//You can have as many colors you want

nColor=new Array('#333366', '#333333','#666666','#999999','#CCCCCC','#EEEEEE','#FFFFFF')



//This is the news you wanna have, set the link and the text. If you don't wan't it to link anywhere

//use a # as the link

nNews=new Array()

//Copy there three lines and change the info and numbers to get more news.


nNews[0]=new Array()

nNews[0]["text"]="\"\Gauss VIP ImageCapture enables our associates to easily retrieve the information they need to make business decisions and answer customer inquiries, all from the convenience of their  desktops.\"\<BR>__________________<BR><BR><B>Christina Wickenkamp,<BR>Director of IT,<BR>Intermatic</B>"

nNews[0]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[1]=new Array()

nNews[1]["text"]="\"\IEEE looks to products like Gauss VIP Enterprise to further allow us to better serve our members in the fastest, most cost-efficient ways.\"\<BR>__________________<BR><BR><B>Dan  Senese,<BR>Executive Director,<BR>IEEE</B>"

nNews[1]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[2]=new Array()

nNews[2]["text"]="\"\We estimate that we have reduced costs by more than $81 000 per year by implementing the Gauss Workflow system. Already, our drilling division is processing 2000 to 3000 more invoices per  month than we did processing paper invoices.\"\<BR>__________________<BR><BR><B>Eric Ludeman,<BR>Sr. Business Analyst,<BR>Helmerich and Payne</B>"

nNews[2]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"

          
nNews[3]=new Array()

nNews[3]["text"]="\"\Gauss Enterprise Content Management platform provides a comprehensive set of tools and solutions for integrating and improving back office processes, and Web-enabling business critical  services and information for end users.\"\<BR>__________________<BR><BR><B>Michael Porter,<BR>Managing Director,<BR>Perficient</B>"

nNews[3]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[4]=new Array()

nNews[4]["text"]="\"\We chose Gauss for key reasons, including their ability to simplify and reduce our costs of managing documents and Web content by using a single platform, as well as their ability to support a  multi-platform computing environment.\"\<BR>__________________<BR><BR><B>John Musser,<BR>IT Manager,<BR>Alameda County Water District</B>"

nNews[4]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"         

          

nNews[5]=new Array()

nNews[5]["text"]="\"\With VIP ContentManager, we feel more confident that regional marketing departments can execute their online promotions with a minimum of technical  know-how.\"\<BR>__________________<BR><BR><B>Inkee Lee,<BR>VP of IT & Marketing Development Center,<BR>Korean Air</B>"

nNews[5]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[6]=new Array()

nNews[6]["text"]="\"\Our first-generation document imaging solution could no longer keep pace with the company’s growth and new technology investments.  With VIP Enterprise, we've got twenty-four hour imaging  turnaround.\"\<BR>__________________<BR><BR><B>Bob Marshall<BR>VP of IS,<BR>Injured Worker’s Insurance Fund</B>"

nNews[6]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[7]=new Array()

nNews[7]["text"]="\"\Using Gauss’ VIP, we have the content infrastructure to publish timely, personalized content for a whole range of claims and inspection services, strengthen content exchange with partners and  branch offices, and promote our company image.\"\<BR>__________________<BR><BR><B>Mary Ellen Freyermuth,<BR>Director of MIS,<BR>Catholic Mutual Group</B>"

nNews[7]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[8]=new Array()

nNews[8]["text"]="\"\Our customers expect information to be at our fingertips when they need it. Gauss VIP DocManager enables all documents--regardless of the source--to be available to users within 24  hours.\"\<BR>__________________<BR><BR><B>Lisa Kruska,<BR>VP Policyholder Services,<BR>Injured Worker’s Insurance Fund</B>"

nNews[8]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[9]=new Array()

nNews[9]["text"]="\"\VIP Enterprise enables organizations to truly leverage the Internet by integrating web content management with the back-office documents, workflows, and legacy content sources driving their core  competencies.\"\<BR>__________________<BR><BR><B>Ron Faltin,<BR>VP of eIntegration,<BR>MSI Systems Integrators</B>"

nNews[9]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[10]=new Array()

nNews[10]["text"]="\"\You can't rely on an ROI of three to five years, because who knows what will happen in the industry in that time? With Gauss VIP Enterprise we expect a one-year ROI; and we think that's a  conservative estimate.\"\<BR>__________________<BR><BR><B>Gil Hoffman,<BR>CIO,<BR>Maritz Inc.</B>"

nNews[10]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[11]=new Array()

nNews[11]["text"]="\"\Gauss’ enterprise content management software enabled me to reduce costs enough to save our company more than $300,000 in the first year  alone.\"\<BR>__________________<BR><BR><B>Brent Turner,<BR>IT Manager,<BR>Health Risk Management</B>"

nNews[11]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[12]=new Array()

nNews[12]["text"]="\"\VIP Enterprise is a unified solution, based on modular architecture. So, we now have a single product that lets us easily add the full range of enterprise content management components-from  document to Web content management-as our needs dictate.\"\<BR>__________________<BR><BR><B>Steve Gulley,<BR>CFO,<BR>Charles E. Smith Realty</B>"

nNews[12]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[13]=new Array()

nNews[13]["text"]="\"\Thanks to the VIP Enterprise, Sterne, Agee & Leach has eliminated $225,000 a year out of our operating costs. In less than ten months, SA&L recouped it's investment with  Gauss.\"\<BR>__________________<BR><BR><B>Steven Kahn,<BR>Vice President,<BR>Sterne, Agee & Leach Group, Inc.</B>"

nNews[13]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[14]=new Array()

nNews[14]["text"]="\"\Clients feel like they’re fully involved with their cases now. They’re more educated about what’s going on and they’re no longer restricted to inquiring about their cases during normal operating  hours.\"\<BR>__________________<BR><BR><B>Scott Kastin,<BR>eBusiness Consultant,<BR>Finkelstein, Levine, Gittelsohn and Partners, Counselors at Law</B>"

nNews[14]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[15]=new Array()

nNews[15]["text"]="\"\Gauss' ECM platform links our people, content, and processes so we can spend less time searching for information and more time on activities that create value for our  customers.\"\<BR>__________________<BR><BR><B>Larry Eden,<BR>CIO,<BR>EFCO Corporation</B>"

nNews[15]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[16]=new Array()

nNews[16]["text"]="\"\Gauss is a strong ally for us in the content management space, and we already share several major customers, including Deutsche Telekom and  RWE\"\<BR>__________________<BR><BR><B>Bill Coleman,<BR>Founder, Chairman and CEO,<BR>BEA</B>"

nNews[16]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[17]=new Array()

nNews[17]["text"]="\"\Organizations that can minimize the number of vendors necessary to meet their long-term enterprise content management requirements will benefit from reduced administration, upgrade,  conversion, and ongoing maintenance costs.\"\<BR>__________________<BR><BR><B>Andy Warzecha,<BR>Vice President,<BR>META Group</B>"

nNews[17]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


nNews[18]=new Array()

nNews[18]["text"]="\"\The combination of Gauss VIP Enterprise and Sun’s powerful and reliable servers provides increased flexibility and scalability in deploying enterprise-level content management  solutions.\"\<BR>__________________<BR><BR><B>Manish Bhuptani,<BR>Network Services, Market Development,<BR>Sun Microsystems</B>"

nNews[18]["link"]=/*VIPURL */"../../Solutions/Customer_Quotes.htm"


/********************************************************************************

Object code...Object constructors and functions...

********************************************************************************/

function makeNewsObj(obj,nest,font,size,color,news,fadespeed,betweendelay,slidespeed,works,newsheight){

    nest=(!nest) ? "":'document.'+nest+'.'

   	this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;	

   	this.writeref=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj+".document"):0;

	if(font){this.color=new Array(); this.color=eval(color); this.news=new Array(); this.news=eval(news)

		this.font=font; this.size=size; this.speed=fadespeed; this.delay=betweendelay; this.newsheight=newsheight;

		this.fadeIn=b_fadeIn;this.fadeOut=b_fadeOut; this.newsWrite=b_newsWrite; this.y=1

		this.slideIn=b_slideIn; this.moveIt=b_moveIt; this.slideSpeed=slidespeed; this.works=works

		if(bw.dom || bw.ie4){this.css.fontFamily=this.font; this.css.fontSize=this.size; this.css.color=this.color[0]}

	}

	this.obj = obj + "Object"; 	eval(this.obj + "=this"); return this

}



// A unit of measure that will be added when setting the position of a layer.

var px = bw.ns4||window.opera?"":"px";



function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x+px; this.css.top=this.y+px;}



function b_newsWrite(num,i){

	if (bw.ns4){

		this.writeref.write("<a href=\""+this.news[num]['link']+"\" target=\"_parent\" style=\"text-decoration:none; font-size:"+this.size+"px\">"

			+"<font face=\""+this.font+"\" color=\""+this.color[i]+"\">"+this.news[num]['text']+"</font></a>")

		this.writeref.close()

	}else this.writeref.innerHTML = '<a id="'+this.obj+'link' +'" target="_parent"  style="text-decoration:none; font-size:'+this.size+'px; color:'+this.color[i]+'" href="'+this.news[num]['link']+'">'+this.news[num]['text']+'</a>'

}

//Slide in

function b_slideIn(num,i){

	if (this.y>0){

		if (i==0){this.moveIt(0,this.newsheight); this.newsWrite(num,this.color.length-1)}

		this.moveIt(this.x,this.y-this.slideSpeed)

		i ++

		setTimeout(this.obj+".slideIn("+num+","+i+");",50)

	}else setTimeout(this.obj+".fadeOut("+num+","+(this.color.length-1)+")",this.delay)

}

//The fade functions

function b_fadeIn(num,i){

	if (i<this.color.length){

		if (i==0 || bw.ns4) this.newsWrite(num,i)

		else{

			obj = bw.ie4?eval(this.obj+"link"):document.getElementById(this.obj+"link")

			obj.style.color = this.color[i]

		}

		i ++

		setTimeout(this.obj+".fadeIn("+num+","+i+")",this.speed)

	}else setTimeout(this.obj+".fadeOut("+num+","+(this.color.length-1)+")",this.delay)

}



function b_fadeOut(num,i){

	if (i>=0){

		if (i==0 || bw.ns4) this.newsWrite(num,i)	

		else{

			obj = bw.ie4?eval(this.obj+"link"):document.getElementById(this.obj+"link")

			obj.style.color = this.color[i]

		}

		i --

		setTimeout(this.obj+".fadeOut("+num+","+i+")",this.speed)

	}else{

		num ++

		if(num==this.news.length) num=0

		works = !this.works?0:this.works==1?1:Math.round(Math.random())

		if(works==0) setTimeout(this.obj+".fadeIn("+num+",0)",500)

		else if (works==1){this.y=1; setTimeout(this.obj+".slideIn("+num+",0)",500)

		}

	}

}

/********************************************************************************************

The init function. Calls the object constructor and set some properties and starts the fade

*********************************************************************************************/

function fadeInit(){

	oNews = new makeNewsObj('divNews','divNewsCont',nFont,nFontsize,"nColor","nNews",nFadespeed,nBetweendelay,nSlidespeed,nWorks,nNewsheight)

	oNewsCont = new makeNewsObj('divNewsCont')

	works = !oNews.works?0:oNews.works==1?1:Math.round(Math.random())

	if (works==0) oNews.fadeIn(0,0)

	else if (works==1) oNews.slideIn(0,0)

	oNewsCont.css.visibility = "visible"

}



//Calls the init function on pageload. 

if(bw.bw) onload = fadeInit
'divNewsCont',nFont,nFontsize,"nColor","nNews",nFadespeed,nBetweendelay,nSlidespeed,nWorks,nNewsheight)

	oNewsCont = new makeNewsObj('divNewsCont')

	works = !oNews.works?0:oNews.works==1?1:Math.round(Math.random())

	if (works==0) oNews.fadeIn(0,0)

	else if (works==1) oNews.slideIn(0,0)

	oNewsCont.css.visibility = "visible"

}



//Calls the init function on pageload. 

if(bw.bw) onload = fadeInit
