$(document).ready(function() {
	
	$(document).pngFix(); 


	Cufon.replace(".cufon", { fontFamily: 'Vag' });
	Cufon.replace(".cufonBold", { fontWeight: 'bold' });
  Cufon.replace(".homeLeftTop h1, .homeLeftTop h2, .homeLeftTop h3, .homeLeftTop h4, .homeLeftTop h5, .homeLeftTop h6", { fontFamily: 'Vag' });
  
	//buttonOver
	if($.browser.mozilla || $.browser.safari) {
	$('.buttonOver').each(function() {
	        $(this).hover(function() {
	             $(this).stop().animate({ opacity: 0.5 }, 200);
	        },
	        
	   		function() {
	               $(this).stop().animate({ opacity: 1 }, 200);
	           });
	        });
	
	}

	//roundedCorners
	
	addEvent(window, 'load', initCorners);

	function initCorners() {
		var setting = {
			tl: { radius: 15 },
			tr: { radius: 15 },
			bl: { radius: 15 },
			br: { radius: 15 },
			antiAlias: true
		}
		
		var tabs = {
			tl: { radius: 5 },
			tr: { radius: 5 },
			bl: { radius: 0 },
			br: { radius: 0 },
			antiAlias: true
		}

		curvyCorners(setting, ".leftColumnWidget.grey");
		curvyCorners(setting, ".formBoxWide");

	}
	
	

			

	
	
	if($('#slideShow')) {
	
	$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) { 
	    $(pager).find('li').removeClass('active') 
	        .filter('li:eq('+currSlideIndex+')').addClass('active'); 
	};
	
	}
	
	if($('#slideShow')) {
	
	$('#slideShow').cycle({ 
        timeout: 45000, 
        speed:   300,
        delay: 75000,
        startingSlide: 0, 
 		pager:  '#slideNav',
		pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="#" class ="goto'+parseInt(idx+1)+'">'+parseInt(idx+1)+'</a></li>'; 
		    }
    });
	
		$('#slideNav').append('<li class = "arrow"><a href = "#" class = "nextSlide"><img src = "images/arrow_right.jpg" alt = ""/></a>');
     	$('#slideNav').prepend('<li class = "arrow"><a href = "#" class = "lastSlide"><img src = "images/arrow_left.jpg" alt = ""/></a>');
		
		
		$('.lastSlide').click(function() {
			$('#slideShow').cycle('prev');
		});
		
		$('.nextSlide').click(function() {
			$('#slideShow').cycle('next');
		});
       

	
}
		//search box hint
		$(function(){ 
			    // find all the input elements with title attributes
			$('input[title!=""]').hint();
		});

		

        // append it to button container 

	
});



  



