<!--
function imageOnOff(image_name,image_file){
	document[image_name].src= '/images/new_design/'+image_file;
}
							
function openWindow(URL){
	newWindow = window.open(URL, "myNewWindow", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=370, height=300, left=100, top=100")
}

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];}}
}


var NewWin, TrueWin;
var sw=0;
var sh=0;
browserVer=parseInt(navigator.appVersion);
browserName=navigator.appName;
if (browserName == "Microsoft Internet Explorer"){
	sw = screen.width; sh = screen.height;
} else {
	tools=java.awt.Toolkit.getDefaultToolkit(); size = tools.getScreenSize(); sw = size.width; sh = size.height;
}

function open_new_window(W_SOURCE,W_NAME,W_WIDTH,W_HIGHT,W_SCROOL){
	//new window top point
	var cx = (sw - W_WIDTH)/2;
	//new window left point
	var cy = (sh - W_HIGHT)/2;
	if(TrueWin =="true" && !NewWin.closed) NewWin.close(); TrueWin = "true"; NewWin = window.open(W_SOURCE,W_NAME,'width='+W_WIDTH+',height='+W_HIGHT+', ScreenX='+cx+', left='+cx+', ScreenY='+cy+', top='+cy+', resizable=no,status=no,scrollbars='+ W_SCROOL);
}

function more_pics(id){
	open_new_window('./pics.php?product_id='+id,'PIC',500,500,'yes');
}

//div functions
function error_message(){
	alert('Your browser isn\'t supported!');
}

function getRefToDiv(divID) {
	if( document.layers ) { //Netscape layers
		return document.layers[divID]; }
	if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
		return document.getElementById(divID); }
	if( document.all ) { //Proprietary DOM; IE4
		return document.all[divID]; }
	if( document[divID] ) { //Netscape alternative
		return document[divID]; }
	return false;
}


//Shows the div
function showDiv(divID_as_a_string) {
	//get a reference as above ...
	myReference = getRefToDiv(divID_as_a_string);
	if( !myReference ) {
		error_message();
		return false; //don't go any further
		//return anything would work,
		//but I am using false to show failure
	}
	//now we have a reference to it
	if( myReference.style ) { //DOM & proprietary DOM
		myReference.style.visibility = 'visible';
		myReference.style.display='block';
	} else {
		if( myReference.visibility ) { //Netscape
			myReference.visibility = 'show';
			myReference.style.display='block';
		} else {
			error_message();
			return false; //don't go any further
		}
	}
	return true;
}
//Hides the div
function hideDiv(divID_as_a_string) {
	//get a reference as above ...
	myReference = getRefToDiv(divID_as_a_string);
	if( !myReference ) {
		window.alert('Nothing works in this browser');
		return false; //don't go any further
		//return anything would work,
		//but I am using false to show failure
	}
	//now we have a reference to it
	if( myReference.style ) { //DOM & proprietary DOM
		myReference.style.visibility = 'hidden';
		myReference.style.display='none';
	} else {
		if( myReference.visibility ) { //Netscape
			myReference.visibility = 'hide';
			myReference.style.display='none';
		} else {
			window.alert('Nothing works in this browser');
			return false; //don't go any further
		}
	}
	return true;
}



 
