/* This notice must be untouched at all times.

lynx.js    v. 1.0

Copyright (c) 2005 Michael Rogers. All rights reserved.
Created 10.5.2005 by Michael Rogers
Last modified: 13. 5. 2005

*/

var path = "http://www.lynx.co.za/adverts/images/";
var i;
var windowOptions;
var m;
var file;
var w;
var copy;

function resize()
{
//	w.resizeTo( (i.width+10+20),(i.height+59+30) );	// include space for side bars and margins + top and bottom status bars.
}
function showWindow(wid,hei)
{
	var _width = wid+40;
	var _height = hei+40;
	windowOptions = "width="+_width+",height="+_height;
//	if ( copy )
		windowOptions += ",status=yes";
				
	w = window.open( file, "", windowOptions );
	w.defaultStatus = "Background © " + copy;
	status="Done";
	w.focus();
//	w.setInterval( resize, 2000 );
}

function advertWindow(name,copyright,wid,hei) 
{
	status="Please wait, image loading...";
	i = new Image();
	i.onload=resize;
	file = path + name;
	copy = copyright;
	i.src = file;
	showWindow(wid,hei);
}

function accessPrices( password )
{
//	Funtion body goes here
}
