

function preloadImages() {
	if (document.images) {
		for (var i = 0; i < preloadImages.arguments.length; i++) {
			(new Image()).src = preloadImages.arguments[i];
		}
	}
}

function setBorderSize(w,h)
{
	var the_border = document.getElementById('img1_border');
	the_border.style.width = w;
	the_border.style.height = h;
}

function swapImage(img,new_src) 
{ 
  var image = document.getElementById(img);
  image.src = new_src;
}

function Popup(Url,PopupName,dl_width,dl_height)
{
	var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}
//alert(1);
	TheNewWin=window.open(Url,PopupName,"left=" + x + ",screenX=100,top=" + y + ",screenY=100, scrollbars=yes,resizable=no,width="+dl_width+",height="+dl_height+",status=no,resizable=1");
				//TheNewWin.blur();
				//alert(2);
				return TheNewWin;
}

function showOriginal (url)
{
	var popup = Popup(url,'original',800,600);
	popup.focus = true;
}


function PHPescort ()
{
	 
}

PHPescort.prototype.changePic = function  (img_id,new_src)
{
	var img = document.getElementById(img_id);
	img.src = new_src;
}


PHPescort.prototype.overProfilePic = function  (img)
{
	img.style.borderColor = '#CC70AB';
}

PHPescort.prototype.outProfilePic = function  (img)
{
	img.style.borderColor = 'Black';
}


function testalert ()
{
	 alert('test');
}

PHPescort = new PHPescort();