window.name = "iss_com"

//preload images

pl=new Image(43,18)
pl.src="blue.gif"

p2=new Image(13,13)
p2.src="white.gif"

p3=new Image(241,1)
p3.src="line.gif"

p4=new Image(241,1)
p4.src="line.gif"

p5=new Image(4,15)
p5.src="menu1.gif"

p6=new Image(4,15)
p6.src="menu2.gif"

p7=new Image(4,15)
p7.src="menu3.gif"

p8=new Image(4,15)
p8.src="menu4.gif"

p9=new Image(4,15)
p9.src="menu5.gif"

p10=new Image(4,15)
p10.src="menu6.gif"

p11=new Image(4,15)
p11.src="menu7.gif"

	// Browser type is set
				
				ns4 = (document.layers)? true:false
				ie4 = (document.all)? true:false
	
				if (navigator.userAgent.indexOf('Netscape6')>0) {

					ns6 = true;
				}
				else {
					ns6 = false;
				}
		
				if (navigator.userAgent.indexOf('MSIE')>0 && (navigator.platform=='MacPPC')) {

					IeMac = true;
				}
				else {
					IeMac = false;
				}
				
				if (navigator.appVersion.substring(navigator.userAgent.indexOf("MSIE")-3, navigator.userAgent.indexOf("MSIE")-2)<5){
					IeNot5 = true;
					}
				else {
					IeNot5 = false;
				}
				

				
				
				function hilite(idx,leftImg) {

					if (ns4) {
						return;
					}

					thisrow = findObj("row"+idx);
					thatrow = findObj("row"+idx+"_arr");

					thatrow.style.backgroundImage = "url("+leftImg+".gif)"
					thisrow.style.backgroundImage = "url(blue.gif)";			
				}

				function unlite(idx) {

					if (ns4) {
						return;
					}

					thisrow = findObj("row"+idx);
					thatrow = findObj("row"+idx+"_arr");

					if (idx != 0) {

						thatrow.style.backgroundImage = "url(white.gif)";
						thisrow.style.backgroundImage = "url(white.gif)";
					}
				}

				function unliteall() {
					unlite(lastid);
				}
				
				function dothing(idx,leftImg) {
					unlite(lastid);
					hilite(idx,leftImg);
					lastid = idx;
				}
				
		
			
				
			
				function hilite2(idx)
				{
					notcell = findObj("notcell"+idx);
					if (notcell){
						i=0;
						for (i=0; i<notcell.length; i++)
						notcell(i).bgColor = "#EEF2F4";
						if (i==0){
							notcell.bgColor = "#EEF2F4";
						}
					}
					
					else {
						
						thiscell = findObj("cell"+idx);
						i=0;
						for (i=0; i<thiscell.length; i++)
						thiscell(i).bgColor = "#EEF2F4";
						if (i==0){
							thiscell.bgColor = "#EEF2F4";
						}
					}
				}
				
				function unlite2(idx)
				{
					notcell = findObj("notcell"+idx);
					if (notcell){
						i=0;
						for (i=0; i<notcell.length; i++)
						notcell(i).bgColor = "";
						if (i==0){
							notcell.bgColor = "";
						}
					}
					
					else {
						
						
						thiscell = findObj("cell"+idx);
						i=0;
						for (i=0; i<thiscell.length; i++)
						thiscell(i).bgColor = "";
						if (i==0){
							thiscell.bgColor = "";
						}
					}
				
				setBGcolor();}
				
			var fadeDone = A_readCookie("ISSHead")		
	
			//alert(fadeDone);

			function high(){

				theobject=findObj("topPic");

				highlighting=setInterval("highlightit(theobject)",50);

				var Level1docIDcookie = "ISSHead=" + docIdLevel1 ;

				document.cookie = Level1docIDcookie;

			}
			
			function highlightit(cur2){
				if (cur2.filters.alpha.opacity<100) {
					cur2.filters.alpha.opacity+=5;
				}

				else if (window.highlighting) {
					clearInterval(highlighting); 
				}
			}
			
			
			function startHigh() {

				if (fadeDone != docIdLevel1) {


					var highstart = setTimeout('high()',1000);

				}
				else {

					theobject=findObj("topPic");

					theobject.filters.alpha.opacity = 100;
				}
			}


			function A_getCookieValue(name) {  
			// Declare variables.


				var firstChar;
				var lastChar;

				var theBigCookie = document.cookie;

				firstChar = theBigCookie.indexOf(name);


				if(firstChar != -1)  {



			    		firstChar += name.length + 1;

 			   		lastChar = theBigCookie.indexOf(';', firstChar);

					if(lastChar == -1) lastChar = theBigCookie.length;

			    		return theBigCookie.substring(firstChar, lastChar);

			  	} 
				else {

			    		return false;

				}

			}


			function A_readCookie(name) { 

				if(document.cookie == '') {

					return false;
				}
				else {

					return A_getCookieValue(name);

				}
			}


			function highlightit(cur2){
				if (cur2.filters.alpha.opacity<100) {
					cur2.filters.alpha.opacity+=5;
				}

				else if (window.highlighting) {
					clearInterval(highlighting); 
				}
			}

				var mColor = "#cc0033"
				var colour1 = "#cc0033" // Red
				var colour2 = "#9966cc" // Purple
				var colour3 = "#cccc99" // Pale green
				var colour4 = "#99cc66" // Green
				var colour5 = "#99cccc" // Turquoise
				var colour6 = "#666699" // Lilac
				
				if (docIdLevel1 == 104) // About ISS - 104
				{mColor = colour1};
				
				if (docIdLevel1 == 100) // News - 100
				{mColor = colour2};
				
				if (docIdLevel1 == 101) // Invester relations - 101
				{mColor = colour3};
				
				if (docIdLevel1 == 102) // Our Business - 102
				{mColor = colour4};
				
				if (docIdLevel1 == 103) // Career - 103
				{mColor = colour5};
				
				if (docIdLevel1 == 174) // Xtra 1 - 174
				{mColor = colour6};
				
				if (docIdLevel1 == 175) // Xtra 2 - 175
				{mColor = colour1};

