<!-- 
// Generic function to open a new window
function openAWindow( pageToLoad, winName, width, height, center) {
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) / 2;
    }
    args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=1,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only
    newwin = window.open( pageToLoad,winName,args );
	setTimeout('newwin.focus();',250);
}
// Preload nav buttons and mouse over function
if (document.images) {
//Main Menu
	product = new Image ();
	product.src	= "images/ui_components/product.gif";
	product_on	= new Image ();
	product_on.src = "images/ui_components/product_hover.gif";
	market = new Image ();
	market.src = "images/ui_components/market.gif";
	market_on = new Image ();
	market_on.src = "images/ui_components/market_hover.gif";
	company = new Image ();
	company.src = "images/ui_components/company.gif";
	company_on = new Image ();
	company_on.src = "images/ui_components/company_hover.gif";
	contact = new Image ();
	contact.src = "images/ui_components/contact.gif";
	contact_on = new Image ();
	contact_on.src = "images/ui_components/contact_hover.gif";
//Top Icons
	t_icon01 = new Image ();
	t_icon01.src = "images/ui_components/top_icon01.gif";
	t_icon01_on = new Image ();
	t_icon01_on.src = "images/ui_components/top_icon01b.gif";
	t_icon02 = new Image ();
	t_icon02.src = "images/ui_components/top_icon02.gif";
	t_icon02_on = new Image ();
	t_icon02_on.src = "images/ui_components/top_icon02b.gif";
	t_icon03 = new Image ();
	t_icon03.src = "images/ui_components/top_icon03.gif";
	t_icon03_on = new Image ();
	t_icon03_on.src = "images/ui_components/top_icon03b.gif";
	t_icon04 = new Image ();
	t_icon04.src = "images/ui_components/top_icon04.gif";
	t_icon04_on = new Image ();
	t_icon04_on.src = "images/ui_components/top_icon04b.gif";
	t_icon05 = new Image ();
	t_icon05.src = "images/ui_components/top_icon05.gif";
	t_icon05_on = new Image ();
	t_icon05_on.src = "images/ui_components/top_icon05b.gif";
	t_icon06 = new Image ();
	t_icon06.src = "images/ui_components/top_icon06.gif";
	t_icon06_on = new Image ();
	t_icon06_on.src = "images/ui_components/top_icon06b.gif";
	t_icon07 = new Image ();
	t_icon07.src = "images/ui_components/top_icon07.gif";
	t_icon07_on = new Image ();
	t_icon07_on.src = "images/ui_components/top_icon07b.gif";
	t_icon08 = new Image ();
	t_icon08.src = "images/ui_components/top_icon08.gif";
	t_icon08_on = new Image ();
	t_icon08_on.src = "images/ui_components/top_icon08b.gif";
	t_icon09 = new Image ();
	t_icon09.src = "images/ui_components/top_icon09.gif";
	t_icon09_on = new Image ();
	t_icon09_on.src = "images/ui_components/top_icon09b.gif";
}

function AnimateImage(imgid,imgnew) {
	if (document.images) {
		document.images[imgid].src=eval(imgnew + ".src");
	}
}
// Link to Popup the large Image page
function PopupPic(sPicURL) { 
window.open( "large_view.html?"+sPicURL, "myWin", 
"resizable=1,toolbar=0,status=0,location=0,scrollbars=0,menubar=0,top=25,left=25,height=300,width=300"); 
}
/*
Fit the large image popup window to the actual size
of the image being displayed
*/
var arrTemp=self.location.href.split("?"); 
var picUrl = (arrTemp.length>0)?arrTemp[1]:""; 
var NS = (navigator.appName=="Netscape")?true:false;

function FitPic() { 
	iWidth = (NS)?window.innerWidth:document.body.clientWidth; 
	iHeight = (NS)?window.innerHeight:document.body.clientHeight; 
	if((document.images[0].width) < 200) {
		iWidth = 200 - iWidth;
	} else {
		iWidth = document.images[0].width - iWidth;
	}
	if((document.images[0].height) > 200) {
		iHeight = document.images[0].height - iHeight;
	} else {
		iHeight = 200 - iHeight;
	}
	window.resizeBy(iWidth, iHeight);

	self.focus(); 
};
// -->
