// USB Cable Animation
$(document).ready(function(){  
						   
$('#stage').hover(function(){  
        $("#usbcable", this).stop().animate({marginTop:'35px', marginRight:'45px'},{queue:false,duration:240});
    }, function() {  
        $("#usbcable", this).stop().animate({marginTop:'40px', marginRight:'40px'},{queue:false,duration:240});  
    });  
});  

// RSS Icon Animation
$(document).ready(function(){  
						   
$('#rss_link').hover(function(){  
        $("#rss", this).stop().animate({marginRight:'5px'},{queue:false,duration:100});
    }, function() {  
        $("#rss", this).stop().animate({marginRight:'0px'},{queue:false,duration:100});  
    });  
});  

// Content Box Over Animation
$(document).ready(function(){  
						   
$('#contentbox1, #contentbox2, #contentbox3').hover(function(){  
        $("#contentb1over, #contentb2over, #contentb3over", this).stop().animate({marginTop:'-1px'},{queue:false,duration:240});  
    }, function() {  
        $("#contentb1over, #contentb2over, #contentb3over", this).stop().animate({marginTop:'132px'},{queue:false,duration:240});  
    });  
});

// Fancy Box Styles
$(document).ready(function(){
	$("a.zoom").fancybox({
		'hideOnContentClick': true,
		'zoomSpeedIn'		: 600,
		'zoomSpeedOut'		: 500,
		'padding'			: 10
	});
});

// Expandable Photo Area
$(document).ready(function()
{
  $(".photo_body").hide();
  $(".photo_head").click(function()
  {
    $(this).next(".photo_body").slideToggle(300);
  });
  $(".photo_head").hover(function()
  {
    	$(this).next(".photo_body").animate({ backgroundColor: "#DDDDDD", borderTopColor: "#999999", borderBottomColor: "#999999", borderLeftColor: "#999999", borderRightColor: "#999999"}, 300);
	},function(){
		$(this).next(".photo_body").animate({ backgroundColor: "#FFFFFF", borderTopColor: "#CCCCCC", borderBottomColor: "#CCCCCC", borderLeftColor: "#CCCCCC", borderRightColor: "#CCCCCC"}, 300);
  });
});

// Black Out
$(document).ready(function(){
	$('#screen').css({'display': 'block', 'z-index': '15', opacity: 0.6, 'width':$(document).width(),'height':$(document).height()});
});


// Randomised Text Array
var r_text = new Array ();
r_text[0] = "more<br />vuvuzela";
r_text[1] = "content aware text<br />can't fill this text";
r_text[2] = "The Internet is<br />completely over";
r_text[3] = "i've found the<br />cure to..";
r_text[4] = "iPhone<br />4444!";
r_text[5] = "stop! it's<br />panorama time";
var i = Math.floor(6*Math.random())

//Error Text Array
var er_text = new Array ();
er_text[0] = "Oh<br />Noes!";
er_text[1] = "The sky is<br />falling.";
er_text[2] = "Run for<br />your lives.";
er_text[3] = "The internet<br />is crumbling!";
er_text[4] = "Space Time is<br />imploding!";
var i = Math.floor(5*Math.random())