// Here, put all functions that need to be run once the DOM has been parsed and loaded
$(document).ready(function() {
$('#my3loginLink').attr('href','http://www.three.co.uk/my3');
	//jigery pokery to establish if the browser is Safari version 3 to execute fix for theme setting
	var str = navigator.userAgent;
	var userAgentSlice = new Array();   
	userAgentSlice = str.split('/');
	if(userAgentSlice.length >= 4){
		userAgentSlice = userAgentSlice[3];
		var safari = userAgentSlice.indexOf('Safari');
		var version = userAgentSlice.indexOf('3.');
		if ((safari !="-1")&&(version !="-1")){
			//you have safari and the version we're looking for
			setTimeout ( "applyTheme();", 1000 );
		}else{
			applyTheme();
		}
	}else{
		applyTheme();
	}
});
// Here, put all functions that need to be run once the page has fully rendered, and all external resources loaded
// NB. window.onload will be run after $(document).ready
window.onload = function() {
	$('img[src$=.png],img[src*=image%2Fpng]').ifixpng();
};