function navOver(imgTag)
{        
	var theImage = imgTag;	
	if(theImage.src.indexOf("_off.") != -1)	
	{
		theImage.src = theImage.src.replace("_off.","_on.");		
	}
	else	
	{
		theImage.src = theImage.src.replace("_on.","_off.");	
	}
}

function createSponsorPopup()
{
	bodyTag = document.getElementsByTagName("body")[0];	
	var popupBox = document.createElement("div");
	popupBox.id = "sponsorPopup";
	
	var popupBoxArrow = document.createElement("div");
	popupBoxArrow.className = 'arrowType';		
	popupBox.appendChild(popupBoxArrow);	
	
	var popupBoxTop = document.createElement("div");
	popupBoxTop.className = "popupBoxTop";		
	popupBox.appendChild(popupBoxTop);	
	
	var popupBoxRpt = document.createElement("div");
	popupBoxRpt.id = "popupBoxRpt";		
	popupBoxRpt.className = "popupBoxRpt";
	popupBox.appendChild(popupBoxRpt);

	var popupBoxContent = document.createElement("p");
	popupBoxContent.id = "sponsorPopupContent";
	popupBoxRpt.appendChild(popupBoxContent);
	
	bodyTag.appendChild(popupBox);
}

var ie = document.all;
var nn6 = document.getElementById && !document.all;
var mouseX, mouseY,xPosition,yPosition;

function getMousePos(e)
{
	if (!e)
	{
		var e = window.event || window.Event;
	}

	if('undefined'!=typeof e.pageX)
	{
		mouseX = e.pageX;
		mouseY = e.pageY;	
	}
	else
	{
		/* 
			This wouldnt work with DOCTYPE STRICT ... Microsoft :/
			mouseX = e.clientX + document.body.scrollLeft;
		*/
		mouseX = e.clientX;
		mouseY = e.clientY + document.documentElement.scrollTop;
	}	
}

document.onmousemove = getMousePos;	

function movePopup()
{			

	xPosition = mouseX - 195;
	yPosition = mouseY + 35;
	if (xPosition < 140)
		xPosition = 140;
		
	var theDiv = document.getElementById('sponsorPopup');
	theDiv.style.left = xPosition + "px";
	theDiv.style.top = yPosition + "px";
}	



