$( function() {

	setTimeout( "animContact()", 3000 ); // 6 seconds

});
var animating = false
function animContact() {
	$("#contactDetails").hide();
	$("#contact")		// grab contact
		.animate( { bottom: "-220px" }, "slow", function() { $("#contactDetails").fadeIn("slow") } ) // initial animate downwards, -201 is the edge of the "Note to self" text
	$("#contact, #contactDetails").hover( function() { // bind the mouseover func
			if( animating == false ) { // the animating malarkey is to stop it pogoing
				animating = true;
				$("#contactDetails").hide()
				$("#contact").animate( { bottom: "0px" }, "slow", function() { animating = false; } )
			}
		}
		, function() { // and the mouseout func
			if( animating == false ) {
				animating = true;
				$("#contact").animate( { bottom: "-220px" }, "slow", function() { animating = false; $("#contactDetails").fadeIn("medium") } )	
			}
		})
}


////////////////////////////////////////////////////////////
/*
$( function() {

	setTimeout( "animContact2()", 3200 ); // 6 seconds

});
var animating2 = false
function animContact2() {
	$("#contactDetails2").hide();
	$("#contact2")		// grab contact
		.animate( { bottom: "-180px" }, "slow", function() { $("#contactDetails2").fadeIn("slow") } ) // initial animate downwards, -201 is the edge of the "Note to self" text
	$("#contact2, #contactDetails2").hover( function() { // bind the mouseover func
			if( animating2 == false ) { // the animating malarkey is to stop it pogoing
				animating2 = true;
				$("#contactDetails2").hide()
				$("#contact2").animate( { bottom: "0px" }, "slow", function() { animating2 = false; } )
			}
		}
		, function() { // and the mouseout func
			if( animating2 == false ) {
				animating2 = true;
				$("#contact2").animate( { bottom: "-180px" }, "slow", function() { animating2 = false; $("#contactDetails2").fadeIn("medium") } )	
			}
		})
}

////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////

$( function() {

	setTimeout( "animContact4()", 3400 ); // 6 seconds

});
var animating4 = false
function animContact4() {
	$("#contactDetails4").hide();
	$("#contact4")		// grab contact
		.animate( { right: "-240px" }, "slow", function() { $("#contactDetails4").fadeIn("slow") } ) // initial animate downwards, -201 is the edge of the "Note to self" text
	$("#contact4, #contactDetails4").hover( function() { // bind the mouseover func
			if( animating4 == false ) { // the animating malarkey is to stop it pogoing
				animating4 = true;
				$("#contactDetails4").hide()
				$("#contact4").animate( { right: "0px" }, "slow", function() { animating4 = false; } )
			}
		}
		, function() { // and the mouseout func
			if( animating4 == false ) {
				animating4 = true;
				$("#contact4").animate( { right: "-240px" }, "slow", function() { animating4 = false; $("#contactDetails4").fadeIn("medium") } )	
			}
		})
}
/////////////////////////////////////////////////
*/

/////////////////////////////////
/*

setActionsIE6 = function()
{
	dropDownMagic();
}

dropDownMagic = function()
{
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navMain");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
*/

/* PNG BACKGROUNDS */
/*

var bgsleight	= function() {
	
	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				if (oldonload) {
					oldonload();
				}
				func();
			}
		}
	}
	
	function fnLoadPngs() {
		var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
		var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
		for (var i = document.all.length - 1, obj = null; (obj = document.all[i]); i--) {
			if (itsAllGood && obj.currentStyle.backgroundImage.match(/\.png/i) != null) {
				fnFixPng(obj);
				obj.attachEvent("onpropertychange", fnPropertyChanged);
			}
		}
	}

	function fnPropertyChanged() {
		if (window.event.propertyName == "style.backgroundImage") {
			var el = window.event.srcElement;
			if (!el.currentStyle.backgroundImage.match(/x\.gif/i)) {
				var bg	= el.currentStyle.backgroundImage;
				var src = bg.substring(5,bg.length-2);
				el.filters.item(0).src = src;
				el.style.backgroundImage = "url(x.gif)";
			}
		}
	}

	function fnFixPng(obj) {
		var bg	= obj.currentStyle.backgroundImage;
		var src = bg.substring(5,bg.length-2);
		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
		obj.style.backgroundImage = "url(x.gif)";
	}
	
	
	
	
	return {
		
		init: function() {
			
			if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
				addLoadEvent(fnLoadPngs);
			}
			
		}
	}
	
}();

window.onload=setActionsIE6;
bgsleight.init();

*/