$(document).ready(function(){
		//$.smoothAnchors("slow");
	
		/* Replacement calls. Please see documentation for more information. */

		if(typeof sIFR == "function"){

		    // This is the preferred "named argument" syntax
			sIFR.replaceElement(
			    named(
			        {
			            sSelector:"body h3",
			            forceSingleLine:false,
			            sFlashSrc:mainURL+"/scripts/font1.swf",
			            sColor:"#000000",
			            sLinkColor:"#000000", 
			            sBgColor:"#FFFFFF", 
			            sHoverColor:"#CCCCCC", 
			            nPaddingTop:0, 
			            nPaddingBottom:0, 
			            sFlashVars:"textalign=left&offsetTop=0"
		            }));

		};
		
	    /*$("div.news-ticker").smoothDivScroll({
		    autoScroll: 'always', 
		    autoScrollDirection: 'endlessloopleft', 
		    autoScrollInterval: 5, 
		    autoScrollStep: 2,
		    mouseDownSpeedBooster: 2
		});*/
		
		// $("ul.news-ticker").liScroll({travelocity: 0.15});
		

		$(".scroll").click(function(event){
			//prevent the default action for the click event
			event.preventDefault();

			//get the full url - like mysitecom/index.htm#home
			var full_url = this.href;

			//split the url by # and get the anchor target name - home in mysitecom/index.htm#home
			var parts = full_url.split("#");
			var trgt = parts[1];

			//get the top offset of the target anchor
			var target_offset = $("#"+trgt).offset();
			var target_top = target_offset.top;

			//goto that anchor by setting the body scroll top to anchor top
			$('html, body').animate({scrollTop:target_top}, 500);
		});

        $( 'a.fancy' ).fancybox(
            {
                'transitionIn':
                    'fade',
                    
                'transitionOut':
                    'fade',
                    
                'height':
                    'auto',
                    
                'speedIn':
                    600, 
                    
                'speedOut':
                    200, 
                    
                'centerOnScroll':
                    true,
                    
                'overlayShow':
                    true,
                    
                'overlayOpacity':
                    0.8,
                    
                'overlayColor':
                    '#000',
                    
                'autoScale':
                    false,
                    
                'autoDimensions':
                    false
            });
	});

