  var slider2 = ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2'];
		function formatText(index, panel){
			return slider2[index - 1];
		}

		$(function () {
			$('#slider1').anythingSlider({
				startStopped    : false,
				width           : 920,
				delay           : 8000,
				buildNavigation : false,
				onSlideComplete : function(slider){
				}
			});

			$('.anythingSlider').bind('slideshow_start slideshow_stop slideshow_paused slideshow_unpaused slide_init slide_begin slide_complete',function(e, slider){
				var txt = slider.$el[0].id + ': ' + e.type + ', now on panel #' + slider.currentPage;
				$('#status').text(txt);
				if (window.console && window.console.firebug){ console.debug(txt); } // added window.console.firebug to make this work in Opera
			});

		});
		

Cufon.replace('h1, h2, h3, h4, h5, h6, #logo a, .menu-top > li > a', { fontFamily: 'Bebas Neue', hover: true }); 

$(document).ready(function() {  
	$('.social_icons li img').hover(function(){
		$(this).stop().animate({"opacity": "0.35"},{queue:false,duration:300});
	}, function() {
		$(this).stop().animate({"opacity": "1"},{queue:false,duration:300});
	});
});

$(document).ready(function() {  
	$('#right_c ul li ul li').add('#footer div.widget ul:not(.social_icons) li').not('#right_c ul li.ads_sidebar ul li').hover(function(){
		$(this).stop().animate({paddingLeft: '8px'},{queue:false,duration:300});
	}, function() {
		$(this).stop().animate({paddingLeft: '0px'},{queue:false,duration:300});
	});
});

$(document).ready(function() {  
	$('#search_input').add('input#name').add('input#email').add('textarea#comments').focusin(function(){
		$('#search_submit').add(this).animate({ borderTopColor: "#fac400", borderLeftColor: "#fac400", borderRightColor: "#fac400", borderBottomColor: "#fac400" }, 600);
	});
});

$(document).ready(function() {  
	$('#search_input').add('input#name').add('input#email').add('textarea#comments').focusout(function(){
		$('#search_submit').add(this).animate({ borderTopColor: "#1e1e1e", borderLeftColor: "#1e1e1e", borderRightColor: "#1e1e1e", borderBottomColor: "#1e1e1e" }, 1200);
	});
});

$(document).ready(function() {  
	$('#ev_pagenavi a').hover(function(){
		$(this).stop().animate({ borderTopColor: "#fac400", borderLeftColor: "#fac400", borderRightColor: "#fac400", borderBottomColor: "#fac400" }, 600);
	}, function() {
		$(this).stop().animate({ borderTopColor: "#1e1e1e", borderLeftColor: "#1e1e1e", borderRightColor: "#1e1e1e", borderBottomColor: "#1e1e1e" }, 1200);
	});
});

$(document).ready(function() {  
	$('#main .portfolio_item a img').hover(function(){
		$(this).stop().animate({"opacity": "0.35"},{queue:false,duration:300});
	}, function() {
		$(this).stop().animate({"opacity": "1"},{queue:false,duration:300});
	});
});

$(function() {

    var paraTag = $('input#submit').parent('p');
    $(paraTag).children('input').remove();
    $(paraTag).append('<input type="button" name="submit" id="submit" value="Send" />');

    $('#form_main input#submit').click(function() {
        $('#form_main').append('<img src="css/images/ajax-loader.gif" class="loaderIcon" alt="Loading..." />');

        var name = $('input#name').val();
        var email = $('input#email').val();
        var comments = $('textarea#comments').val();

        $.ajax({
            type: 'post',
            url: 'sendEmail.php',
            data: 'name=' + name + '&email=' + email + '&comments=' + comments,

            success: function(results) {
                $('#form_main img.loaderIcon').fadeOut(5000);
                $('ul#form_response').html(results);
            }
        }); // end ajax
    });
});

$(function(){
			$('ul.menu-top').superfish();
		});
		
		
$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({ theme: 'dark_rounded' });
		});


// remap jQuery to $
(function($){

})(window.jQuery);

window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};

(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);
















