// ie6 icon
(function () {
	var d = document,
		h = d.getElementsByTagName('head')[0], // head element
		ls, // list of link elements
		l, // link element
		i; // counter

	if (!h) {
		return;
	}

	ls = h.getElementsByTagName('link');

	// find other icon elements
	for (i = ls.length - 1; i >= 0; i--) {
		l = ls[i];
		if (l.rel == 'apple-touch-icon' || l.rel == 'apple-touch-icon-precomposed') {
			alert('This page already has a home screen icon that will override our custom icon');
			return;
		}
	}

	// add our element
	l = d.createElement('link');
	l.rel = 'apple-touch-icon-precomposed';
	l.href = 'http://www.thingsthemselves.com/iphone/ie6.png';
	h.appendChild(l);

	document.title = 'IE';
})()