function toggleSponsorPopup(theImage)
{
	if (!document.getElementById('sponsorPopup'))
	{
		createSponsorPopup();
	}
	var popupContent;
	var theAltTag = theImage.alt;
	var thePopupContainer = document.getElementById('sponsorPopup');
	var popupBoxContent = document.getElementById('sponsorPopupContent');
	if (thePopupContainer.style.display == 'block')
	{
		thePopupContainer.style.display = 'none';
	}
	else if (thePopupContainer.style.display = 'none')
	{
		switch (theAltTag)
		{
			case 'Cervelo':
			popupContent = 'It is about the bike! I feel very lucky to have the support of Cervelo, and the team at Gemini Bikes here in Australia.  Cervelo speak about their &#8220;relentless pursuit of excellence&#8221; and it is easy to see the benefits of that mantra in practice.  For me, Cervelo bikes stand out, and stand alone, when it comes to performance and I&#8217;m very much looking forward to having these weapons on my side.';
			break;
			case 'Ioof':
			popupContent = 'IOOF is one of Australia&#8217;s largest independent wealth managers with an award-winning product/service portfolio extending to, for example, wealth management services, superannuation administration, asset and investment management, estate planning and corporate trust services.  IOOF places a strong emphasis on achieving the best results for its clients with committed and capable employees delivering the highest standards of customer service.  I am extremely grateful to benefit from the support of IOOF and from the drive and energy of Michael Delamotte. ';
			break;
			case 'Shimano':
			popupContent = 'I am delighted to have Matt Bazzano and his team at Shimano Australia now on board.  in my opinion, Shimano produce the most reliable bike products in the market and certainly lead the way when it comes to breakthrough technology and commitment to development - the new Di2 electronic groupset is a prime example and is just miles ahead of anything else on the market. ';
			break;
			case 'Ais':
			popupContent = 'The Australian Institute of Sport is an amazing government-backed operation that has delivered huge success across many sports since it opened on 26 January (Australia Day) 1981.  I echo the words of Kevan Gosper (Chairman of the first AIS Board) who said that the AIS is an icon for excellence in sport.  I consider it a real honour to be part of the AIS and to benefit from its support, guidance, testing and training.  Michael Flynn and the team at the AIS have one goal in mind and that is to help every athlete achieve their best.';
			break;
			case 'Saucony':
			popupContent = 'Saucony is a true runners company and runners, and runner feedback, are an integral part of the design and testing process &#8211; and it shows!  I know Saucony&#8217;s drive and commitment to delivering the best possible fit, look and function will deliver concrete benefits to me as I develop my running over the coming years and that the support of Levi Moss and Celeste Bridges in Australia will be invaluable.';
			break;
			case 'Suunto':
			popupContent = 'Suunto are a major supporter of the ITU World Championship Series and I am delighted to now be part of the Suunto team and to have to support of Adam Joyce and his team here in Australia. Suunto products (like the T6c for example) look absolutely fantastic whether racing, training or at leisure, are a great training aid and are at once reliable and accurate. ';
			break;
			case 'Shotz':
			popupContent = 'Nutrition is something I take very seriously and I have tried many different products over the years. I use what I believe works and leaves me in no doubt that I have the "nutrition" question sorted when training, racing and recovering. Shotz answers that question every time and I feel very lucky to have Darryl and his team on board.';
			break;
			case 'Zeroseven':
			popupContent = 'I am delighted with the product of the creative genius of Margaret and Chris and their team of developers and designers at Zeroseven Web Design here in Brisbane.  When the idea of a website was originally mooted and then researched we looked at a number of options but, even at that stage, Zeroseven stood out.  The team have been truly great (and patient!) from the outset and this website is unique and really shows off my personality and achievements. ';
			break;
			case 'BlueSeventy':
			popupContent = 'Even before formally entering the Blue Seventy stable this year I had been using Blue Seventy wetsuits and swimskins for a number of years.  Having tried different brands in the past, I have to say I believe Blue Seventy make the fastest suits and skins on the planet.  Guy Crawford is a hive of knowledge and experience in all things triathlon, has been fantastic to deal with and is a total crack up - a great guy! ';
			break;
			case 'Injinji':
			popupContent = 'The famous toe socks! You might have seen them before but have you tried them? If you have a problem with blisters or sore feet whilst running, walking or riding, well, try these socks out. They might look strange and feel funny the first time you put them on but once you try them you will never use anything else. I am delighted to now have the support of Paul Reuss and Narelle Ash They are bursting with energy and love to support local events and athletes. I am looking forward to working with them over the coming years. ';
			break;
			case 'Oakley':
			popupContent = 'What do I need to say about Oakley! For me, Oakley are the worldwide leaders in performance and leisure eyewear and have been for many years.  Everyone wants a pair and that&#8217;s because they are comfortable, light and stylish.  Sheridan Jones and her team have been great to work with over the years and I look forward to many more years of fruitful collaboration. ';
			break;
			case 'RiverCity':
			popupContent = 'Craig and the team at River City Cycles have helped and mentored me over many years.  I have worked there since 2005 and, accordingly, have gained invaluable skills on the mechanical side that has proven very handy whilst traveling and racing all over the world. When it comes to bike shops, I consider River City Cycles to be without equal.  One of the many things that working in the shop has taught me is that the only acceptable standard when looking after bikes is perfection - you have to be meticulous in everything that you do and you have to enjoy it, every day!';
			break;
			case 'Yankz':
			popupContent = 'I have been using the Yankz lacing system for a season now and I consider it to be a big advantage over standard elastic laces.  Faster to get into, and more comfortable whilst running, they hold you better and certainly make running in flats more enjoyable.  And if Macca swears by Yankz then what more do I need to say! ';
			break;
			case 'Smp':
			popupContent = 'SMP saddles are a lifesaver, especially on those long rides. I have never ridden a saddle that has been so comfortable and also helps with blood flow.  It is a scientifically designed saddle, which may look a little strange at first, but after you ride one you are unlikely to revert back to a normal saddle.  I am delighted to have the support of Davide and the team at Italiatech as we move forward.';
			break;
			case 'Vittoria':
			popupContent = 'Great tyres and ultimately reliable -    that is obvious to me both in training and racing and I also see that reliability feedback through the public whilst working in my day job as a mechanic.';
			break;
		}
		popupBoxContent.innerHTML = popupContent;
		if (popupBoxContent.innerHTML != '')
			thePopupContainer.style.display = 'block';
	}
}	

