
//new window

function sizeWindow(fileToOpen,height,width) {
	infoWindow=window.open(fileToOpen,"","toolbar=no,HEIGHT="+height+",WIDTH="+width+",directories=no,status=no,scrollbars=yes,resizable,menubar=no");
	}
	
// functions for links

function about() {
	window.open('content/about.html','content');
	window.open('title.html?about','title');
	}

function strategy() {
	window.open('content/strategy.html','content');
	window.open('title.html?strategy','title');
	}

function capability() {
	window.open('content/capability.html','content');
	window.open('title.html?capability','title');
	}

function portfolio() {
	window.open('portfolio.php','content');
	window.open('title.html?portfolio','title');
	}

function clientlist() {
	window.open('content/clientlist.html','content');
	window.open('title.html?clientlist','title');
	}

function news() {
	window.open('content/news.html','content');
	window.open('title.html?news','title');
	}

function contact() {
	window.open('content/contact.html','content');
	window.open('title.html?contact','title');
	}
//ROLLOVERS
	
//set global arrays for on and off images

	var onImgArray = new Array()
	var offImgArray = new Array()
	var currentImgArray

//The on images

	onImgArray[0] = new Image()
	onImgArray[0].src = "images/inside/homeover.jpg"
	onImgArray[1] = new Image()
	onImgArray[1].src = "images/inside/aboutover.jpg"
	onImgArray[2] = new Image()
	onImgArray[2].src = "images/inside/strategyover.jpg"
	onImgArray[3] = new Image()
	onImgArray[3].src = "images/inside/capabilitiesover.jpg"
	onImgArray[4] = new Image()
	onImgArray[4].src = "images/inside/portfolioover.jpg"
	onImgArray[5] = new Image()
	onImgArray[5].src = "images/inside/clientlistover.jpg"
	onImgArray[6] = new Image()
	onImgArray[6].src = "images/inside/newsover.jpg"
    onImgArray[7] = new Image()
	onImgArray[7].src = "images/inside/contactover.jpg"
		
//The off images

	offImgArray[0] = new Image()
	offImgArray[0].src = "images/inside/home.jpg"
	offImgArray[1] = new Image()
	offImgArray[1].src = "images/inside/about.jpg"
	offImgArray[2] = new Image()
	offImgArray[2].src = "images/inside/strategy.jpg"
	offImgArray[3] = new Image()
	offImgArray[3].src = "images/inside/capabilities.jpg"
	offImgArray[4] = new Image()
	offImgArray[4].src = "images/inside/portfolio.jpg"
	offImgArray[5] = new Image()
	offImgArray[5].src = "images/inside/clientlist.jpg"
	offImgArray[6] = new Image()
	offImgArray[6].src = "images/inside/news.jpg"
	offImgArray[7] = new Image()
	offImgArray[7].src = "images/inside/contact.jpg"
	
//******DO NOT ERASE OR MODIFY BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING*****
		
//FUNCTIONS FOR STATE ROLLOVERS

function fClicked(i)
	{
		currentImgArray = i;
//turns on the image
		fOn(i);
		
		for (var j=0; j <= onImgArray.length - 1; j++)
		{
			if (j != currentImgArray)
			{
				imgName2 = "image" + j;
				//if ( document.images[imgName2] ) {
					document.images[imgName2].src = offImgArray[j].src;
					//}
			}
		
		}
//kill little grey line
		focus();
	}
	

function fOn(i)
	{
		//For instance if '1' is passes imgName stores the value 'image1'
		imgName = "image" + i;
		//this is the path to the html page source
		//if i ==1 the code would read:  put images/nav_tourOn.gif from
		// the onImgArray in to the document with logical name image1. 
		document.images[imgName].src = onImgArray[i].src;
	}
	

function fOff(i)
	{
		if (i != currentImgArray)
		{
			imgName = "image" + i;
			document.images[imgName].src = offImgArray[i].src;
		}
	}
	

