$(document).ready(function() {
    $('#items').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout:  6000
	});
});



// BigTarget related films
$(document).ready(function(){
  $("#relatedfilms h3 a").bigTarget({
    hoverClass: 'over', // CSS class applied to the click zone onHover
    clickZone : 'li:eq(0)' // jQuery parent selector
  });
});




// BigTarget posts
$(document).ready(function(){
  $("ul .post h2 a").bigTarget({
    hoverClass: 'over', // CSS class applied to the click zone onHover
    clickZone : 'li:eq(0)' // jQuery parent selector
  });
});


// BigTarget banners
$(document).ready(function(){
  $("ul#items li a").bigTarget({
    hoverClass: 'over', // CSS class applied to the click zone onHover
    clickZone : 'li:eq(0)' // jQuery parent selector
  });
});








$(function(){
// Input highlighting
//global vars
var textInputs = $("input:text,textarea,select");
var searchBox = $("#s");
var searchBoxDefault = "Search...";
var uBox = $("#u input");
var uBoxDefault = "Username";
var pBox = $("#p input");
var pBoxDefault = "Password";
	
//Effects for both searchbox
textInputs.focus(function(e){
$(this).addClass("active");
});

textInputs.blur(function(e){
$(this).removeClass("active");
});
	
	
if($("#s").attr("value") == "") $("#s").attr("value", searchBoxDefault);

searchBox.focus(function(){
if($(this).attr("value") == searchBoxDefault) $(this).attr("value", "");
});
searchBox.blur(function(){
if($(this).attr("value") == "") $(this).attr("value", searchBoxDefault);
});

if($("#u input").attr("value") == "") $("#u input").attr("value", uBoxDefault);

uBox.focus(function(){
if($(this).attr("value") == uBoxDefault) $(this).attr("value", "");
});
uBox.blur(function(){
if($(this).attr("value") == "") $(this).attr("value", uBoxDefault);
});

if($("#p input").attr("value") == "") $("#p input").attr("value", pBoxDefault);

pBox.focus(function(){
if($(this).attr("value") == pBoxDefault) $(this).attr("value", "");
});
pBox.blur(function(){
if($(this).attr("value") == "") $(this).attr("value", pBoxDefault);
});


});


