/*
var preloadFlag = false;

function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
*/
function decision(url,delete_what){
	var message = "Are you sure that you want to delete " + delete_what + "?";
	if(confirm(message)) window.location.href = url;
}

function decisionSubmit(delete_what){
	var message = "Are you sure that you want to delete " + delete_what + "?";
	if(confirm(message)) document.deleteImage.submit();
}

function submitenter(myfield,e){
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;
	
	if (keycode == 13)  {
		document.login.submit();
		return false;
	} else {
		return true;
	}
}

function liveChat() {
	window.open('/live-chat.html',null,'height=500,width=400,status=yes,toolbar=no,menubar=no,location=no');	
}

jQuery.noConflict();
jQuery(document).ready(function(){
	
	//preloadImages();
	jQuery("#chat").mouseover(function(){
		jQuery(this).addClass("hover");
	});
	
	jQuery("#chat").mouseout(function(){
		jQuery(this).removeClass("hover");
	});
	
	//Remove outline from links
	jQuery("a").focus(function(){
		jQuery(this).blur();
	});

	jQuery("a").removeAttr("title");
	
});
