jQuery(document).ready(function($){
$('.menu li').hover(
function () {$('ul.dropdown-menu', this).slideDown(500);}, 
function () {$('ul.dropdown-menu', this).slideUp(300);
});
});

jQuery(document).ready(function($){
$("#slide-control").jFlow({
slides: "#slide",
controller: ".control",
width: "100%",
height: "250px",
duration: 200,
prev: ".jFlowPrev",
next: ".jFlowNext"
});
});

jQuery(document).ready(function($){ // Start Function
$('input[title], textarea[title]').each(function() {if($(this).val() === '') {$(this).val($(this).attr('title'));}
$(this).focus(function() {if($(this).val() == $(this).attr('title')) {$(this).val('').addClass('focused');	}
});
$(this).blur(function() {if($(this).val() === '') {$(this).val($(this).attr('title')).removeClass('focused');}
});
});

$('.fade').hover(
function() {$(this).fadeTo("slow", 0.5);},
function() {$(this).fadeTo("slow", 1);}
);

}); // End Function

jQuery(document).ready(function($){
$(".click-open").click(function(){
$("p.click-open-info").slideToggle("slow");
$(this).toggleClass("active"); return false;
});
});


jQuery(document).ready(function($){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
    $(".resetFont").click(function(){
    $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
    $('html').css('font-size', newFontSize);
    return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
    $('html').css('font-size', newFontSize);
    return false;
  });
});

function showVideo(id) {
document.write("<div class=\"youtube\">");
document.write("<object width=\"500\" height=\"300\">");
document.write("<param name=\"movie\" value=\"http://www.youtube.com/v/"+id+">&amp;hl=en&amp;fs=1\"></param>");
document.write("<param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param>");
document.write("<embed src=\"http://www.youtube.com/v/"+id+"&amp;hl=en&amp;fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"500\" height=\"300\"></embed></object>");
document.write("</div>");
}

Cufon.replace('.sidebox h3, h2.post-title', {fontFamily: 'bebas'});

