﻿
// PRELOADING IMAGES
if (document.images) {

 img1_on =new Image(); img1_on.src ="/images/top_tab_lead2.gif"; 
 img1_off=new Image(); img1_off.src="/images/top_tab_lead3.gif";
 
 img2_on =new Image(); img2_on.src ="/images/top_tab_strategy2.gif"; 
 img2_off=new Image(); img2_off.src="/images/top_tab_strategy1.gif";
 
 img3_on =new Image(); img3_on.src ="/images/top_tab_clin2.gif"; 
 img3_off=new Image(); img3_off.src="/images/top_tab_clin1.gif";
 
 img4_on =new Image(); img4_on.src ="/images/top_tab_trans2.gif"; 
 img4_off=new Image(); img4_off.src="/images/top_tab_trans1.gif"; 
 
 img5_on =new Image(); img5_on.src ="/images/top_tab_infra2.gif"; 
 img5_off=new Image(); img5_off.src="/images/top_tab_infra1.gif"; 

 img10_on =new Image(); img10_on.src ="/images/tab_tech2.gif"; 
 img10_off=new Image(); img10_off.src="/images/tab_tech1.gif"; 
 
 img11_on =new Image(); img11_on.src ="/images/tab_updates2.gif"; 
 img11_off=new Image(); img11_off.src="/images/tab_updates1.gif"; 
 
 img12_on =new Image(); img12_on.src ="/images/tab_mark2.gif"; 
 img12_off=new Image(); img12_off.src="/images/tab_mark1.gif"; 
 
 img13_on =new Image(); img13_on.src ="/images/tab_links2.gif"; 
 img13_off=new Image(); img13_off.src="/images/tab_links1.gif"; 
 
 img14_on =new Image(); img14_on.src ="/images/tab_feedback2.gif"; 
 img14_off=new Image(); img14_off.src="/images/tab_feedback1.gif"; 
 

}

function movr(k) {
 if (document.images) 
 //alert(document.images);
  eval('document.img'+k+'.src=img'+k+'_on.src');
}

function mout(k) {
 if (document.images) 
  eval('document.img'+k+'.src=img'+k+'_off.src');
}

function handleOver() {
 if (document.images) 
  document.imgName.src=img_on.src;
}

function handleOut() {
 if (document.images) 
  document.imgName.src=img_off.src;
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function test() {
    alert('test');
}

function changeSrc(iframeobj,hyperlink) {
    alert('test');
    document.frames[iframeobj].location.replace(hyperlink); 
}


function changeImagesB(imgobj,imgstr) {
   
    document.getElementById('ctl00_MainContent_BottomTabs1_imgB1').src = '/images/tab_tech1.gif';
    document.getElementById('ctl00_MainContent_BottomTabs1_imgB2').src = '/images/tab_updates1.gif';
    document.getElementById('ctl00_MainContent_BottomTabs1_imgB3').src = '/images/tab_mark1.gif';
    document.getElementById('ctl00_MainContent_BottomTabs1_imgB4').src = '/images/tab_links1.gif';
    document.getElementById('ctl00_MainContent_BottomTabs1_imgB5').src = '/images/tab_feedback1.gif';

    
    document.getElementById('ctl00_MainContent_BottomTabs1_imgB1').src = '/images/tab_tech3.gif';
}


function displayFrame(imgObj,iframeobj, hyperlink){
	//alert(hyperlink);
	//alert(imgObj);
	//alert(iframeobj);
	

	document.frames[iframeobj].location.replace(hyperlink); 

	//document.getElementById(iframeobj).src = hyperlink;
	
	document.getElementById('span10').innerHTML = "<img name='img10' src='/images/tab_tech1.gif' border='0'>";
	document.getElementById('span11').innerHTML = "<img name='img11' src='/images/tab_updates1.gif' border='0'>";
	document.getElementById('span12').innerHTML = "<img name='img12' src='/images/tab_mark1.gif' border='0'>";
	document.getElementById('span13').innerHTML = "<img name='img13' src='/images/tab_links1.gif'  border='0'>";
	document.getElementById('span14').innerHTML = "<img name='img14' src='/images/tab_feedback1.gif' border='0'>";
	
	if (imgObj == 'span10')
		document.getElementById(imgObj).innerHTML = "<img src='/images/tab_tech3.gif' border='0'>";
	else if (imgObj == 'span11')
		document.getElementById(imgObj).innerHTML = "<img src='/images/tab_updates3.gif' border='0'>";
	else if (imgObj == 'span12')
		document.getElementById(imgObj).innerHTML = "<img src='/images/tab_mark3.gif' border='0'>";
	else if (imgObj == 'span13')
		document.getElementById(imgObj).innerHTML = "<img src='/images/tab_links3.gif' border='0'>";
	else if (imgObj == 'span14')
		document.getElementById(imgObj).innerHTML = "<img src='/images/tab_feedback3.gif' border='0'>";	
				
	
	
  }