/* start sIFR for Backpages */

	//  Learn More link in scroll box (backpages only)
	sIFR.replace(GeometricBold, {
	  selector: '.morelink'
	  ,wmode: 'transparent'
	  ,css: [
	      '.sIFR-root { color:#DC6E1F; font-size:11px; cursor:pointer;}'
	      ,'a { text-decoration: none; color:#DC6E1F; }'
	      ,'a:link { color: #DC6E1F;  }'
	      ,'a:hover { color: #692820; }'
	    ]
	}); // end Learn More link in scroll box
	
	// View Possible Products link on each back page (backpages only)
	sIFR.replace(GeometricBold, {
	  selector: '.flamore'
	  ,wmode: 'transparent'
	  ,css: [
	      '.sIFR-root { color:#EDA945; font-size:14px; cursor:pointer;text-align:center;}'
	      ,'a { text-decoration: none; color:#EDA945; }'
	      ,'a:link { color: #EDA945;  }'
	      ,'a:hover { color: #692820; }'
	    ]
	});// end View Possible Products link on each back page
	
/* end sIFR for Backpages */	


$(document).ready(function(){
	/* BEGIN SCROLL AREA CODE */
		// activate scroll pane, show arrows, smooth animation on scrollBy
		$('#contentpane').jScrollPane({	showArrows:true, 
										animateTo:true,
										scrollbarWidth:8}); 
	
		// bind functions so global variable mouse_over_contentpane indicate whether
		// or not the mouse is over the contentpane
		$('#contentpane').mouseover(function(){	mouse_over_contentpane = true; });			
		$('#contentpane').mouseout(function(){ mouse_over_contentpane = false; });
		
		// anytime a key is pressed down
		$(document).keydown(function(event){	
				// downkey when mouse_over_contentpane
			if (event.keyCode == 40 && mouse_over_contentpane) {
				$('#contentpane')[0].scrollBy(50);  // scroll down
				return false; // prevent key press from scrolling entire page
			}
			// upkey when mouse_over_contentpane
			else if (event.keyCode == 38 && mouse_over_contentpane) {
				$('#contentpane')[0].scrollBy(-50); // scroll up
				return false; // prevent key press from scrolling entire page
			}
		}); // $(document).keydown(function(event){	
	/* END SCROLL AREA CODE */		
	
	/* BEGIN Line Changes for System Pages */
		jQuery('.swf_link').click(
			function(e) {				
				// hover over - change line					
				var swf_selector = jQuery(this).attr('href');	
				jQuery('.line-swf').css('visibility','hidden');
				jQuery(swf_selector).css('visibility','visible');
				e.preventDefault();  // prevent following link	
			}
		); // jQuery('.swf_link').hover(function() {	
	/* END Line Changes for System Pages */	
	
}); // $(document).ready(function(){