var myrules = {
		'span.small a' : function(element) {
			element.onclick = function() {
				resizeText('small', '#textColLeft');
				resizeText('small', '#intPeople3Text');
				return false; // so link does not go to destination
			}
		},
		'span.med a' : function(element) {
			element.onclick = function() {
				resizeText('med', '#textColLeft');
				resizeText('med', '#intPeople3Text');
				return false; // so link does not go to destination
			}
		},
		'span.large a' : function(element) {
			element.onclick = function() {
				resizeText('large', '#textColLeft');
				resizeText('large', '#intPeople3Text');
				return false; // so link does not go to destination
			}
		},
		'.popup' : function(element) {
			element.onclick = function() {
				var w = 900;
				var h = 600;
				
				if (element.width < 325) {
					w = 334;
					h = 608;
				} else if (element.width < 350) {
					w = 360;
					h = 498;
				} else if (element.width < 542) {
					w = 542;
					h = 534;
				}
				
				popUp2(element, w, h);
				return false; // so link does not go to destination
			}
		},
		'.popup-horiz' : function(element) {
			element.onclick = function() {
				var w = 542;
				var h = 534;
				popUp2(element, w, h);
				return false; // so link does not go to destination
			}
		},
		'.popup-square' : function(element) {
			element.onclick = function() {
				var w = 360;
				var h = 498;
				popUp2(element, w, h);
				return false; // so link does not go to destination
			}
		},
		'.popup-vert' : function(element) {
			element.onclick = function() {
				var w = 334;
				var h = 608;
				popUp2(element, w, h);
				return false; // so link does not go to destination
			}
		}
	};
	
Behaviour.register(myrules);

Behaviour.addLoadEvent(
	function() {
		displayTextSizer('div.detailText div');
		displayTextSizer('div#intPeople3Wrap div.clearfix');
		if (readCookie("textSize")) {
			resizeText(readCookie("textSize"), '#textColLeft');
			resizeText(readCookie("textSize"), '#intPeople3Text');
		} else {
			resizeText('med', '#textColLeft');
			resizeText('med', '#intPeople3Text');
		}
		Behaviour.apply(); // re-apply the rules since the DOM has been modified
	}
);