/**
 * Dhali JavaScripts
 */
 // rram 04/15/09
//window.open('../images/products/' + myParam,winName,features);
// window.open(theURL,winName,features);

function MM_openBrWindow(theURL,winName,features) 
{
	var myParam = gup( 'img' );
	
	if (myParam == "")
	{	myParam = theURL; 	}
	else
	{	myParam = myParam;	}

window.open('../images/products/' + myParam,winName,features);
}


function DH_getVar(var1) 
{
// alert(var1);
document.frmOp.opID.value = var1; 
}

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
$(document).ready(function() {
	equalHeight($(".column"));
});


function swapPicture(varImage,varImageLarge)
{
document.masterImg.src=varImage;
}


function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}


