// 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);
  });
});

// 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] = "what's this<br />wireless thing?";
r_text[1] = "cables, pfft...<br /> who needs them?";
r_text[2] = "rats nest,<br />arrghhh!";
r_text[3] = "far too many<br />damn cables";
r_text[4] = "bluetooth, your<br />tooth isn't blue";
r_text[5] = "infraRed, who's<br />idea was that?";
r_text[6] = "LightPeak, coming<br />at snail speed";
var i = Math.floor(7*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())