function popupPhoto(theImage)
{
	var thePhoto = document.getElementById('imgCollage');
	thePhoto.className = 'changeCursor';
	var popupContent = '';
	var leftValue;
	var topValue;
	var arrowType;
	switch (theImage)
	{
		case 'image1':
		popupContent = 'Me having an attempt at snowboarding maybe 2014 Winter Olympics???';
		leftValue = '142px';
		topValue = '10px';
		arrowType = 'popupBoxArrowRight';
		break;
		case 'image2':
		popupContent = 'Halloween in USA Dressed up as my hero Pop Eye';
		leftValue = '354px';
		topValue = '160px';
		arrowType = 'popupBoxArrowRight';
		break;
		case 'image3':
		popupContent = 'Yes I was a chubby baby and my mum is struggling to hold me up';
		leftValue = '248px';
		topValue = '220px';
		arrowType = 'popupBoxArrowRight';
		break;
		case 'image4':
		popupContent = 'My first set of roller blades and a fashionable helmet';
		leftValue = '200px';
		topValue = '415px';
		arrowType = 'popupBoxArrowLeft';
		break;
		case 'image5':
		popupContent = 'Having a go at off road buggy racing';
		leftValue = '358px';
		topValue = '405px';
		arrowType = 'popupBoxArrowLeft';
		break;
	}
	var container = document.getElementById("collageImage");
	var popupBox = document.createElement("div");
	popupBox.id = "popupBox";
	popupBox.style.left = leftValue;
	popupBox.style.top = topValue;
	
	var popupBoxArrow = document.createElement("div");
	popupBoxArrow.className = arrowType;		
	popupBox.appendChild(popupBoxArrow);	
	
	var popupBoxTop = document.createElement("div");
	popupBoxTop.className = "popupBoxTop";		
	popupBox.appendChild(popupBoxTop);	
	
	var popupBoxRpt = document.createElement("div");
	popupBoxRpt.id = "popupBoxRpt";		
	popupBoxRpt.className = "popupBoxRpt";
	popupBox.appendChild(popupBoxRpt);

	var popupBoxContent = document.createElement("p");
	popupBoxContent.innerHTML = popupContent;
	popupBoxRpt.appendChild(popupBoxContent);
	
	container.appendChild(popupBox);
}

function closePhotoPopup()
{
	var thePhoto = document.getElementById('imgCollage');
	thePhoto.className = '';
	var container = document.getElementById("collageImage");
	var popupBox = document.getElementById("popupBox");
	container.removeChild(popupBox);
}
	
