<!--
// javascript random rollover
			// written by Joe Maller, 1997
			// part of the "Simplest Possible JavaScripts" at
			// http://www.joemaller.com 
			// this is free to use, but please give me credit,
			// and let me know where it goes
			
				roller1= new Array()
				roller1[1]= new Image(980,187)
				roller1[1].src ='images/stroke1_1.png'
				roller1[2]= new Image(980,187)
				roller1[2].src ='images/stroke1_2.png'
				roller1[3]= new Image(980,187)
				roller1[3].src ='images/stroke1_3.png'
				roller1[4]= new Image(980,187)
				roller1[4].src ='images/stroke1_4.png'
				roller1[5]= new Image(980,187)
				roller1[5].src ='images/stroke1_5.png'
				roller1[6]= new Image(980,187)
				roller1[6].src ='images/stroke1_6.png'
				roller1[7]= new Image(980,187)
				roller1[7].src ='images/stroke1_7.png'
				roller1[8]= new Image(980,187)
				roller1[8].src ='images/stroke1_8.png'
			
				
				
				showthis=0 				//prepares the repeat-preventing variable
				
				function RandomSwapOut1() {		
				
										//the next three lines help prevent repeating images
										
						oldroller1 = new Array()
						oldroller1[2] = oldroller1[1]
						oldroller1[1] = showthis
						
										//the next line chooses the number to use in selecting the image
						
						showthis = parseInt((Math.random()*(roller.length-1))+1);	
						
										//the next two lines help prevent repeating images
						
						if (showthis == oldroller1[1]) {RandomSwapOut1();}
						if (showthis == oldroller1[2]) {RandomSwapOut1();}
						
										//the next line replaces the image with the new, random image
						
						document.Ritalin.src = roller1[showthis].src; return true;	
				}


				function SwapBack1() {		
					document.Ritalin.src = "images/redstroke.png"; return true;	
				}
// -->
	<!--
// javascript random rollover
			// written by Joe Maller, 1997
			// part of the "Simplest Possible JavaScripts" at
			// http://www.joemaller.com 
			// this is free to use, but please give me credit,
			// and let me know where it goes
			
				roller3= new Array()
				roller3[1]= new Image(980,187)
				roller3[1].src ='images/stroke3_1.png'
				roller3[2]= new Image(980,187)
				roller3[2].src ='images/stroke3_2.png'
				roller3[3]= new Image(980,187)
				roller3[3].src ='images/stroke3_3.png'
				roller3[4]= new Image(980,187)
				roller3[4].src ='images/stroke3_4.png'
				roller3[5]= new Image(980,187)
				roller3[5].src ='images/stroke3_5.png'
				roller3[6]= new Image(980,187)
				roller3[6].src ='images/stroke3_6.png'
				roller3[7]= new Image(980,187)
				roller3[7].src ='images/stroke3_7.png'
				roller3[8]= new Image(980,187)
				roller3[8].src ='images/stroke3_8.png'
			
				
				
				showthis=0 				//prepares the repeat-preventing variable
				
				function RandomSwapOut3() {		
				
										//the next three lines help prevent repeating images
										
						oldroller3 = new Array()
						oldroller3[2] = oldroller3[1]
						oldroller3[1] = showthis
						
										//the next line chooses the number to use in selecting the image
						
						showthis = parseInt((Math.random()*(roller.length-1))+1);	
						
										//the next two lines help prevent repeating images
						
						if (showthis == oldroller3[1]) {RandomSwapOut3();}
						if (showthis == oldroller3[2]) {RandomSwapOut3();}
						
										//the next line replaces the image with the new, random image
						
						document.Ritalin3.src = roller3[showthis].src; return true;	
				}


				function SwapBack3() {		
					document.Ritalin3.src = "images/bluestroke.png"; return true;	
				}
// -->
	<!--
// javascript random rollover
			// written by Joe Maller, 1997
			// part of the "Simplest Possible JavaScripts" at
			// http://www.joemaller.com 
			// this is free to use, but please give me credit,
			// and let me know where it goes
			
				roller= new Array()
				roller[1]= new Image(980,187)
				roller[1].src ='images/stroke2_1.png'
				roller[2]= new Image(980,187)
				roller[2].src ='images/stroke2_2.png'
				roller[3]= new Image(980,187)
				roller[3].src ='images/stroke2_3.png'
				roller[4]= new Image(980,187)
				roller[4].src ='images/stroke2_4.png'
				roller[5]= new Image(980,187)
				roller[5].src ='images/stroke2_5.png'
				roller[6]= new Image(980,187)
				roller[6].src ='images/stroke2_6.png'
				roller[7]= new Image(980,187)
				roller[7].src ='images/stroke2_7.png'
				roller[8]= new Image(980,187)
				roller[8].src ='images/stroke2_8.png'
			
				
				
				showthis=0 				//prepares the repeat-preventing variable
				
				function RandomSwapOut2() {		
				
										//the next three lines help prevent repeating images
										
						oldroller = new Array()
						oldroller[2] = oldroller[1]
						oldroller[1] = showthis
						
										//the next line chooses the number to use in selecting the image
						
						showthis = parseInt((Math.random()*(roller.length-1))+1);	
						
										//the next two lines help prevent repeating images
						
						if (showthis == oldroller[1]) {RandomSwapOut2();}
						if (showthis == oldroller[2]) {RandomSwapOut2();}
						
										//the next line replaces the image with the new, random image
						
						document.Ritalin2.src = roller[showthis].src; return true;	
				}


				function SwapBack2() {		
					document.Ritalin2.src = "images/yellowstroke.png"; return true;	
				}
// -->
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
		$(document).ready(function() {
			/*
			*   Examples - images
			*/

			$("a#example1").fancybox({
				'titleShow'		: false,
				'overlayShow':	false,
				'scrolling' : 'auto',
				'width' : 1000,
				'height' : 600,
				'autoDimensions' : false,
				'autoScale' : false
			});

			$("a#example2").fancybox({
				'titleShow'		: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			$("a#example3").fancybox({
				'titleShow'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'
			});

			$("a#example4").fancybox();

			$("a#example5").fancybox({
				'titlePosition'	: 'inside'
			});

			$("a#example6").fancybox({
				'titlePosition'	: 'over'
			});

			$("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

			/*
			*   Examples - various
			*/

			$("#various1").fancybox({
				'titlePosition'		: 'inside',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});

			$("#various2").fancybox();

			$("#various3").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});

			$("#various4").fancybox({
				'padding'			: 0,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
		});
