<!--//by mann advertising

// full url to root dir
var vPrefix = 'images/';//'http://www.montageweb.com/';
 

var nav_images = new Array(5);
 

if(document.images)
{
   for(var i=0; i < nav_images.length; i++) {
      //set up each menu
      nav_images[i] = new Object();
      nav_images[i].over = new Image();
      nav_images[i].out  = new Image();
      nav_images[i].over.src = vPrefix + 'nav_' + i + '_roll.gif';
      nav_images[i].out.src = vPrefix + 'nav_' + i + '.gif';
   } 
} 


/*************************************************************************
SUB: switch_img
PARAMS: takes the img image name, or index, to effect and the name of the image to switch to.
RETURNS: void
**************************************************************************/
function switch_img( name, img )
{    
	if(document.images) 
   {
		// find by name
      //var command = 'document.' + name + '.src=' + img + '.src';
      
      // find by image index
      var command = 'document.images[' + name + '].src=' + img + '.src';
      //alert(command);
		eval(command);        
	}
} 


function newWindow(loc,w,h,scroll) {
   if(scroll == '') {scroll = 'no';}
   var info = "\'toolbar=no,location=no,scrollbars=" + scroll + ",width=" + w + ",height=" + h + "\'"
   
   var win = window.open(loc,'Detail',info)
   win.focus();

}

/**************************************************************
get_url_parameters() - returns an object of the name value pairs
passed as url parameters.  To access the object use the '.' 
operator. 
ex:
	var params = get_url_parameters();
	alert( params.name_of_param_you_want );

WARNING: This version does not handle for duplicate names.
**************************************************************/
function get_url_parameters() {

	// create our object and get the url params
	var parameter_object = new Object();
	var url_string       = location.search.substring(1);
	var name_value_pairs = url_string.split("&");
	
	// split up the name/value pairs and store in the object
	var ctr;
	for( ctr = 0 ; ctr < name_value_pairs.length; ctr++ ) {
		
		var name_and_value = name_value_pairs[ctr].split("="); 
		var param_name   = name_and_value[0];
		var param_value  = name_and_value[1];
		
		parameter_object[ unescape(param_name) ] = unescape( param_value );
	}
	  
	return parameter_object;
} // end get_url_parameters()


//--> 
