function openPopup(url,nme,w,h,s,r,t,root)
{
	window.name = "avantgarde";
	var s1 = r1 = t1 = 'no';
	if (s) s1 = s;
	if (r) r1 = r;
	if (t) t1 = t;
	if (root) window.parent.name = root;
	window.open(url,nme,'height='+h+',width='+w+',scrollbars='+s1+',resizable='+r1+',toolbar='+t1);
}

function luggagechange()
{
number = Math.floor(Math.random()*10)
if (number==0)
document.write('<img src="http://www.avantgardetravel.com/images/hideozebra.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==1)
document.write('<img src="http://www.avantgardetravel.com/images/hideotiger.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==2)
document.write('<img src="http://www.avantgardetravel.com/images//boston.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==3)
document.write('<img src="http://www.avantgardetravel.com/images/generation.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==4)
document.write('<img src="http://www.avantgardetravel.com/images/denver.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==5)
document.write('<img src="http://www.avantgardetravel.com/images/generation2.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==6)
document.write('<img src="http://www.avantgardetravel.com/images/eminentmirror.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==7)
document.write('<img src="http://www.avantgardetravel.com/images/eminentmirror2.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==8)
document.write('<img src="http://www.avantgardetravel.com/images/eminentmirror3.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
if (number==9)
document.write('<img src="http://www.avantgardetravel.com/images/eminentmova.jpg" alt="View our latest range of luggage" width="156" height="173" border="0">')
}

function over(arg)
{
	if(document.images && document.images[arg].highlight)
	{
		document.images[arg].src = document.images[arg].highlight.src;
	}
}
	
function out(arg)
{
	if(document.images && document.images[arg].initial)
	{
		document.images[arg].src = document.images[arg].initial.src;
	}
}
	
function preLoad()
{  
	//alert("THS in PRELOAD");
	if(document.images)
	{
		//alert("THS in PRELOAD IF IMAGES");
		var suffices = new Array();

		//	Supported rollover image types
		suffices[0] = '0.gif';
		suffices[1] = '0.jpg';
		suffices[2] = '0.png';
		
		for(i = 0; i < document.images.length; i++)
		{
			//	Set suffix start point and the suffix
			var suffixStart = -1;
			var suffix;

			for(j = 0; j < suffices.length && suffixStart < 0; j++)
			{
				suffixStart = document.images[i].src.lastIndexOf(suffices[j]);
				suffix = document.images[i].src.substring(suffixStart+1, suffixStart+5);
			}

			if(suffixStart >= 0)
			{
				// It's a rollover
				var initial = new Image();

				// Record initial image
				initial.src = document.images[i].src;

				document.images[i].initial = initial;

				// Load & record highlight image
				var highlight = new Image();

				highlight.src = document.images[i].src.substring(0, suffixStart) + '1' + suffix;

				document.images[i].highlight = highlight;
			}
		}
	}
}