// All ready-for-action jquery stuff goes in here
/*$(document).ready(function(){
});*/

var phone_models = function(manufacturer_id) {
	if ($('#phone_manufacturer_'+manufacturer_id+' ul').css('display') == 'none') {
		$('#phone_manufacturer_'+manufacturer_id+' ul').show();
	} else {
		$('#phone_manufacturer_'+manufacturer_id+' ul').hide();
	}
};

var winLeft = 0;
var winTop = 0;
var winWidth = 400;
var winHeight = 480;
var winOptions = false;
var popUpWin = '';

function winOpen(URLStr, winLeft, winTop, winWidth, winHeight, winOptions) {
// opens a new browser window, sized to the specifics passed in

	if (popUpWin) {
		if (!popUpWin.closed) { popUpWin.close(); }
	}
	
	configOptions = 'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,copyhistory=1,';
	configOptions += 'width='+winWidth+',height='+winHeight+',left='+winLeft+',top='+winTop+',screenX='+winLeft+',screenY='+winTop;
		
	if (winOptions) { // make sure this function wasn't called with that option already specified
		configOptions += ',' + winOptions;
	}
	
	popUpWin = open(URLStr, 'newWin', configOptions); // show the popup with the defined options
}; // end function winOpen()