function openWindow(passed_url,passed_window)
{
	window.open(passed_url,passed_window,'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0,width=410,height=170,screenX=20,screenY=20,top=20,left=20')
}

function openFAQWindow(passed_url,passed_window)
{
	window.open(passed_url,passed_window,'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=1,width=470,height=300,screenX=20,screenY=20,top=20,left=20')
}

function openRAIDCompWindow(passed_url,passed_window)
{
	window.open(passed_url,passed_window,'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=1,width=805,height=460,screenX=20,screenY=20,top=20,left=20')
}

function openLetterWindow(passed_url,passed_window)
{
	window.open(passed_url,passed_window,'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=1,width=615,height=550,screenX=20,screenY=20,top=10,left=10')
}// JavaScript Document


//makes HM_Arrays.js usable from all levels
var varRelPos;
function breadcrumbs(){
	sURL = new String;
	bits = new Object;
	var x = 0;
	var stop = 0;
	var output = "";
	sURL = location.href; 
	var conSliceRef = sURL.indexOf("scjohnson.com.au"); //change this line to www.scjohnson.com.au
	sURL = sURL.slice(conSliceRef,sURL.length);
	chunkStart = sURL.indexOf("/");
	sURL = sURL.slice(chunkStart+1,sURL.length)
	while(!stop){
		chunkStart = sURL.indexOf("/");
		if (chunkStart != -1){
	 		bits[x] = sURL.slice(0,chunkStart)
	 		sURL = sURL.slice(chunkStart+1,sURL.length);
		}else{
		stop = 1;
		}
		x++;
	}
	for(var i in bits){
		output += "../";
	}
	varRelPos = output;
}
breadcrumbs();
