/*
Fading Scroller- By DynamicDrive.com
For full source code, and usage terms, visit http://www.dynamicdrive.com
This notice MUST stay intact for use
*/

var delay=8000 //set delay between message change (in miliseconds)
var fcontent=new Array()
var leadtag='<center><IMG SRC="images/tips.jpg" ALT="ceriously good tips!" WIDTH="228" HEIGHT="40" BORDER="0" ALIGN="absmiddle"></center>'
var begintag='<font face="Arial">' //set opening tag, such as font declarations
var closetag='</font>'

fcontent[0]="Purchase or upgrade to the new and vastly improved ThumbsPlus v7 today!<br><br>ThumbsPlus 7 has a brand new look and feel with updated, yet familiar program navigation, plus many more new features and functions!"
fcontent[1]="You can easily extend your ThumbsPlus network access to Linux and MacOS users by using the NEW ThumbsPlus WebClient!<br><br>Click <A href='tpwcs.shtml'><b>here</b></A> for more info."
fcontent[2]="ThumbsPlus has extensive support for Image Color Management.  You can set, convert, and remove embedded image color profiles as well as matching monitor profiles and previewing printer colors.  To configure color management, select Options | Viewing | Color Management."
fcontent[3]="You can enable a loupe window display in any open view window.  The loupe window acts like a photographer's loupe by displaying enlarged pixel data from the image area under the current cursor position."
fcontent[4]="Audio data waveforms can be shown while playing sound files.  You can use the waveform as the thumbnail. Both options are available on the Options | File Loading | Movies & Sound dialog."
fcontent[5]="There is a Compare Image feature that shows the computed similarity between two images. This is most useful for seeing how much lossy compression affected an image. The following values are computed: Mean Square Error (MSE), Peak signal-to-noise ratio (PSNR) and an approximated Wang & Bovik quality index. Also shown are the number of identical and different pixels."
fcontent[6]="When a selection is active in a view window, pressing Delete (or Edit | Delete) will replace the selected area with the current view window background color.  Ctrl+Delete is the keystroke to delete a file.  There is also an option in Options | Viewing | Other to enable file deletion (via the Delete key) when there is no selected area."
fcontent[7]="Any image operation that does not change the image size (i.e., filter, color adjust, color balance, cut/paste) can now be faded.  The image is combined with the Undo image at a user-entered opacity level.  Undo must be enabled (Options | Viewing | Other) for this feature to be available."
fcontent[8]="By creating galleries of music files, you can start a slide show in a gallery and then minimize.  The results are all the tunes in the gallery will play sequentially in the order they are arranged in the gallery while you go about your other business on your computer."
fcontent[9]="Make regular backups of your ThumbsPlus database if you want to make sure your information is not lost. All the thumbnails, keywords, annotations and user fields you create, and all the galleries you design and populate, are kept in a single database file, the thumbs.td4 file by default."
fcontent[10]="For the Slide Show feature, the F8 key will start a show based on the first selected image in a thumbnail view. Alt+F8 will bring up the slide show settings dialog box for any modifications to the settings, then begin running the slide show when the dialog box is closed by clicking on the OK button. The slide show does not run if you click the Cancel button."
fcontent[11]="From slide show, press [alt,] to place the displayed image in a gallery named [tagged images]. This makes it easy to select photos for later use. You can then rename the gallery when you are finished."
fcontent[12]="Make a numeric user field named [points] and place it on top of the user field list. Scroll through the photos in View Mode. Press Ctrl-U, and type a number between 9 and 0 (9 for beautiful photo, 0 for bad photo) Then, sort the thumbnails based on the user field [points], descending, and the best photos are on top."
fcontent[13]="You can refresh a found list by right-clicking on its name in the folder tree and selecting Requery Now from the popup menu."
fcontent[14]="Synchronized view windows are perfect for comparing similar images. You can view multiple images synchronized by selecting them, then using File | View Synched. You can synchronize already-open view windows using View | Synch Views."
fcontent[15]="You can turn and flip one or more JPEG files without recompressing them using the Image | Quick Process commands on the main menu."
fcontent[16]="You can limit your context menus to the items you want to use. Use Options | Customize | Menus to change which commands appear on each context menu."
fcontent[17]="You can move, copy and delete folders in ThumbsPlus. To enable or disable this capability check or uncheck [Allow folder operations] under Options | Preferences | General."
fcontent[18]="You can sort the current thumbnails displayed in the thumbnail view by image similarity.  This sort option groups similar looking thumbnails together."
fcontent[19]="Changing the folder font at Options | Main Font also controls the font used for the status line in the main window and view window."
fcontent[20]="You can select a CAD-like crosshair cursor instead of a standard Windows cursor in Options | Viewing | Appearance."

var fwidth='300px' //set scroller width
var fheight='245px' //set scroller height

var fadescheme=0 //set 0 to fade text color from (white to black), 1 for (black to white)
var fadelinks=1  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////

var hex=(fadescheme==0)? 255 : 0
var startcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(0,0,0)"
var endcolor=(fadescheme==0)? "rgb(0,0,0)" : "rgb(255,255,255)"

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0
var hintcnt=0

if (DOM2)
faderdelay=2000

//function to change content
function changecontent()
{
	hintcnt = fcontent.length
	if (index>=fcontent.length) index=0
	delay = parseInt(fcontent[index].length)/20*1000

	if (DOM2){
		document.getElementById("fscroller").style.color=startcolor
		document.getElementById("fscroller").innerHTML=leadtag+"<br>"+begintag+fcontent[index]+closetag
		document.getElementById("fscroller_foot").innerHTML=begintag+"[<em>"+(index+1)+" of "+hintcnt+"</em>]"+closetag
		linksobj=document.getElementById("fscroller").getElementsByTagName("A")
		if (fadelinks)
			linkcolorchange(linksobj)
		colorfade()
	} else if (ie4) {
		document.all.fscroller.innerHTML=leadtag+"<br>"+begintag+fcontent[index]+closetag
		document.all.fscroller_foot.innerHTML=begintag+"[<em>"+(index+1)+" of "+hintcnt+"</em>]"+closetag
	} else if (ns4) {
		document.fscrollerns.document.fscrollerns_sub.document.write(leadtag+"<br>"+begintag+fcontent[index]+closetag)
		document.fscrollerns_foot.document.fscrollerns_footsub.document.write(begintag+"[<em>"+(index+1)+" of "+hintcnt+"</em>]"+closetag)
		document.fscrollerns.document.fscrollerns_sub.document.close()
		document.fscrollerns_foot.document.fscrollerns_footsub.document.close()
	}
	index++
	setTimeout("changecontent()",delay+faderdelay)
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

frame=20;

function linkcolorchange(obj)
{
	if (obj.length>0) {
		for (i=0;i<obj.length;i++)
			obj[i].style.color="rgb("+hex+","+hex+","+hex+")"
	}
}

function colorfade() 
{
	// 20 frames fading process
	if(frame>0) {	
		hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme
		document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
		if (fadelinks)
			linkcolorchange(linksobj)
		frame--;
		setTimeout("colorfade()",20);	
	} else {
		document.getElementById("fscroller").style.color=endcolor;
		frame=20;
		hex=(fadescheme==0)? 255 : 0
	}   
}

