//rounded corners
jQuery(function(){
	jQuery('ul.sf-menu').superfish();
});


//preload images
$(document).ready(function(){
  $.preloadCssImages();
});

//image cycle
$('#fade').cycle({ 
    fx:    'fade', 
    speed:  4200 
 });
 
 //image gallery
 $(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements.
				$("a[rel='photogallery']").colorbox({transition:"elastic"});
				$("a[rel='gallery']").colorbox({transition:"elastic"});
				$("a[rel='loginpopup']").colorbox({transition:"elastic"});
				$("a[rel='animals']").colorbox({transition:"elastic"});
				$("a[rel='specials']").colorbox({transition:"elastic"});
				$(".slideshow").colorbox({slideshow:true, rel:'jack'});
				$("a.single").colorbox({}, function(){
					alert('Howdy, this is an example callback.');
				});
				$("a[title='Homer Defined']").colorbox();
				$(".flash").colorbox({href:"../content/flash.html"});
				$("a[href='#']").colorbox({width:"80%", height:"80%", iframe:true});
				$(".iframe").colorbox({width:"575px", height:"35%", iframe:true});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
				$("#inline").colorbox({width:"50%", inline:true, href:"#inline_example1", title:"hello"});
			});

//formfields 
$(function(){ $("label").inFieldLabels(); });