/*
Javascript by electricSnow.co.uk, powered by jquery.com

Please feel free to borrow, steal, abduct, and/or torture the code 
contained in this file. Though you need not give credit to
electricsnow.co.uk, a comment in your source code would help other 
developers.

Stay hungry, Stay foolish.

For more info vist http://jquery.com - New Wave Javascript

*/

// Cloak Email Address
//<span class="emailCloak">something(at)something.com</span>
function emailCloak() {
	if (document.getElementById) {
		var alltags = document.all? document.all : document.getElementsByTagName("*");
		for (i=0; i < alltags.length; i++) {
		  if (alltags[i].className == "emailCloak") {
			var oldText = alltags[i].firstChild;
			var emailAddress = alltags[i].firstChild.nodeValue;
			var user = emailAddress.substring(0, emailAddress.indexOf("("));
			var website = emailAddress.substring(emailAddress.indexOf(")")+1, emailAddress.length);
			var newText = user+"@"+website;
			var a = document.createElement("a");
			a.href = "mailto:"+newText;
			var address = document.createTextNode(newText);
			a.appendChild(address);
			alltags[i].replaceChild(a,oldText);
		  }
		}
	}
}

$(document).ready(function(){
	// Initialise Cloak Email Address
	emailCloak();
	
$('#head_slide').cycle({ 
    fx: 'fade', 
    pause:  500 
});

$('#side_slide').cycle({ 
    fx: 'shuffle', 
    delay: -8000 
});

});