if(document.images){
	preloadImage = new Image();
	preloadImage.src = "/images/load.gif";
}

var g = false;
var divid = '';

function createToolTip(content, id){
	$(id).onclick = function() {
		return false;
	};
	
	new Tip(id, content, { className: 'tip'});
	
}

function website(url){
	popupWindow = window.open(url, '_blank','');
	popupWindow.focus();
}

function external(){
	if (!document.getElementsByTagName){ return; }
	var anchors = document.getElementsByTagName('a');

	for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];
		
		var relAttribute = String(anchor.getAttribute('rel'));
		
		if (anchor.getAttribute('href') && (relAttribute=='external')){
			anchor.onclick = function() {
				website(this);
				return false;
			};
		}
	}
}

window.onload=external;