
      $(function(){
        $("input, textarea, select, button").uniform();
		$('.top1').click(function(e){$('html,body').animate({scrollTop:'0px'},800);return false})
		$(".thumb").thumbs();
		$(".ibox").colorbox({rel:'ibox'});
		$(".iframe").colorbox({iframe:true, width:'80%',height:'80%'});
		$(".iframes").colorbox({iframe:true, width:'80%',height:'80%'});
		$(".ajax").colorbox();
		$('a.media').media();


				// Accordion
				$("#accordion").accordion({ header: "h3", autoHeight: false,collapsible: true });
				$("#accordion").accordion( "activate" , false);
				$("#accordion2").accordion({ header: "h3", autoHeight: false,collapsible: true });

				//hover states on the static widgets
				$('#dialog_link, ul#icons li').hover(
					function() { $(this).addClass('ui-state-hover'); },
					function() { $(this).removeClass('ui-state-hover'); }
				);


      });





  	// initialise plugins
		jQuery(function(){
            //Carusel
		    jQuery('#mycarousel1').jcarousel({
		        vertical: false,
		        scroll: 2
		    });

		    jQuery('#mycarousel2').jcarousel({
		        vertical: false,
		        scroll: 2
		    });


			// main navigation init
			jQuery('ul.sf-menu').superfish({
				delay:       1000, 		// one second delay on mouseout
				animation:   {opacity:'show',height:'show'}, // fade-in and slide-down animation
				speed:       'normal',  // faster animation speed
				autoArrows:  false,        // generation of arrow mark-up (for submenu)
				dropShadows: false    // drop shadows (for submenu)
			});


		});
		jQuery(window).load(function() {
			// nivoslider init
			jQuery('#slider').nivoSlider({
				effect: 'sliceUp',
				animSpeed:500,
				pauseTime:5000,
				startSlide:0,
				slices:15,
				directionNav:false,
				directionNavHide:true,
				controlNav:true,
				controlNavThumbs:false,
				keyboardNav:true,
				pauseOnHover:true,
				captionOpacity:0.8			});
		});
		jQuery(document).ready(function() {
			jQuery(".post_cycle li:even, .latestpost li:even").addClass("even");
		});

