onhome = new Image();
                      onhome.src = "images/home2.gif";
                      offhome = new Image();
                      offhome.src = "images/home.gif";
onwomen = new Image();
                      onwomen.src = "images/women2.gif";
                      offwomen = new Image();
                      offwomen.src = "images/women.gif";
onmen = new Image();
                      onmen.src = "images/men2.gif";
                      offmen = new Image();
                      offmen.src = "images/men.gif";
oncommw = new Image();
                      oncommw.src = "images/commW2.gif";
                      offcommw = new Image();
                      offcommw.src = "images/commW.gif";
oncommm = new Image();
                      oncommm.src = "images/commM2.gif";
                      offcommm = new Image();
                      offcommm.src = "images/commM.gif";
oncelebs = new Image();
                      oncelebs.src = "images/celebs2.gif";
                      offcelebs = new Image();
                      offcelebs.src = "images/celebs.gif";
onabout = new Image();
                      onabout.src = "images/about2.gif";
                      offabout = new Image();
                      offabout.src = "images/about.gif";

oncontact = new Image();
                      oncontact.src = "images/contact2.gif";
                      offcontact = new Image();
                      offcontact.src = "images/contact.gif";
                      
onbecome = new Image();
                      onbecome.src = "images/become2.gif";
                      offbecome = new Image();
                      offbecome.src = "images/become.gif";
                      

function itson(imgDocID,imgObjName) {
	document.images[imgDocID].src = eval(imgObjName + ".src");
	}

function LoadImage(pic){
    	var add;
    	var img = 'images/2/' + pic;
	
	if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
		window.parent.document.mainpic.src = img;
	}
	if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
		window.parent.document.mainpic.src = img;
	}
	if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
		window.parent.document.mainpic.src = img;
	}
	
	if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
		window.parent.document.mainpic.src = img;
	}
		
}

function noFocus(Indicator){
        
   	window.parent.document.ImageHeading.src = "images/" + Indicator;
	
	}
	
function changeImage(string) {
 	  var srcElement;
  	  srcElement = window.event.srcElement;
 	  srcElement.src = string;
         }

function openNew(string) {
	  var srcElement;
	  var one;
	  var two;
	  var three;
	  var test;
	  
  	  srcElement = window.document.mainpic.src;

 	  string = srcElement;
 	  one = string.charAt(string.length - 5);
 	  two = string.charAt(string.length - 6);
 	  three = string.charAt(string.length - 7);
 	  test = three + two + one; 
 	  
 	  img = 'images/3/' + test + '.jpg';
	  winId = window.open('','newwin','width=720,height=520,scrollbars=yes,resizable=yes');
	  winId.document.write("<HEAD><TITLE>L A M B R O</TITLE></HEAD>");
	  winId.document.write('<body bgcolor=#F1F1D0 onLoad="if (window.focus) window.focus()"><center>');
	  winId.document.write('<img src="' + img + '"><br><br>');
	  winId.document.write('<span><font face=Arial size=2 color=#57493F><b>L A M B R O</b></font></span>');
	  winId.document.write('</center></body>');
  	  winId.document.close();
}
         

function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}

function detectOS()
{
if(navigator.userAgent.indexOf('Win') == -1) {
OS = 'Macintosh';
} else {
OS = 'Windows';
}
return OS;
}

function detectBrowser()
{
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
return browser;
}

function FullScreen(){

var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
adjWidth = 30;
adjHeight = 30;
}
if(detectVersion() < 4) {
self.location.href = 'oldbrowser.html';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('TLC/main.htm', '', winSize);
thewindow.moveTo(0,0);
}
}

function MakeItSo(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('TLC/main.htm','','fullscreen=yes');
} else {
onload=FullScreen();
}
}  
     
