// JavaScript Document

      // initialise plugins
        jQuery(function() {
            $(document).ready(function() {
                $("ul.sf-menu").supersubs({
                    minWidth: 10,   // minimum width of sub-menus in em units 
                    maxWidth: 18,   // maximum width of sub-menus in em units 
                    extraWidth: 1     // extra width can ensure lines don't sometimes turn over 
                    // due to slight rounding differences and font-family 
                }).superfish({
                    animation: { opacity: 'show', height: 'show' },
                    speed: 'fast',
                    autoArrows: false,
                    dropShadows: true
                }).find('ul').bgIframe({ opacity: false });
            });
        });


		Cufon.replace('h1,h2,h3,h4,ul.sf-menu a,a#button,.footer-menu li a,', { hover: true });

$(document).ready(function() {
	$("a[rel='example1']").colorbox({title: true});
				$(".example9").colorbox({
					onOpen:function(){ alert('onOpen: colorbox is about to open'); },
					onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
					onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
					onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
					onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
				});
            $(".iframe").colorbox({ width: "405px", height: "640px", iframe: true });
        });
		
$(window).load(function() {
        $('#slider').nivoSlider({
			controlNav:true,
			effect:'boxRain', 
			pauseTime:5000
			}
		);
		
		var count = 0;
$('#slider img').each(function() {
if($(this).attr('alt') != ""){
$("a.nivo-control[rel^='" + count + "']").text($(this).attr('alt'));


}
count = count +1;
});
		
		
		
    });
	

	
			

