<!--- Load image rollovers --->

m1_off = new Image();

m1_off.src = "images/m_diamonds.gif";

m1_on = new Image();

m1_on.src = "images/m_diamonds_f2.gif";



m2_off = new Image();

m2_off.src = "images/m_gems.gif";

m2_on = new Image();

m2_on.src = "images/m_gems_f2.gif";



m3_off = new Image();

m3_off.src = "images/m_rings.gif";

m3_on = new Image();

m3_on.src = "images/m_rings_f2.gif";



m4_off = new Image();

m4_off.src = "images/m_jewelry.gif";

m4_on = new Image();

m4_on.src = "images/m_jewelry_f2.gif";



m5_off = new Image();

m5_off.src = "images/m_watches.gif";

m5_on = new Image();

m5_on.src = "images/m_watches_f2.gif";



m6_off = new Image();

m6_off.src = "images/m_customdesign.gif";

m6_on = new Image();

m6_on.src = "images/m_customdesign_f2.gif";



m7_off = new Image();

m7_off.src = "images/m_services.gif";

m7_on = new Image();

m7_on.src = "images/m_services_f2.gif";



m8_off = new Image();

m8_off.src = "images/m_about.gif";

m8_on = new Image();

m8_on.src = "images/m_about_f2.gif";



m9_off = new Image();

m9_off.src = "images/m_news.gif";

m9_on = new Image();

m9_on.src = "images/m_news_f2.gif";



m10_off = new Image();

m10_off.src = "images/m_contact.gif";

m10_on = new Image();

m10_on.src = "images/m_contact_f2.gif";





portfolio_off = new Image();

portfolio_off.src = "images/m_portfolio.gif";

portfolio_on = new Image();

portfolio_on.src = "images/m_portfolio_f2.gif";





home_off = new Image();

home_off.src = "images/m_home.gif";

home_on = new Image();

home_on.src = "images/m_home_f2.gif";



function reLoadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt

(appVersion)==4)) {

    document.is_pgW=innerWidth; document.is_pgH=innerHeight; 

onresize=reLoadPage; }}

  else if (innerWidth!=document.is_pgW || innerHeight!=document.is_pgH) 

location.reload();

}

reLoadPage(true);





if(document.layers){

	thisbrowser="NN4";

	document.location = "get_Netscape.htm";

}



<!-- Menu Javascript Functions -->



function rollOn(imgName) {

  if (document.images) {

  	if (name.length) hideLayer(name);

	if (imageOn.length) rollOff(imageOn);

    document[imgName].src = eval(imgName + "_on.src");

  }

}



function rollOff(imgName) {

  if (document.images) {

    document[imgName].src = eval(imgName + "_off.src");

  }

}



function TurnOn(imgName) {

  if (document.images) {

    document[imgName].src = eval(imgName + "_on.src");

  }

}



function TurnOff(imgName) {

  if (document.images) {

    document[imgName].src = eval(imgName + "_off.src");

  }

}



<!-- FUNCTION TO POPUP PHOTOS

function openPhoto(url) {



// width & height & top

var w = 820;

var h = 820;

var top = 48



// new window position -- right, left, center

var position = "center"



var winX = 32;

var winY = top;



bVer = parseInt(navigator.appVersion); 

if(bVer >= 4) {

	if(position=="right"){

		winX = screen.width - w -32;

		}

	if(position=="center"){

		winX = (screen.width/2)-(w/2);

		winY = (screen.height/2)-(h/2);

		}

}



popupWin = window.open(url,'newwin','toolbar=no,width='+ w +',height= ' + h + ',directories=no,status=no,scrollbars=2,resizable=yes,top=' + winY + ',left=' + winX +',menubar=no');

}





<!-- FUNCTION TO POPUP THE CHARTS

function openChart(url) {



// width & height & top

var w = 720;

var h = 400;

var top = 48



// new window position -- right, left, center

var position = "center"



var winX = 32;

var winY = top;



bVer = parseInt(navigator.appVersion); 

if(bVer >= 4) {

	if(position=="right"){

		winX = screen.width - w -32;

		}

	if(position=="center"){

		winX = (screen.width/2)-(w/2);

		winY = (screen.height/2)-(h/2);

		}

}



popupWin = window.open(url,'newwin','toolbar=no,width='+ w +',height= ' + h + ',directories=no,status=no,scrollbars=2,resizable=yes,top=' + winY + ',left=' + winX +',menubar=no');

}



<!-- FUNCTION FOR GENERIC OPEN WINDOW

function openMap(url) {



// width & height & top

var w = 600;

var h = 520;

var top = 48



// new window position -- right, left, center

var position = "center"



var winX = 32;

var winY = top;



bVer = parseInt(navigator.appVersion); 

if(bVer >= 4) {

	if(position=="right"){

		winX = screen.width - w -32;

		}

	if(position=="center"){

		winX = (screen.width/2)-(w/2);

		winY = (screen.height/2)-(h/2);

		}

}



popupWin = window.open(url,'newwin','toolbar=no,width='+ w +',height= ' + h + ',directories=no,status=no,scrollbars=2,resizable=yes,top=' + winY + ',left=' + winX +',menubar=no');

}





function calcPosition() {

var winWidth = 0;

  if( typeof( window.innerWidth ) == 'number' ) {

    //Non-IE

    winWidth = window.innerWidth;

  } else {

    if( document.documentElement &&

        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {

      //IE 6+ in 'standards compliant mode'

      winWidth = document.documentElement.clientWidth;

    } else {

      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {

        //IE 4 compatible

        winWidth = document.body.clientWidth;

      }

    }

  }

if ( winWidth > 770) {

	leftOrigin = (((winWidth-770)/2));

} else {

	leftOrigin = 0;

}

left1 = leftOrigin + 57;

left2 = leftOrigin + 123;

left3 = leftOrigin + 206;

left4 = leftOrigin + 258;

left5 = leftOrigin + 315;

left6 = leftOrigin + 377;

left7 = leftOrigin + 526;

left8 = leftOrigin + 583;

left9 = leftOrigin + 627;

left10 = leftOrigin + 667;

}





function moveLayers() {

var browserName=navigator.appName; 



if(document.all){

	thisbrowser="ie"

}

if(!document.all && document.getElementById){

	thisbrowser="NN6";

}

calcPosition();

if (thisbrowser=="NN6") {

<!--- NN 6 and up--->

document.getElementById("Layer1").style.left =  left1;

document.getElementById("Layer2").style.left =  left2;

document.getElementById("Layer3").style.left =  left3;

document.getElementById("Layer4").style.left =  left4;

document.getElementById("Layer5").style.left =  left5;

document.getElementById("Layer6").style.left =  left6;

document.getElementById("Layer7").style.left =  left7;

document.getElementById("Layer8").style.left =  left8;

document.getElementById("Layer9").style.left =  left9;

document.getElementById("Layer10").style.left =  left10;

} else {

<!--- IE --->

eval(document.all["Layer1"].style.left = left1);

eval(document.all["Layer2"].style.left = left2);

eval(document.all["Layer3"].style.left = left3);

eval(document.all["Layer4"].style.left = left4);

eval(document.all["Layer5"].style.left = left5);

eval(document.all["Layer6"].style.left = left6);

eval(document.all["Layer7"].style.left = left7);

eval(document.all["Layer8"].style.left = left8);

eval(document.all["Layer9"].style.left = left9);

eval(document.all["Layer10"].style.left = left10);

	}

}





