jQuery(window).load( function() {
		
	if ( navigator.userAgent.match(/iPhone/i) ) {
		jQuery("#main_menu").addClass('iPhone');
	}	 
	jQuery("#main_menu").show();	
			
	jQuery('#slider').loopedSlider({
		autoStart: 5500,
		hoverPause: true,
		addPagination: true,
		containerClick: false,
		slidespeed: 500, //Speed of slide animation, 1000 = 1second.
		fadespeed: 500 //Speed of fade animation, 1000 = 1second.				
	});
	
	jQuery('.rounded_block .widget_nav_menu:last').addClass('last');
	jQuery('.rounded_block .widget_nav_menu.last').prev().addClass('second');
	jQuery('#footer .widget:first').addClass('first');
	jQuery('#footer .widget:last').addClass('last');
		
	swapValue = [];
	jQuery("input:text").each(function(i){
		swapValue[i] = jQuery(this).val();
		jQuery(this).focus(function(){
			if (jQuery(this).val() == swapValue[i]) {
				jQuery(this).val("");
			}
		}).blur(function(){
			if (jQuery.trim(jQuery(this).val()) == "") {
			jQuery(this).val(swapValue[i]);
			}
		});
	});
	
});