/*
JAMES SEEAR SPONSOR PROFILES 2010



IOOF/PURSUIT

IOOF is one of Australia’s largest independent wealth managers with an award-winning product/service portfolio extending to, for example, wealth management services, superannuation administration, asset and investment management, estate planning and corporate trust services.  IOOF places a strong emphasis on achieving the best results for its clients with committed and capable employees delivering the highest standards of customer service.  I am extremely grateful to benefit from the support of IOOF and from the drive and energy of Michael Delamotte. 
	
	CERVELO 

It is about the bike! I feel very lucky to have the support of Cervelo, and the team at Gemini Bikes here in Australia.  Cervelo speak about their “relentless pursuit of excellence” and it is easy to see the benefits of that mantra in practice.  For me, Cervelo bikes stand out, and stand alone, when it comes to performance and I’m very much looking forward to having these weapons on my side. 

SHIMANO

I am delighted to have Matt Bazzano and his team at Shimano Australia now on board.  in my opinion, Shimano produce the most reliable bike products in the market and certainly lead the way when it comes to breakthrough technology and commitment to development - the new Di2 electronic groupset is a prime example and is just miles ahead of anything else on the market. 

AIS

The Australian Institute of Sport is an amazing government-backed operation that has delivered huge success across many sports since it opened on 26 January (Australia Day) 1981.  I echo the words of Kevan Gosper (Chairman of the first AIS Board) who said that the AIS is an icon for excellence in sport.  I consider it a real honour to be part of the AIS and to benefit from its support, guidance, testing and training.  Michael Flynn and the team at the AIS have one goal in mind and that is to help every athlete achieve their best.



SAUCONY

Saucony is a true runners company and runners, and runner feedback, are an integral part of the design and testing process – and it shows!  I know Saucony’s drive and commitment to delivering the best possible fit, look and function will deliver concrete benefits to me as I develop my running over the coming years and that the support of Levi Moss and Celeste Bridges in Australia will be invaluable.

SUUNTO

Suunto are a major supporter of the ITU World Championship Series and I am delighted to now be part of the Suunto team and to have to support of Adam Joyce and his team here in Australia. Suunto products (like the T6c for example) look absolutely fantastic whether racing, training or at leisure, are a great training aid and are at once reliable and accurate. 

ZEROSEVEN

I am delighted with the product of the creative genius of Margaret and Chris and their team of developers and designers at zeroseven Web Design here in Brisbane.  When the idea of a website was originally mooted and then researched we looked at a number of options but, even at that stage, zeroseven stood out.  The team have been truly great (and patient!) from the outset and I very much look forward to working with them as we move forward. 


RIVER CITY CYCLES

Craig and the team at River City Cycles have helped and mentored me over many years.  I have worked there since 2005 and, accordingly, have gained invaluable skills on the mechanical side that has proven very handy whilst traveling and racing all over the world. When it comes to bike shops, I consider River City Cycles to be without equal.  One of the many things that working in the shop has taught me is that the only acceptable standard when looking after bikes is perfection - you have to be meticulous in everything that you do and you have to enjoy it, every day!

BLUE SEVENTY

Even before formally entering the Blue Seventy stable this year I had been using Blue Seventy wetsuits and swimskins for a number of years.  Having tried different brands in the past, I have to say I believe Blue Seventy make the fastest suits and skins on the planet.  Guy Crawford is a hive of knowledge and experience in all things triathlon, has been fantastic to deal with and is a total crack up - a great guy! 

INJINJI

The famous toe socks! You might have seen them before but have you tried them? If you have a problem with blisters or sore feet whilst running, walking or riding, well, try these socks out. They might look strange and feel funny the first time you put them on but once you try them you will never use anything else. I am delighted to now have the support of Paul Reuss and Narelle Ash They are bursting with energy and love to support local events and athletes. I am looking forward to working with them over the coming years. 

YANKZ

I have been using the Yankz lacing system for a season now and I consider it to be a big advantage over standard elastic laces.  Faster to get into, and more comfortable whilst running, they hold you better and certainly make running in flats more enjoyable.  And if Macca swears by Yankz then what more do I need to say! 

OAKLEY
	
What do I need to say about Oakley! For me, Oakley are the worldwide leaders in performance and leisure eyewear and have been for many years.  Everyone wants a pair and that’s because they are comfortable, light and stylish.  Sheridan Jones and her team have been great to work with over the years and I look forward to many more years of fruitful collaboration. 

SMP

SMP saddles are a lifesaver, especially on those long rides. I have never ridden a saddle that has been so comfortable and also helps with blood flow.  It is a scientifically designed saddle, which may look a little strange at first, but after you ride one you are unlikely to revert back to a normal saddle.  I am delighted to have the support of Davide and the team at Italiatech as we move forward. 



*/
